/* =============================================
   SAP MINDTECH AI — Design System
   Palette: Deep Navy, Electric Cyan, Slate, White
   Display: 'Sora' (geometric, technical)
   Body: 'Inter' (clean, readable)
   Signature: Diagonal slash grid hero with animated node connections
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:     #0A0F2C;
  --navy-mid: #111940;
  --cyan:     #00D4FF;
  --cyan-dim: #00A8CC;
  --slate:    #8892B0;
  --white:    #F0F6FF;
  --card-bg:  #141B38;
  --border:   rgba(0, 212, 255, 0.15);
  --gradient: linear-gradient(135deg, #00D4FF 0%, #0070F3 100%);
  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 3px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
p  { color: var(--slate); font-size: 1rem; line-height: 1.75; }

a { color: inherit; text-decoration: none; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; max-width: 600px; margin-bottom: 56px; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  background: rgba(10, 15, 44, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav.scrolled { padding: 12px 0; }
.nav-inner {
  display: flex; align-items: center; position: relative;
}
.nav-logo { flex: 0 0 auto; }
.nav-links {
  position: absolute;
  left: 54%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 16px;
  padding-left: 40px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .logo-accent { color: var(--cyan); }
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--slate);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: var(--border); }
.nav-cta {
  background: var(--gradient);
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: 8px;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px;  padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient);
  color: var(--navy);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 212, 255, 0.05); }

/* ---- CARDS ---- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}
.card:hover { border-color: rgba(0, 212, 255, 0.4); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0, 212, 255, 0.08); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p { font-size: 0.92rem; }

/* ---- GRID ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0, 112, 243, 0.15) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0, 212, 255, 0.07) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--cyan);
  margin-bottom: 28px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--cyan); }
.hero p { font-size: 1.1rem; margin-bottom: 40px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--white);
}
.hero-stat-num span { color: var(--cyan); }
.hero-stat-label { font-size: 0.8rem; color: var(--slate); margin-top: 2px; }
.hero-visual {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 520px; height: 520px;
  z-index: 0;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 112, 243, 0.12) 0%, transparent 70%);
}
.page-hero .section-label { display: block; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { max-width: 580px; margin: 0 auto; font-size: 1.1rem; }

/* ---- SERVICES ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {  }
.service-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); background: rgba(0, 212, 255, 0.1);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 16px;
}

/* ---- ABOUT ---- */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
}
.about-visual::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), transparent 50%);
  z-index: -1;
}
.value-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.value-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.value-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.value-item p { font-size: 0.88rem; }

/* ---- TEAM ---- */
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); border-color: rgba(0,212,255,0.4); }
.team-avatar {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--navy-mid), var(--card-bg));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.team-info { padding: 24px; }
.team-info h3 { font-size: 1rem; margin-bottom: 4px; }
.team-role { font-size: 0.8rem; color: var(--cyan); font-weight: 500; margin-bottom: 10px; }

/* ---- PRODUCTS ---- */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover { border-color: rgba(0,212,255,0.4); transform: translateY(-4px); }
.product-card.featured {
  border-color: rgba(0,212,255,0.5);
  background: linear-gradient(135deg, rgba(0,112,243,0.1), var(--card-bg));
}
.product-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--gradient);
  color: var(--navy);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.product-icon { font-size: 2.5rem; margin-bottom: 20px; }
.product-card h3 { margin-bottom: 8px; }
.product-card p { font-size: 0.92rem; margin-bottom: 20px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.product-tag {
  font-size: 0.72rem; font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0,212,255,0.08);
  border: 1px solid var(--border);
  color: var(--slate);
}

