/**
 * ============================================================
 *  style.css — LinguaAI Main Stylesheet
 * ============================================================
 *  TABLE OF CONTENTS:
 *   1.  Google Fonts Import
 *   2.  CSS Variables (Design Tokens)
 *   3.  Reset & Base Styles
 *   4.  Custom Cursor
 *   5.  Page Loader
 *   6.  Navbar
 *   7.  Buttons
 *   8.  Section Utilities (tags, titles, reveal)
 *   9.  Hero Section
 *   10. Marquee Strip
 *   11. Stats Cards
 *   12. Features Section
 *   13. How It Works
 *   14. Why Section
 *   15. Subscribe Section
 *   16. Page Header (breadcrumb pages)
 *   17. Services Page
 *   18. Contact Page
 *   19. Translator Tool Pages
 *   20. Mic Button (Voice tool)
 *   21. Upload Zone (File tool)
 *   22. Footer
 *   23. Responsive / Mobile
 * ============================================================
 */


/* ─────────────────────────────────────────────
   1. GOOGLE FONTS
   Clash Display  → Bold headings (h1, h2, brand)
   Playfair Display → Italic hero accent text
   Cabinet Grotesk / DM Sans → Body text
───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital@1&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=cabinet-grotesk@300,400,500,700,800&display=swap');


/* ─────────────────────────────────────────────
   2. CSS VARIABLES (Design Tokens)
   All colors, radii, and fonts in one place.
   Use var(--name) anywhere in the stylesheet.
───────────────────────────────────────────── */
:root {
  /* Backgrounds — darkest to lighter */
  --bg:      #050509;   /* Main page background */
  --bg2:     #0a0a12;   /* Section background (slightly lighter) */
  --bg3:     #0f0f1a;   /* Card background */

  /* Card surfaces */
  --card:    rgba(255,255,255,0.035); /* Subtle glass card */
  --cardh:   rgba(255,255,255,0.06);  /* Card on hover */

  /* Borders */
  --border:  rgba(255,255,255,0.07);  /* Default border */
  --borderh: rgba(99,179,237,0.4);    /* Highlighted border (blue glow) */

  /* Accent colors */
  --blue:    #63b3ed;  /* Primary accent — cyan-blue */
  --purple:  #9f7aea;  /* Secondary accent — soft purple */
  --pink:    #fc8181;  /* Danger / mic active */
  --green:   #68d391;  /* Success messages */

  /* Text */
  --text:    #eef0f8;               /* Primary text — off-white */
  --muted:   rgba(238,240,248,0.42); /* Dimmed text */
  --muted2:  rgba(238,240,248,0.68); /* Mid-brightness text */

  /* Border radii */
  --r:    18px;  /* Standard card radius */
  --r-sm: 10px;  /* Small element radius */
}


/* ─────────────────────────────────────────────
   3. RESET & BASE STYLES
   Removes browser defaults for consistent
   rendering across Chrome, Firefox, Safari.
───────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Include padding/border in element width */
}

html { scroll-behavior: smooth; } /* Smooth anchor scrolling */

body {
  font-family: 'Cabinet Grotesk', 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden; /* Prevent horizontal scroll */
  cursor: none;       /* Hide default cursor (replaced by custom one) */
}

a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: none; }


/* ─────────────────────────────────────────────
   4. CUSTOM CURSOR
   Two elements layered:
     .cur      → small filled dot
     .cur-ring → larger hollow circle
   Both are position:fixed and follow the mouse
   via JS. mix-blend-mode:screen makes the dot
   glow over dark backgrounds.
───────────────────────────────────────────── */
.cur {
  width: 10px; height: 10px;
  background: var(--blue);
  border-radius: 50%;
  position: fixed;
  pointer-events: none; /* Never block clicks */
  z-index: 99999;
  transform: translate(-50%, -50%); /* Center on mouse position */
  transition: width .18s, height .18s, background .18s;
  mix-blend-mode: screen; /* Glowing blend effect */
}

.cur-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(99,179,237,.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  /* Smooth ring lag behind the dot */
  transition: width .24s, height .24s, left .1s ease-out, top .1s ease-out;
}


/* ─────────────────────────────────────────────
   5. PAGE LOADER
   Fullscreen overlay shown while the page loads.
   JS adds .done after 1.9s → fades out.
───────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; /* Cover entire screen */
  z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity .6s, visibility .6s;
}

