/* ── LIGHT MODE (default) ── */
:root {
    --bg:     #f5f4ff;
    --bg2:    #edeaff;
    --bg3:    #e0dbff;
    --accent:  #6c5ce7;
    --accent2: #5a4bd1;
    --accent3: #e84393;
    --text:    #1a1730;
    --muted:   rgba(26, 23, 48, 0.68);
    --border:  rgba(108, 92, 231, 0.15);
    --glow:    rgba(108, 92, 231, 0.12);
    --nav-bg:  rgba(245, 244, 255, 0.98);
    --drawer-bg: rgba(245, 244, 255, 0.99);
    --logo-text: #1a1730;
    --logo-stroke: #f5f4ff;

    /* Hero Light Theme */
    --hero-card-bg: rgba(255,255,255,0.92);
    --hero-ctrl-bg: rgba(255,255,255,0.95);
    --hero-ctrl-border: rgba(108,92,231,0.25);
    --grid-color: rgba(108,92,231,0.08);
    --hero-text-shadow: 0 2px 12px rgba(255,255,255,0.85);
}

/* ── DARK MODE ── */
[data-theme="dark"] {
    --bg:     #07070c;
    --bg2:    #0d0d16;
    --bg3:    #12121e;
    --accent:  #6c5ce7;
    --accent2: #a29bfe;
    --accent3: #fd79a8;
    --text:    #f0eeff;
    --muted:   rgba(240, 238, 255, 0.45);
    --border:  rgba(255, 255, 255, 0.07);
    --glow:    rgba(108, 92, 231, 0.25);
    --nav-bg:  rgba(7, 7, 12, 0.98);
    --drawer-bg: rgba(7, 7, 12, 0.98);
    --logo-text: #f0eeff;
    --logo-stroke: #1a2533;

    /* Hero Dark Theme */
    --hero-card-bg: rgba(10,10,20,0.88);
    --hero-ctrl-bg: rgba(13,13,22,0.88);
    --hero-ctrl-border: rgba(255,255,255,0.1);
    --grid-color: rgba(108,92,231,0.04);
    --hero-text-shadow: none;
}
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}


/* Cursor particles */
.cursor-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.particle {
    position: fixed;
    pointer-events: none;
    font-size: 16px;
    opacity: 0;
    animation: float-away 1s ease-out forwards;
}

@keyframes float-away {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.3);
    }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 4rem;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--border);
    transition: padding 0.3s, background 0.3s;
}

.nav-cta { background:var(--accent); color:#fff; border:none; padding:.55rem 1.3rem; border-radius:8px; font-size:13px; font-weight:500; font-family:'DM Sans',sans-serif; cursor:pointer; transition:opacity .2s; }
.nav-cta:hover { opacity:.85; }

/* Logo Container */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    height: 88px;
}

/* Logo Image */
.logo-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 12px;
}

.logo-text {
    width: 220px;
    height: 100px;  /* Increased from 88px */
    flex-shrink: 0;
}

.nav-logo svg {
    width: 220px !important;
    height: 100px !important;  /* Increased from 88px */
    flex-shrink: 0;
}

.nav-logo {
    height: 100px;  /* Increased from 88px */
}


@media (max-width: 768px) {
    .nav-logo {
        height: 80px;  /* Increased from 68px */
    }
    .logo-text {
        width: 170px;
        height: 80px;  /* Increased from 68px */
    }
    .nav-logo svg {
        width: 170px !important;
        height: 80px !important;  /* Increased from 68px */
    }
}

@media (max-width: 480px) {
    .logo-text {
        width: 150px;
        height: 70px;  /* Increased from 60px */
    }
    .nav-logo svg {
        width: 150px !important;
        height: 70px !important;  /* Increased from 60px */
    }
}