/* ---- BLOG ---- */
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(0,212,255,0.4); }
.blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--navy-mid) 0%, rgba(0,112,243,0.3) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: 0.78rem; color: var(--slate); margin-bottom: 10px; }
.blog-meta span { color: var(--cyan); }
.blog-body h3 { font-size: 1rem; margin-bottom: 10px; }
.blog-body p { font-size: 0.88rem; flex: 1; }
.blog-read { margin-top: 20px; font-size: 0.85rem; color: var(--cyan); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.blog-read:hover { gap: 10px; }

/* ---- CAREERS ---- */
.job-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  transition: var(--transition);
}
.job-card:hover { border-color: rgba(0,212,255,0.4); background: rgba(20,27,56,0.8); }
.job-info h3 { font-size: 1rem; margin-bottom: 6px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job-tag {
  font-size: 0.72rem; padding: 3px 10px; border-radius: 20px;
  background: rgba(0,212,255,0.08); border: 1px solid var(--border); color: var(--slate);
}
.job-tag.type { color: var(--cyan); border-color: rgba(0,212,255,0.3); }

/* ---- CONTACT ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(0,212,255,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-info-item h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.contact-info-item p { font-size: 0.88rem; }
.contact-form { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 8px; color: var(--white); }
input, textarea, select {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--cyan); background: rgba(0,212,255,0.04); }
input::placeholder, textarea::placeholder { color: rgba(136,146,176,0.6); }
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--navy-mid); }
.form-submit { width: 100%; padding: 16px; font-size: 1rem; justify-content: center; margin-top: 8px; }
.form-fallback { display: none; margin-top: 14px; font-size: 0.85rem; color: var(--slate); text-align: center; line-height: 1.5; }
.form-fallback a { color: var(--cyan); text-decoration: underline; }
.form-fallback a:hover { color: var(--white); }

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, rgba(0,112,243,0.15) 0%, rgba(0,212,255,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { margin-bottom: 36px; }
.cta-band .btn { margin: 0 8px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.88rem; margin: 16px 0 24px; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.04em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: var(--slate); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--slate);
}
.footer-socials { display: flex; gap: 12px; }
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---- PAGE VISIBILITY ---- */
.page { display: none; }
.page.active { display: block; }

/* ---- MOBILE NAV ---- */
@media (max-width: 768px) {
  .nav-actions { padding-left: 0; }
  .nav-actions .nav-cta { display: none; }
  .nav-links {
    left: 0; right: 0; top: 100%;
    transform: none;
    display: none;
    flex-direction: column;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--border);
    padding: 16px; gap: 4px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .services-grid { grid-template-columns: 1fr; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; align-items: flex-start; }
}

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   v2 ADDITIONS — Animation, Logo, Service Cards, Products
   ============================================================ */

/* ---- Hero Canvas ---- */
#heroCanvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -30px) scale(1.05); }
}

