:root {
    --primary-color: #0f172a;
    /* Slate 900 - Deep Arctic Blue */
    --accent-color: #38bdf8;
    /* Sky 400 - Electric Ice Blue */
    --accent-secondary: #94a3b8;
    /* Slate 400 - Titanium Silver */
    --text-color: #334155;
    /* Slate 700 */
    --light-bg: #f8fafc;
    /* Slate 50 */
    --dark-bg: #1e293b;
    /* Slate 800 - Graphite */
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    /* Elegant tracking */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: transparent;
    position: absolute;
    width: 100%;
    z-index: 10;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    gap: 3rem;
    margin: 0 2rem;
    padding: 0;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    opacity: 0.9;
}

.nav-menu a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.lang-switch a {
    margin-left: 1rem;
    font-weight: 600;
    opacity: 0.7;
    color: var(--white);
}

.lang-switch a.active,
.lang-switch a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 92vh;
    /* Slightly reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    /* Ensure video doesn't overflow */
}

.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    /* Scale 1.1 to crop edges (hiding watermark), move slightly down (-48%) to hide bottom more */
    transform: translate(-50%, -48%) scale(1.1);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    /* Slight dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content h2 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 3rem;
    font-family: var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

.btn {
    padding: 1.2rem 3.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    /* Glassy button */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 0;
    letter-spacing: 2px;
    font-size: 0.8rem;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    /* Ice glow */
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-secondary);
    color: var(--text-color);
    padding: 1rem 3rem;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 0;
    display: inline-block;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Dark mode button fix */
.dark-bg .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-bg .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}


/* Base Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    color: var(--primary-color);
}

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

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background-color: var(--accent-secondary);
    /* Titanium line */
    margin: 2rem auto 0;
}

.lead {
    font-size: 1.35rem;
    text-align: center;
    margin-bottom: 5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    font-weight: 300;
    text-align: center;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.text-justify {
    text-align: justify;
}

.subsection h3 {
    margin-top: 2rem;
}

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

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    align-items: stretch;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 4rem;
    align-items: stretch;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 768px) {

    .grid-3,
    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    display: flex;
    flex-direction: column;
    padding: 3rem;
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    /* Subtle border */
    border-radius: 0;
    /* Sharp premium edges */
    box-shadow: none;
    /* Minimalist */
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-color: var(--accent-secondary);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.card p {
    color: #475569;
    /* Slate 600 */
    font-size: 1.05rem;
    line-height: 1.7;
}

.card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    /* Ice Blue */
    margin-bottom: 2rem;
    display: inline-block;
    opacity: 0.9;
}

/* Dark Cards (Graphite) */
.card.dark {
    background-color: #1e293b;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border */
    border-top: 1px solid var(--accent-color);
    /* Ice accent top */
}

.card.dark h3 {
    color: #ffffff;
}

.card.dark p,
.card.dark li,
.card.dark span {
    color: #cbd5e1;
    /* Slate 300 - readable! */
}

.card.dark:hover {
    background-color: #233045;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Special Items */
.highlight {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: -1px;
}

/* Forms */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    padding: 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

/* Fix button visibility on light background */
.contact-form .btn {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    width: 100%;
    /* Make it full width for better touch target */
}

.contact-form .btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Calculator specific */
.calculator-card {
    background: #ffffff;
    color: var(--text-color);
    /* Ensure text is dark on white bg */
    padding: 3rem;
    border-radius: 0;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    margin-bottom: 3rem;
    position: relative;
}

/* Add a gold accent line top */
.calculator-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.calc-header h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

.badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.calc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.range-slider {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    /* Default gray track */
    outline: none;
    appearance: none;
    cursor: pointer;
    margin: 2.5rem 0;
    border-radius: 3px;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-output {
    background: #f8fafc;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.output-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.output-margin {
    color: #16a34a;
    font-weight: 600;
    margin-top: 1rem;
}

/* Charts */
.chart-container {
    position: relative;
    height: 500px;
    /* Fixed height for not flattening */
    width: 60%;
    margin: 4rem auto;
}

@media (max-width: 768px) {
    .chart-container {
        width: 100%;
        height: 300px;
    }

    .calc-body {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 4rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Vertical Roadmap Timeline */
.timeline-vertical {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    padding-left: 2rem;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--accent-secondary);
    opacity: 0.3;
}

.timeline-step {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 4rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.timeline-step:hover {
    opacity: 1;
    transform: translateX(10px);
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    position: absolute;
    left: -9px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--dark-bg);
    border: 3px solid var(--accent-secondary);
    border-radius: 50%;
    transition: all 0.3s;
}

.timeline-step:hover .step-marker {
    background: var(--accent-color);
    border-color: var(--white);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step-year {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #475569;
    font-size: 1rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    color: var(--text-color);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}


/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {

    /* Header adjustments */
    .header {
        flex-direction: column;
        padding: 1rem;
        background-color: rgba(15, 23, 42, 0.9);
        /* Dark background for readability */
        position: fixed;
        /* Stick to top */
    }

    .logo {
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }

    .nav-menu ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0;
    }

    .nav-menu a {
        font-size: 0.75rem;
    }

    .lang-switch {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    /* Hero Text adjustments */
    .hero-content h1 {
        font-size: 2.5rem;
        /* Reduced from 4rem */
        line-height: 1.2;
    }

    .hero-content h2 {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    /* Section adjustments */
    .section {
        padding: 4rem 0;
        /* Reduced from 8rem */
    }

    .section h2 {
        font-size: 2rem;
        /* Reduced from 3rem */
        margin-bottom: 3rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .card {
        padding: 2rem;
    }

    .timeline-vertical {
        padding-left: 0;
    }

    .timeline-step {
        padding-left: 2rem;
    }

    .step-marker {
        width: 16px;
        height: 16px;
        left: -6px;
    }
}