/* ===============================
   GFCL - Modern IIG Website
   Dark + Light Mode | BN + EN
   =============================== */

:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-card-hover: #243044;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --border: #1e293b;
    --success: #10b981;
    --gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --header-bg: rgba(10, 14, 23, 0.9);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --border: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    gap: 10px;
}

.logo { flex-shrink: 0; }
.logo img {
    height: 46px;
    width: auto;
    max-width: 100%;
    aspect-ratio: 900 / 304;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.35));
    transition: opacity 0.3s, transform 0.3s;
}
.logo:hover img { transform: scale(1.03); }
[data-theme="light"] .logo img { filter: none; }

.logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: none;
}

[data-theme="light"] .logo-dark {
    display: block;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-toggle,
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-toggle {
    width: auto;
    padding: 0 12px;
}

.lang-toggle:hover,
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-portal {
    background: var(--bg-card);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 16px;
}

.btn-portal:hover {
    background: var(--accent);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ========== Animations ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(59,130,246,0.2); }
}

@keyframes network-line {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        var(--bg-primary);
    z-index: 0;
}

/* Hi-tech grid background */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

/* Floating tech circles */
.tech-orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 0;
}

.tech-orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
}

.tech-orb-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 8%;
    animation: float 5s ease-in-out infinite reverse;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
}

.tech-orb-3 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 25%;
    animation: float 7s ease-in-out infinite;
    border-color: rgba(139, 92, 246, 0.15);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 30px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========== Sections ========== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.05), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
    background: var(--bg-card-hover);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 18px;
    transition: all 0.3s;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Why Section */