/* ---- LOGO ---- */
.logo-mark {
  width: 38px; height: 38px;
  position: relative; flex-shrink: 0;
}
.logo-mark svg { width: 38px; height: 38px; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-top {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 800; letter-spacing: 0.04em;
  color: var(--white);
}
.logo-top span { color: var(--cyan); }
.logo-sub {
  font-family: var(--font-display);
  font-size: 0.55rem; font-weight: 400; letter-spacing: 0.22em;
  color: var(--slate); text-transform: uppercase; margin-top: 1px;
}

/* ---- Pillar icons (SVG-based) ---- */
.pillar-icon {
  width: 56px; height: 56px;
  margin-bottom: 20px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
}
.pillar-icon svg { width: 28px; height: 28px; }

/* ---- Service card expand ---- */
.service-card {  position: relative; transition: var(--transition); }
.service-card .card-detail {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  opacity: 0;
}
.service-card.expanded .card-detail { max-height: 300px; opacity: 1; }
.service-card .expand-hint {
  font-size: 0.75rem; color: var(--cyan); margin-top: 12px;
  display: flex; align-items: center; gap: 6px; font-weight: 500;
}
.service-card.expanded .expand-hint::after { content: '▲ Less'; }
.service-card:not(.expanded) .expand-hint::after { content: '▼ More'; }
.card-detail ul { list-style: none; margin-top: 14px; }
.card-detail ul li {
  font-size: 0.84rem; color: var(--slate); padding: 5px 0;
  border-bottom: 1px solid rgba(0,212,255,0.07);
  display: flex; align-items: center; gap: 8px;
}
.card-detail ul li::before { content: '→'; color: var(--cyan); font-size: 0.75rem; }

/* ---- Product cards v2 ---- */
.product-card-v2 {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  position: relative; overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.product-card-v2::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.product-card-v2:hover::before { transform: scaleX(1); }
.product-card-v2:hover {
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,212,255,0.1);
}
.product-card-v2.flagship {
  border-color: rgba(0,212,255,0.45);
  background: linear-gradient(145deg, rgba(0,112,243,0.1), var(--card-bg));
  grid-column: span 2;
}
.product-v2-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
}
.product-v2-icon svg { width: 26px; height: 26px; }
.product-card-v2 h3 { margin-bottom: 8px; font-size: 1.05rem; }
.product-card-v2 p  { font-size: 0.9rem; flex: 1; }
.product-v2-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.product-v2-tag {
  font-size: 0.7rem; font-weight: 500;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(0,212,255,0.07);
  border: 1px solid var(--border); color: var(--slate);
}
.product-card-v2 .btn { margin-top: 18px; display: inline-flex; }

/* Products grid */
.products-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .products-grid-v2 { grid-template-columns: 1fr; }
  .product-card-v2.flagship { grid-column: span 1; }
}

/* ---- Glow on hero stat numbers ---- */
.hero-stat-num {
  text-shadow: 0 0 20px rgba(0,212,255,0.4);
}

/* ---- Animated underline on nav links ---- */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 2px; left: 14px; right: 14px; height: 1px;
  background: var(--cyan);
  transform: scaleX(0); transition: transform 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta::after { display: none !important; }

/* ============================================================
   SKULL + HERO LAYOUT  (v3)
   ============================================================ */

/* Two-column hero layout */
.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: calc(100vh - 80px);
  padding: 40px 24px;
}
.hero-layout .hero-content {
  flex: 1;
  max-width: 600px;
}

/* Skull wrapper — right side */
.hero-skull-wrap {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(240px, 36vw, 420px);
  height: clamp(240px, 36vw, 420px);
}

#skullCanvas {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 18px rgba(0,212,255,0.35));
  animation: skullFloat 5s ease-in-out infinite alternate;
}

@keyframes skullFloat {
  from { transform: translateY(0px) rotate(-1deg); }
  to   { transform: translateY(-18px) rotate(1deg); }
}

/* Ambient glow behind skull */
.skull-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(0,212,255,0.12) 0%,
    rgba(0,112,243,0.08) 40%,
    transparent 70%);
  animation: glowPulse 4s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes glowPulse {
  from { opacity: 0.6; transform: scale(0.95); }
  to   { opacity: 1;   transform: scale(1.05); }
}

/* Hide skull on small mobile */
@media (max-width: 768px) {
  .hero-layout {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }
  .hero-skull-wrap {
    width: 200px; height: 200px;
    order: -1;   /* skull above text on mobile */
  }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
}

/* ---- URL routing: netlify _redirects support ---- */
/* (handled via _redirects file — see deployment notes) */

/* ---- SVG value icons (replaces emoji) ---- */
.value-icon-svg {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.value-icon-svg svg { width: 20px; height: 20px; }

/* ============================================================
   SERVICE MODAL OVERLAY (replaces expand-in-card)
   ============================================================ */

/* Reset old expand behaviour on home cards */
.service-card .card-detail { display: none !important; }
.service-card .expand-hint { display: none !important; }

/* Modal backdrop */
.svc-modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5, 8, 28, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.svc-modal-backdrop.open { opacity: 1; pointer-events: all; }

/* Modal panel — slides up from bottom */
.svc-modal {
  position: fixed; z-index: 2001;
  bottom: 0; left: 50%; transform: translateX(-50%) translateY(40px);
  width: min(680px, 96vw);
  background: var(--card-bg);
  border: 1px solid rgba(0,212,255,0.3);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 40px 44px 48px;
  opacity: 0; pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  max-height: 80vh; overflow-y: auto;
}
.svc-modal.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1; pointer-events: all;
}

