/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Founder Image Styles - Add this to your assets/css/style.css file */

.founder-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--secondary);
    box-shadow: 0 8px 24px rgba(155, 107, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(155, 107, 255, 0.5);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Update founder-card to center-align content */
.founder-card {
    text-align: center;
}

.founder-card h3 {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .founder-image {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
}

/* Theme variables */
:root{
  /* Logo-inspired palette: white text, purple accent, black surfaces */
  --primary: #FFFFFF; /* main text */
  --secondary: #9B6BFF; /* purple accent to match logo */
  --accent: #0B0B0F; /* surfaces/background */
  --text: #B4B6C2; /* muted text */
  --light-bg: #131318; /* elevated dark card bg */
  --border: rgba(155, 107, 255, 0.35);

  /* Aqua variables (new) */
  --aqua: #00d4ff;       /* bright aqua for motion accents */
  --aqua-soft: rgba(0, 212, 255, 0.12);
  --aqua-glow: rgba(0, 212, 255, 0.22);
  --aqua-glow-strong: rgba(0, 212, 255, 0.35);

  --safe-top: env(safe-area-inset-top);
  --safe-right: env(safe-area-inset-right);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
}

/* Base page */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--primary);
  background: var(--accent);
  padding-left: max(0px, var(--safe-left));
  padding-right: max(0px, var(--safe-right));
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(14, 14, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.nav-left { display:flex; align-items:center; gap:14px; }
.nav-logo { height:36px; width:auto; }

.nav-links { display:flex; gap:20px; }
.nav-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(155, 107, 255, 0.12);
  color: var(--primary);
}

.nav-toggle {
  display:none;
  background: rgba(155,107,255,0.15);
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight:700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/hero_bg');
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  color: var(--primary);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content { display:flex; align-items:center; gap:60px; flex-wrap:wrap; }
.hero-text { flex:1; min-width:300px; }
.hero-image { flex:1; min-width:300px; text-align:center; }

.badge {
  display:inline-block;
  padding:10px 20px;
  border:2px solid var(--secondary);
  border-radius:30px;
  color:var(--secondary);
  font-size:14px;
  font-weight:600;
  margin-bottom:30px;
  letter-spacing:1px;
}

/* brand logo uses aqua glow now */
.brand-logo {
  height:270px;
  width:auto;
  margin-bottom:24px;
  display:block;
  margin-left:auto;
  margin-right:auto;
  filter: drop-shadow(0 10px 30px var(--aqua-glow));
}

.hero .hero-text { max-width:900px; margin:0 auto; text-align:center; }

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height:1.2;
  margin-bottom:30px;
  font-weight:700;
}
.hero h1 .highlight { color: var(--secondary); }

.tagline {
  font-size:24px;
  color:var(--secondary);
  margin-bottom:20px;
  font-weight:300;
  font-style:italic;
}

/* Buttons — shadow uses aqua */
.btn {
  display:inline-block;
  padding: clamp(12px, 2.5vw, 18px) clamp(22px, 4.5vw, 40px);
  background: var(--secondary);
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  margin: 16px 10px 16px 0;
  transition: all 0.3s;
  font-weight:600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--aqua-glow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Running Text */
.running-text {
  background: var(--accent);
  padding: 25px 0;
  overflow: hidden;
}
.running-text-content {
  display:flex; gap:50px;
  animation: scroll 30s linear infinite;
  color: var(--primary);
  font-size:18px;
  font-weight:600;
}
.running-text-content span { white-space:nowrap; color:var(--secondary); }
@keyframes scroll { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

/* Process Section */
.process { background: var(--accent); padding: 100px 0; }
.section-header { text-align:center; max-width:900px; margin:0 auto 60px; }

.section-title {
  font-size: clamp(26px, 4.2vw, 48px);
  margin-bottom:20px;
  font-weight:700;
  color:var(--primary);
}
.section-title .highlight { color:var(--secondary); }

.steps {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:30px;
  margin-top:50px;
}

/* step-card + animated aqua stripe */
.step-card {
  background: var(--light-bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

/* animated aqua stripe at top */
.step-card::before {
  content: "";
  position: absolute;
  left: -120%;
  top: 0;
  height: 6px;
  width: 120%;
  background: linear-gradient(90deg, transparent, var(--aqua), transparent);
  filter: blur(6px);
  opacity: 0.95;
  transition: transform 0.45s cubic-bezier(.2,.9,.3,1), left 0.45s;
  pointer-events: none;
}

/* slide stripe on hover or when class .active is added via JS */
.step-card:hover::before,
.step-card.active::before {
  left: -10%;
  transform: translateY(18px);
}

/* hover uses aqua glow */
.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--aqua-glow);
  border-color: var(--secondary); /* keeps purple border if desired */
}

/* step number active state uses aqua */
.step-number {
  background: var(--secondary);
  color: var(--primary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:24px;
  margin-bottom:20px;
}
.step-number.active {
  box-shadow: 0 0 24px var(--aqua-glow-strong), inset 0 0 10px rgba(255,255,255,0.02);
  background: linear-gradient(180deg, var(--secondary), var(--aqua));
  color: #021016;
}

.step-card h3 { margin-bottom:15px; color:var(--primary); font-size:22px; }
.step-card p { color:var(--text); line-height:1.8; }

/* Founders Section */
.founders { background: var(--accent); padding:100px 0; }
.founders-content { display:flex; gap:50px; align-items:center; flex-wrap:wrap; }
.founders-text { flex:1; min-width:300px; }
.founders-grid { flex:1; min-width:300px; display:grid; gap:30px; }

.founder-card {
  background: var(--light-bg);
  border-radius:20px;
  padding:40px;
  border-left:5px solid var(--secondary);
  transition: all 0.3s;
}
.founder-card:hover {
  box-shadow: 0 18px 40px var(--aqua-glow);
}
.founder-card h3 { color:var(--primary); font-size:28px; margin-bottom:10px; }
.founder-card h4 { color:var(--secondary); font-size:16px; margin-bottom:15px; font-weight:600; }
.founder-card p { color:var(--text); line-height:1.8; }

/* mission quote */
.mission-quote {
  background: var(--secondary);
  color: var(--primary);
  padding:30px;
  border-radius:15px;
  margin:30px 0;
  font-size:20px;
  font-weight:600;
  font-style:italic;
}

/* Services Section */
.services { background: var(--accent); padding:100px 0; }
.services-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap:30px; margin-top:50px; }

.image-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:20px; }
.image-item {
  display:block;
  border-radius:16px;
  overflow:hidden;
  border:2px solid var(--border);
  background:#f0f0f0;
  transition: all 0.3s;
}
.image-item img {
  width:100%; height:100%; display:block; object-fit:cover; transition: transform 0.4s ease; aspect-ratio:4/3;
}
.image-item:hover img { transform: scale(1.05); box-shadow: 0 20px 40px var(--aqua-glow); }

/* Service cards use aqua glows */
.service-card {
  background: var(--light-bg);
  border: 2px solid var(--border);
  border-radius:20px;
  overflow:hidden;
  transition: all 0.3s;
  cursor:pointer;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--aqua-glow);
  border-color: var(--secondary);
}
.service-icon {
  background: linear-gradient(135deg, var(--secondary), #6A3DFF);
  padding:50px;
  text-align:center;
  font-size:60px;
}
.service-content { padding:35px; }
.service-content h3 { color:var(--primary); font-size:26px; margin-bottom:15px; }
.service-content p { color:var(--text); line-height:1.8; margin-bottom:20px; }
.service-features { list-style:none; padding:0; }
.service-features li {
  padding:8px 0;
  color:var(--text);
  position:relative;
  padding-left:25px;
}
.service-features li:before {
  content: "✓";
  color: var(--secondary);
  font-weight:bold;
  position:absolute;
  left:0;
}

/* USP Section */
.usp { background: var(--accent); color:var(--primary); padding:100px 0; }
.usp-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap:50px; margin-top:50px; }
.usp-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--secondary);
  border-radius:20px;
  padding:40px;
  transition: box-shadow .25s ease;
}
.usp-card:hover { box-shadow: 0 20px 40px var(--aqua-glow); }
.usp-card h3 { color:var(--secondary); font-size:28px; margin-bottom:20px; }
.usp-card p { color:var(--primary); line-height:1.8; }