/* When JS adds .done — fade out and hide */
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Brand name shown during loading */
.loader-logo {
  font-family: 'Clash Display', sans-serif;
  font-size: 2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoPulse 1.6s ease infinite; /* Pulsing opacity */
}

@keyframes logoPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Progress bar track */
.loader-track {
  width: 200px; height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

/* Animated fill bar */
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  animation: fill 1.9s ease forwards; /* Matches the JS 1900ms delay */
}

@keyframes fill { from{width:0} to{width:100%} }


/* ─────────────────────────────────────────────
   6. NAVBAR
   Fixed top bar with blur glass effect.
   Contains: Brand | Nav Links | CTA Pill | Hamburger
───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  height: 68px; padding: 0 6%;
  background: rgba(5,5,9,.85);          /* Semi-transparent black */
  backdrop-filter: blur(24px) saturate(180%); /* Frosted glass effect */
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* Brand logo text with gradient */
.nav-brand {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex; align-items: center; gap: 9px;
}

/* Animated blinking dot next to the brand */
.nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  animation: blink 2s infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  font-size: .88rem; font-weight: 600;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* Gradient underline for the active page link */
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 2px;
}

/* CTA pill button in the navbar */
.nav-pill {
  font-size: .78rem; font-weight: 700;
  background: rgba(99,179,237,.1);
  border: 1px solid rgba(99,179,237,.2);
  color: var(--blue);
  border-radius: 100px; padding: 6px 15px;
  transition: background .2s;
}
.nav-pill:hover { background: rgba(99,179,237,.18); }

/* Mobile hamburger button (hidden on desktop) */
.hamburger {
  display: none; /* Shown via media query below */
  flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 2px; display: block;
  transition: .3s;
}


/* ─────────────────────────────────────────────
   7. BUTTONS
   Two variants:
     .btn-grad  → gradient fill (primary CTA)
     .btn-ghost → transparent with border
   .btn-full makes any button fill its container.
───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 30px;
  border-radius: 100px;
  font-size: .9rem; font-weight: 700;
  border: none;
  transition: opacity .2s, transform .2s;
  cursor: none;
  font-family: 'Cabinet Grotesk', sans-serif;
  letter-spacing: .3px;
}

.btn:hover { opacity: .86; transform: translateY(-2px); }

/* Blue-to-purple gradient */
.btn-grad {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
}

/* Transparent with subtle border */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.25); background: var(--card); }

/* Makes any .btn span full width of its parent */
.btn-full { width: 100%; justify-content: center; border-radius: var(--r); }


/* ─────────────────────────────────────────────
   8. SECTION UTILITIES
   Reusable tags, titles, subtitles, and the
   scroll-reveal animation system.
───────────────────────────────────────────── */
section { padding: 90px 6%; }

/* Small uppercase label above section titles (e.g. "BY THE NUMBERS") */
.section-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

/* Main section heading */
.section-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem); /* Fluid sizing */
  font-weight: 700; letter-spacing: -1px;
  margin-bottom: 16px; line-height: 1.15;
}

/* Subtitle paragraph under section title */
.section-sub { color: var(--muted2); font-size: .95rem; max-width: 520px; line-height: 1.75; }

/* Gradient text utility class */
.grad-text {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Scroll Reveal System ──
   Elements start hidden and slide up.
   JS adds .visible when they enter the viewport.
   .d1/.d2/.d3 add stagger delays. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* Entry animation for hero elements (runs immediately on load) */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}


/* ─────────────────────────────────────────────
   9. HERO SECTION
   Full-screen landing area with:
     - Animated grid background
     - Two glowing orbs
     - Eyebrow label, heading, paragraph, CTAs
───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 130px 6% 90px;
  text-align: center;
  position: relative; overflow: hidden;
}

/* Subtle dot grid (masked to fade at edges) */
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

/* Floating glowing orb — top-left */
.hero-orb1 {
  position: absolute; width: 700px; height: 700px;
  border-radius: 50%; top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(99,179,237,.08) 0%, transparent 70%);
  animation: orb1 8s ease-in-out infinite; z-index: 0;
}

/* Floating glowing orb — bottom-right */
.hero-orb2 {
  position: absolute; width: 500px; height: 500px;
  border-radius: 50%; bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(159,122,234,.08) 0%, transparent 70%);
  animation: orb2 10s ease-in-out infinite; z-index: 0;
}

