:root {
    --violet: #7B2FBE;
    --violet-dark: #5A1F8A;
    --violet-light: #9B3FDE;
    --cyan: #00E5FF;
    --cyan-mid: #22C5E0;
    --white: #FFFFFF;
    --off-white: #F4F0FA;
    --dark: #0D0118;
    --dark-2: #160228;
    --text-muted: rgba(255,255,255,0.55);
    --grad: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
    --grad-text: linear-gradient(90deg, #B060FF 0%, #00E5FF 100%);

  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 4vw;
    background: rgba(13, 1, 24, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 47, 190, 0.2);
  }

  .nav-logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none;
  }

  .nav-logo-d {
    width: 38px; height: 38px;
    background: var(--grad);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 1.25rem;
    color: white;
  }

  .nav-logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 700; font-size: 1.1rem;
    letter-spacing: 0.18em;
    background: var(--grad-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }

  .nav-links {
    display: flex; gap: 2.5rem; list-style: none;
    margin-left:10vw;
  }

  .nav-links a {
    text-decoration: none; color: rgba(255,255,255,0.75);
    font-size: 0.9rem; letter-spacing: 0.05em;
    transition: color .2s;
  }
  .nav-links a:hover { color: var(--cyan); }

  .nav-cta {
    background: var(--grad);
    border: none; border-radius: 50px;
    padding: 0.55rem 1.4rem;
    color: white; font-family: 'Syne', sans-serif;
    font-weight: 600; font-size: 0.85rem;
    letter-spacing: 0.06em; cursor: pointer;
    transition: opacity .2s, transform .2s;
    text-decoration: none;
  }
  .nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
  .hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: .3s; }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 8rem 4vw 5rem;
    position: relative; overflow: hidden;
  }

  .hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(123,47,190,0.35) 0%, transparent 70%),
                radial-gradient(ellipse 50% 40% at 70% 60%, rgba(0,229,255,0.12) 0%, transparent 60%);
  }

  /* animated grid */
  .hero-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
      linear-gradient(rgba(123,47,190,0.12) 1px, transparent 1px),
      linear-gradient(90deg, rgba(123,47,190,0.12) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridScroll 20s linear infinite;
  }
  @keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
  }

  .hero-content { position: relative; z-index: 1; max-width: 820px; }

  .hero-badge {
    display: inline-block;
    border: 1px solid rgba(0,229,255,0.4);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.78rem; letter-spacing: 0.12em;
    color: var(--cyan); text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeUp 0.8s ease both;
  }

  .hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.9s 0.1s ease both;
  }

  .hero-title .grad {
    background: var(--grad-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }

  .hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    font-weight: 300;
    max-width: 450px; margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeUp 1s 0.2s ease both;
  }

  .hero-actions {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    animation: fadeUp 1s 0.3s ease both;
  }

  .btn-primary {
    background: var(--grad);
    border: none; border-radius: 50px;
    padding: 0.85rem 2rem;
    color: white; font-family: 'Syne', sans-serif;
    font-weight: 700; font-size: 0.95rem;
    letter-spacing: 0.06em; cursor: pointer;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 0 30px rgba(123,47,190,0.5);
  }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(0,229,255,0.35); }

  .btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 0.85rem 2rem;
    color: white; font-family: 'Syne', sans-serif;
    font-weight: 600; font-size: 0.95rem;
    letter-spacing: 0.06em; cursor: pointer;
    text-decoration: none;
    transition: border-color .25s, background .25s;
  }
  .btn-outline:hover { border-color: var(--cyan); background: rgba(0,229,255,0.08); }

  .nav-actions {
    display: flex;
    justify-content: space-between;
    gap:10px;
  }

  /* D logo SVG */
  .hero-logo-wrap {
    position: absolute; z-index: 0;
    right: -6vw; top: 50%; transform: translateY(-50%);
    opacity: 0.06;
    pointer-events: none;
  }
  .hero-logo-wrap svg { width: min(50vw, 480px); }

  /* Theme toggle */
  .theme-toggle{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12.5px;
    color:var(--violet);
  }
  .theme-toggle svg{width:14px;height:14px;stroke:var(--white);flex-shrink:0;}
  .switch{
    position:relative;
    display:inline-block;
    width:40px;
    height:22px;
    flex-shrink:0;
  }
  .switch input{
    opacity:0;
    width:0;
    height:0;
  }
  .slider{
    position:absolute;
    cursor:pointer;
    inset:0;
    background:var(--dark);
    border:1px solid var(--dark-2);
    border-radius:999px;
    transition:background .2s ease, border-color .2s ease;
  }
  .slider::before{
    content:"";
    position:absolute;
    width:16px;
    height:16px;
    left:2px;
    top:2px;
    background:var(--cyan-mid);
    border-radius:50%;
    transition:transform .2s ease;
  }
  .switch input:checked + .slider::before{
    transform:translateX(18px);
  }
 

  /* scroll hint */
  .scroll-hint {
    position: absolute; bottom: 1.0rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    z-index: 1; animation: bounce 2s infinite;
    color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.1em;
  }
  .scroll-hint::after {
    content: '';
    display: block; width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(0,229,255,0.6), transparent);
  }
  @keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

  /* ── STATS ── */
  #stats {
    padding: 3.5rem 4vw;
    border-top: 1px solid rgba(123,47,190,0.2);
    border-bottom: 1px solid rgba(123,47,190,0.2);
  }
  .stats-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem; text-align: center;
  }
  .stat-num {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  .stat-label { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.08em; margin-top: 0.25rem; }

  /* ── SECTIONS COMMON ── */
  section { padding: 7rem 4vw; }
  .section-tag {
    font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 1rem;
  }
  .section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800; line-height: 1.1;
    margin-bottom: 1.2rem;
  }
  .section-sub {
    color: var(--text-muted); font-weight: 300;
    font-size: 1.05rem; line-height: 1.75;
    max-width: 520px;
  }
  .inner { max-width: 1100px; margin: 0 auto; }

  /* ── SERVICES ── */
  #services { background: var(--dark-2); }
  .services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: start;
  }
  .services-intro { position: sticky; top: 6rem; }
  .services-cards { display: flex; flex-direction: column; gap: 1.2rem; }

  .card {
    border: 1px solid rgba(123,47,190,0.25);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    background: linear-gradient(135deg, rgba(123,47,190,0.08) 0%, rgba(0,229,255,0.04) 100%);
    transition: border-color .3s, transform .3s, background .3s;
    cursor: default;
  }
  .card:hover {
    border-color: var(--cyan);
    background: rgba(0,229,255,0.04);
    transform: translateX(6px);
  }
  .card-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(123,47,190,0.5), rgba(0,229,255,0.3));
  }
  .card h3 {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 1.05rem; margin-bottom: 0.5rem;
  }
  .card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

  /* ── EXPERTISE ── */
  #expertise .inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
  }
  .expertise-header { text-align: center; margin-bottom: 0; }
  .expertise-header .section-sub { margin: 0 auto; }

  .exp-card {
    border: 1px solid rgba(123,47,190,0.2);
    border-radius: 20px;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(123,47,190,0.08) 0%, rgba(0,229,255,0.04) 100%);
    transition: transform .3s, box-shadow .3s;
  }
  .exp-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,229,255,0.1); }
  .exp-bar-wrap { margin-top: 1rem; }
  .exp-label { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.4rem; }
  .exp-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
  .exp-fill {
    height: 100%;
    background: var(--grad);
    border-radius: 2px;
    animation: fillBar 1.5s ease both;
    transform-origin: left;
  }
  @keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  /* ── PROCESS ── */
  #process { background: var(--dark-2); }
  .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; margin-top: 4rem;
    position: relative;
  }
  .process-step { text-align: center; position: relative; }
  .step-num {
    font-family: 'Syne', sans-serif; font-size: 3.5rem; font-weight: 800;
    background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    opacity: 0.35; line-height: 1;
  }
  .step-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin: 0.5rem 0; }
  .step-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

  /* ── CONTACT ── */
  #contact {
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(123,47,190,0.2) 0%, transparent 70%);
    text-align: center;
  }
  #contact .inner { max-width: 640px; }
  #contact .section-title { margin-bottom: 0.75rem; }
  #contact .section-sub { margin: 0 auto 2.5rem; }

  .contact-form {
    display: flex; flex-direction: column; gap: 1rem;
    text-align: left;
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-field { display: flex; flex-direction: column; gap: 0.4rem; }
  .form-field label { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--text-muted); }
  .form-field input,
  .form-field textarea,
  .form-field select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(123,47,190,0.3);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: white; font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color .2s;
  }
  .form-field input:focus,
  .form-field textarea:focus,
  .form-field select:focus { border-color: var(--cyan); }
  .form-field textarea { resize: vertical; min-height: 120px; }
  .form-field select option { background: var(--dark-2); }

  .form-submit { margin-top: 0.5rem; }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid rgba(123,47,190,0.2);
    padding: 2.5rem 4vw;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
  }
  .footer-brand {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 0.9rem; letter-spacing: 0.15em;
    background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  .footer-copy { color: var(--text-muted); font-size: 0.8rem; }
  .footer-links { display: flex; gap: 1.5rem; list-style: none; }
  .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.82rem; transition: color .2s; }
  .footer-links a:hover { color: var(--cyan); }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
   
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
      display: flex; flex-direction: column;
      position: fixed; top: 65px; left: 0; right: 0;
      background: rgba(13,1,24,0.97);
      padding: 2rem;
      border-bottom: 1px solid rgba(123,47,190,0.2);
      z-index: 99;
    }
    .nav-links.open + .nav-cta { display: block; margin: 0 2rem; }
    .services-layout { grid-template-columns: 1fr; }
    .services-intro { position: static; }
    .form-row { grid-template-columns: 1fr; }
    .hero-logo-wrap { display: none; }
    footer { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
  }

  @media (max-width: 992px) {
     .nav-links {
      margin-left: 0;
    }
  }