.why-section {
    background: var(--bg-secondary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.why-card {
    text-align: center;
    padding: 30px 20px;
}

.why-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA */
.cta-section {
    padding: 60px 0;
}

.cta-box {
    background: var(--gradient);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.cta-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-box .btn-primary {
    background: white;
    color: #2563eb;
}

.cta-box .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.cta-box .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

/* ========== Page Hero (Inner Pages) ========== */
.page-hero {
    padding: 140px 0 60px;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
        var(--bg-primary);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Section */
.content-section {
    padding: 60px 0 80px;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    position: relative;
    box-shadow:
        0 0 8px color-mix(in srgb, var(--accent) 35%, transparent),
        0 0 20px color-mix(in srgb, var(--accent) 18%, transparent),
        0 0 40px color-mix(in srgb, var(--accent) 8%, transparent),
        inset 0 0 20px color-mix(in srgb, var(--accent) 4%, transparent);
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.3s ease;
}
.content-card:hover {
    border-color: var(--accent);
    box-shadow:
        0 0 12px color-mix(in srgb, var(--accent) 55%, transparent),
        0 0 28px color-mix(in srgb, var(--accent) 28%, transparent),
        0 0 50px color-mix(in srgb, var(--accent) 12%, transparent),
        inset 0 0 24px color-mix(in srgb, var(--accent) 6%, transparent);
    transform: translateY(-2px);
}

.content-card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.content-card p, .content-card li {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.content-card ul {
    padding-left: 20px;
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.footer-logo-link {
    display: inline-block;
    margin-bottom: 14px;
}
.footer-logo-img {
    height: 54px;
    width: auto;
    max-width: 100%;
    aspect-ratio: 900 / 304;
    object-fit: contain;
}
.footer-logo-link .logo-dark { display: none; }
[data-theme="light"] .footer-logo-link .logo-light { display: none; }
[data-theme="light"] .footer-logo-link .logo-dark { display: block; }

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: var(--accent);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--accent);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ========== Responsive ========== */
@media (max-width: 1100px) {
    .nav-list { gap: 2px; }
    .nav-link { padding: 8px 9px; font-size: 0.85rem; }
    .btn-portal { padding: 8px 12px; font-size: 0.85rem; }
}

@media (max-width: 1024px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: 16px 20px 24px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background: var(--bg-card);
        border: 1px solid var(--border);
    }

    .btn-portal span {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-container {
        height: 64px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cta-box {
        padding: 36px 18px;
    }

    .container {
        padding: 0 16px;
    }

    .logo img {
        height: 36px;
        max-width: 130px;
    }
    .footer-logo-img { height: 44px; }

    .header-actions {
        gap: 6px;
    }

    .lang-toggle, .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }

    .lang-toggle {
        width: auto;
        padding: 0 10px;
    }

    .btn-portal {
        padding: 7px 10px;
    }
}

/* Reduce heavy effects on small screens for performance */
@media (max-width: 768px) {
    .scan-line, .tech-orb::after, .stat-card::before, .btn-primary::after {
        animation: none !important;
    }
    .hero-title {
        animation: none;
        background-position: 0% 50%;
    }
}


/* =====================================================
   TOOLS DROPDOWN
   ===================================================== */
.nav-dropdown { position: relative; }
.nav-dd-btn {
    background: none; border: none; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 7px;
}
.nav-dd-btn .dd-caret { font-size: .65rem; transition: transform .25s; }
.nav-dropdown.open .dd-caret { transform: rotate(180deg); }
.nav-dropdown.open > .nav-dd-btn { color: var(--accent); background: var(--accent-glow); }
.dropdown-menu {
    position: absolute; top: calc(100% + 12px); right: 0; min-width: 230px;
    list-style: none; padding: 8px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow), 0 0 30px var(--accent-glow);
    backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97);
    transform-origin: top right;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 1100;
}
.dropdown-menu::before {
    content: ''; position: absolute; top: -6px; right: 28px; width: 12px; height: 12px;
    background: var(--bg-card); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
.nav-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu li { opacity: 0; transform: translateX(-8px); }
.nav-dropdown.open .dropdown-menu li { animation: ddItemIn .35s ease forwards; }
.nav-dropdown.open .dropdown-menu li:nth-child(1) { animation-delay: .04s; }
.nav-dropdown.open .dropdown-menu li:nth-child(2) { animation-delay: .09s; }
.nav-dropdown.open .dropdown-menu li:nth-child(3) { animation-delay: .14s; }
.nav-dropdown.open .dropdown-menu li:nth-child(4) { animation-delay: .19s; }
@keyframes ddItemIn { to { opacity: 1; transform: none; } }
.dropdown-menu a {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
    color: var(--text-secondary); text-decoration: none; font-size: .92rem; font-weight: 500;
    position: relative; overflow: hidden; transition: all .2s;
}
.dropdown-menu a i {
    width: 32px; height: 32px; border-radius: 9px; background: var(--accent-glow); color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; transition: all .25s;
}
.dropdown-menu a:hover, .dropdown-menu a.dd-active { background: var(--accent-glow); color: var(--accent); padding-left: 18px; }
.dropdown-menu a:hover i { background: var(--accent); color: #fff; box-shadow: 0 0 14px var(--accent-glow); }

/* =====================================================
   HERO — HI-TECH EXTRAS
   ===================================================== */
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.scan-line {
    position: absolute; left: 0; right: 0; height: 120px; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(59,130,246,.10), transparent);
    animation: scan 7s linear infinite;
}
@keyframes scan { from { top: -120px; } to { top: 100%; } }
.hero-title { background-size: 200% 200%; animation: gradShift 8s ease-in-out infinite; }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.tech-orb::after {
    content: ''; position: absolute; inset: -1px; border-radius: 50%;
    border: 1px dashed rgba(59,130,246,.35); animation: spin-slow 22s linear infinite;
}
.stat-card { position: relative; overflow: visible; }
.stat-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--accent) 85%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: borderSpin 5s linear infinite; pointer-events: none;
    z-index: 0;
}
.stat-card > * { position: relative; z-index: 1; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes borderSpin { to { --ang: 360deg; } }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); animation: btnShine 4s ease-in-out infinite;
}
@keyframes btnShine { 0%,60% { left: -120%; } 100% { left: 160%; } }

/* =====================================================
   SLIDING BANNER
   ===================================================== */
.slider-section { padding: 0 0 50px; position: relative; z-index: 2; margin-top: -40px; }
.slider {
    position: relative; border-radius: 22px; overflow: hidden; height: 420px;
    border: 1px solid var(--border); box-shadow: var(--shadow), 0 0 50px var(--accent-glow);
    background: #050912;
}
.slides { position: absolute; inset: 0; }
.slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    display: flex; align-items: center; padding: 0 70px;
    opacity: 0; visibility: hidden; transform: scale(1.06);
    transition: opacity .9s ease, transform 6s ease, visibility .9s;
}
.slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(5,9,18,.88) 0%, rgba(5,9,18,.55) 45%, transparent 75%);
}
.slide.active { opacity: 1; visibility: visible; transform: scale(1); z-index: 1; }
.slide-content { position: relative; max-width: 560px; color: #fff; }
.slide-tag {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px;
    background: rgba(59,130,246,.18); border: 1px solid rgba(96,165,250,.5); color: #93c5fd;
    font-size: .78rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px;
}
.slide-title { font-size: 2.6rem; font-weight: 800; line-height: 1.15; margin-bottom: 12px; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.slide-sub { font-size: 1.1rem; color: #cbd5e1; }
.slide .slide-tag, .slide .slide-title, .slide .slide-sub { opacity: 0; transform: translateY(26px); }
.slide.active .slide-tag { animation: fadeInUp .7s .25s ease forwards; }
.slide.active .slide-title { animation: fadeInUp .7s .45s ease forwards; }
.slide.active .slide-sub { animation: fadeInUp .7s .65s ease forwards; }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: .95rem;
    background: rgba(10,14,23,.55); color: #fff; border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(8px); transition: all .25s;
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.slider-arrow.prev { left: 16px; } .slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; bottom: 22px; left: 70px; z-index: 3; display: flex; gap: 8px; }
.slider-dots button {
    width: 10px; height: 10px; border-radius: 10px; border: none; cursor: pointer;
    background: rgba(255,255,255,.35); transition: all .3s;
}
.slider-dots button.active { width: 32px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.slider-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); z-index: 3; }
.slider-progress span { display: block; height: 100%; width: 0; background: var(--gradient); }

/* =====================================================
   TECH TICKER
   ===================================================== */
.ticker {
    overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: var(--bg-secondary); padding: 14px 0; position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 46px; width: max-content; animation: tickerMove 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { color: var(--text-secondary); font-weight: 700; letter-spacing: 2px; font-size: .85rem; white-space: nowrap; }
.ticker-track i { color: var(--accent); font-size: .45rem; margin-right: 10px; vertical-align: middle; animation: blink 2s ease-in-out infinite; }
@keyframes tickerMove { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .2; } }

/* =====================================================
   SCROLL REVEAL + 3D TILT
   ===================================================== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease, border-color .3s, box-shadow .3s, background .3s; }
.reveal.in { opacity: 1; transform: none; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.reveal.in.tilt { transition: transform .15s ease-out, opacity .7s ease, border-color .3s, box-shadow .3s, background .3s; }
.why-card { border-radius: 16px; transition: background .3s, box-shadow .3s; }
.why-card:hover { background: var(--bg-card); box-shadow: var(--shadow); }
.why-card i { transition: transform .4s; }
.why-card:hover i { transform: translateY(-4px) scale(1.15); text-shadow: 0 0 18px var(--accent); }

/* =====================================================
   RESPONSIVE (new parts)
   ===================================================== */
@media (max-width: 1024px) {
    .nav { max-height: calc(100vh - 70px); overflow-y: auto; }
    .nav-dd-btn { width: 100%; justify-content: space-between; }
    .dropdown-menu {
        position: static; min-width: 0; box-shadow: none; border: none; background: transparent; backdrop-filter: none;
        max-height: 0; padding: 0 0 0 10px; overflow: hidden; opacity: 1; visibility: visible; transform: none;
        transition: max-height .35s ease, padding .35s;
    }
    .dropdown-menu::before { display: none; }
    .nav-dropdown.open .dropdown-menu { max-height: 320px; padding: 6px 0 6px 10px; }
}
@media (max-width: 768px) {
    .slider { height: 360px; }
    .slide { padding: 0 28px; }
    .slide-title { font-size: 1.7rem; }
    .slide-sub { font-size: .95rem; }
    .slider-dots { left: 28px; }
    .slider-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
    .ticker-track { animation: none; }
}

/* =====================================================
   PER-PAGE ANIMATED BACKGROUND (assets/js/bg-fx.js)
   ===================================================== */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(59,130,246,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,.05) 1px, transparent 1px);
    background-size: 50px 50px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 80%);
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 80%);
}
.bg-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(59,130,246,.2); }
.bg-orb.o1 { width: 320px; height: 320px; top: 8%; right: 4%; background: radial-gradient(circle, rgba(59,130,246,.08), transparent 70%); animation: float 6s ease-in-out infinite; }
.bg-orb.o2 { width: 210px; height: 210px; bottom: 10%; left: 5%; border-color: rgba(139,92,246,.2); background: radial-gradient(circle, rgba(139,92,246,.08), transparent 70%); animation: float 5s ease-in-out infinite reverse; }
.bg-orb::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px dashed rgba(59,130,246,.3); animation: spin-slow 24s linear infinite; }
.bg-scan { position: absolute; left: 0; right: 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(59,130,246,.08), transparent); animation: scan 8s linear infinite; }
[data-theme="light"] .bg-grid { background-image: linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px); }
/* let the animated background show through the inner-page hero */
.page-hero { background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,.12) 0%, transparent 60%); }
@media (max-width: 700px) { .bg-orb.o1 { width: 200px; height: 200px; } .bg-orb.o2 { display: none; } }

