/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-blue: #0066ff;
    --dark-bg: #000000;
    --dark-bg-secondary: #0a0e1a;
    --dark-bg-tertiary: #0f1729;
    --dark-blue: #1a2744;
    --text-light: #e0e6ed;
    --text-muted: #8b95a8;
    --border-color: #1e2a42;
    --border-glow: #00d4ff;
    --shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 212, 255, 0.25);
    --glow: 0 0 20px rgba(0, 212, 255, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
}

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

/* Navigation */
.navbar {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
}

/* Solid state (applied after scrolling or on non-hero pages) */
.navbar.solid {
    background: rgba(10, 14, 26, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(0, 212, 255, 0.12);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    gap: 1rem;
}

.logo-link { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.logo h1 {
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: 800;
    letter-spacing: 0.6px;
    margin: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.navbar.solid .logo h1 {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Desktop nav: pill-style links */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-menu li {
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

/* icons inside links */
.nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -2px;
    display: inline-block;
    color: currentColor;
}

.nav-text { vertical-align: middle; }

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 0.6rem 0.9rem;
    border-radius: 9999px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.98rem;
}

.nav-link:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 102, 255, 0.2));
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), inset 0 0 20px rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* keep a subtle focus for keyboard users */
.nav-link:focus {
    outline: 2px solid rgba(0, 212, 255, 0.5);
    outline-offset: 2px;
    border-radius: 8px;
}

/* CTA (desktop) */
.nav-actions { display: flex; align-items: center; margin-left: 12px; }
.nav-cta { padding: 8px 14px; border-radius: 9999px; text-decoration: none; font-weight: 700; display: inline-block; }
.nav-actions .nav-cta { background: linear-gradient(135deg, var(--primary-color), var(--accent-blue)); color: var(--dark-bg); box-shadow: 0 0 30px rgba(0, 212, 255, 0.4); border: 1px solid var(--primary-color); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--glow), var(--shadow-lg); }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: transform 0.28s ease, opacity 0.2s ease;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
} 

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000000 0%, #0a0e1a 50%, #0f1729 100%);
    color: var(--text-light);
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    transform: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 10, 20, 0.5);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    padding: 60px 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

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

/* Buttons */
.btn {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow), var(--shadow-lg);
    border-color: var(--primary-color);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--dark-bg-secondary);
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-color), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-media img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: block;
    border: 1px solid var(--border-color);
}

/* Numbers section */
.numbers {
    padding: 80px 0;
    background: var(--dark-bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.numbers-grid,
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.3);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--dark-bg-secondary);
    border-top: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--dark-bg-tertiary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 212, 255, 0.3);
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-muted);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--dark-bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--dark-bg-secondary);
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: var(--dark-bg);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    border-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.8;
}

/* ----------------------------
   Responsive / Mobile rules
   ---------------------------- */
@media (max-width: 768px) {
    /* show toggle and use an off-canvas panel for mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: relative;
    }

    /* Off-canvas mobile navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(360px, 85%);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 3.5rem 1.25rem;
        background: linear-gradient(180deg, rgba(10, 14, 26, 0.98), rgba(15, 23, 41, 0.98));
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 212, 255, 0.2);
        transform: translateX(110%);
        transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 1001;
        border-left: 1px solid var(--border-glow);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* animate items in with a small stagger */
    body.menu-open .nav-menu li { opacity: 1; transform: none; }
    body.menu-open .nav-menu li:nth-child(2) { transition-delay: 0.04s; }
    body.menu-open .nav-menu li:nth-child(3) { transition-delay: 0.08s; }
    body.menu-open .nav-menu li:nth-child(4) { transition-delay: 0.12s; }
    body.menu-open .nav-menu li:nth-child(5) { transition-delay: 0.16s; }
    body.menu-open .nav-menu li:nth-child(6) { transition-delay: 0.20s; }

    /* mobile-only header inside the off-canvas */
    .mobile-nav-header { display: block; padding-bottom: 0.75rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); }
    .mobile-nav-brand { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
    .mobile-close { background: none; border: none; font-size: 1.5rem; color: var(--text-light); cursor: pointer; padding: 6px; }
    .mobile-close:focus { outline: 2px solid rgba(0, 212, 255, 0.5); border-radius: 6px; }

    /* When open, slide in and lock body */
    body.menu-open .nav-menu {
        transform: translateX(0);
    }
    body.menu-open {
        overflow: hidden;
    }

    .nav-menu .nav-link {
        padding: 0.85rem 1rem;
        margin: 0.25rem 0;
        border-radius: 8px;
        display: block;
        color: var(--text-light);
        font-weight: 600;
        font-size: 1.05rem;
    }

    .nav-menu .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
        color: var(--primary-color);
    }

    .nav-menu .nav-link.active {
        background: rgba(0, 212, 255, 0.2);
        color: var(--primary-color);
        border: 1px solid rgba(0, 212, 255, 0.3);
    }

    /* make desktop CTA hidden on mobile; show mobile CTA inside the panel */
    .nav-actions { display: none; }
    .nav-cta-mobile { display: block; }
    .nav-cta { width: 100%; text-align: center; }

    /* dim the page behind the off-canvas */
    .mobile-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 1000;
    }
    body.menu-open .mobile-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    /* keep other mobile layout tweaks */
    .hero {
        padding: 80px 0;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content .btn {
        display: block;
        width: min(280px, 100%);
        margin: 0.5rem auto;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .numbers-grid,
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 10px 20px;
    }

    /* Mobile menu toggle X animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .nav-menu {
        right: 10px;
        width: calc(100% - 20px);
    }

    .stat-number {
        font-size: 2rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

