/* ==========================================================================
   IceBrook AI — Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --navy: #0A1F44;
    --ice-blue: #A8C3D9;
    --ice-blue-light: #c5d9e8;
    --red: #E74C3C;
    --white: #FFFFFF;
    --light-grey: #F4F6F9;
    --text-grey: #6B7280;
    --text-dark: #1F2937;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-light {
    background: var(--light-grey);
}

.section-dark {
    background: var(--navy);
    color: var(--white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--red);
    margin: 1rem auto 0;
}

.section-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-grey);
    max-width: 700px;
    margin: 0 auto 1rem;
    font-weight: 300;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 31, 68, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

#nav-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    font-weight: 400;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(168, 195, 217, 0.15);
}

/* Hamburger Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--ice-blue);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--ice-blue);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Hamburger Animation */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero.jpeg') center center / cover no-repeat;
    z-index: 1;
}

/* Dark overlay for text legibility */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 31, 68, 0.4) 0%,
        rgba(10, 31, 68, 0.5) 50%,
        rgba(10, 31, 68, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--ice-blue);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero-scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--ice-blue);
    border-radius: 50%;
    color: var(--ice-blue);
    animation: bounce 2s infinite;
}

.hero-scroll:hover {
    background: var(--ice-blue);
    color: var(--navy);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* --------------------------------------------------------------------------
   Pillars (What We Do)
   -------------------------------------------------------------------------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pillar {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(10, 31, 68, 0.08);
    transition: var(--transition);
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(10, 31, 68, 0.12);
}

.pillar-icon {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.pillar-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pillar:hover .pillar-icon img {
    transform: scale(1.05);
}

.pillar-title {
    margin-bottom: 1rem;
}

.pillar-text {
    color: var(--text-grey);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Approach Section
   -------------------------------------------------------------------------- */
.approach-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(168, 195, 217, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 195, 217, 0.08) 0%, transparent 40%);
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

.approach-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ice-blue);
    margin-bottom: 1.5rem;
}

.approach-main p,
.approach-detail p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.capabilities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(168, 195, 217, 0.2);
    position: relative;
}

.capability {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(168, 195, 217, 0.1);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--ice-blue);
}

.capability i {
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    color: var(--text-grey);
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: 2rem 0;
    background: var(--navy);
    text-align: center;
    border-top: 1px solid rgba(168, 195, 217, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-link i {
    margin-right: 0.4rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Parallax
   -------------------------------------------------------------------------- */
.parallax-section {
    will-change: transform;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo img {
        height: 32px;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        padding-top: 5rem;
        background: var(--navy);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 1.125rem;
        padding: 0.75rem 1.5rem;
    }

    /* Mobile Menu Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 31, 68, 0.8);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .approach-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .capabilities {
        gap: 1rem;
    }

    .capability {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .pillars {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pillar {
        margin-bottom: 0;
        transform: none !important;
    }

    .pillar-icon {
        aspect-ratio: 16 / 10;
    }

    [data-parallax] {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .pillar {
        padding: 1.5rem;
    }

    .hero-scroll {
        width: 40px;
        height: 40px;
    }
}