/* Orb floating animations */
@keyframes orb1 { 0%,100%{transform:translate(0,0)}  50%{transform:translate(30px,20px)} }
@keyframes orb2 { 0%,100%{transform:translate(0,0)}  50%{transform:translate(-30px,-20px)} }

/* All hero content sits above the background elements */
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }

/* "AI-Powered Translation Platform" pill above the heading */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(99,179,237,.08);
  border: 1px solid rgba(99,179,237,.18);
  border-radius: 100px; padding: 7px 18px;
  font-size: .77rem; font-weight: 700;
  color: var(--blue);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 30px;
  animation: fadeUp .8s ease both;
}

/* Blinking dot inside the eyebrow */
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--blue);
  animation: blink 2s infinite;
}

/* Main heading — "Speak Every" */
.hero h1 {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -2.5px;
  animation: fadeUp .8s .1s ease both;
}

/* "Language Fluently" in italic Playfair with gradient */
.hero-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 55%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero p {
  font-size: 1.05rem; color: var(--muted2); line-height: 1.78;
  max-width: 520px; margin: 24px auto 44px;
  animation: fadeUp .8s .2s ease both;
}

.hero-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .8s .3s ease both;
}


/* ─────────────────────────────────────────────
   10. MARQUEE STRIP
   Horizontally scrolling ticker between hero
   and stats. Duplicated content scrolls
   infinitely using CSS animation.
───────────────────────────────────────────── */
.marquee-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 15px 0; overflow: hidden; background: var(--bg2);
}

/* The track is double-wide (two copies of content)
   so the animation loops seamlessly */
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 32px;
  font-size: .82rem; font-weight: 600;
  color: var(--muted); white-space: nowrap;
}

.marquee-item em { color: var(--blue); font-style: normal; font-size: 1rem; }

/* Moves the track exactly -50% (one copy of content)
   then snaps back — creating infinite loop */
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }


/* ─────────────────────────────────────────────
   11. STATS CARDS
   3-column grid of metric cards.
   Each card has icon + large number + labels.
   Hover lifts the card and reveals a gradient.
───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px;
}

.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 36px 28px;
  transition: border-color .3s, transform .3s;
  position: relative; overflow: hidden;
}

/* Subtle gradient overlay revealed on hover */
.stat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,179,237,.05), rgba(159,122,234,.05));
  opacity: 0; transition: opacity .3s;
}
.stat-card:hover { border-color: rgba(99,179,237,.28); transform: translateY(-4px); }
.stat-card:hover::before { opacity: 1; }

.stat-icon   { font-size: 1.6rem; margin-bottom: 16px; }
.stat-num    {
  font-family: 'Clash Display', sans-serif; font-size: 2.8rem; font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 8px;
}
.stat-label  { color: var(--muted2); font-size: .88rem; font-weight: 600; }
.stat-sub    { color: var(--muted); font-size: .76rem; margin-top: 4px; }


/* ─────────────────────────────────────────────
   12. FEATURES SECTION
   3 cards (Text, Voice, File) with:
     - Ghost numbers (01/02/03) as background decoration
     - Animated top border on hover
───────────────────────────────────────────── */
.features-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-top: 20px;
}

.feature-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 34px 28px;
  position: relative; overflow: hidden;
  transition: all .3s;
}

/* Animated gradient top border — scales in from left on hover */
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.feature-card:hover { border-color: rgba(99,179,237,.28); transform: translateY(-5px); background: var(--cardh); }
.feature-card:hover::before { transform: scaleX(1); }

/* Large ghost number (01, 02, 03) decorating the top-right corner */
.feat-num {
  font-family: 'Clash Display', sans-serif; font-size: 3.5rem; font-weight: 700;
  line-height: 1; color: rgba(99,179,237,.07); /* Very transparent */
  position: absolute; top: 18px; right: 22px;
}

.feat-icon { font-size: 1.8rem; margin-bottom: 18px; }
.feature-card h3 {
  font-family: 'Clash Display', sans-serif; font-size: 1.05rem; font-weight: 700;
  letter-spacing: -.2px; margin-bottom: 10px;
}
.feature-card p { color: var(--muted2); font-size: .87rem; line-height: 1.65; }