/* Top accent line */
.svc-modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient); border-radius: 2px 2px 0 0;
}

/* Drag handle */
.svc-modal-handle {
  width: 44px; height: 4px;
  background: rgba(0,212,255,0.25);
  border-radius: 2px;
  margin: 0 auto 28px;
}

.svc-modal-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px;
  background: rgba(0,212,255,0.12); color: var(--cyan);
  margin-bottom: 14px;
}
.svc-modal h2 {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 12px;
}
.svc-modal .svc-modal-desc {
  font-size: 1rem; color: var(--slate); margin-bottom: 24px; line-height: 1.7;
}
.svc-modal-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.svc-modal-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.92rem; color: var(--white); line-height: 1.6;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,212,255,0.07);
}
.svc-modal-list li:last-child { border-bottom: none; }
.svc-modal-list li::before {
  content: '→';
  color: var(--cyan); font-size: 0.8rem; flex-shrink: 0; margin-top: 3px;
}
.svc-modal-close {
  position: absolute; top: 20px; right: 24px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
   font-size: 1rem; color: var(--slate);
  transition: var(--transition);
}
.svc-modal-close:hover { background: rgba(0,212,255,0.1); color: var(--white); }

.svc-modal-cta { margin-top: 28px; }

/* Card hover — just glow, no layout shift */
.service-card {  }
.service-card:hover {
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.15), 0 16px 48px rgba(0,212,255,0.08);
}

/* ============================================================
   SERVICE DETAIL DRAWER  (slides in from right)
   ============================================================ */

/* Remove expand behavior entirely from service cards */
.service-card .card-detail { display: none !important; }
.service-card .expand-hint { display: none !important; }
.service-card.expanded .card-detail { display: none !important; }

/* Overlay backdrop */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5, 8, 24, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

/* Centered modal card */
.service-drawer {
  position: relative;
  width: min(600px, 95vw);
  max-height: 85vh;
  background: var(--navy-mid);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 20px;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.32s ease;
  opacity: 0;
  display: flex; flex-direction: column;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,212,255,0.1);
}
.service-drawer.open { transform: translateY(0) scale(1); opacity: 1; }

/* Top accent line */
.service-drawer::before {
  content: '';
  display: block; height: 3px; flex-shrink: 0;
  background: var(--gradient);
  border-radius: 20px 20px 0 0;
}

/* Drawer inner */
.drawer-inner { padding: 36px 40px 48px; flex: 1; }

/* Close button */
.drawer-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--slate); font-size: 1rem;
   display: flex; align-items: center; justify-content: center;
  transition: var(--transition); z-index: 10;
}
.drawer-close:hover { background: rgba(0,212,255,0.1); color: var(--white); border-color: var(--cyan); }

.drawer-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 20px;
}
.drawer-title {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 700;
  color: var(--white); margin-bottom: 14px; line-height: 1.25;
}
.drawer-desc {
  font-size: 0.95rem; color: var(--slate);
  line-height: 1.75; margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 1px solid var(--border);
}

/* Detail list */
.drawer-list { list-style: none; margin-bottom: 32px; }
.drawer-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid rgba(0,212,255,0.07);
  font-size: 0.9rem; color: var(--white);
}
.drawer-list li:last-child { border-bottom: none; }
.drawer-list li .di {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
  border-radius: 6px; background: rgba(0,212,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--cyan); font-weight: 700;
}