.nav-logo span {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover {
    color: var(--accent2);
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1010;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 23, 48, 0.35);
    z-index: 998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.nav-overlay.active { display: block; }

/* ── HERO ── */
.hero {
  position:relative; 
  width:100%; height:100vh;
  min-height: 600px;
  display:flex; align-items:center;
  overflow:hidden;
  background: var(--bg);
  padding-top: var(--nav-h, 112px); /* compensate for fixed nav height */
}

/* Hero Content - must be above canvas (z-index: 5) */
.hero-content {
  position: relative;
  z-index: 50;           /* Higher priority */
  padding-left: 0vw;     /* ← Moved more to the left */
  max-width: 620px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0c040;
  background: rgba(240, 192, 64, 0.15);
  border: 0.5px solid rgba(240, 192, 64, 0.4);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
}

/* Pulse rings and bg-glow */
.bg-glow {
  position: absolute;
  top: 30%;
  left: 55%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(108,92,231,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
}
.pulse-ring {
  position: absolute;
  top: 50%;
  left: 55%;
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseExpand 4s ease-out infinite;
  pointer-events: none;
  z-index: 1;
}
.pulse-ring:nth-child(3) { animation-delay: 1.3s; width: 300px; height: 300px; }
.pulse-ring:nth-child(4) { animation-delay: 2.6s; width: 450px; height: 450px; }
.pulse-ring:nth-child(5) { animation-delay: 0s;   width: 600px; height: 600px; }
@keyframes pulseExpand {
  0%   { opacity: 0.5; transform: translate(-50%, -50%) scale(0.7); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.3); }
}

/* Scroll hint */
.scroll-hint {
  position:absolute; bottom:2rem; left:50%; transform:translateX(-50%);
  z-index:20; display:flex; flex-direction:column; align-items:center; gap:.5rem;
  font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:#ffe066;
}
.scroll-line { width:1px; height:44px; background:linear-gradient(#ffe066,transparent); animation:scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

.grid-lines {
  position:absolute; inset:0; z-index:0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size:60px 60px;
  mask-image:radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}


/* Hero Text Improvements */
.hero-title {
  font-family:'Syne',sans-serif;
  font-size:clamp(42px,6.5vw,78px);
  font-weight:800; 
  line-height:1.0; 
  letter-spacing:-3px;
  margin-bottom:1.4rem;
  text-shadow: var(--hero-text-shadow);
  color: var(--text);
}
.hero-title .accent { color:var(--accent); }
    
.hero-sub {
  font-size:15px; 
  color: #00FF00;
  opacity: 0.72;
  line-height:1.8; 
  max-width:460px; 
  margin-bottom:2.5rem;
  text-shadow: var(--hero-text-shadow);
}


/* 3D Canvas */
#robotCanvas {
  position:absolute; inset:0;
  width:100%; height:100%;
  z-index:5;
  pointer-events: none; /* allow clicks through to controls below */
}

/* Floating info cards */
.float-card {
  position:absolute; z-index:20;
  background: var(--hero-card-bg);
  backdrop-filter:blur(16px);
  border:1px solid var(--hero-ctrl-border);
  border-radius:12px;
  padding:.8rem 1.1rem;
  animation:floatCard 4s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
.float-card:nth-child(2){ animation-delay:1.4s; }
.float-card:nth-child(3){ animation-delay:2.8s; }
.fc-label { font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--accent2); margin-bottom:.3rem; }
.fc-val { font-family:'Syne',sans-serif; font-size:19px; font-weight:800; letter-spacing:-1px; }
.fc-sub { font-size:11px; color:var(--muted); margin-top:.1rem; }
.fc1{ top:20%; right:4%; }
.fc2{ top:50%; right:4%; }
.fc3{ bottom:18%; right:4%; }

/* Controls */
.ctrl-wrap {
  position:absolute; bottom:2rem; right:3vw; z-index:20;
  display:flex; gap:.5rem; flex-wrap:wrap; justify-content:flex-end;
}
.ctrl-btn {
  display:flex; align-items:center; gap:.4rem;
  background: var(--hero-ctrl-bg);
  backdrop-filter:blur(10px);
  border:1px solid var(--hero-ctrl-border);
  color:var(--muted);
  padding:.5rem .9rem; 
  border-radius:8px; 
  font-size:12px; 
  font-weight:500;
  font-family:'DM Sans',sans-serif; 
  cursor:pointer; 
  transition:all .2s;
}
.ctrl-btn:hover, .ctrl-btn.active { 
  border-color:var(--accent); 
  color:var(--accent2); 
}


/* ── MARQUEE ── */
.marquee-wrap {
    background: var(--accent);
    padding: 0.75rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 22s linear infinite;
    white-space: nowrap;
}
.marquee-track span {
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}
.marquee-track span.dot-sep {
    color: rgba(255, 255, 255, 0.4);
}
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ── SECTIONS COMMON ── */
section {
    padding: 7rem 8vw;
}
.sec-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sec-eyebrow::before {
    content: "";
    width: 20px;
    height: 1px;
    background: var(--accent2);
}
.sec-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.05;
}
.sec-sub {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 480px;
    margin-top: 1rem;
}

/* ── SERVICES ── */
.services-section {
    background: var(--bg2);
}
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 0.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.svc-card {
    background: var(--bg2);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.svc-card:hover {
    background: linear-gradient(135deg, var(--bg3), rgba(108, 92, 231, 0.05));
}
.svc-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.svc-card:hover::after {
    transform: scaleX(1);
}
.svc-num {
    font-family: "Manrope", sans-serif;
    font-size: 60px;
    font-weight: 800;
    letter-spacing: -3px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(108, 92, 231, 0.05));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1.5rem;
}
.svc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(108, 92, 231, 0.08));
    border: 0.5px solid rgba(108, 92, 231, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 1.4rem;
    transition: all 0.3s;
}
.svc-card:hover .svc-icon {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.4), rgba(108, 92, 231, 0.2));
    transform: scale(1.1) rotate(5deg);
}
.svc-card h3 {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
    transition: color 0.3s;
}
.svc-card:hover h3 {
    color: var(--accent2);
}
.svc-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}
.svc-card ul {
    list-style: none;
    padding: 0;
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.svc-card ul li {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    padding-left: 1.4rem;
    position: relative;
}
.svc-card ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent2);
    font-size: 9px;
    top: 5px;
}
.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    font-size: 13px;
    color: var(--accent2);
    cursor: pointer;
    transition: all 0.3s;
}
.svc-card:hover .svc-link {
    gap: 0.7rem;
    color: var(--accent);
}