/* ─────────────────────────────────────────────
   13. HOW IT WORKS
   3 numbered steps in a row connected by
   a horizontal gradient line.
───────────────────────────────────────────── */
.how-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; max-width: 860px; margin: 56px auto 0;
  position: relative;
}

/* Horizontal connecting line between the numbered circles */
.how-grid::before {
  content: ''; position: absolute;
  top: 27px; left: 10%; right: 10%; /* Doesn't reach the edges */
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--purple), var(--border), transparent);
}

.how-step { text-align: center; padding: 0 20px; }

/* Numbered circle (1, 2, 3) */
.how-num {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Clash Display', sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff;
  position: relative; z-index: 1; /* Sits above the connecting line */
  box-shadow: 0 0 28px rgba(99,179,237,.3);
}

.how-step h4 {
  font-family: 'Clash Display', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 8px;
}
.how-step p { color: var(--muted2); font-size: .85rem; line-height: 1.65; }


/* ─────────────────────────────────────────────
   14. WHY SECTION
   2×2 grid of cards highlighting key benefits.
───────────────────────────────────────────── */
.why-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; max-width: 900px; margin: 48px auto 0;
}

.why-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 36px;
  transition: all .3s;
}
.why-card:hover { border-color: rgba(99,179,237,.28); background: var(--cardh); }
.why-icon    { font-size: 1.6rem; margin-bottom: 16px; }
.why-card h4 {
  font-family: 'Clash Display', sans-serif; font-size: 1.08rem; font-weight: 700; margin-bottom: 10px;
}
.why-card p  { color: var(--muted2); font-size: .9rem; line-height: 1.72; }


/* ─────────────────────────────────────────────
   15. SUBSCRIBE SECTION
   Centered email input form with gradient
   background glows.
───────────────────────────────────────────── */
.subscribe-section {
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,179,237,.06), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(159,122,234,.06), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.subscribe-box { max-width: 500px; margin: 0 auto; }

/* Row of email input + submit button */
.sub-form { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.sub-form input {
  flex: 1; min-width: 200px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 100px; padding: 13px 22px;
  color: var(--text); font-size: .9rem; outline: none;
  transition: border-color .2s;
  font-family: 'Cabinet Grotesk', sans-serif;
}
.sub-form input:focus { border-color: var(--blue); }
.sub-form input::placeholder { color: var(--muted); }


/* ─────────────────────────────────────────────
   16. PAGE HEADER (Breadcrumb Pages)
   Used on Services and Contact pages.
   Shows page title + breadcrumb trail.
───────────────────────────────────────────── */
.page-hdr {
  padding: 130px 6% 65px; text-align: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(99,179,237,.06), transparent 70%);
}

.page-hdr h1 {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700; letter-spacing: -1.5px;
  animation: fadeUp .6s ease both;
}

/* "Home / Services" breadcrumb trail */
.breadcrumb {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  font-size: .84rem; color: var(--muted); margin-top: 12px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); }


/* ─────────────────────────────────────────────
   17. SERVICES PAGE
   3-column card grid with:
     - Animated top border on hover
     - "Popular" badge on the Voice card
     - Feature list with checkmark bullets
───────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; max-width: 1040px; margin: 0 auto;
}

.srv-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 44px 36px;
  text-align: center; position: relative; overflow: hidden;
  transition: all .35s;
}

/* Animated left-to-right gradient top border */
.srv-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0); transition: transform .32s; transform-origin: left;
}
.srv-card:hover { border-color: rgba(99,179,237,.3); transform: translateY(-6px); }
.srv-card:hover::before { transform: scaleX(1); }

/* "Popular" badge (e.g. on Voice card) */
.srv-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: .68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; border-radius: 100px; padding: 4px 12px;
}

.srv-icon { font-size: 3.2rem; margin-bottom: 22px; display: block; }
.srv-card h2 {
  font-family: 'Clash Display', sans-serif; font-size: 1.6rem; font-weight: 700;
  letter-spacing: -.5px; margin-bottom: 28px;
}

.srv-list { margin-bottom: 36px; }

/* Each feature in the service list */
.srv-list li {
  padding: 11px 0; color: var(--muted2); font-size: .9rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; text-align: left;
}
.srv-list li:last-child { border-bottom: none; }
/* Diamond bullet symbol */
.srv-list li::before { content: '✦'; color: var(--blue); font-size: .7rem; flex-shrink: 0; }

