@import 'variables.css';

/* =========================================
   BASE STYLES
========================================= */

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.service-card {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.service-icon {
    font-size: 4rem;
    /* Increased size */
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.service-card p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.service-link {
    color: var(--color-highlight);
    font-weight: 600;
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.site-footer {
    padding: 4rem 0 2rem;
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    color: var(--color-text-secondary);
    margin-top: var(--spacing-sm);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

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

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

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

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

/* General Responsive Rules */
img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

/* Neural Background Canvas */
#neural-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--color-bg-secondary), #0f172a);
}

.neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#neural-section .container {
    position: relative;
    z-index: 1;
}

/* CTA Ice Background */
.cta-ice {
    background-image: url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.cta-ice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    /* Dark overlay for readability */
    z-index: 1;
}

.cta-ice .container {
    position: relative;
    z-index: 2;
}

.cta-ice h2,
.cta-ice p {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* =========================================
   RESPONSIVE STYLES (Mobile)
========================================= */
@media (max-width: 768px) {

    h2,
    .section-title {
        margin-top: 60px;
        /* Mobile spacing */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-bottom: 1px solid var(--color-border);
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 0.5rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .split-layout {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }

    .footer-brand .logo {
        justify-content: center;
        margin-bottom: 1rem;
    }

    /* Logo adjustments for mobile */
    .logo img {
        height: 40px;
    }

    /* Ensure mobile menu positioning accounts for larger logo */
    .site-header {
        padding: 0.8rem 0;
    }

    /* Success Case Card Mobile */
    .success-case-card {
        flex-direction: column;
        padding: 20px;
    }

    .case-header {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .case-body.grid-3-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .logo img {
        height: 36px;
    }
}

/* Footer Logo - Larger size for footer specifically */
.site-footer .logo img {
    height: 55px;
}

/* Footer Logo responsive adjustments */
@media (max-width: 768px) {

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

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

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: none;
        cursor: pointer;
    }

    /* General Responsive Rules */
    img,
    video,
    iframe,
    svg {
        max-width: 100%;
        height: auto;
    }

    /* Split Layout */
    .split-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
        align-items: center;
    }

    /* Neural Background Canvas */
    #neural-section {
        position: relative;
        overflow: hidden;
        background: linear-gradient(to bottom, var(--color-bg-secondary), #0f172a);
    }

    .neural-canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        pointer-events: none;
    }

    #neural-section .container {
        position: relative;
        z-index: 1;
    }

    /* CTA Ice Background */
    .cta-ice {
        background-image: url('../images/cta-bg.jpg');
        background-size: cover;
        background-position: center center;
        background-attachment: fixed;
        position: relative;
        color: white;
    }

    .cta-ice::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.7);
        /* Dark overlay for readability */
        z-index: 1;
    }

    .cta-ice .container {
        position: relative;
        z-index: 2;
    }

    .cta-ice h2,
    .cta-ice p {
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    /* =========================================
   RESPONSIVE STYLES (Mobile)
========================================= */
    @media (max-width: 768px) {

        h2,
        .section-title {
            margin-top: 60px;
            /* Mobile spacing */
        }

        .hero h1 {
            font-size: 2.5rem;
        }

        .mobile-menu-toggle {
            display: block;
        }

        .nav-menu {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(10px);
            padding: 1rem;
            border-bottom: 1px solid var(--color-border);
            gap: 1rem;
        }

        .nav-menu.active {
            display: flex;
        }

        .nav-menu li {
            width: 100%;
            text-align: center;
        }

        .nav-link {
            display: block;
            padding: 0.5rem 0;
        }

        .footer-grid {
            grid-template-columns: 1fr;
            gap: var(--spacing-lg);
        }

        .split-layout {
            grid-template-columns: 1fr !important;
            gap: var(--spacing-md);
        }

        .footer-brand .logo {
            justify-content: center;
            margin-bottom: 1rem;
        }

        /* Logo adjustments for mobile */
        .logo img {
            height: 40px;
        }

        /* Ensure mobile menu positioning accounts for larger logo */
        .site-header {
            padding: 0.8rem 0;
        }

        /* Success Case Card Mobile */
        .success-case-card {
            flex-direction: column;
            padding: 20px;
        }

        .case-header {
            width: 100%;
            text-align: center;
            margin-bottom: 20px;
        }

        .case-body.grid-3-columns {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }

    /* Extra small devices */
    @media (max-width: 480px) {
        .logo img {
            height: 36px;
        }
    }

    /* Footer Logo - Larger size for footer specifically */
    .site-footer .logo img {
        height: 55px;
    }

    /* Footer Logo responsive adjustments */
    @media (max-width: 768px) {
        .site-footer .logo img {
            height: 50px;
        }
    }

    @media (max-width: 480px) {
        .site-footer .logo img {
            height: 45px;
        }
    }

    /* Team Avatar Placeholder */
    .team-avatar-placeholder {
        width: 100px;
        height: 100px;
        background-color: var(--color-bg-secondary);
        /* Using variable for consistency */
        color: var(--color-accent);
        /* Using variable for consistency */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        font-weight: 700;
        margin: 0 auto 20px;
        /* Centered and bottom margin */
        border: 2px solid var(--color-border);
    }