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

:root {
    /* Apple-inspired Color Palette */
    --primary-blue: #1d3557;
    --secondary-blue: #457b9d;
    --light-blue: #a8dadc;
    --accent-gold: #f1c40f;
    --neutral-light: #f8f9fa;
    --neutral-medium: #e9ecef;
    --neutral-dark: #495057;
    --white: #ffffff;
    --black: #000000;
    
    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-system);
    line-height: 1.6;
    color: var(--neutral-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-medium);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--space-md);
    }
    
    .brand-name {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}
.logo-img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    margin-right: 0.5rem;
}

.logo-text {
    color: rgb(4, 50, 83);
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
    line-height: 32px;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-blue);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 50px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 50px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--space-3xl);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        padding: var(--space-lg) 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--neutral-medium);
    }
    
    .language-toggle {
        position: absolute;
        top: 15px;
        right: 60px;
    }
    
    .lang-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
}

.nav-links a {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
}

.lang-button {
    background: none;
    border: 1px solid var(--neutral-medium);
    border-radius: var(--radius-md);
    color: var(--neutral-dark);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-button:hover {
    border-color: var(--secondary-blue);
    background: rgba(69, 123, 157, 0.05);
}

.lang-separator {
    color: var(--neutral-medium);
    font-weight: var(--font-weight-regular);
}

.lang-en, .lang-ru {
    color: var(--neutral-dark);
    transition: color 0.2s ease;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.lang-en:hover, .lang-ru:hover {
    background: rgba(69, 123, 157, 0.1);
}

.lang-en.active, .lang-ru.active {
    color: var(--secondary-blue);
    font-weight: var(--font-weight-semibold);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--neutral-light) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

.gradient-text {
    background: linear-gradient(45deg, var(--secondary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-dark);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    font-weight: var(--font-weight-light);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
}

.btn-primary, .btn-secondary {
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 1px solid var(--neutral-medium);
}

.btn-secondary:hover {
    background: var(--neutral-light);
    border-color: var(--secondary-blue);
}

/* Hero Visual Elements */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--light-blue), var(--secondary-blue));
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--secondary-blue), var(--primary-blue));
    top: 60%;
    right: 30%;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--accent-gold), var(--light-blue));
    bottom: 30%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
section {
    padding: var(--space-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--neutral-dark);
    font-weight: var(--font-weight-light);
}

/* About Section */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.about-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

.about-card p {
    color: var(--neutral-dark);
    line-height: 1.6;
}

/* Goals/Timeline Section */
.goals {
    background: linear-gradient(135deg, var(--neutral-light) 0%, var(--white) 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-blue);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: var(--space-xl);
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 120px;
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: var(--font-weight-semibold);
    margin: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin: 0 var(--space-lg);
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
}

/* Instruments Section */
.instruments {
    background: var(--white);
}

.instruments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.instrument-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.instrument-card:hover .card-overlay {
    opacity: 1;
}

.instrument-card .card-content {
    padding: var(--space-xl);
}

.instrument-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.instrument-card h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

.instrument-card p {
    color: var(--neutral-dark);
    line-height: 1.6;
    padding: var(--space-xl);
    padding-top: 0;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 53, 87, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-explore {
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    background: var(--neutral-light);
}

/* Boundaries Section */
.boundaries {
    background: linear-gradient(135deg, var(--neutral-light) 0%, var(--white) 100%);
}

.boundaries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.boundary-item {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.boundary-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    opacity: 0.7;
}

.boundary-item h3 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

/* Why Now Section */
.why-now {
    background: var(--primary-blue);
    color: var(--white);
}

.why-now-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.why-now h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
}

.large-text {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    font-weight: var(--font-weight-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent-gold);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.why-now-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--light-blue), var(--accent-gold));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Vision Section */
.vision {
    background: var(--white);
}

.vision-scroll {
    max-width: 1000px;
    margin: 0 auto;
}

.vision-steps {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    padding: var(--space-md) 0;
}

.vision-step {
    flex: 0 0 300px;
    background: var(--neutral-light);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    opacity: 0.7;
    transform: scale(0.95);
}

.vision-step.active {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    opacity: 1;
    transform: scale(1);
}

.step-number {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--secondary-blue);
    margin-bottom: var(--space-md);
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

.step-content p {
    color: var(--neutral-dark);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    section {
        padding: var(--space-lg) 0;
    }
    
    .hero {
        min-height: 85vh;
        padding-top: 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: var(--space-md);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--space-xl);
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: var(--space-lg) var(--space-xl);
        font-size: 1.1rem;
    }
    
    .hero-visual {
        height: 300px;
        order: -1;
    }
    
    .floating-element {
        opacity: 0.4;
    }
    
    .element-1 {
        width: 120px;
        height: 120px;
    }
    
    .element-2 {
        width: 100px;
        height: 100px;
    }
    
    .element-3 {
        width: 80px;
        height: 80px;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: var(--space-lg);
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* Cards and Grids */
    .about-grid,
    .instruments-grid,
    .boundaries-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .about-card,
    .boundary-item {
        padding: var(--space-lg);
    }
    
    .about-card h3,
    .boundary-item h3 {
        font-size: 1.2rem;
    }
    
    .card-icon,
    .boundary-icon {
        font-size: 2rem;
        margin-bottom: var(--space-sm);
    }
    
    /* Instruments */
    .instrument-card {
        margin-bottom: var(--space-md);
    }
    
    .instrument-card p {
        padding: var(--space-lg);
        padding-top: 0;
        font-size: 0.95rem;
    }
    
    .instrument-icon {
        font-size: 2.5rem;
        margin-bottom: var(--space-sm);
    }
    
    /* Timeline */
    .timeline {
        max-width: none;
        padding: 0 var(--space-md);
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 50px;
        margin-bottom: var(--space-xl);
    }
    
    .timeline-year {
        flex: 0 0 70px;
        margin: 0 var(--space-sm) 0 0;
        font-size: 0.9rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .timeline-content {
        padding: var(--space-lg);
        margin: 0;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
        margin-bottom: var(--space-sm);
    }
    
    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Why Now Section */
    .why-now-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    
    .why-now h2 {
        font-size: 2rem;
    }
    
    .large-text {
        font-size: 1.2rem;
        margin-bottom: var(--space-2xl);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .pulse-circle {
        width: 150px;
        height: 150px;
    }
    
    /* Vision Section */
    .vision-scroll {
        padding: 0 var(--space-md);
    }
    
    .vision-steps {
        flex-direction: column;
        gap: var(--space-lg);
        overflow-x: visible;
    }
    
    .vision-step {
        flex: none;
        width: 100%;
        padding: var(--space-lg);
    }
    
    .step-number {
        font-size: 2rem;
        margin-bottom: var(--space-sm);
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: var(--space-sm);
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }

    /* Touch Interactions */
    .about-card:hover,
    .instrument-card:hover,
    .boundary-item:hover {
        transform: none;
    }
    
    .about-card:active,
    .instrument-card:active,
    .boundary-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Disable hover animations on mobile */
    .instrument-card .card-overlay {
        opacity: 0;
        pointer-events: none;
    }
    
    .instrument-card:active .card-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Additional mobile-specific improvements */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .brand-name {
        font-size: 0.7rem;
        letter-spacing: 0.2px;
    }
    
    .timeline-year {
        flex: 0 0 60px;
        font-size: 0.8rem;
    }
    
    .timeline-content {
        padding: var(--space-md);
    }
    
    .stats-grid {
        gap: var(--space-md);
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}