:root {
    --bg-color: #030712;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #00f3ff;
    --primary-dim: rgba(0, 243, 255, 0.1);
    --secondary: #ff6b00;
    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --font-head: 'Michroma', sans-serif;
    --font-body: 'Inter', sans-serif;

    --content-width: 1280px;
    --box-padding: max(5%, calc((100% - var(--content-width)) / 2));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    /* padding: 1.2rem 5%; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--card-border);
    padding: 1.2rem var(--box-padding);
}


/* Update Logo for Anchor Tag */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-decoration: none;
    /* Remove underline */
    color: var(--text-main);
    /* Inherit color */
    cursor: pointer;
}

/* Floating Buttons */
.floating-btns {
    z-index: 99;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 98;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-top:hover {
    background: var(--primary);
    color: #000;
}

/* Custom WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 13px;
    font-weight: bold;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.logo-icon {
    width: 35px;
    height: 35px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px var(--primary-dim);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-inner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    border-bottom-color: transparent;
    transform: rotate(-45deg);
}

.menu-toggle {
    display: none;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-dim);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    border: 1px solid var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--primary) !important;
    transition: all 0.3s;
}

.btn-nav:hover {
    background: var(--primary);
    color: #000 !important;
    box-shadow: 0 0 20px var(--primary-dim);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    /* Offset for fixed navbar */
    display: flex;
    align-items: center;
    padding-left: var(--box-padding);
    padding-right: var(--box-padding);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, var(--primary-dim) 0%, transparent 60%);
    opacity: 0.5;
    z-index: -1;
}

/* Desktop: 2 Column Layout */
.hero-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Text wider than visual */
    align-items: center;
    gap: 2rem;
}

.hero-content {
    z-index: 2;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
}

.cyber-shield {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 20px var(--primary-dim));
}

.spin-ring {
    transform-origin: 100px 110px;
    animation: spin 10s linear infinite;
}

.pulse-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.overline {
    color: var(--secondary);
    font-family: var(--font-head);
    letter-spacing: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-head);
    font-size: 4.5rem;
    /* Slightly reduced for better fit */
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 2rem;
}

.hero-title span {
    display: block;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Mobile & Tablet Optimizations */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        /* Stack vertically */
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 2;
        /* Visual first on mobile? Or text first? Let's keep Content first usually better for SEO, but Visual first looks cooler. Let's keep Content First for now. */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        order: 1;
        /* Actually, let's put visual below title on mobile, or just hide/scale it? Let's put Visual SECOND (default order). */
        /* margin-top: -2rem; Removed negative margin to prevent overlap */
        margin-top: 2rem;
        /* Added positive spacing */
    }

    .cyber-shield {
        /* max-width: 220px; Restored size (commented out reduction) */
        max-width: 100%;
        /* Ensure it fits container but doesn't force small size */
        height: auto;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 102;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: var(--primary);
        border-radius: 3px;
        transition: all 0.3s;
    }

    /* Mobile Nav Slide-out */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 70%;
        height: 100vh;
        background: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.4s ease-in-out;
        z-index: 101;
        border-left: 1px solid var(--card-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

}

.btn-primary {
    background: var(--primary);
    color: #000;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-dim);
}

.btn-secondary {
    border: 1px solid var(--card-border);
    color: var(--text-main);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Services Section */
.services {
    padding: 8rem var(--box-padding);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-head);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.line-dec {
    width: 60px;
    height: 4px;
    background: var(--secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 5rem 5%;
    background: linear-gradient(180deg, var(--bg-color) 0%, #060e1f 100%);
    display: flex;
    justify-content: center;
}

.about-container {
    max-width: 1200px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.4);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
}

.about-text h2 {
    font-family: var(--font-head);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .number {
    font-family: var(--font-head);
    font-size: 4rem;
    color: var(--primary);
    font-weight: 900;
}

.stat-item .label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    padding: 8rem 5%;
    display: flex;
    justify-content: center;
}

.contact-box {
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
    padding: 4rem;
    border-radius: 30px;
    width: 100%;
    max-width: 900px;
    border: 1px solid var(--card-border);
}

.contact-box h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.address {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-box .btn-primary.large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
}

.phone-sub {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer {
    padding: 2rem var(--box-padding);
    border-top: 1px solid var(--card-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive Extra for About/Stats */
@media (max-width: 768px) {
    .about-container {
        padding: 2rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }
}