/* ===================================================================
   Dravyadrishti — IT Services
   styles.css
   =================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #0B1020;
  --bg-2:          #0E1530;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-2:     rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text:          #F1F5F9;
  --text-muted:    #94A3B8;
  --text-dim:      #64748B;

  --violet:        #7C3AED;
  --indigo:        #4F46E5;
  --cyan:          #06B6D4;

  --grad: linear-gradient(120deg, #7C3AED 0%, #4F46E5 50%, #06B6D4 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,58,237,0.16), rgba(6,182,212,0.16));

  --shadow: 0 24px 60px -20px rgba(2, 6, 23, 0.85);
  --radius: 18px;
  --radius-sm: 12px;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Ambient background ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 500px at 12% -5%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(700px 500px at 95% 8%, rgba(6, 182, 212, 0.22), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(79, 70, 229, 0.20), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }

.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(79, 70, 229, 0.7);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(79, 70, 229, 0.9); }
.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--cyan); }

/* ===================================================================
   Navbar
   =================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav .logo svg { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta { margin-left: 10px; padding: 11px 20px; }

.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--border);
  width: 44px; height: 44px; border-radius: 11px; color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

/* ===================================================================
   Hero
   =================================================================== */
.hero { padding-top: 150px; padding-bottom: clamp(60px, 9vw, 110px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 5vw, 72px); align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -0.03em; }
.hero p.lead { color: var(--text-muted); font-size: 1.14rem; margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 1.9rem; font-weight: 700; }
.hero-stats .stat .lbl { color: var(--text-dim); font-size: 0.86rem; }

/* Hero visual — orbiting glass card */
.hero-visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.9;
}
.hero-card {
  position: relative; width: min(380px, 100%);
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 26px;
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.hero-card .glow-ring {
  position: absolute; inset: -1px; border-radius: 22px; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6; pointer-events: none;
}
.hero-card .row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.hero-card .row:last-child { border-bottom: none; }
.hero-card .ic {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--cyan);
}
.hero-card .ic svg { width: 21px; height: 21px; }
.hero-card .t { font-weight: 600; font-size: 0.96rem; }
.hero-card .s { color: var(--text-dim); font-size: 0.82rem; }
.hero-card .bar { margin-left: auto; width: 54px; height: 7px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.hero-card .bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.float-chip {
  position: absolute; background: rgba(14, 21, 48, 0.9); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 11px 15px; font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.float-chip svg { width: 18px; height: 18px; color: var(--cyan); }
.chip-1 { top: 6px; right: -6px; animation: floaty 5s ease-in-out infinite; }
.chip-2 { bottom: 10px; left: -14px; animation: floaty 6s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Trust strip */
.trust { border-block: 1px solid var(--border); background: rgba(255,255,255,0.015); }
.trust .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 24px; }
.trust span { color: var(--text-dim); font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; }
.trust .tech { display: flex; gap: clamp(18px, 4vw, 40px); flex-wrap: wrap; color: var(--text-muted); font-weight: 600; }

/* ===================================================================
   Cards / grids
   =================================================================== */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124,58,237,0.16), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.card:hover::after { opacity: 1; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc .svc-ic {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--grad-soft); border: 1px solid var(--border); color: #fff;
}
.svc .svc-ic svg { width: 27px; height: 27px; }
.svc h3 { font-size: 1.28rem; margin-bottom: 10px; }
.svc p { color: var(--text-muted); font-size: 0.96rem; }
.svc ul { margin-top: 18px; display: grid; gap: 9px; }
.svc ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: 0.92rem; }
.svc ul li svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; margin-top: 3px; }

/* ===================================================================
   Process
   =================================================================== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step .n {
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; }
.step::before {
  content: ""; position: absolute; top: 18px; left: 56px; right: -22px; height: 2px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.process-grid .step:last-child::before { display: none; }

/* ===================================================================
   Why us
   =================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why .why-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--grad-soft); border: 1px solid var(--border); color: var(--cyan); }
.why .why-ic svg { width: 23px; height: 23px; }
.why h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why p { color: var(--text-muted); font-size: 0.93rem; }

/* ===================================================================
   Contact
   =================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.contact-info > p { color: var(--text-muted); margin-top: 14px; font-size: 1.04rem; }
.contact-list { margin-top: 32px; display: grid; gap: 16px; }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: 15px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .25s, transform .25s, background .25s;
}
.contact-list a:hover { border-color: var(--cyan); transform: translateX(4px); background: var(--surface-2); }
.contact-list .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--cyan); flex-shrink: 0; }
.contact-list .ic svg { width: 21px; height: 21px; }
.contact-list .k { font-size: 0.8rem; color: var(--text-dim); }
.contact-list .v { font-weight: 600; font-size: 0.98rem; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.field label .req { color: var(--cyan); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; font-family: inherit; font-size: 0.96rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field select { appearance: none; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--indigo); background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,0.15); }
.field .err { color: #f87171; font-size: 0.8rem; display: none; }
.field.invalid .err { display: block; }
.form-card button[type="submit"] { width: 100%; margin-top: 6px; padding: 16px; }
.form-note { text-align: center; color: var(--text-dim); font-size: 0.82rem; margin-top: 14px; }

.form-status { border-radius: 12px; padding: 14px 16px; font-size: 0.92rem; font-weight: 500; margin-bottom: 18px; display: none; align-items: center; gap: 10px; }
.form-status.show { display: flex; }
.form-status.success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.4); color: #86efac; }
.form-status.error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }
.form-status svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label, .btn.loading svg.send { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================================================
   CTA banner
   =================================================================== */
.cta-banner { position: relative; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 24px; padding: clamp(40px, 6vw, 64px); text-align: center; background: var(--grad-soft); }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(124,58,237,0.35), transparent 60%); }
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-banner p { color: var(--text-muted); margin: 14px auto 0; max-width: 540px; }
.cta-banner .hero-actions { justify-content: center; }

/* ===================================================================
   Footer
   =================================================================== */
.footer { border-top: 1px solid var(--border); padding-block: 56px 32px; margin-top: clamp(60px, 8vw, 90px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo svg { height: 42px; margin-bottom: 18px; }
.footer p.about { color: var(--text-muted); font-size: 0.93rem; max-width: 320px; }
.footer h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--text-muted); font-size: 0.93rem; transition: color .2s; }
.footer ul a:hover { color: var(--cyan); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); transition: all .25s; }
.socials a:hover { color: #fff; border-color: var(--cyan); transform: translateY(-3px); background: var(--surface-2); }
.socials a svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: 0.86rem; }

/* ===================================================================
   Scroll reveal
   =================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* Back to top */
.to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; border: none; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; margin-top: 10px; }
  .services-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid .step::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(11,16,32,0.97); backdrop-filter: blur(16px); padding: 16px 20px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform .35s var(--ease); z-index: 99;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px; border-radius: 10px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: grid; }
  .services-grid, .why-grid, .process-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