/* 4-column extras grid below main cards */
.extras-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 18px; margin-top: 48px;
}
.extra-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px 22px; text-align: center;
  transition: all .3s;
}
.extra-card:hover { border-color: rgba(99,179,237,.25); transform: translateY(-3px); }
.extra-card .e-ico { font-size: 2rem; margin-bottom: 14px; }
.extra-card h4 {
  font-family: 'Clash Display', sans-serif; font-size: .95rem; font-weight: 700; margin-bottom: 8px;
}
.extra-card p { color: var(--muted2); font-size: .83rem; line-height: 1.6; }


/* ─────────────────────────────────────────────
   18. CONTACT PAGE
   Left: contact form | Right: info cards + devs
───────────────────────────────────────────── */
/* Two-column layout */
.contact-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 28px; max-width: 960px; margin: 0 auto;
}

/* White-ish card wrapping the form */
.form-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 44px;
}
.form-card h2 {
  font-family: 'Clash Display', sans-serif; font-size: 1.6rem; font-weight: 700;
  letter-spacing: -.5px; margin-bottom: 6px;
}
.form-card > p { color: var(--muted2); font-size: .9rem; margin-bottom: 32px; }

/* Individual form fields */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .74rem; font-weight: 700;
  color: var(--muted); margin-bottom: 8px;
  letter-spacing: 1.5px; text-transform: uppercase;
}

/* Text inputs and textarea share the same style */
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  color: var(--text); font-size: .9rem; outline: none;
  transition: border-color .2s, background .2s;
  font-family: 'Cabinet Grotesk', sans-serif;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(99,179,237,.04);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* Name + Email row side by side */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Status message after form submission */
#form-msg {
  margin-top: 14px; padding: 12px 16px;
  border-radius: var(--r-sm); font-size: .88rem;
  display: none; text-align: center;
}
.msg-ok  { background: rgba(104,211,145,.1); border: 1px solid rgba(104,211,145,.3); color: var(--green); }
.msg-err { background: rgba(252,129,129,.1); border: 1px solid rgba(252,129,129,.3); color: var(--pink);  }

/* Right column stacking info cards vertically */
.info-col { display: flex; flex-direction: column; gap: 16px; }

/* Individual contact info card (address, phone, email, portfolio) */
.info-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 26px;
  transition: all .3s;
}
.info-card:hover { border-color: rgba(99,179,237,.25); }
.info-card-icon  { font-size: 1.4rem; margin-bottom: 10px; }
.info-card h4    {
  font-family: 'Clash Display', sans-serif; font-size: .9rem; font-weight: 700; margin-bottom: 4px;
}
.info-card a, .info-card p {
  color: var(--muted2); font-size: .86rem; transition: color .2s;
}
.info-card a:hover { color: var(--blue); }

/* Developer team card (gradient border variant) */
.dev-card {
  background: linear-gradient(135deg, rgba(99,179,237,.07), rgba(159,122,234,.07));
  border: 1px solid rgba(99,179,237,.15);
  border-radius: var(--r); padding: 28px;
}
.dev-card h4 {
  font-family: 'Clash Display', sans-serif; font-size: .8rem; font-weight: 700;
  color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px;
}

/* Row of developer avatar + name + role */
.dev-item { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

/* Circular avatar with initials */
.dev-av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Clash Display', sans-serif; font-size: .88rem; font-weight: 700; color: #fff;
}

.dev-name { font-size: .9rem; font-weight: 700; color: var(--text); }
.dev-role { font-size: .76rem; color: var(--muted); margin-top: 2px; }

/* Social link buttons row */
.soc-row { display: flex; gap: 8px; margin-top: 16px; }
.soc-btn {
  flex: 1; padding: 9px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted2); font-size: .8rem; text-align: center; font-weight: 700;
  transition: all .2s;
}
.soc-btn:hover { border-color: var(--blue); color: var(--blue); background: rgba(99,179,237,.08); }


/* ─────────────────────────────────────────────
   19. TRANSLATOR TOOL PAGES
   Shared styles for all 3 tool pages:
   Text→Text, Voice→Text, File→File.
   Includes: hero bar, language dropdowns,
   text panels, translate button.
───────────────────────────────────────────── */

