/* Modern Design System */
:root {
    /* Core Colors */
    --blue-accent: #394790;
    --red-accent: #e43631;
    
    /* Extended Palette */
    --surface-light: #ffffff;
    --surface-off-white: #f8f9fa;
    --neutral-100: #f7f7f7;
    --neutral-200: #e6e6e6;
    --neutral-300: #d1d5db;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    
    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #394790 0%, #2a3573 100%);
    --gradient-red: linear-gradient(135deg, #e43631 0%, #c42e29 100%);
    --gradient-light: linear-gradient(135deg, var(--surface-light) 0%, var(--surface-off-white) 100%);
    
    /* UI Elements */
    --header-height: 80px;
    --card-blur: 16px;
    --border-radius: 24px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    background-color: var(--surface-light);
    color: var(--neutral-800);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Modern Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-text {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* Modern Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.logo-link {
    position: relative;
    z-index: 101;
}

.logo {
    height: 40px;
    width: auto;
}

/* Burger Menu */
.burger-menu {
    position: relative;
    width: 30px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.burger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--neutral-800);
    transition: all 0.3s var(--transition-smooth);
}

.burger-line:nth-child(1) { top: 0; }
.burger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-line:nth-child(3) { bottom: 0; }

/* Active Burger */
.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background-color: var(--neutral-800);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background-color: var(--neutral-800);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-smooth);
    z-index: 99;
}

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

.menu-content {
    text-align: center;
}

.menu-link {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--neutral-800);
    margin: 1.5rem 0;
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s var(--transition-smooth);
}

.menu-overlay.active .menu-link {
    transform: translateY(0);
    opacity: 1;
}

.menu-link:nth-child(1) { transition-delay: 0.1s; }
.menu-link:nth-child(2) { transition-delay: 0.2s; }
.menu-link:nth-child(3) { transition-delay: 0.3s; }

/* Hero Section */
.hero {
    width: 100%;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
    padding: var(--header-height) 0 clamp(4rem, 8vh, 6rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--surface-light);
}

.hero-image-wrapper {
    width: 85%;
    max-width: 1200px;
    margin: clamp(0.5rem, 3vh, 1.5rem) auto 0;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transform: scale(1.05);
    transition: transform 0.6s var(--transition-smooth);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    border-radius: var(--border-radius);
    backdrop-filter: brightness(1.1);
    -webkit-backdrop-filter: brightness(1.1);
}

.hero-content {
    width: 100%;
    text-align: center;
    padding: 2rem 0 0;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--surface-light);
    color: var(--neutral-800);
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-cta:hover {
    transform: translateY(-3px);
    background: var(--blue-accent);
    color: var(--surface-light);
    box-shadow: 0 6px 30px rgba(57, 71, 144, 0.3);
}

/* Hero Hover Effects */
.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
}

.hero-image-wrapper:hover .hero-content {
    transform: translateY(-5px);
}

/* Modern Cards */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--transition-smooth);
    transform-origin: center;
    will-change: transform;
    position: relative;
    overflow: visible;
    padding: 2rem;
    margin-bottom: 4rem;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(57, 71, 144, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(57, 71, 144, 0.1);
}

.card:hover + .audio-waves {
    opacity: 0.8;
}

/* Video Container */
.video-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--neutral-900);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(228, 54, 49, 0.1);
}

.video-container::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Sections */
.section {
    padding: clamp(2rem, 6vh, 6rem) 0;
    position: relative;
}

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

.section-off-white {
    background: var(--surface-off-white);
}

/* Animated Elements */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s var(--transition-smooth) forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s var(--transition-smooth) forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s var(--transition-smooth) forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s var(--transition-smooth);
}

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

.hover-lift {
    transition: transform 0.3s var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Accent Elements */
.accent-blue {
    color: var(--blue-accent);
}

.accent-red {
    color: var(--red-accent);
}

/* Footer */
.footer {
    background: var(--surface-off-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem 0;
}

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

.footer-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-icon {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-light);
    color: var(--neutral-600);
    transition: all 0.3s var(--transition-smooth);
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.social-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s var(--transition-smooth);
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--surface-light);
}