/* Hover state on home service cards — subtle lift only */
.service-card {
  
  transition: var(--transition);
}
.service-card:hover {
  border-color: rgba(0,212,255,0.5);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,212,255,0.08);
}
/* Click ripple */
.service-card:active { transform: scale(0.98); }

/* ============================================================
   ALT SERVICES — v4c.ai style alternating rows
   ============================================================ */
.alt-services-section { padding: 60px 0 80px; }
.alt-services-section > .container { margin-bottom: 48px; }

.alt-service-row {
  display: flex; align-items: center; gap: 0;
  padding: 64px 80px;
  position: relative;
  transition: background 0.3s;
}
.alt-service-row:nth-child(odd) {
  background: rgba(14,20,50,0.5);
}
.alt-service-row:nth-child(even) {
  background: transparent;
}
.alt-service-row.reverse { flex-direction: row-reverse; }

.alt-service-text {
  flex: 1; padding: 0 48px 0 0;
}
.alt-service-row.reverse .alt-service-text { padding: 0 0 0 48px; }

.alt-service-text .service-tag { margin-bottom: 14px; }
.alt-service-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700; color: var(--white);
  margin-bottom: 14px; line-height: 1.25;
}
.alt-service-text p { font-size: 0.97rem; margin-bottom: 20px; }

.alt-bullets { list-style: none; margin-bottom: 28px; }
.alt-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--slate);
  padding: 7px 0; border-bottom: 1px solid rgba(0,212,255,0.07);
}
.alt-bullets li::before {
  content: '→'; color: var(--cyan);
  font-size: 0.8rem; margin-top: 2px; flex-shrink: 0;
}
.alt-learn-btn { padding: 11px 24px; font-size: 0.88rem; }

