/* ==========================================================================
   ZYENTRA DESIGN SYSTEM — Slate & Glow / Midnight Velvet
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --z-bg: #13131b;
  --z-surface: #13131b;
  --z-surface-dim: #13131b;
  --z-surface-low: #1b1b23;
  --z-surface-container: #1f1f27;
  --z-surface-high: #292932;
  --z-surface-highest: #34343d;
  --z-surface-bright: #393841;
  --z-surface-lowest: #0d0d15;

  --z-on-surface: #e4e1ed;
  --z-on-surface-variant: #c7c4d7;
  --z-outline: #908fa0;
  --z-outline-variant: #464554;

  --z-primary: #c0c1ff;
  --z-primary-container: #8083ff;
  --z-on-primary: #1000a9;
  --z-inverse-primary: #494bd6;

  --z-secondary: #5de6ff;
  --z-secondary-container: #00cbe6;
  --z-on-secondary: #00363e;

  --z-tertiary: #ffb783;
  --z-tertiary-container: #d97721;

  --z-error: #ffb4ab;

  --z-indigo: #6366F1;
  --z-cyan: #22D3EE;

  --z-white-3: rgba(255,255,255,0.03);
  --z-white-5: rgba(255,255,255,0.05);
  --z-white-8: rgba(255,255,255,0.08);
  --z-white-10: rgba(255,255,255,0.1);
  --z-white-15: rgba(255,255,255,0.15);
  --z-white-20: rgba(255,255,255,0.2);

  --z-radius-sm: 0.25rem;
  --z-radius: 0.5rem;
  --z-radius-md: 0.75rem;
  --z-radius-lg: 1rem;
  --z-radius-xl: 1.5rem;

  --z-max-w: 1280px;
  --z-gutter: 24px;
}

/* ---------- Base Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; font-weight: 400;
  background: var(--z-bg); color: var(--z-on-surface);
  min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
button,input,select,textarea { font: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; }

/* ---------- Typography ---------- */
.t-display { font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; color: #fff; }
.t-h1 { font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; color: #fff; }
.t-h2 { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: #fff; }
.t-body-lg { font-size: 18px; font-weight: 400; line-height: 1.6; letter-spacing: -0.01em; color: var(--z-on-surface-variant); }
.t-body-md { font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: -0.01em; color: var(--z-on-surface-variant); }
.t-label { font-size: 12px; font-weight: 600; line-height: 1.0; letter-spacing: 0.02em; text-transform: uppercase; color: var(--z-primary); }

/* ---------- Layout ---------- */
.container { max-width: var(--z-max-w); margin: 0 auto; padding: 0 32px; width: 100%; }
.section-gap { padding: 96px 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ---------- Gradient Text ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--z-primary) 0%, var(--z-secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Glassmorphism Components ---------- */
.glass-card {
  background: var(--z-white-3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--z-white-10);
  border-radius: var(--z-radius-md);
  transition: all 0.3s ease;
}
.glass-card-highlight {
  border-top-color: var(--z-white-20);
  border-left-color: var(--z-white-20);
}
.glass-card:hover, .glass-card-hover:hover {
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  background: var(--z-white-5);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--z-radius);
  background: linear-gradient(135deg, var(--z-inverse-primary) 0%, var(--z-secondary-container) 100%);
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(73, 75, 214, 0.25);
  transition: all 0.2s ease;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(73, 75, 214, 0.35); }
.btn-primary:active { transform: scale(0.97); }

.btn-glass {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--z-radius);
  background: var(--z-white-3); backdrop-filter: blur(12px);
  border: 1px solid var(--z-white-10);
  color: var(--z-on-surface); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-glass:hover { background: var(--z-white-5); border-color: rgba(93,230,255,0.5); box-shadow: 0 0 15px rgba(93,230,255,0.2); }

.btn-nav {
  padding: 10px 20px; border-radius: var(--z-radius);
  background: linear-gradient(135deg, var(--z-indigo) 0%, #06b6d4 100%);
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 0 15px rgba(192,193,255,0.3);
  transition: all 0.2s ease;
}
.btn-nav:hover { box-shadow: 0 0 25px rgba(192,193,255,0.5); }
.btn-nav:active { transform: scale(0.95); }

/* ---------- Buttons & Actions ---------- */
.btn-premium {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 12px;
  background: linear-gradient(135deg, var(--z-indigo) 0%, var(--z-cyan) 100%);
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-premium:hover {
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}
.btn-premium span.material-symbols-outlined { font-size: 18px; transition: transform 0.3s; }
.btn-premium:hover span.material-symbols-outlined { transform: translateX(4px); }

/* ---------- Sticky Navigation ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 13, 21, 0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
}
.site-header .header-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--z-max-w); margin: 0 auto; padding: 0 32px; height: 88px;
}
.site-logo .logo-text {
  font-size: 26px; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.main-nav .nav-links { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6); letter-spacing: -0.01em;
  padding: 10px 18px; border-radius: 10px;
  transition: all 0.3s ease;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.main-nav a.active { color: #fff; background: rgba(99, 102, 241, 0.15); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.3); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.mobile-toggle { display: none; color: #fff; padding: 8px; font-size: 28px; }

/* ---------- Ambient Glow Background ---------- */
.ambient-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
}
.ambient-glow::before {
  content: ''; position: absolute; top: -10%; left: -10%;
  width: 40%; height: 40%; border-radius: 50%;
  background: rgba(192, 193, 255, 0.04); filter: blur(120px);
}
.ambient-glow::after {
  content: ''; position: absolute; bottom: -10%; right: -10%;
  width: 30%; height: 30%; border-radius: 50%;
  background: rgba(93, 230, 255, 0.04); filter: blur(100px);
}

/* ---------- Hero Section ---------- */
.hero { padding: 128px 0 96px; text-align: center; position: relative; overflow: hidden; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 9999px; margin-bottom: 32px;
  background: var(--z-white-3); backdrop-filter: blur(12px);
  border: 1px solid var(--z-white-10);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--z-secondary); }
.hero h1 { margin-bottom: 24px; color: #fff; max-width: 960px; margin-left: auto; margin-right: auto; }
.hero p { max-width: 640px; margin: 0 auto 48px; color: var(--z-on-surface-variant); }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: rgba(128, 131, 255, 0.1); filter: blur(120px); pointer-events: none;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; padding: 32px;
}
.stats-bar .stat { text-align: center; padding: 16px 0; }
.stats-bar .stat:not(:last-child) { border-right: 1px solid var(--z-white-10); }
.stats-bar .stat-value { font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; color: var(--z-primary); margin-bottom: 8px; }
.stats-bar .stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--z-on-surface-variant); }

/* ---------- Service Cards Grid ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.service-card {
  padding: 32px; display: flex; flex-direction: column; gap: 24px;
  border-radius: var(--z-radius-md);
}
.service-card .icon-box {
  width: 48px; height: 48px; border-radius: var(--z-radius);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.service-card .icon-box.primary { background: rgba(192,193,255,0.1); color: var(--z-primary); }
.service-card .icon-box.secondary { background: rgba(93,230,255,0.1); color: var(--z-secondary); }
.service-card .icon-box.tertiary { background: rgba(255,183,131,0.1); color: var(--z-tertiary); }
.service-card:hover .icon-box { transform: scale(1.1); }
.service-card h3 { color: var(--z-on-surface); transition: color 0.3s ease; }
.service-card:hover h3 { color: var(--z-primary); }
.service-card p { color: var(--z-on-surface-variant); flex-grow: 1; }
.service-card .card-link {
  display: flex; align-items: center; gap: 8px; margin-top: auto;
  color: var(--z-primary); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  transition: gap 0.3s ease;
}
.service-card:hover .card-link { gap: 12px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 48px; text-align: center; position: relative; overflow: hidden;
  border-radius: var(--z-radius-md);
}
.cta-banner .glow-tl {
  position: absolute; top: 0; right: 0; width: 256px; height: 256px;
  background: rgba(192,193,255,0.1); border-radius: 50%;
  filter: blur(60px); transform: translate(33%, -50%); pointer-events: none;
}
.cta-banner .glow-br {
  position: absolute; bottom: 0; left: 0; width: 256px; height: 256px;
  background: rgba(93,230,255,0.1); border-radius: 50%;
  filter: blur(60px); transform: translate(-33%, 50%); pointer-events: none;
}
.cta-banner .cta-content { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; margin-bottom: 24px; }
.cta-banner p { color: var(--z-on-surface-variant); max-width: 560px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,0.05); background: #020617; margin-top: auto; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  max-width: var(--z-max-w); margin: 0 auto; padding: 64px 32px; gap: 48px;
}
.footer-brand { font-size: 20px; font-weight: 700; color: #e2e8f0; margin-bottom: 16px; }
.footer-copy { font-size: 14px; color: #64748b; }
.footer-links { display: flex; flex-wrap: wrap; gap: 32px; }
.footer-links a { font-size: 14px; color: #64748b; transition: color 0.2s ease; }
.footer-links a:hover { color: #22d3ee; }

/* ---------- Service Detail Page ---------- */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; }
.capabilities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.capability-card { padding: 32px; border-radius: var(--z-radius-md); }
.capability-card .material-symbols-outlined { font-size: 36px; margin-bottom: 24px; }
.capability-card h3 { color: #fff; margin-bottom: 12px; }
.capability-card p { color: var(--z-on-surface-variant); }

/* Timeline */
.timeline { border-left: 1px solid var(--z-white-10); margin-left: 16px; padding-left: 32px; }
.timeline-step { position: relative; padding-bottom: 48px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -44px; top: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--z-surface-high); border: 1px solid rgba(192,193,255,0.5);
  display: flex; align-items: center; justify-content: center;
}
.timeline-dot-inner { width: 8px; height: 8px; border-radius: 50%; background: var(--z-primary); box-shadow: 0 0 8px rgba(192,193,255,0.8); }
.timeline-dot.inactive { border-color: var(--z-white-20); }
.timeline-dot.inactive .timeline-dot-inner { background: rgba(255,255,255,0.4); box-shadow: none; }
.timeline-step h3 { color: #fff; margin-bottom: 8px; }
.timeline-step p { color: var(--z-on-surface-variant); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 40px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  padding: 6px 12px; border-radius: 9999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}
.tech-tag.primary { background: rgba(192,193,255,0.2); color: var(--z-primary); border: 1px solid rgba(192,193,255,0.3); }
.tech-tag.secondary { background: rgba(93,230,255,0.2); color: var(--z-secondary); border: 1px solid rgba(93,230,255,0.3); }
.tech-tag.tertiary { background: rgba(255,183,131,0.2); color: var(--z-tertiary); border: 1px solid rgba(255,183,131,0.3); }
.tech-tag.neutral { background: var(--z-white-10); color: var(--z-on-surface); border: 1px solid var(--z-white-20); }
.impact-metric { border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 16px; }
.impact-metric:last-child { border-bottom: none; padding-bottom: 0; }
.impact-metric .value { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 4px; }
.impact-metric .label { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--z-on-surface-variant); }