/* Top section of each tool page */
.tool-hero {
  padding: 100px 5% 36px; text-align: center;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(99,179,237,.06), transparent 70%);
}
.tool-hero h1 {
  font-family: 'Clash Display', sans-serif;
  font-size: 2.4rem; font-weight: 700; letter-spacing: -1px;
  margin-bottom: 8px; animation: fadeUp .6s ease both;
}
.tool-hero p { color: var(--muted2); font-size: .92rem; animation: fadeUp .6s .1s ease both; }

/* Main content wrapper — centered, max-width */
.tool-wrap { max-width: 980px; margin: 0 auto; padding: 0 5% 70px; }

/* Row containing: [From language] [swap] [To language] */
.lang-row { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }

/* ── Language Dropdown ──
   Custom dropdown replacing <select>.
   .dd-sel = visible label
   .dd-list = hidden options list (shown when .open) */
.dd {
  flex: 1; position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 13px 17px;
  cursor: none; user-select: none;
  transition: border-color .2s;
}
.dd:hover, .dd.open { border-color: rgba(99,179,237,.42); }

/* The visible selected language label */
.dd-sel {
  font-size: .88rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
}
/* Down arrow indicator */
.dd-sel::after { content: '▾'; color: var(--muted); font-size: .75rem; }

/* Hidden dropdown list */
.dd-list {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #121220; border: 1px solid var(--border);
  border-radius: var(--r-sm); max-height: 230px;
  overflow-y: auto; z-index: 100; padding: 6px;
}
/* JS adds .open to show the list */
.dd.open .dd-list { display: block; }

.dd-list li {
  padding: 9px 12px; font-size: .84rem; color: var(--muted2);
  border-radius: 8px; cursor: none; transition: all .15s;
}
.dd-list li:hover,
.dd-list li.sel { background: rgba(99,179,237,.1); color: var(--text); }

/* Custom thin scrollbar on the dropdown list */
.dd-list::-webkit-scrollbar       { width: 3px; }
.dd-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

/* Swap button between the two language dropdowns */
.swap-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.swap-btn:hover { border-color: var(--blue); background: rgba(99,179,237,.1); }

/* ── Text Panels ──
   Two side-by-side panels: input (left) + output (right) */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.panel {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: border-color .2s;
}
/* Highlight when textarea inside is focused */
.panel:focus-within { border-color: rgba(99,179,237,.3); }

