/* Basic styles for Telnora Technologies */
:root {
  --primary: #0ea5e9; /* sky-500 */
  --primary-dark: #0369a1; /* sky-800 */
  --accent: #22d3ee; /* cyan-400 */
  --text: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --bg: #ffffff;
  --bg-alt: #0b1220;
  --surface: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.muted { color: var(--muted); }
.tiny { font-size: .875rem; color: var(--muted); padding: 1rem 0; text-align: left; }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; background: #fff; padding: .5rem; }

/* Header */
.site-header { background: linear-gradient(90deg, var(--primary-dark), #1f2b44 60%); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.logo img { display: block; }
.main-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; align-items: center; }
.main-nav a { color: #e2e8f0; text-decoration: none; font-weight: 600; padding: .5rem .75rem; border-radius: 999px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav-toggle { display: none; }

/* Footer */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 3rem 0 1rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-logo { width: 100px; margin-bottom: .5rem; filter: brightness(1.1); }
.contact-list { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.contact-list li { margin: .25rem 0; }
.socials { display: flex; gap: .75rem; }
.socials a { color: #e2e8f0; text-decoration: none; }
.newsletter input { width: 100%; padding: .75rem 1rem; border: 1px solid #1e293b; border-radius: 10px; background: #0f172a; color: #e2e8f0; }
.newsletter button { margin-top: .5rem; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; padding: .75rem 1rem; border-radius: 12px; font-weight: 700; border: none; cursor: pointer; }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--primary)); color: #001221; }
.btn-secondary { background: #111827; color: #f8fafc; border: 1px solid #1f2937; }
.btn-ghost { background: transparent; border: 1px solid rgba(2,6,23,.12); color: var(--text); }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 10% -10%, rgba(34,211,238,.25), transparent 60%), 
                  radial-gradient(800px 300px at 90% 10%, rgba(14,165,233,.25), transparent 60%);
         padding: 5rem 0 3rem; }
.hero h1 { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); line-height: 1.05; margin: 0 0 1rem; color: #0b1220; }
.hero p.lead { font-size: clamp(1rem, 1.2vw + .6rem, 1.35rem); color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Cards / Sections */
.section { padding: 3rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.card h3 { margin-top: 0; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }

/* Feature list */
.features { list-style: none; padding: 0; margin: .75rem 0 0; }
.features li { display: flex; gap: .5rem; margin: .35rem 0; }
.features li::before { content: '✓'; color: var(--primary-dark); font-weight: 800; }

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  min-width: 300px;
  animation: slideInRight 0.3s ease-out;
  pointer-events: auto;
}

.toast-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-left: 4px solid var(--primary);
  position: relative;
}

.toast-success {
  border-left-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.toast-error {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.toast-message {
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.toast-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-notification.hiding {
  animation: slideOutRight 0.3s ease-in forwards;
}

/* Dark mode toast adjustments */
:root[data-theme="dark"] .toast-content {
  background: #1e293b;
  color: #e2e8f0;
}

:root[data-theme="dark"] .toast-success {
  background: linear-gradient(135deg, #064e3b, #1e293b);
}

:root[data-theme="dark"] .toast-error {
  background: linear-gradient(135deg, #7f1d1d, #1e293b);
}

/* Responsive toast */
@media (max-width: 600px) {
  .toast-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Forms */
form label { display: block; margin-top: .75rem; font-weight: 600; }
input, textarea, select { width: 100%; padding: .75rem 1rem; border: 1px solid #cbd5e1; border-radius: 10px; }
textarea { min-height: 140px; }
.form-note { font-size: .875rem; color: var(--muted); margin-top: .25rem; }

/* Blog */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.post-card { border-radius: var(--radius); border: 1px solid #e2e8f0; padding: 1rem; background: #fff; }

/* Utilities */
.center { text-align: center; }
.badge { display: inline-block; background: #e0f2fe; color: #0c4a6e; padding: .25rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-2, .post-list, .footer-grid { grid-template-columns: 1fr; }
  .main-nav .nav-list { display: none; flex-direction: column; align-items: flex-start; gap: .5rem; padding: .75rem 0; }
  .nav-toggle { display: inline-block; background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; padding: .5rem .75rem; border-radius: 8px; }
  .main-nav .nav-list.open { display: flex; }
}

/* Dark mode */
:root[data-theme="dark"] {
  --bg: #0b1220;
  --text: #e5f0ff;
  --muted: #93a4c6;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --accent: #67e8f9;
}
.theme-toggle { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #e2e8f0; border-radius: 10px; padding: .5rem .75rem; }

/* Hero upgraded */
.hero {
  position: relative;
  padding: 6rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 300px at 10% 0%, rgba(34,211,238,.25), transparent 60%),
              radial-gradient(900px 350px at 90% 10%, rgba(14,165,233,.25), transparent 60%);
  z-index: -2;
}
.hero .hero-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.hero .glass {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(2,6,23,.08);
  border-radius: 15px 30px;
  padding: 20px 50px 20px 50px;
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .hero .glass {
  background: rgba(2,6,23,.5);
  border-color: rgba(255,255,255,.08);
}
.hero img.hero-illustration { border-radius: 20px; box-shadow: var(--shadow); }

/* Icon cards */
.icon { width: 24px; height: 24px; display: inline-block; vertical-align: -4px; margin-right: .5rem; }
.icon svg { width: 24px; height: 24px; }
.icon-lg svg { width: 36px; height: 36px; }
.icon-card { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; border-radius: 16px; box-shadow: var(--shadow); background: #fff; border: 1px solid #e2e8f0; }
:root[data-theme="dark"] .icon-card { background: #0f172a; border-color: #1f2937; }

/* Section enhancements */
.section .section-title { font-size: clamp(1.5rem, 2.5vw, 2.25rem); margin-bottom: .25rem; }
.section .section-sub { color: var(--muted); margin-top: 0; }

/* Marquee / brands */
.marquee { display:flex; gap:2rem; overflow-x:auto; padding: .5rem 0; mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
.badge-brand { border: 1px dashed #94a3b8; padding: .5rem .75rem; border-radius: 999px; white-space: nowrap; font-weight: 600; color: var(--muted); }

/* Stats counters */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1rem; text-align:center; box-shadow: var(--shadow); }
.stat .num { font-size: 2rem; font-weight: 900; color: var(--primary-dark); }
:root[data-theme="dark"] .stat { background: #0f172a; border-color: #1f2937; }

/* Timeline */
.timeline { border-left: 3px solid #e2e8f0; padding-left: 1rem; }
.timeline .tl { margin: 1rem 0; position: relative; padding: 1rem; }
.timeline .tl::before { content:""; position:absolute; left:-11px; top:4px; width:12px; height:12px; background: var(--primary); border-radius:50%; }

/* Testimonials */
.card .quote { 
  background: transparent; 
  border: none; 
  border-radius: 0; 
  padding: 0; 
  box-shadow: none; 
  font-style: italic; 
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1.5rem 0;
}

.card .author {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

:root[data-theme="dark"] .card .quote { 
  background: transparent; 
  border-color: transparent; 
}

/* New Homepage Elements */
.subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.promise-item {
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.service-subtitle {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon .icon {
  font-size: 2rem;
  color: white;
}

.feature-card h4 {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.feature-card-center {
  max-width: 400px;
  margin: 0 auto;
}

.case-study-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.case-study-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.case-study-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.case-study-card:hover .case-study-icon {
  transform: scale(1.1);
}

.case-study-icon .icon {
  font-size: 1.8rem;
  color: white;
}

.case-study-card h4 {
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  font-weight: 600;
}

/* Social Media Icons */
.socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item .icon {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
}

.cta-section .section-title {
  color: white;
  margin-bottom: 1rem;
}

.cta-section .section-sub {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 160px;
}

/* Responsive adjustments for new elements */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .promise-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .feature-card,
  .case-study-card {
    padding: 1.5rem 1rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .feature-icon .icon {
    font-size: 1.5rem;
  }
  
  .case-study-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
  }
  
  .case-study-icon .icon {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .grid-5 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .contact-actions {
    align-items: stretch;
  }
  
  .contact-actions .btn {
    width: 100%;
  }
  
  .feature-card,
  .case-study-card {
    padding: 1.25rem 1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
  }
  
  .feature-icon .icon {
    font-size: 1.25rem;
  }
  
  .case-study-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }
  
  .case-study-icon .icon {
    font-size: 1.2rem;
  }
}

/* FAQ */
.faq { border:1px solid #e2e8f0; border-radius:16px; overflow:hidden; }
.faq details { border-bottom:1px solid #e2e8f0; padding: .75rem 1rem; background:#fff; }
.faq details[open] { background:#f8fafc; }
:root[data-theme="dark"] .faq details { background:#0f172a; border-color:#1f2937; }
:root[data-theme="dark"] .faq details[open] { background:#0b1220; }

/* Animations */
.fade-up { opacity:0; transform: translateY(12px); transition: all .6s ease; }
.fade-up.visible { opacity:1; transform: none; }

/* Global spacing */
.section { padding: 5rem 0; }
.card { margin: 1rem 0; padding: 2rem; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.icon-card { padding: 2rem; margin: 1rem 0; transition: transform .3s ease; }
.icon-card:hover { transform: translateY(-8px) scale(1.02); }

/* Headings */
h1,h2,h3,h4 { margin-top: 0; margin-bottom: .75rem; line-height:1.2; }

/* Flow cursor effect */
body { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><circle cx="12" cy="12" r="6" fill="%230ea5e9"/></svg>') 12 12, auto; }
a,button { cursor: pointer; }

/* Animation enhancements */
.fade-up { opacity:0; transform: translateY(20px); transition: all .6s cubic-bezier(.16,1,.3,1); }
.fade-up.visible { opacity:1; transform: none; }
.card, .icon-card, .quote, .stat, .faq details { animation: fadeIn .8s ease both; }
@keyframes fadeIn { from { opacity:0; transform: translateY(20px);} to{opacity:1; transform:none;} }

/* Better padding */
.container { padding: 0 1rem; }
.hero .hero-wrap { gap: 3rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 1.5rem; }

/* Buttons hover */
.btn { transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }


/* ===== v3 spacing & card polish ===== */
:root {
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.75rem;
  --space-6: 2.25rem;
  --space-7: 3rem;
  --radius-lg: 20px;
}
.site-content { line-height: 1.65; }
.section { padding: var(--space-7) 0; }
.card { padding: var(--space-4); border-radius: var(--radius-lg); margin: .25rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(2,6,23,.12); border-color: #cbd5e1; }
.grid-3 > .card, .grid-2 > .card { margin: .25rem; }

/* Headings spacing */
h1,h2,h3 { letter-spacing: .2px; }
h1 { margin: 0 0 var(--space-3); }
h2 { margin: 0 0 var(--space-2); }
h3 { margin: var(--space-2) 0 var(--space-1); }

/* Buttons hover */
.btn { transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(2,6,23,.12); }

/* Icon inside buttons */
.btn .icon { margin-right: .4rem; vertical-align: -3px; }

/* Hero padding & image */
.hero { padding: calc(var(--space-7) + 1rem) 0 var(--space-6); }
.hero .hero-wrap { gap: var(--space-6); }
.hero .lead { margin-top: var(--space-2); }
.hero-illustration { width: 100%; height: auto; }

/* Post cards with image banners */
.post-card { overflow: hidden; padding: 0; }
.post-card img { display: block; width: 100%; height: auto; }
.post-card .body { padding: var(--space-4); }

/* Service thumbnails */
.service-thumb { width: 100%; border-radius: 14px; margin-bottom: var(--space-3); }

/* Extra utilities */
.mt-1{margin-top:var(--space-1)} .mt-2{margin-top:var(--space-2)} .mt-3{margin-top:var(--space-3)} .mt-4{margin-top:var(--space-4)} .mt-5{margin-top:var(--space-5)}
.mb-1{margin-bottom:var(--space-1)} .mb-2{margin-bottom:var(--space-2)} .mb-3{margin-bottom:var(--space-3)} .mb-4{margin-bottom:var(--space-4)} .mb-5{margin-bottom:var(--space-5)}

/* Cursor flow canvas */
#cursor-flow { position: fixed; inset: 0; pointer-events: none; z-index: 999; mix-blend-mode: lighten; opacity: .7; }
@media (prefers-reduced-motion: reduce) { #cursor-flow { display: none; } }

/* Parallax subtle on hero illustration */
.parallax { will-change: transform; transition: transform .1s linear; }

/* ===== v4: Dark theme contrast + nav icon + animations ===== */
:root[data-theme="dark"] {
  --bg: #0a0f1a;
  --text: #e8f1ff;
  --muted: #c3d0e9; /* lighter for readability */
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --accent: #67e8f9;
  --surface: #1e293b;
  --border: #334155;
}
:root[data-theme="dark"] a { color: #7dd3fc; }

/* Ensure labels and placeholders readable in dark */
:root[data-theme="dark"] form label { color: var(--text); }
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: #9fb3d9; }

/* Nav layout with actions row on the extreme right */
.main-nav { display: flex; align-items: center; gap: 1rem; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; }
.theme-toggle svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .nav-actions { margin-left: auto; } /* keep at extreme end */
}

/* Progress bar at top */
#scroll-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--primary)); z-index: 9999; }

/* Cursor ring (replaces particle trail) */
#cursor-ring {
  position: fixed; left: 0; top: 0; width: 18px; height: 18px; margin-left: -9px; margin-top: -9px;
  border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; z-index: 1000;
  transition: transform .06s ease-out, width .15s ease, height .15s ease, border-color .2s ease, opacity .2s ease;
  mix-blend-mode: difference;
}
.cursor-big { width: 36px !important; height: 36px !important; }
@media (pointer: coarse) { #cursor-ring { display: none; } } /* hide on touch */

/* Extra reveal animations */
.fade-left { opacity:0; transform: translateX(-16px); transition: all .6s ease; }
.fade-left.visible { opacity:1; transform: none; }
.fade-right { opacity:0; transform: translateX(16px); transition: all .6s ease; }
.fade-right.visible { opacity:1; transform: none; }
.zoom-in { opacity:0; transform: scale(.98); transition: all .45s ease; }
.zoom-in.visible { opacity:1; transform: scale(1); }

/* Better spacing across all pages */
.section .container > .grid-2 > .card,
.section .container > .grid-3 > .card { padding: var(--space-5); }
.site-footer .container, .site-header .container, .section .container { padding-left: .5rem; padding-right: .5rem; }

/* Contrast on forms in dark */
:root[data-theme="dark"] input, :root[data-theme="dark"] textarea, :root[data-theme="dark"] select {
  background: #0f172a; color: #e8f1ff; border-color: #324968;
}
:root[data-theme="dark"] .card { background: #0f172a; border-color: #243b5a; }
:root[data-theme="dark"] .site-footer { background: #070c14; color: #cfe1ff; }

/* Ensure headers look good in dark */
:root[data-theme="dark"] .section-title { color: #e8f1ff; }

/* ===== v5: contrast fixes & spacing ===== */
/* Theme toggle icon color for both modes */
.theme-toggle { color: #e2e8f0; }
:root[data-theme="light"] .theme-toggle { color: #0b1220; border-color: rgba(2,6,23,.2); }
:root[data-theme="dark"] .theme-toggle { color: #e8f1ff; border-color: rgba(255,255,255,.25); }
.theme-toggle:hover { background: rgba(148,163,184,.15); }

/* Blog cards readable in dark */
:root[data-theme="dark"] .post-card { background: #0f172a; border-color: #243b5a; color: var(--text); }
:root[data-theme="dark"] .post-card h3 { color: var(--text); }
:root[data-theme="dark"] .post-card p { color: var(--muted); }
:root[data-theme="dark"] .post-card .btn { color: #0a1728; } /* ensure readable on light gradient button */

:root[data-theme="dark"] .btn-primary { color: #07111f; } /* strong dark text on bright gradient */
:root[data-theme="light"] .btn-primary { color: #001221; }

/* Card spacing on About/Services (top/bottom margins) */
.card { margin: 1rem 0; padding-top: 2.25rem; padding-bottom: 2.25rem;}
.grid-2, .grid-3 { gap: 2rem; margin-bottom: 2rem;} /* increase gaps site-wide */

/* ===== v6: spacing + theme button pointer ===== */
.card { margin: 1.5rem 0; padding-top: 3rem; padding-bottom: 3rem;}            /* bigger top/bottom spacing */
.grid-2, .grid-3 { gap: 2.25rem; margin-bottom: 2.25rem;}     /* slightly larger gaps */
.theme-toggle { cursor: pointer; }     /* ensure clickable affordance */


/* v6 hero h1 color fix */
.hero h1 { color: var(--text) !important; }

/* ===== v6: Dark hero text + marquee animation ===== */
:root[data-theme="dark"] .hero h1 { color: var(--text); }
:root[data-theme="dark"] .hero p.lead { color: var(--muted); }

/* Marquee animation */
.marquee { position: relative; overflow: hidden; }
.marquee-track { display: inline-flex; gap: 2rem; white-space: nowrap; will-change: transform; animation: marquee-scroll 18s linear infinite; }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
/* --- Modal ---- */
.modal.hidden { display:none; }
.modal { position: fixed; inset: 0; z-index: 9999; }
.modal-backdrop { position:absolute; inset:0; background: rgba(0,0,0,.6); }
.modal-content { position: relative; max-width: 520px; margin: 10vh auto; padding: 1.25rem; border-radius: 16px; }
.modal-close { position:absolute; top:.5rem; right:.75rem; border:0; background:transparent; font-size:1.5rem; line-height:1; cursor:pointer; }
.duration-options { display:grid; gap:.5rem; margin:1rem 0; }
.duration-options .option { display:flex; justify-content: space-between; align-items:center; padding:.75rem; border:1px solid var(--border); border-radius:12px; }
.duration-options .option input { margin-right:.75rem; }
.modal-actions { display:flex; gap:.75rem; justify-content:flex-end; }
@media (prefers-color-scheme: dark){
  .modal-content { background: var(--surface); border: 1px solid var(--border); }
}

/* --- Modal v2 ---- */
.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; z-index: 9999; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,15,25,.66); backdrop-filter: blur(2px); }
.modal-content { position: relative; max-width: 560px; margin: 10vh auto; padding: 1.25rem 1.25rem 1rem; border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.modal-title { margin: 0 0 .25rem 0; }
.modal-close { position: absolute; top: .35rem; right: .6rem; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: .8; }
.duration-options { display: grid; gap: .6rem; margin: 1rem 0; }
.duration-options .option { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.duration-options .option input { margin-right: .5rem; }
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; }
@media (prefers-color-scheme: dark){
  .modal-content { background: var(--surface); border: 1px solid var(--border); }
}


/* ===== Homepage layout polish ===== */
.hero-wrap { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 2rem; }
.hero-illustration { max-width: 100%; height: auto; display: block; }
.parallax { transform: none; } /* disable parallax for now to prevent overflow */

/* Stats grid more robust */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.stat .num { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }

/* Marquee containment */
.marquee { overflow: hidden; border-radius: 12px; }
.marquee-track { padding: .5rem 1rem; }

/* ===== Modal polish ===== */
.modal-content { background: #ffffff; color: #0b1220; border: 1px solid #e2e8f0; }
.duration-options .option { background: #f8fafc; border-color: #e2e8f0; }
.duration-options .option:hover { background: #eef2ff; border-color: #c7d2fe; }
.modal-actions .btn { min-width: 128px; }

:root[data-theme="dark"] .modal-content { background: #0f172a; color: #e2e8f0; border-color: #1f2937; }
:root[data-theme="dark"] .duration-options .option { background: #0b1220; border-color: #1f2937; }
:root[data-theme="dark"] .duration-options .option:hover { background: #0b1728; border-color: #1e293b; }

/* ===== Mobile responsiveness ===== */
@media (max-width: 640px){
  .container { padding-left: 1rem; padding-right: 1rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-illustration { max-width: 88%; margin: 0 auto; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card { padding: 1.25rem; }
  .modal-content { margin: 8vh 1rem; padding: 1rem; }
  .duration-options .option { grid-template-columns: 1fr auto; }
  .btn { width: 100%; max-width: 100%; }
}

/* Modal option selected state */
.duration-options .option.is-selected { border-color: var(--primary); background: linear-gradient(0deg, rgba(14,165,233,.08), rgba(14,165,233,.08)), var(--surface); }
.duration-options .option .option-price strong { font-variant-numeric: tabular-nums; }

/* Extra-tight hero on very small screens */
@media (max-width: 420px){
  .hero h1 { font-size: 1.9rem; }
  .hero p.lead { font-size: 1rem; }
  .badge { font-size: .7rem; }
}


/* ===== Testimonials Carousel ===== */
.carousel { position: relative; overflow: hidden; border-radius: 16px; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 0; scroll-snap-type: x mandatory; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.carousel-item { scroll-snap-align: start; padding: 1.25rem; min-height: 140px; display: flex; align-items: center; justify-content: center; text-align: center; font-style: italic; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(2,6,23,.6); color: #fff; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.carousel-btn.prev { left: .5rem; }
.carousel-btn.next { right: .5rem; }
.carousel-btn:hover { background: rgba(2,6,23,.8); }
.carousel-dots { display: flex; gap: .5rem; justify-content: center; margin-top: .75rem; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #cbd5e1; cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: var(--primary); width: 18px; border-radius: 8px; transition: width .2s ease; }
:root[data-theme="dark"] .carousel-btn { background: rgba(255,255,255,.15); color: #e2e8f0; }
:root[data-theme="dark"] .carousel-btn:hover { background: rgba(255,255,255,.25); }


/* Ultra-safe hero on small devices */
@media (max-width: 640px){
  .hero .hero-wrap { grid-template-columns: 1fr !important; }
  .hero img.hero-illustration { max-width: 92%; margin: 0 auto; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}


/* === Strict hero columns & mobile stacking === */
.hero-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.hero-col.copy { min-width: 0; }
.hero-col.art { min-width: 0; }
.hero-illustration { display: block; max-width: 100%; height: auto; }

@media (max-width: 900px){
  .hero { padding: 3.25rem 0 2.25rem; }
  .hero-wrap { grid-template-columns: 1fr !important; }
  .hero-col.art { order: 2; }
  .hero-col.copy { order: 1; }
  .hero-illustration { width: min(560px, 92%); margin: .75rem auto 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}

.map-embed{
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220; /* matches your dark card bg */
  box-shadow: var(--shadow);
}
.map-embed iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.map-cta{
  position: absolute; right: .75rem; bottom: .75rem;
  padding: .4rem .65rem;
  font-weight: 700; font-size: .875rem;
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  color: #0b1220; text-decoration: none;
  border: 1px solid rgba(2,6,23,.06);
}
.map-cta:hover{ transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
:root[data-theme="dark"] .map-cta{
  background: rgba(2,6,23,.75);
  color: #e5f0ff;
  border-color: rgba(255,255,255,.18);
}

/* ===== Simple Testimonials ===== */
.testimonials-simple {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-item {
  flex: 1;
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.testimonial-item:hover {
  transform: translateY(-2px);
}

.testimonial-item .quote {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1rem 0;
  font-style: italic;
}

.testimonial-item .author {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

@media (max-width: 768px) {
  .testimonials-simple {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .testimonial-item {
    padding: 1.5rem;
  }
}

/* Clean grid layouts */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

/* Feature cards */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon .icon {
  font-size: 2rem;
  color: white;
}

.feature-card h4 {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.feature-card-center {
  max-width: 400px;
  margin: 0 auto;
}

/* Case study cards */
.case-study-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.case-study-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.case-study-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.case-study-card:hover .case-study-icon {
  transform: scale(1.1);
}

.case-study-icon .icon {
  font-size: 1.8rem;
  color: white;
}

.case-study-card h4 {
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  font-weight: 600;
}

/* Responsive design */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .feature-card,
  .case-study-card {
    padding: 1.5rem 1rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .feature-icon .icon {
    font-size: 1.5rem;
  }
  
  .case-study-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
  }
  
  .case-study-icon .icon {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .grid-5 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .feature-card,
  .case-study-card {
    padding: 1.25rem 1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
  }
  
  .feature-icon .icon {
    font-size: 1.25rem;
  }
  
  .case-study-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }
  
  .case-study-icon .icon {
    font-size: 1.2rem;
  }
}

/* Feature and case study icons for grid-2 layout */
.feature-icon-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover .feature-icon-large {
  transform: scale(1.1);
}

.feature-icon-large .icon {
  font-size: 2rem;
  color: white;
}

.case-study-icon-large {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover .case-study-icon-large {
  transform: scale(1.1);
}

.case-study-icon-large .icon {
  font-size: 1.8rem;
  color: white;
}

/* Content styling for cards */
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.highlight-item .icon {
  color: var(--primary);
  font-weight: bold;
  font-size: 1rem;
}

.case-study-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.feature-tag {
  background: var(--primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Responsive adjustments for grid-2 cards */
@media (max-width: 768px) {
  .feature-icon-large {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .feature-icon-large .icon {
    font-size: 1.5rem;
  }
  
  .case-study-icon-large {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }
  
  .case-study-icon-large .icon {
    font-size: 1.3rem;
  }
  
  .card h3 {
    font-size: 1.2rem;
  }
  
  .card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .feature-icon-large {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
  }
  
  .feature-icon-large .icon {
    font-size: 1.25rem;
  }
  
  .case-study-icon-large {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
  }
  
  .case-study-icon-large .icon {
    font-size: 1.1rem;
  }
  
  .card h3 {
    font-size: 1.1rem;
  }
  
  .case-study-features {
    gap: 0.25rem;
  }
  
  .feature-tag {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}