.social-icon:hover::before {
    opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero {
        padding: calc(var(--header-height) + clamp(0.5rem, 2vh, 1rem)) 1rem clamp(4rem, 8vh, 6rem);
        min-height: auto;
    }

    .hero-image-wrapper {
        width: 100%;
        margin: 0 auto;
        border-radius: calc(var(--border-radius) / 2);
        aspect-ratio: 4/3;
    }
    
    .hero-image,
    .hero-overlay {
        border-radius: calc(var(--border-radius) / 2);
    }

    .hero-content {
        padding: 1.5rem 0 0;
    }
    
    .hero-cta {
        padding: 0.875rem 1.75rem;
        font-size: 0.875rem;
    }

    .logo {
        height: 50px;
    }

    .header.scrolled .logo {
        height: 35px;
    }
    
    .footer .flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .audio-waves {
        bottom: -35px;
        height: 30px;
        gap: 6px;
        padding: 0.75rem 0;
    }

    .audio-waves span {
        width: 2px;
    }
}

@media (min-width: 769px) {
    .video-hint {
        display: block;
    }
}

/* Larger screens */
@media (min-width: 1536px) {
    .hero-image-wrapper {
        max-width: 1200px;
    }
    
    .section {
        padding: clamp(2rem, 5vh, 5rem) 0;
    }
}

/* Portrait mobile optimization */
@media (max-width: 768px) and (max-height: 900px) {
    .hero {
        padding: calc(var(--header-height) + 0.5rem) 0.5rem clamp(4rem, 8vh, 6rem);
    }

    .hero-image-wrapper {
        aspect-ratio: 3/2;
    }

    .section {
        padding: clamp(2rem, 6vh, 4rem) 0;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero {
        padding: calc(var(--header-height) + 0.5rem) 0.5rem clamp(4rem, 8vh, 6rem);
    }

    .hero-image-wrapper {
        aspect-ratio: 3/2;
        margin: 0;
    }

    .section {
        padding: clamp(1.5rem, 4vh, 3rem) 0;
    }
}

/* Height-based adjustments */
@media (max-height: 700px) {
    .hero {
        padding: calc(var(--header-height) + 0.25rem) 0.5rem 0.25rem;
    }

    .hero-image-wrapper {
        margin: 0;
    }

    .section {
        padding: clamp(1rem, 3vh, 2rem) 0;
    }
}

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

    h2 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.6s var(--transition-smooth), 
                opacity 0.6s var(--transition-smooth);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-light);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-600);
}

/* Hide scrollbar when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Header and Logo */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--surface-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
    transition: all 0.4s var(--transition-smooth);
}

.header.scrolled {
    height: 60px;
}

.logo-link {
    position: relative;
    z-index: 101;
    display: block;
    transition: all 0.4s var(--transition-smooth);
}

.logo {
    height: 60px;
    width: auto;
    transition: all 0.4s var(--transition-smooth);
}

.header.scrolled .logo {
    height: 40px;
}

/* Audio Waves Animation */
.audio-waves {
    position: absolute;
    bottom: -45px;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    padding: 1rem 0;
}

.audio-waves span {
    display: block;
    width: 3px;
    height: 100%;
    background: var(--blue-accent);
    border-radius: 8px;
    animation: wave var(--wave-duration, 1.2s) ease-in-out infinite;
}

.audio-waves span:nth-child(1) { --wave-duration: 1.0s; }
.audio-waves span:nth-child(2) { --wave-duration: 1.4s; }
.audio-waves span:nth-child(3) { --wave-duration: 1.2s; }
.audio-waves span:nth-child(4) { --wave-duration: 1.6s; }
.audio-waves span:nth-child(5) { --wave-duration: 1.1s; }
.audio-waves span:nth-child(6) { --wave-duration: 1.3s; }

@keyframes wave {
    0%, 100% {
        transform: scaleY(0.3);
    }
    50% {
        transform: scaleY(1);
    }
}

/* Social Bridge Section */

.social-bridge {
    background: var(--surface-light);
    padding: 2rem 0;
    position: sticky;
    top: var(--header-height);
    z-index: 99;
    overflow: hidden;
}

.social-bridge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--neutral-200) 20%, 
        var(--neutral-200) 80%, 
        transparent 100%
    );
}

.social-bridge-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.social-bridge-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.social-bridge .social-icon {
    color: var(--neutral-600);
    transition: all 0.3s var(--transition-smooth);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-bridge .social-icon:hover {
    color: var(--blue-accent);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .social-bridge {
        padding: 1.5rem 0;
    }

    .social-bridge-icons {
        gap: 2rem;
    }

    .social-bridge .social-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
} 