/* ---------- Contact Page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 48px; height: 48px; border-radius: var(--z-radius-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--z-white-3); backdrop-filter: blur(12px);
  border: 1px solid var(--z-white-10); color: var(--z-secondary);
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--z-outline); }
.form-input {
  width: 100%; padding: 12px; border-radius: var(--z-radius);
  background: #ffffff; border: 1px solid var(--z-outline-variant);
  color: #000000; transition: all 0.3s ease; outline: none;
}
.form-input:focus { border-color: var(--z-secondary); box-shadow: 0 0 0 2px rgba(93,230,255,0.2); }
.form-input::placeholder { color: #666666; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.btn-submit {
  width: 100%; padding: 16px; border-radius: var(--z-radius-md);
  background: linear-gradient(135deg, var(--z-indigo) 0%, #06b6d4 100%);
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.2s ease;
}
.btn-submit:active { transform: scale(0.98); }

/* Calendar */
.calendar-widget { display: grid; grid-template-columns: 250px 1fr; min-height: 450px; overflow: hidden; }
.calendar-sidebar { background: var(--z-surface-low); border-right: 1px solid rgba(255,255,255,0.05); padding: 40px; }
.calendar-main { padding: 40px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.cal-day { height: 56px; display: flex; align-items: center; justify-content: center; border-radius: var(--z-radius); font-size: 14px; }
.cal-day.available { background: var(--z-white-3); border: 1px solid var(--z-white-10); cursor: pointer; transition: all 0.2s; }
.cal-day.available:hover { background: rgba(93,230,255,0.2); }
.cal-day.selected { background: var(--z-secondary); color: var(--z-on-secondary); font-weight: 700; }
.cal-day.muted { color: rgba(144,143,160,0.3); }

/* FAQ */
.faq-item { padding: 24px; border-radius: var(--z-radius-md); cursor: pointer; }
.faq-item h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { color: var(--z-on-surface-variant); }

/* ---------- Case Study Cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px; }
.case-card { overflow: hidden; display: flex; flex-direction: column; }
.case-card-image { height: 256px; position: relative; overflow: hidden; background: var(--z-surface-container); }
.case-card-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; mix-blend-mode: screen; }
.case-card-image .overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--z-surface-lowest) 0%, transparent 100%); }
.case-card-image .meta { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-end; }
.case-card-body { padding: 40px; display: flex; flex-direction: column; gap: 24px; flex-grow: 1; }
.case-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--z-secondary); margin-bottom: 8px; }
.case-outcome {
  margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05);
}
.case-outcome-box {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: rgba(52,52,61,0.3); border-radius: var(--z-radius); border: 1px solid var(--z-white-10);
}
.case-tag {
  padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600;
  background: rgba(192,193,255,0.2); color: var(--z-primary); border: 1px solid rgba(192,193,255,0.3);
  backdrop-filter: blur(8px);
}

/* ---------- Blog ---------- */
.blog-featured {
  position: relative; border-radius: var(--z-radius-md); overflow: hidden;
  min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end;
}
.blog-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.blog-featured .content { position: relative; z-index: 2; padding: 40px; }
.blog-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.blog-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-card-image { height: 200px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-card { padding: 24px; }
.sidebar-card h3 { margin-bottom: 16px; }
.sidebar-link { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-link:last-child { border-bottom: none; }
.category-tag {
  display: inline-block; padding: 6px 14px; border-radius: 9999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--z-on-surface-variant);
  background: var(--z-white-5); border: 1px solid var(--z-white-10);
  transition: all 0.2s; margin: 4px;
}
.category-tag:hover { background: rgba(192,193,255,0.1); color: var(--z-primary); border-color: rgba(192,193,255,0.3); }

.blog-hero h1 { text-shadow: 0 0 30px rgba(99, 102, 241, 0.3); }

.search-field:focus { outline: none; border-color: var(--z-primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }

/* Pagination Styles */
.blog-pagination ul { display: flex; list-style: none; gap: 8px; padding: 0; }
.blog-pagination li { margin: 0; }
.blog-pagination a, .blog-pagination span { 
  display: flex; align-items: center; justify-content: center; 
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; 
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7); font-weight: 600; font-size: 14px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-pagination .current { background: var(--z-indigo); border-color: var(--z-indigo); color: #fff; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
.blog-pagination a:hover { background: rgba(255,255,255,0.1); border-color: var(--z-primary); color: #fff; transform: translateY(-2px); }

.popular-post-item { border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 16px; transition: all 0.3s; }
.popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-post-item:hover { transform: translateX(4px); }

.category-tag-dynamic { position: relative; overflow: hidden; }
.category-tag-dynamic:hover { transform: translateY(-2px); }

/* Case Study Premium Upgrade */
.case-hero { padding: 160px 0 64px; background: rgba(13,13,21,0.6); }
.case-card { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.case-card:hover { transform: translateY(-12px); border-color: rgba(93, 230, 255, 0.4) !important; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.case-card-image { position: relative; overflow: hidden; }
.case-card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,13,21,0.8), transparent); opacity: 0; transition: opacity 0.5s; }
.case-card:hover .case-card-image::after { opacity: 1; }

/* ---------- Scroll Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-cards { grid-template-columns: repeat(2, 1fr); }
  .calendar-widget { grid-template-columns: 1fr; }
  .calendar-sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
}

@media (max-width: 768px) {
  .t-display { font-size: 32px; }
  .t-h1 { font-size: 26px; }
  .stats-bar { grid-template-columns: 1fr; }
  .stats-bar .stat:not(:last-child) { border-right: none; border-bottom: 1px solid var(--z-white-10); }
  .services-grid { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .blog-cards { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero { padding: 80px 0 48px; }
  .section-gap { padding: 64px 0; }
  .container { padding: 0 16px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 16px; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(13,13,21,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 24px; font-weight: 600; color: var(--z-on-surface); }
.mobile-nav .close-btn { position: absolute; top: 24px; right: 24px; font-size: 32px; color: #94a3b8; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