/* =====================================================
   HOME — HERO V2 (left text + logo, right slider, stats row)
   ===================================================== */
.hero.hero-v2 { display: block; min-height: 0; padding: 110px 0 0; }
.hero-wide { position: relative; z-index: 1; width: 100%; max-width: 1920px; margin: 0 auto; padding: 0 clamp(20px, 3.6vw, 70px); }
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 40px; align-items: center; }
.hero-v2 .hero-title { font-size: clamp(2.2rem, 3.4vw, 3.3rem); }
.hero-v2 .hero-subtitle { max-width: 480px; }
.hero-mark {
    position: relative;
    margin-top: 42px;
    width: 280px;
    max-width: 100%;
    opacity: 0.42;
    pointer-events: none;
    filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.25));
}
.hero-mark img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    z-index: 1;
}
.hero-mark-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 168px;
    height: 168px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.06),
                0 0 28px rgba(59, 130, 246, 0.18);
}
.hero-mark-ring::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px dashed rgba(59, 130, 246, 0.28);
    animation: spin-slow 28s linear infinite;
}
[data-theme="light"] .hero-mark {
    opacity: 0.55;
    filter: drop-shadow(0 4px 14px rgba(37, 99, 235, 0.15));
}
[data-theme="light"] .hero-mark-ring {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.05),
                0 0 22px rgba(37, 99, 235, 0.12);
}
.hero-slider-wrap { min-width: 0; }
.hero-v2 .slider { height: 430px; border-radius: 22px; }
.hero-v2 .slide { padding: 0 64px; }
.hero-v2 .slide-content { max-width: 70%; }
.hero-v2 .slide-title { font-size: clamp(1.7rem, 2.4vw, 2.5rem); }
.hero-v2 .slider-dots { left: 64px; }

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: clamp(12px, 2vw, 24px);
    margin-top: 48px;
    max-width: 560px;
    width: 100%;
}
.hero-stats-row .stat-card {
    padding: 22px 14px 18px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg-card) 90%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: visible;
}
.hero-stats-row .stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 0 36px var(--accent-glow);
}
.hero-stats-row .stat-number {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 5px;
    white-space: nowrap;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stats-row .stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.92;
    white-space: nowrap;
}
.hero-stats-row .asn-number {
    font-size: clamp(1.15rem, 1.9vw, 1.45rem) !important;
    letter-spacing: -0.015em;
}

