:root {
    /* Enforce light theme */
    color-scheme: light;

    /* Corporate Colors */
    --color-blue: #1F405F;
    --color-gold: #DDAB56;
    --color-blue-light: #677D91;
    --color-gold-light: #DFB266;
    --color-creme: #EEDFC1;
    --color-off-white: #F6F1E6;

    /* Neutral Colors */
    --color-black: #020305;
    --color-beige: #BFB699;
    --color-grey: #9A937C;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-off-white);
    color: var(--color-black);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--color-blue);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    color: var(--color-gold);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-blue);
    color: white;
}

.btn-secondary {
    background-color: var(--color-blue);
    color: white;
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-blue);
}

.btn-gold:hover {
    background-color: var(--color-gold-light);
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-blue);
}

.main-nav a:hover {
    color: var(--color-gold);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-switch a {
    font-size: 0.9rem;
    padding: 0.25rem;
    color: var(--color-grey);
}

.lang-switch a.active {
    color: var(--color-blue);
    font-weight: bold;
    border-bottom: 2px solid var(--color-gold);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    filter: saturate(0.3);
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    filter: saturate(0.3);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 64, 95, 0.4);
    /* Corporate Blue overlay */
    z-index: -1;
}

.hero-title {
    color: white;
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: var(--spacing-lg) 0;
    scroll-margin-top: 100px;
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.bg-light {
    background-color: var(--color-off-white);
}

.bg-creme {
    background-color: var(--color-creme);
}

.bg-dark {
    background-color: var(--color-blue);
    color: white;
}

.bg-dark h2 {
    color: var(--color-gold);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-top: 1rem;
}

/* Portfolio grid placeholder */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: #ccc;
    height: 250px;
    display: flex;
    justify-content: center;
}

/* Testimonials Slider */
.testimonials-section {
    overflow: hidden;
    padding-bottom: 4rem;
    /* Extra padding for aesthetics */
}

.testimonials-slider {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    overflow: hidden;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 1rem 2rem;
    /* Add horizontal padding to avoid cutting off shadows */
    cursor: grab;
    cursor: -webkit-grab;
}

.testimonials-track:active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* 
@keyframes scroll removed. 
JS will handle the scrolling and infinite loop. 
*/

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border: 3px solid var(--color-gold);
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-blue);
    line-height: 1.5;
    font-size: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-gold);
    font-style: normal;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    color: var(--color-black);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
}

/* Footer */
.main-footer {
    background-color: var(--color-black);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    margin-right: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-beige);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-grey);
}

/* Mobile Responsive */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-blue);
    margin: 5px 0;
}

@media (max-width: 768px) {
    .main-header {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        /* JS will toggle this */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* Linktree Page Styles */
.links-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.links-container {
    width: 100%;
    max-width: 680px;
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.links-header {
    margin-bottom: 2rem;
}

.links-logo {
    height: 80px;
    margin: 0 auto;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.links-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: transform 0.2s ease, background-color 0.3s ease;
    text-decoration: none;
    position: relative;
    width: 100%;
}

.links-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

.links-btn:hover {
    transform: translateY(-2px);
}

.links-btn svg {
    position: absolute;
    left: 1.5rem;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.links-footer {
    font-size: 0.9rem;
    color: var(--color-grey);
}

.links-footer .lang-switcher {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.links-footer .lang-switcher a {
    color: var(--color-grey);
    text-decoration: none;
}

.links-footer .lang-switcher a.active {
    color: var(--color-blue);
    font-weight: bold;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: var(--color-blue);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-content {
    flex: 1;
    min-width: 250px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        transform: none;
        border-radius: 8px 8px 0 0;
        width: 100%;
        padding: 1.5rem;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
        /* Stack buttons vertically on mobile */
        gap: 0.5rem;
    }

    .cookie-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* Dark Mode Warning Banner */
.dark-mode-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-gold);
    color: var(--color-blue);
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.dark-mode-warning.show {
    transform: translateY(0);
}

.dark-mode-warning p {
    margin: 0;
    font-size: 0.9rem;
}

.dark-mode-warning .close-warning {
    background: none;
    border: none;
    color: var(--color-blue);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    font-weight: bold;
    padding: 0 0.5rem;
}