/* Stats Section (keeps purple bg but accents use aqua for glows) */
.stats { background: var(--secondary); padding:80px 0; color:var(--primary); }
.stats-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:40px; text-align:center; }
.stat-item { padding:20px; }
.stat-number { font-size:56px; font-weight:900; margin-bottom:10px; }
.stat-label { font-size:18px; font-weight:600; text-transform:uppercase; letter-spacing:1px; }

/* CTA Section */
.cta { background: linear-gradient(135deg, var(--accent), #15151c); color:var(--primary); padding:100px 0; text-align:center; }

/* Footer */
.footer { background:#0e0e12; border-top: 1px solid var(--border); padding:40px 0; }
.footer-inner { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:14px; }
.footer-logo { height:56px; width:auto; filter: drop-shadow(0 8px 20px var(--aqua-glow)); }
.footer-text { color:var(--text); font-size:14px; }

/* Contact Box */
.contact-box {
  background: var(--accent);
  border: 2px solid var(--secondary);
  border-radius:20px;
  padding:30px;
  margin-top:50px;
  display:inline-block;
}
.contact-box h3 { color:var(--primary); font-size:24px; margin-bottom:15px; }
.contact-box p { color:var(--secondary); font-size:32px; font-weight:900; }

/* Video Container */
.video-container { margin:40px 0; border-radius:20px; overflow:hidden; box-shadow: 0 20px 60px var(--aqua-glow); }
.video-container iframe { width:100%; height:auto; aspect-ratio:16/9; display:block; }

/* Section divider (optional moving aqua bar) */
.section-divider {
  height:6px;
  border-radius:999px;
  margin:28px 0;
  background: linear-gradient(90deg, var(--secondary), var(--aqua), var(--secondary));
  background-size:200% 100%;
  animation: slideAqua 4s linear infinite;
  box-shadow: 0 6px 24px rgba(0,212,255,0.06);
}
@keyframes slideAqua {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Responsive tweaks */
@media (max-width:768px) {
  .nav { padding:10px 0; }
  .nav-toggle { display:inline-block; }
  .nav-links {
    position:absolute; right:20px; top:60px; background:#0e0e12; border:1px solid var(--border);
    border-radius:12px; padding:10px; width:calc(100% - 40px); display:none; flex-direction:column; gap:6px; z-index:1001;
  }
  body.nav-open .nav-links { display:flex; }
  .brand-logo { height:180px; }
  .brand-name { font-size:50px; }
  .hero h1 { font-size:32px; }
  .tagline { font-size:18px; }
  .section-title { font-size:32px; }
  .services-grid, .usp-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:480px) {
  .container { padding:0 16px; }
  .btn { padding:14px 22px; font-size:14px; }
  .hero { padding:90px 0; }
  .section-title { font-size:28px; }
  .brand-logo { height:140px; }
}
@media (max-width:430px) {
  .container { padding:0 14px; }
  .nav-links { top:56px; }
  .brand-logo { height:130px; }
}
@media (max-width:390px) {
  .container { padding:0 12px; }
  .btn { padding:12px 18px; font-size:13px; }
  .tagline { font-size:16px; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(30px); }
  to { opacity:1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.8s ease-out; }

/* Global aqua shadow override (safe, simple approach) */
/* This block ensures typical interactive elements use aqua glows */
:where(.step-card:hover, .service-card:hover, .founder-card:hover, .usp-card:hover, .image-item:hover, .image-item:hover img, .btn:hover, .brand-logo, .footer-logo, .video-container) {
  /* intentionally left empty so the selectors exist for specificity */
}

/* ---------- Services cards: fix layout + remove inner scrollbars ---------- */

/* Make sure grid items don't stretch to the tallest card */
.services-grid {
  align-items: start !important;
}

/* Allow cards to grow naturally and remove any inner scrollbars */
.service-card {
  min-height: 170px !important;   /* reasonable minimum */
  height: auto !important;        /* let content define height */
  overflow: visible !important;   /* remove inner clipping/scrollbars */
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
}

/* Keep card content flexible and avoid forcing line wrapping / overflow */
.service-content {
  flex: 1 1 auto !important;
  min-width: 0 !important; /* prevents forced overflow from long content */
  padding: 28px !important; /* match your layout while reducing cramped look */
}

/* Reduce the icon block padding so it doesn't balloon the card height */
.service-icon {
  padding: 22px !important;    /* was 50px — make it compact */
  font-size: 48px !important;  /* adjust icon size to look balanced */
  flex: 0 0 84px !important;   /* keeps a consistent icon column width */
  box-sizing: border-box !important;
}

/* Let feature lists render naturally (no inner scrollbar) */
.service-features {
  max-height: none !important;
  overflow: visible !important;
  padding-left: 18px !important;
  margin: 0 !important;
}

/* Subtle focus style so focused card doesn't look like a modal frame */
.service-card:focus {
  outline: 3px solid rgba(155,107,255,0.14) !important;
  outline-offset: 4px !important;
  box-shadow: 0 8px 26px rgba(2,6,23,0.35) !important;
}

/* Optional: gentle hover lift (keeps consistent with your theme) */
.service-card:hover {
  transform: translateY(-6px);
  transition: transform .12s ease, box-shadow .12s ease;
}

/* Responsive tweaks: stack icon above content on narrow screens */
@media (max-width: 560px) {
  .service-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .service-icon {
    flex: 0 0 auto !important;
    padding: 18px !important;
    font-size: 44px !important;
  }
  .service-content { padding: 18px !important; }
  .service-features { text-align: left; padding-left: 1rem !important; }
}

/* ---------- Services: improved alignment & spacing (append to end of style.css) ---------- */

/* Ensure grid children align to the top */
.services-grid {
  align-items: start !important;
  gap: 28px !important;
}

/* Card container: consistent padding and allow natural height */
.service-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;   /* align icon and content at top */
  gap: 20px !important;
  padding: 22px !important;
  min-height: auto !important;
  overflow: visible !important;
}

/* Icon column: fixed, compact and vertically top-aligned */
.service-icon {
  flex: 0 0 112px !important;      /* fixed icon column width */
  width: 112px !important;
  height: 112px !important;
  padding: 0 !important;           /* remove large paddings that bloat height */
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 52px !important;      /* emoji/icon size */
  margin-top: 4px !important;      /* small offset so title & icon align nicely */
  box-sizing: border-box !important;
}

/* Right column: content layout */
.service-content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-width: 0 !important;         /* prevents overflow-caused scrollbars */
  padding: 0 !important;
}

/* Title & summary spacing */
.service-content h3 {
  margin: 0 0 6px 0 !important;
  font-size: 1.2rem !important;
  line-height: 1.08 !important;
}
.service-content p {
  margin: 0 0 12px 0 !important;   /* keeps the one-liner close to the title */
  color: var(--text) !important;
  max-width: 640px;                /* prevents extremely long lines */
}

/* Feature list alignment — left aligned, consistent gaps */
.service-features {
  margin: 10px 0 0 0 !important;
  padding-left: 22px !important;
  list-style: none !important;
}
.service-features li {
  padding: 6px 0 !important;
  color: var(--text) !important;
  position: relative !important;
  margin-left: 6px !important;
  line-height: 1.6 !important;
}
.service-features li:before {
  content: "✓" !important;
  color: var(--secondary) !important;
  position: absolute !important;
  left: -18px !important;
  top: 6px !important;
  font-weight: 700 !important;
}

/* Subtle card focus + hover (keeps visual language consistent) */
.service-card:focus {
  outline: 3px solid rgba(155,107,255,0.12) !important;
  outline-offset: 4px !important;
}
.service-card:hover {
  transform: translateY(-6px) !important;
  transition: transform .14s ease, box-shadow .14s ease !important;
}

/* Mobile: stack icon above content for narrow widths */
@media (max-width: 560px) {
  .service-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .service-icon {
    width: 92px !important;
    height: 92px !important;
    font-size: 44px !important;
  }
  .service-content h3 { text-align:center !important; }
  .service-content p { text-align:center !important; margin-bottom:10px !important; }
  .service-features { text-align:left !important; padding-left: 1rem !important; width:100% !important; }
}

/* Force service icons to use system emoji fonts (prevents incorrect glyph fallbacks) */

/* Replace the existing service icon font rules at the bottom of your CSS with this: */

/* Force service icons to render properly as emoji */
.service-icon {
  /* System emoji fonts with better fallback chain */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Android Emoji", "EmojiSymbols", "EmojiOne Mozilla", "Twemoji Mozilla", "Segoe UI", Arial, sans-serif !important;
  
  /* Prevent font synthesis and ligatures */
  font-variant-ligatures: none !important;
  font-feature-settings: "liga" 0, "clig" 0 !important;
  -webkit-font-feature-settings: "liga" 0, "clig" 0 !important;
  
  /* Ensure proper rendering */
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  
  /* Force UTF-8 interpretation */
  unicode-bidi: isolate !important;
  
  /* Prevent text transformation */
  text-transform: none !important;
  font-style: normal !important;
  font-weight: normal !important;
  
  /* Ensure color emoji display */
  color: inherit !important;
}

.service-icon *,
.service-icon::before,
.service-icon::after {
  font-family: inherit !important;
  font-variant-ligatures: none !important;
  text-transform: none !important;
}