.bridge-quote {
  border-left: 4px solid #007bff;
  padding-left: 20px;
  margin: 20px auto;
  font-style: italic;
  color: #555;
  font-size: 18px;
  text-align: center;
  border-left: none;
  border-top: 2px solid #007bff;
  border-bottom: 2px solid #007bff;
  padding: 15px 0;
}

.bridge-quote p {
  margin: 0;
}

/* ── FEATURED PROJECT ── */
.featured-section {
    padding: 0;
}
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 350px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(108, 92, 231, 0.15);
}
.featured-visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg3), var(--bg));
}
.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition:
        opacity 0.4s,
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.featured-visual:hover .featured-img {
    opacity: 0.95;
    transform: scale(1.05);
}
.featured-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.3);
}
.featured-info {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid rgba(108, 92, 231, 0.2);
}
.featured-info .sec-title {
    font-size: clamp(28px, 3vw, 44px);
    background: linear-gradient(135deg, var(--accent2), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.feat-meta {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 0.5px solid var(--border);
}
.feat-meta-item {
}
.feat-meta-item .val {
    font-family: "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.feat-meta-item .key {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}
.feat-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.tag {
    font-size: 11px;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(108, 92, 231, 0.08));
    color: var(--accent2);
    border: 0.5px solid rgba(108, 92, 231, 0.3);
    letter-spacing: 0.05em;
    transition: all 0.3s;
}
.tag:hover {
    background: rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

/* Play Button Overlay */
.featured-visual {
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;  /* Changed from 0 to 1 */
    transition: opacity 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.featured-visual:hover .play-button {
    opacity: 1;  /* Keep it at 1 on hover too */
}


.featured-img {
    cursor: pointer;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #000;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: white;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff0000;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

/* ── journal ── */
.gallery-section { padding: 7rem 0; overflow: hidden; }
.gallery-header { padding: 0 8vw; margin-bottom: 3rem; }
.gallery-scroll {
  display: flex; gap: 1.2rem; overflow-x: auto;
  padding: 0 8vw 1rem;
  scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gal-item {
  flex-shrink: 0; width: 360px; height: 260px;
  border-radius: 12px; overflow: hidden;
  position: relative; cursor: pointer;
}
.gal-img {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 0.5s;
}
.gal-item:hover .gal-img { transform: scale(1.07); }
.gal-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(7,7,12,0.85));
  padding: 1.5rem 1.2rem 1rem;
  font-size: 13px; color: rgba(255,255,255,0.8);
  transform: translateY(8px); opacity: 0;
  transition: all 0.3s;
}
.gal-item:hover .gal-caption { transform: translateY(0); opacity: 1; }
.gallery-nav {
  display: flex; gap: 0.8rem; padding: 1rem 8vw 0;
}
.gal-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 0.5px solid var(--border); background: var(--bg2);
  color: var(--text); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.gal-btn:hover { background: var(--accent); border-color: var(--accent); }

/* ── TEAM ── */
.team-section {
    background: var(--bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    position: relative;
}

/* New row with 3 centered items */
.team-grid.row-two {
    grid-template-columns: repeat(3, 1fr);
    max-width: 60%;
    margin: 3.5rem auto 0;
}

/* Divider between rows */
.team-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.team-divider::after {
    content: '';
    flex: 0 1 80px;
    height: 1px;
    background: var(--border);
}

.team-card {
    background: var(--bg2);
    border-radius: 14px;
    border: 0.5px solid var(--border);
    overflow: hidden;
    transition:
        border-color 0.3s,
        transform 0.3s,
        box-shadow 0.3s;
}

.team-card:hover {
    border-color: rgba(108, 92, 231, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
}

.team-avatar {
    height: 200px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    background-size: cover;
    background-position: top center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.team-info {
    padding: 1.4rem;
}

.team-info h4 {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.team-info .role {
    font-size: 12px;
    color: var(--accent2);
    margin-top: 0.2rem;
}

.team-info p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 0.6rem;
    line-height: 1.5;
}

/* ── FOOTER ── */
footer {
    background: var(--bg2);
    border-top: 0.5px solid var(--border);
    padding: 4rem 8vw 2rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 0.5px solid var(--border);
}
.footer-brand .nav-logo {
    font-size: 28px;
}
.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.footer-brand p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 1rem;
    line-height: 1.7;
    max-width: 260px;
}
.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
.footer-col h5 {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.footer-col a {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: var(--text);
}
.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}
.footer-bottom a {
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.footer-bottom a:hover {
    color: var(--text);
}

/* ── ANIMATIONS ── */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 {
    transition-delay: 0.1s;
}
.delay-2 {
    transition-delay: 0.2s;
}
.delay-3 {
    transition-delay: 0.3s;
}
.delay-4 {
    transition-delay: 0.4s;
}

.soc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    cursor: pointer;
}

/* Telegram */
.soc-btn.telegram {
    background-color: #229ed9;
}

.soc-btn.telegram:hover {
    background-color: #1c89bd;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.4);
}

/* YouTube */
.soc-btn.youtube {
    background-color: #ff0000;
}

.soc-btn.youtube:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

/* ── SVG LOGO TEXT (theme-aware) ── */
.svg-logo-text {
    letter-spacing: 0; 
    fill: var(--logo-text);
    stroke: var(--logo-stroke);
    stroke-width: 4px;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 17px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--glow);
    border-color: var(--accent);
    transform: scale(1.1);
}

/* ── BRIDGE STORY ── */
.bridge-story {
  margin-bottom: 5rem;
  position: relative;
  z-index: 1;
}
.bridge-story > .sec-eyebrow { margin-bottom: 0.8rem; }
.bridge-story > .sec-title   { margin-bottom: 2rem; }

.bridge-problem-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  background: rgba(255, 90, 90, 0.05);
  border: 0.5px solid rgba(255, 90, 90, 0.18);
  border-radius: 12px;
  margin: 0 auto 3.5rem;
  max-width: 680px;
}
.bridge-problem-badge {
  flex-shrink: 0;
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff7675;
  background: rgba(255, 118, 117, 0.12);
  border: 0.5px solid rgba(255, 118, 117, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  margin-top: 0.2rem;
}
.bridge-problem-wrap p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.bridge-problem-wrap strong { color: rgba(255, 160, 160, 0.85); }

.bridge-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem 0;
}

@media (max-width: 768px) {
    .bridge-visual {
        margin: 2rem 0;
    }
}

.bridge-node {
  flex-shrink: 0;
  width: 190px;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.node-science {
  border-color: rgba(108, 92, 231, 0.3);
  background: linear-gradient(155deg, rgba(108, 92, 231, 0.07) 0%, var(--bg2) 55%);
}
.node-market {
  border-color: rgba(162, 155, 254, 0.3);
  background: linear-gradient(205deg, rgba(162, 155, 254, 0.07) 0%, var(--bg2) 55%);
}
.bridge-node:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 40px rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.45);
}
.bridge-story.bridge-animate .node-science {
  animation: bNodeIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0s both;
}
.bridge-story.bridge-animate .node-market {
  animation: bNodeIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
@keyframes bNodeIn {
  from { opacity: 0; transform: translateY(22px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.node-emoji { font-size: 38px; display: block; margin-bottom: 0.9rem; }
.node-letter {
  font-family: "Manrope", sans-serif;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.node-title-text {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.node-desc { font-size: 11px; color: var(--muted); line-height: 1.6; }

.bridge-mid {
  flex: 1;
  position: relative;
  height: 200px;
}
.bridge-gap-label {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 100, 100, 0.5);
  white-space: nowrap;
  z-index: 3;
  text-transform: uppercase;
  transition: opacity 0.4s 0.3s;
}
.bridge-story.bridge-animate .bridge-gap-label { opacity: 0; }

.bridge-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.bridge-arch-path {
  fill: none;
  stroke: url(#bridgeGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(108, 92, 231, 0.55));
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}
.bridge-story.bridge-animate .bridge-arch-path {
  animation: bDraw 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}
.bridge-support-line {
  stroke: rgba(108, 92, 231, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}
.bridge-story.bridge-animate .bridge-support-line:nth-child(3) { animation: bDraw 0.35s ease 1.5s  forwards; }
.bridge-story.bridge-animate .bridge-support-line:nth-child(4) { animation: bDraw 0.35s ease 1.65s forwards; }
.bridge-story.bridge-animate .bridge-support-line:nth-child(5) { animation: bDraw 0.35s ease 1.55s forwards; }
.bridge-road-line {
  stroke: rgba(162, 155, 254, 0.2);
  stroke-width: 3;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
}
.bridge-story.bridge-animate .bridge-road-line { animation: bDraw 0.9s ease 1.1s forwards; }
@keyframes bDraw { to { stroke-dashoffset: 0; } }

.bridge-name-wrap {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  z-index: 4;
}
.bridge-story.bridge-animate .bridge-name-wrap {
  animation: bNameIn 0.7s ease 2.0s forwards;
}
@keyframes bNameIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.bridge-galym-text {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.12em;
  display: flex;
  justify-content: center;
}
.bg-g, .bg-m { color: var(--accent2); text-shadow: 0 0 18px rgba(162, 155, 254, 0.7); }
.bg-a, .bg-l, .bg-y { color: var(--text); }
.bridge-tagline-text { font-size: 10px; color: var(--muted); letter-spacing: 0.05em; margin-top: 0.3rem; }

.bridge-conclusion {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: rgba(108, 92, 231, 0.05);
  border: 0.5px solid rgba(108, 92, 231, 0.14);
  border-radius: 14px;
}
.bridge-conclusion strong { color: var(--accent2); }
.bridge-conclusion em {
  display: block;
  font-style: normal;
  font-size: 12px;
  margin-top: 0.5rem;
  opacity: 0.65;
  letter-spacing: 0.02em;
}

.goals-header { margin-bottom: 3.5rem; }

/* ── BRIDGE MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
    .bridge-visual {
        flex-direction: column;
        gap: 1.8rem;
        align-items: center;
    }

    .bridge-node {
        width: 100%;
        max-width: 320px;
        padding: 1.6rem 1.4rem;
        text-align: center;
    }

    .bridge-mid {
        width: 100%;
        max-width: 320px;
        height: 140px;
        position: relative;
    }

    .bridge-svg {
        width: 100%;
        height: 100%;
    }

    /* SVG-ді мобильдіге ыңғайлы ету */
    .bridge-arch-path {
        stroke-width: 3.5;
    }

    .bridge-support-line {
        stroke-width: 2;
    }

    .bridge-road-line {
        stroke-width: 4;
    }

    /* Ортадағы мәтінді жақсарту */
    .bridge-name-wrap {
        bottom: 12%;
        transform: translateX(-50%);
    }

    .bridge-galym-text {
        font-size: 26px;
        letter-spacing: 0.08em;
    }

    .bridge-tagline-text {
        font-size: 11px;
    }

    .bridge-gap-label {
        top: 22%;
        font-size: 9px;
    }

    /* Node ішіндегі мәтіндер */
    .node-letter {
        font-size: 42px;
    }

    .node-title-text {
        font-size: 17px;
    }

    .node-desc {
        font-size: 12.5px;
    }

    .node-emoji {
        font-size: 36px;
    }
}

/* Егер өте кішкентай телефон болса */
@media (max-width: 480px) {
    .bridge-mid {
        height: 120px;
    }

    .bridge-galym-text {
        font-size: 23px;
    }

    .bridge-node {
        padding: 1.4rem 1.2rem;
    }
}

/* ── GOALS ── */
.goals-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.goals-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.goals-section .services-header,
.goals-section .bridge-story,
.goals-section .goals-header,
.goals-section .goals-grid {
  position: relative;
  z-index: 1;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.goal-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.goal-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-card:hover::after {
  transform: scaleX(1);
}

.goal-card:hover {
  background: linear-gradient(135deg, var(--bg3), rgba(108, 92, 231, 0.06));
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(108, 92, 231, 0.18);
  border-color: rgba(108, 92, 231, 0.35);
}

.goal-num {
  font-family: "Manrope", sans-serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -3px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.18), rgba(108, 92, 231, 0.05));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.goal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(162, 155, 254, 0.08));
  border: 0.5px solid rgba(108, 92, 231, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.goal-card:hover .goal-icon {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.4), rgba(162, 155, 254, 0.2));
  transform: scale(1.1) rotate(5deg);
}

.goal-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
  transition: color 0.3s;
}

.goal-card:hover h3 {
  color: var(--accent2);
}

.goal-card > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.goal-values {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goal-values li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.goal-value-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(108, 92, 231, 0.07));
  border: 0.5px solid rgba(108, 92, 231, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s;
}

.goal-card:hover .goal-value-icon {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.35), rgba(108, 92, 231, 0.15));
}

.goal-values li > div:last-child {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.goal-values li strong {
  color: var(--text);
  font-weight: 600;
}


/* ── MOBILE RESPONSIVE ── */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 3rem;
    }
    .nav-links {
        gap: 1.8rem;
    }
    .nav-links a {
        font-size: 12px;
    }
    section {
        padding: 5rem 6vw;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bridge-node { width: 150px; padding: 1.5rem 1rem; }
    .node-emoji  { font-size: 30px; }
    .node-letter { font-size: 44px; }
    .node-title-text { font-size: 15px; }
    .node-desc   { display: none; }
    .bridge-mid  { height: 170px; }
    .bridge-galym-text { font-size: 26px; }
    .featured-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .featured-info {
        padding: 3rem;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Navigation — hamburger drawer */
    nav {
        padding: 0.5rem 1.5rem;
        /* Ensure nav is fully opaque on mobile so scrolled content never bleeds through */
        background: var(--nav-bg);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
    .nav-logo {
        font-size: 22px;
    }
    .nav-hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 280px);
        height: 100vh;
        height: 100dvh;
        background: var(--drawer-bg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-left: 0.5px solid var(--border);
    }
    .nav-links.open {
        right: 0;
    }
    .nav-links a {
        font-size: 16px !important;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 0.5px solid var(--border);
        letter-spacing: 0.04em;
    }
    .nav-links a::after {
        display: none !important;
    }
    
    /* Hero Section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: var(--nav-h, 90px);
        padding-bottom: 2rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .hero-content {
        padding: 1.5rem 5vw 0;
        max-width: 100%;
    }
    /* Stack float cards under hero content instead of overlapping */
    .float-card {
        position: relative;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: calc(50% - 0.4rem);
        display: inline-block;
        margin: 0.5rem 0.25rem 0;
        animation: none;
    }
    .float-card.fc1 { margin-left: 5vw; }
    .float-card.fc2 { margin-right: 5vw; }
    .float-card.fc3 { display: none; }

    /* Scroll hint: move out of the way of controls */
    .scroll-hint {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 1.5rem auto 0;
    }

    /* Controls row: keep below content, not absolutely pinned */
    .ctrl-wrap {
        position: relative;
        bottom: auto;
        right: auto;
        padding: 0 5vw;
        margin-top: 1rem;
        justify-content: flex-start;
    }
    .slide-content {
        bottom: 8vh;
        left: 5vw;
        right: 5vw;
        max-width: 100%;
    }
    .slide h2 {
        font-size: clamp(26px, 5vw, 46px);
        margin-bottom: 0.8rem;
    }
    .slide p {
        font-size: 14px;
        max-width: 100%;
        margin-bottom: 0;
    }
    .slide-btns {
        gap: 0.6rem;
    }
    .btn-hero {
        padding: 0.7rem 1.5rem;
        font-size: 12px;
    }
    .slider-controls {
        bottom: 8vh;
        right: 3vw;
        gap: 0.3rem;
    }
    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .slide-counter {
        display: none;
    }
    
    /* Marquee */
    .marquee-track {
        gap: 2rem;
        animation: marquee 18s linear infinite;
    }
    .marquee-track span {
        font-size: 11px;
    }
    
    /* Sections */
    section {
        padding: 3.5rem 5vw;
    }
    .sec-title {
        font-size: clamp(24px, 5vw, 40px);
    }
    .sec-sub {
        font-size: 14px;
    }
    
    /* Services */
    .services-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .bridge-problem-wrap { flex-direction: column; gap: 0.5rem; }
    .goal-card {
        padding: 1.8rem;
    }
    .goal-num {
        font-size: 44px;
    }
    .svc-card {
        padding: 1.8rem;
    }
    .svc-num {
        font-size: 48px;
        margin-bottom: 1rem;
    }
    .svc-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .svc-card h3 {
        font-size: 18px;
    }
    .svc-card p {
        font-size: 13px;
    }
    
    /* Featured */
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-info {
        padding: 2.5rem;
        min-height: 300px;
    }
    .featured-info .sec-title {
        font-size: clamp(22px, 5vw, 32px);
    }
    .feat-meta {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    /* Gallery */
    .gallery-section {
        padding: 3.5rem 0;
    }
    .gallery-header {
        padding: 0 5vw;
        margin-bottom: 2rem;
    }
    .gallery-scroll {
        padding: 0 5vw 1rem;
    }
    .gal-item {
        width: 280px;
        height: 200px;
    }
    .gallery-nav {
        padding: 1rem 5vw;
    }
    
    /* Featured section padding */
    .featured-section {
        padding: 3.5rem 5vw;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
    .team-grid.row-two {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
        margin: 2rem 0 0;
    }
    .team-card {
        border-radius: 12px;
    }
    .team-avatar {
        height: 160px;
    }
    .avatar-initials {
        width: 64px;
        height: 64px;
        font-size: 22px;
    }
    .team-info h4 {
        font-size: 15px;
    }
    .team-info p {
        font-size: 12px;
    }
    
    /* Testimonials */
    .testi-section {
        padding: 3.5rem 5vw;
    }
    .testi-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 2rem;
    }
    .testi-card {
        padding: 1.5rem;
    }
    .testi-quote {
        font-size: 28px;
        margin-bottom: 0.8rem;
    }
    .testi-text {
        font-size: 14px;
    }
    .testi-author {
        gap: 0.6rem;
        margin-top: 1rem;
    }
    
    /* Footer */
    footer {
        padding: 2.5rem 5vw 1.5rem;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .footer-brand .nav-logo {
        font-size: 24px;
    }
    .footer-brand p {
        font-size: 13px;
    }
    .footer-col h5 {
        font-size: 13px;
        margin-bottom: 0.8rem;
    }
    .footer-col a {
        font-size: 12px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    * {
        scroll-behavior: auto;
    }

    /* Navigation */
    nav {
        padding: 0.5rem 1rem;
        background: var(--nav-bg);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
    .nav-logo {
        font-size: 18px;
    }
    
    /* Hero */
    .hero {
        height: 75vh;
        min-height: 480px;
        padding-top: var(--nav-h, 90px);
    }
    .slide-content {
        bottom: 6vh;
        left: 4vw;
        right: 4vw;
    }
    .slide h2 {
        font-size: clamp(22px, 5.5vw, 34px);
        margin-bottom: 0.6rem;
    }
    .slide p {
        font-size: 13px;
        line-height: 1.65;
        margin-bottom: 0;
    }
    .slide-tag {
        font-size: 9px;
        padding: 0.25rem 0.65rem;
        margin-bottom: 0.8rem;
    }
    .slide-btns {
        gap: 0.4rem;
        flex-direction: column;
    }
    .btn-hero {
        padding: 0.65rem 1.2rem;
        font-size: 11px;
        width: 100%;
        text-align: center;
    }
    .slider-controls {
        bottom: 6vh;
        right: 2vw;
        flex-direction: row;
        gap: 0.3rem;
    }
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .slider-dots {
        bottom: 1.5vh;
    }
    .dot {
        width: 5px;
        height: 5px;
    }
    .dot.active {
        width: 20px;
    }
    
    /* Marquee */
    .marquee-wrap {
        padding: 0.5rem 0;
    }
    .marquee-track {
        gap: 1.5rem;
        animation: marquee 15s linear infinite;
    }
    .marquee-track span {
        font-size: 9px;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 4vw;
    }
    .sec-eyebrow {
        font-size: 9px;
        margin-bottom: 0.6rem;
    }
    .sec-title {
        font-size: clamp(20px, 6vw, 32px);
    }
    .sec-sub {
        font-size: 13px;
        max-width: 100%;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    .svc-card {
        padding: 1.4rem;
    }
    .svc-num {
        font-size: 42px;
        margin-bottom: 0.8rem;
    }
    .svc-card h3 {
        font-size: 16px;
        margin-bottom: 0.6rem;
    }
    .svc-card p {
        font-size: 12px;
    }
    
    /* Featured */
    .featured-info {
        padding: 1.8rem;
        min-height: auto;
    }
    .featured-badge {
        padding: 0.4rem 0.7rem;
        font-size: 10px;
    }
    .feat-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Gallery */
    .gal-item {
        width: 240px;
        height: 180px;
    }
    .gal-caption {
        font-size: 12px;
        padding: 1rem;
    }
    
    /* Featured section */
    .featured-section {
        padding: 2rem 4vw;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .team-grid.row-two {
        grid-template-columns: 1fr;
    }
    .team-avatar {
        height: 140px;
    }
    .avatar-initials {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }
    .team-info {
        padding: 1rem;
    }
    .team-info h4 {
        font-size: 14px;
    }
    .team-info .role {
        font-size: 11px;
    }
    .team-info p {
        font-size: 11px;
    }
    
    /* Testimonials */
    .testi-grid {
        grid-template-columns: 1fr;
    }
    .testi-card {
        padding: 1.2rem;
    }
    .testi-quote {
        font-size: 24px;
        margin-bottom: 0.6rem;
    }
    .testi-text {
        font-size: 13px;
    }
    
    /* Footer */
    footer {
        padding: 2rem 4vw 1rem;
    }
    .footer-brand .nav-logo {
        font-size: 20px;
    }
    .footer-brand p {
        font-size: 12px;
        max-width: 100%;
    }
    .footer-col h5 {
        font-size: 12px;
        margin-bottom: 0.6rem;
    }
    .footer-col ul {
        gap: 0.5rem;
    }
    .footer-col a {
        font-size: 11px;
    }
    .footer-bottom {
        font-size: 10px;
    }
}