.hero-tagline { position: relative; z-index: 1; text-align: center; padding: 70px 20px 40px; }
.hero-tagline h2 {
    display: inline-block; font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-v2 .ticker { position: relative; z-index: 1; }

/* Services: 3 on top row, 2 centred below */
.services-preview .services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.services-preview .service-card { flex: 0 1 calc((100% - 48px) / 3); min-width: 260px; }

@media (max-width: 1100px) {
    .hero-main { gap: 28px; }
    .hero-v2 .slide { padding: 0 40px; }
    .hero-v2 .slider-dots { left: 40px; }
}

@media (max-width: 1024px) {
    .hero.hero-v2 { padding-top: 90px; }
    .hero-main { grid-template-columns: 1fr; gap: 32px; }
    .hero-v2 .hero-text { text-align: center; }
    .hero-v2 .hero-subtitle { margin: 0 auto 28px; }
    .hero-mark { margin: 28px auto 0; width: 240px; }
    .hero-mark-ring { width: 148px; height: 148px; }
    .hero-stats-row { margin: 36px auto 0; max-width: 480px; }
    .hero-tagline { padding-top: 50px; }
}

@media (max-width: 768px) {
    .hero-v2 .slider { height: 300px; }
    .hero-v2 .slide { padding: 0 22px; }
    .hero-v2 .slide-content { max-width: 100%; }
    .hero-v2 .slider-dots { left: 22px; }
    .hero-mark { width: 200px; opacity: 0.38; }
    .hero-mark-ring { width: 122px; height: 122px; }
    .services-preview .service-card { flex-basis: 100%; }
    .hero-stats-row { gap: 10px; max-width: 420px; }
    .hero-stats-row .stat-card {
        padding: 18px 10px 16px;
        min-height: 98px;
        border-radius: 14px;
    }
    .hero-stats-row .stat-number { font-size: 1.25rem; }
    .hero-stats-row .asn-number { font-size: 1.05rem !important; }
    .hero-stats-row .stat-label { font-size: 0.7rem; }
}

@media (max-width: 520px) {
    .hero-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-v2 .slider { height: 260px; }
    .hero-v2 .slide-title { font-size: 1.35rem; }
    .hero-stats-row .stat-card { min-height: 92px; }
    .hero-stats-row .stat-number { font-size: 1.35rem; }
    .hero-stats-row .asn-number { font-size: 1.25rem !important; }
}

/* Partners page lists */
.partner-card h2 i { margin-right: 8px; }
.partner-sub { font-size: 1.05rem; margin: 18px 0 8px; color: var(--text-primary); }
.partner-list { list-style: none; padding-left: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 20px; margin-top: 10px; }
.partner-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 0 !important; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-secondary); transition: border-color .2s, transform .2s, box-shadow .2s; }
.partner-list li:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.partner-list i { color: var(--accent); font-size: .9rem; flex-shrink: 0; }
.partner-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.partner-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.85rem;
}

/* ---------- Logo: responsive on every display ---------- */
@media (min-width: 1600px) { .logo img { height: 52px; } .footer-logo-img { height: 62px; } }
@media (max-width: 1100px) and (min-width: 769px) { .logo img { height: 40px; } }
@media (max-width: 380px) { .logo img { height: 32px; max-width: 110px; } }

/* Hero watermark logo: navy logo was invisible on dark background */
.hero-mark { opacity: 0.8; }
.hero-mark img { filter: brightness(0) invert(1); }
[data-theme="light"] .hero-mark { opacity: 0.85; }
[data-theme="light"] .hero-mark img { filter: none; }
