/* ==================== VARIABLES ==================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light-gray);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
}

.nav-logo-text {
    color: var(--white);
    transition: color 0.3s ease;
}

.nav-logo:hover .nav-logo-text {
    color: var(--secondary);
}

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

.nav-item {
    margin: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    scroll-margin-top: 80px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, border-color 0.3s;
}

.stat:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-detail {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* ==================== ALIGNMENT SECTION ==================== */
.alignment-section {
    padding: 4rem 2rem;
}

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

.alignment-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.6s ease;
    min-height: 60vh;
    scroll-margin-top: 100px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
}

.alignment-item.visible {
    opacity: 1;
    pointer-events: auto;
}

.alignment-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.requirement-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.req-number {
    font-size: 2.5rem;
    font-weight: 800;
    opacity: 0.5;
    line-height: 1;
}

.requirement-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.requirement-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.requirement-asks,
.experience-delivers {
    padding: 1.5rem;
}

.requirement-asks {
    background: var(--light-gray);
    border-radius: 12px;
}

.requirement-asks h3,
.experience-delivers h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    margin-bottom: 1rem;
}

.requirement-asks ul,
.experience-delivers ul {
    list-style: none;
    padding: 0;
}

.requirement-asks li,
.experience-delivers li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.requirement-asks li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.experience-delivers li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

.delivery-badge {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.delivery-badge-multi {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.delivery-badge-multi span {
    background: var(--primary);
    color: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.experience-delivers strong {
    color: var(--dark);
    font-weight: 700;
}

.match-indicator {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-gray);
}

.match-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray);
    display: block;
    margin-bottom: 0.5rem;
}

.match-bar {
    background: var(--light-gray);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.match-fill {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-out;
}

/* ==================== SUMMARY SECTION ==================== */
.summary-section {
    background: var(--white);
    padding: 2rem 2rem 4rem;
    scroll-margin-top: 100px;
}

.summary-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--dark);
}

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

.summary-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.summary-card:hover {
    transform: translateY(-4px);
}

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

.summary-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.summary-card p {
    color: var(--gray);
    line-height: 1.7;
}

.cta-section {
    text-align: center;
    padding: 2rem 0;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin: 0 0.5rem;
}

.cta-btn.primary {
    background: var(--primary);
    color: var(--white);
}

.cta-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-btn.secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-btn.secondary:hover {
    background: var(--light-gray);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* ==================== SCENE NAVIGATION CONTROLS ==================== */
.scene-nav-controls {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.scene-nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.scene-nav-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scene-nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.nav-icon {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.nav-label {
    font-size: 0.65rem;
    margin-top: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-to-top .nav-label {
    display: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(30, 41, 59, 0.98);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

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

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

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

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

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

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .requirement-details {
        grid-template-columns: 1fr;
    }

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

    .cta-btn {
        display: block;
        margin: 0.5rem 0;
    }

    .requirement-header {
        flex-direction: column;
        text-align: center;
    }

    .requirement-header h2 {
        font-size: 1.5rem;
    }

    .scene-nav-controls {
        right: 1rem;
        bottom: 1rem;
        gap: 0.75rem;
    }

    .scene-nav-btn {
        width: 50px;
        height: 50px;
    }

    .nav-icon {
        font-size: 1.2rem;
    }

    .nav-label {
        font-size: 0.6rem;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alignment-item {
    animation: fadeIn 0.6s ease-out;
}

.alignment-item:nth-child(1) { animation-delay: 0.1s; }
.alignment-item:nth-child(2) { animation-delay: 0.2s; }
.alignment-item:nth-child(3) { animation-delay: 0.3s; }
.alignment-item:nth-child(4) { animation-delay: 0.4s; }
.alignment-item:nth-child(5) { animation-delay: 0.5s; }
.alignment-item:nth-child(6) { animation-delay: 0.6s; }
.alignment-item:nth-child(7) { animation-delay: 0.7s; }