.alt-service-visual {
  flex-shrink: 0; width: 420px;
  background: rgba(10,15,44,0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.alt-service-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,112,243,0.08) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.alt-canvas { display: block; position: relative; z-index: 2; }

@media (max-width: 900px) {
  .alt-service-row, .alt-service-row.reverse {
    flex-direction: column; padding: 48px 24px;
  }
  .alt-service-text { padding: 0 0 32px 0 !important; }
  .alt-service-visual { width: 100%; }
  .alt-canvas { width: 100% !important; height: 220px !important; }
}

/* Override — service cards fully static, no hover/click effects */
.service-card { cursor: default !important; pointer-events: none; }
.service-card:hover { transform: none !important; box-shadow: none !important; border-color: var(--border) !important; }
.service-card:active { transform: none !important; }
/* ---- ACADEMY COURSE CARDS ---- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}
.course-card:hover {
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,212,255,0.09);
}
.course-card-top {
  padding: 24px 24px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.course-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.course-level {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
  flex-shrink: 0;
}
.course-level.beginner  { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.course-level.intermediate { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.course-level.advanced  { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.course-card-body {
  padding: 0 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course-card-body h3 { font-size: 1.08rem; line-height: 1.3; }
.course-desc { font-size: 0.88rem; color: var(--slate); line-height: 1.65; }
.course-outcomes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 4px 0;
}
.course-outcomes li {
  font-size: 0.84rem;
  color: var(--slate);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.course-outcomes li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.7;
}
.course-for {
  font-size: 0.8rem;
  color: var(--slate);
  padding: 10px 14px;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 8px;
  margin-top: auto;
  line-height: 1.5;
}
.course-for-label {
  color: var(--cyan);
  font-weight: 600;
  margin-right: 4px;
}
.course-card-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.course-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.course-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--slate);
}
.course-meta svg { opacity: 0.6; }
.course-enrol {
  width: 100%;
  justify-content: center;
  padding: 11px 20px;
  font-size: 0.9rem;
}

/* ---- SUCCESS TOAST ---- */
#successToast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 9999;
  min-width: 320px;
  max-width: 480px;
  background: linear-gradient(135deg, #0d1a3a 0%, #0a1628 100%);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 16px;
  padding: 20px 24px 20px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.1), 0 0 32px rgba(0, 212, 255, 0.08);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  pointer-events: none;
}
#successToast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 196, 140, 0.2), rgba(0, 212, 255, 0.1));
  border: 1px solid rgba(0, 196, 140, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.toast-body { flex: 1; min-width: 0; }
.toast-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.toast-ref {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.toast-msg {
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.5;
  margin: 0;
}
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(90deg, #00D4FF, #0070F3);
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 5s linear;
}
#successToast.show .toast-progress {
  transform: scaleX(0);
}

@media (max-width: 1024px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .course-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   ============================================================ */

/* --- "Why Choose Us" two-column grid --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* --- Newsletter subscribe row --- */
.newsletter-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .why-grid { gap: 48px; }
  .section { padding: 72px 0; }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  /* Layout & spacing */
  .section { padding: 56px 0; }
  .page-hero { padding: 120px 0 56px; }
  .cta-band { padding: 56px 0; }
  .container { padding: 0 16px; }

  /* Why Choose Us — collapse to single column */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* About visual (inside Why section) — reduce padding */
  .about-visual { padding: 28px 20px; }

  /* About page layout */
  .about-layout { gap: 32px; }

  /* Hero */
  .hero p { font-size: 0.97rem; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badge { font-size: 0.75rem; }

  /* Contact form */
  .contact-form { padding: 24px 18px; }
  .contact-layout { gap: 32px; }

  /* Newsletter subscribe: stack on mobile */
  .newsletter-row {
    flex-direction: column;
    max-width: 100%;
    gap: 10px;
  }
  .newsletter-row .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }

  /* Service modal — full screen on mobile */
  .svc-modal { padding: 28px 20px 40px; width: 100%; border-radius: 20px 20px 0 0; }
  .svc-modal h2 { font-size: 1.3rem; }

  /* Section subtitle */
  .section-subtitle { font-size: 0.97rem; margin-bottom: 36px; }

  /* Cards: reduce padding */
  .card { padding: 24px 20px; }
  .product-card-v2 { padding: 24px 20px; }

  /* Jobs */
  .job-card { padding: 20px 16px; gap: 16px; }

  /* Academy hero stats dividers */
  .page-hero [style*="width:1px"] { display: none; }

  /* Toast — full width with side margins */
  #successToast {
    left: 12px;
    right: 12px;
    bottom: 16px;
    transform: translateY(120px);
    min-width: unset;
    max-width: unset;
    width: auto;
    padding: 16px 16px 16px 14px;
    gap: 12px;
    border-radius: 12px;
  }
  #successToast.show {
    transform: translateY(0);
  }
  .toast-title { font-size: 0.85rem; }
  .toast-msg { font-size: 0.78rem; }
  .toast-icon { width: 34px; height: 34px; font-size: 0.95rem; }
}

/* ---- Small mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  h3 { font-size: clamp(1.05rem, 4.5vw, 1.3rem); }

  .section { padding: 44px 0; }
  .page-hero { padding: 100px 0 44px; }

  /* Buttons — full-width in CTA band */
  .cta-band .btn { display: block; width: 100%; text-align: center; margin: 0 0 12px; }

  /* Hero actions already full-width above */

  /* Products grid — reduce card internal spacing */
  .product-v2-tags { gap: 6px; }
  .product-v2-tag { font-size: 0.68rem; padding: 3px 8px; }

  /* Blog card thumbnail — reduce height */
  .blog-thumb { height: 140px; font-size: 2rem; }

  /* Contact form — tighten further */
  .contact-form { padding: 20px 14px; }

  /* Course card */
  .course-card-top { padding: 18px 16px 14px; }
  .course-card-body { padding: 0 16px 16px; }
  .course-card-footer { padding: 14px 16px 20px; }

  /* Toast */
  #successToast { left: 8px; right: 8px; bottom: 12px; }
}