/* Top bar of each panel */
.panel-head {
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-lbl    { font-size: .74rem; font-weight: 700; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.panel-status { font-size: .75rem; color: var(--blue); } /* "Translating..." / "✓ Done" */
.panel-chars  { font-size: .74rem; color: var(--muted); } /* "0/5000" character count */

/* The main text area inside each panel */
.panel textarea {
  width: 100%; min-height: 250px;
  background: transparent; border: none; outline: none;
  padding: 18px; color: var(--text);
  font-size: .94rem; line-height: 1.76;
  resize: none;
  font-family: 'Cabinet Grotesk', sans-serif;
}
.panel textarea::placeholder { color: var(--muted); }

/* Bottom action row of each panel */
.panel-foot {
  padding: 11px 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

/* Small icon buttons: Clear, Listen, Copy */
.icon-btn {
  background: none; border: none; color: var(--muted2);
  padding: 7px 12px; border-radius: 8px;
  font-size: .8rem; font-weight: 600;
  transition: all .2s;
  display: flex; align-items: center; gap: 5px;
  font-family: 'Cabinet Grotesk', sans-serif;
}
.icon-btn:hover { background: rgba(255,255,255,.05); color: var(--text); }

/* Full-width gradient translate button */
.translate-btn {
  width: 100%; margin-top: 18px; padding: 15px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; border: none; border-radius: var(--r);
  font-size: .93rem; font-weight: 700;
  font-family: 'Cabinet Grotesk', sans-serif; letter-spacing: .3px;
  transition: opacity .2s, transform .2s;
}
.translate-btn:hover { opacity: .86; transform: translateY(-2px); }


/* ─────────────────────────────────────────────
   20. MIC BUTTON (Voice Tool)
   Large circular button that triggers speech
   recognition. Pulses red when active.
───────────────────────────────────────────── */
.mic-zone { text-align: center; margin-bottom: 28px; }

.mic-btn {
  width: 88px; height: 88px; border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-size: 2rem;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}

/* When speech recognition is active — red glow + pulsing ring */
.mic-btn.on {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  animation: pulseRing 1.2s infinite;
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(252,129,129,.5); }
  70%  { box-shadow: 0 0 0 22px rgba(252,129,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(252,129,129,0); }
}

.mic-note    { font-size: .88rem; color: var(--muted2); font-weight: 500; }
.mic-note.on { color: var(--pink); } /* Turns red when listening */


/* ─────────────────────────────────────────────
   21. UPLOAD ZONE (File Tool)
   Drag-and-drop or click-to-browse area.
   Highlights with blue border when dragging.
───────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 16px; padding: 44px;
  text-align: center; position: relative;
  transition: all .3s; margin-bottom: 22px;
}
/* Drag-over state and hover highlight */
.upload-zone:hover,
.upload-zone.drag { border-color: var(--blue); background: rgba(99,179,237,.05); }

/* Hidden file input covers the entire zone — makes whole area clickable */
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.upload-icon { font-size: 2.8rem; }
.upload-zone h3 {
  font-family: 'Clash Display', sans-serif; font-size: 1rem; font-weight: 700;
  margin: 14px 0 6px;
}
.upload-zone p { color: var(--muted2); font-size: .83rem; }

/* Shows the selected filename after upload */
.file-name {
  background: rgba(99,179,237,.1);
  border: 1px solid rgba(99,179,237,.2);
  border-radius: 8px; padding: 7px 14px;
  font-size: .82rem; color: var(--blue);
  display: inline-block; margin-top: 10px;
}

/* Translate + Download button row */
.btn-row { display: flex; gap: 14px; margin-top: 18px; }

/* "Download" button — ghost style */
.dl-btn {
  flex: 1; padding: 15px;
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r);
  font-size: .93rem; font-weight: 700;
  font-family: 'Cabinet Grotesk', sans-serif;
  transition: all .2s;
}
.dl-btn:hover { border-color: var(--blue); color: var(--blue); }


/* ─────────────────────────────────────────────
   22. FOOTER
   4-column grid with brand info, product links,
   navigation, and contact details.
───────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 70px 6% 36px;
}

/* 4-column layout */
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}

/* Brand name gradient text */
.footer-brand {
  font-family: 'Clash Display', sans-serif; font-size: 1.2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 14px;
}

.footer p, .footer li { color: var(--muted2); font-size: .86rem; line-height: 1.8; }
.footer h5 {
  font-family: 'Clash Display', sans-serif; font-size: .78rem; font-weight: 700;
  color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px;
}
.footer a { color: var(--muted2); transition: color .2s; }
.footer a:hover { color: var(--blue); }

/* Social icon row */
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }

/* Square icon buttons */
.soc-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; color: var(--muted2);
  transition: all .2s;
}
.soc-ico:hover { border-color: var(--blue); color: var(--blue); background: rgba(99,179,237,.1); }

/* Copyright bar at the bottom */
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p   { color: var(--muted); font-size: .82rem; }
.footer-bottom span { color: var(--blue); }


/* ─────────────────────────────────────────────
   23. RESPONSIVE / MOBILE
   Breakpoints:
     900px → 2-column footers, 2-column services
     768px → single column everything, hamburger menu
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .extras-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Restore default cursor on touch devices */
  body { cursor: auto; }
  .cur, .cur-ring { display: none; }

  /* Show hamburger, hide desktop nav */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(5,5,9,.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 20px 6%; gap: 1.2rem;
  }
  /* JS toggleNav() adds this class */
  .nav-links.open { display: flex; }
  .nav-pill { display: none; }

  /* Collapse all multi-column layouts to single column */
  .features-grid,
  .how-grid,
  .why-grid,
  .contact-grid  { grid-template-columns: 1fr; }

  /* Remove the connector line between how-it-works steps */
  .how-grid::before { display: none; }

  /* Stats: center single column */
  .stats-grid { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; }

  /* Footer: full-width columns */
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Tool pages: stack panels vertically */
  .panels        { grid-template-columns: 1fr; }

  /* Services cards: full width */
  .services-grid { grid-template-columns: 1fr; }
  .extras-grid   { grid-template-columns: 1fr; }

  /* File tool buttons: stack vertically */
  .btn-row       { flex-direction: column; }

  /* Contact form: stack name/email */
  .form-row      { grid-template-columns: 1fr; }
}
