:root {
    --color-bg-light: #f5f5f7;
    --color-bg-white: #ffffff;
    --color-bg-dark: #000000;
    --color-text-dark: #1d1d1f;
    --color-text-light: #f5f5f7;
    --color-text-gray: #4a4a4e; /* Darker, high-contrast gray for better legibility */
    --color-link: #0066cc;
    --color-link-hover: #0077ed;
    --color-nav: rgba(255, 255, 255, 0.8);
    --color-nav-border: rgba(0, 0, 0, 0.16);

    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-stack);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Global Nav */
.global-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 48px;
    background: var(--color-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-nav-border);
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.nav-content {
    width: 100%;
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    height: 18px;
    filter: brightness(0); /* Make black for light nav */
    opacity: 0.8;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-list a {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: -0.01em;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: #000;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.bar {
    width: 20px;
    height: 1.5px;
    background-color: #000;
}

/* Typography */
.typography-headline {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.07143;
    margin-bottom: 12px;
}

.typography-intro {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.004em;
    line-height: 1.1;
    color: var(--color-text-gray);
    margin-bottom: 24px;
}

.typography-hero {
    font-size: 80px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.typography-body-large {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
}

h1, h2, h3, h4, h5, h6 {
    color: inherit; /* Should inherit from theme-light/dark */
}

.theme-light h1, .theme-light h2, .theme-light h3 {
    color: var(--color-text-dark);
}

.theme-dark h1, .theme-dark h2, .theme-dark h3 {
    color: white;
}

/* Theming */
.theme-light {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

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

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

/* Base Layout */
main {
    padding-top: 48px; /* Offset for nav */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 20px;
}

.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

/* Buttons and Links */
.button {
    display: inline-block;
    background: var(--color-link);
    color: white;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    transition: background 0.3s;
}

.button:hover {
    background: var(--color-link-hover);
}

.link-blue {
    color: var(--color-link);
    text-decoration: none;
    font-size: 17px;
    letter-spacing: -0.022em;
}

.link-blue:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px 0;
    background: var(--color-bg-light);
    overflow: hidden;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-image-full {
    margin-top: 60px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 120%;
    object-fit: cover;
    display: block;
}

/* Mission */
.section-mission {
    text-align: center;
    padding: 150px 20px;
}

.section-mission .typography-body-large {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-gray);
}

/* About / Cards Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    border-radius: 30px;
    padding: 50px;
    overflow: hidden;
    position: relative;
    height: 600px;
    display: flex;
    flex-direction: column;
}

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

/* Force text visibility in dark cards, overriding theme-light specificity */
.card-dark h3.card-title,
.theme-light .card-dark h3 {
    color: #ffffff !important;
}

.card-dark p.card-text,
.theme-light .card-dark p {
    color: #d1d1d6 !important;
}

.card-light {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.card-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    z-index: 2;
}

.card-text {
    font-size: 19px;
    color: var(--color-text-gray);
    z-index: 2;
}

.card-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    object-fit: cover;
    z-index: 1;
}

/* Avantages Split Layout */
.section-avantages {
    padding: 120px 0;
}

.avantages-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.avantages-left {
    position: sticky;
    top: 100px;
}

.avantages-left .typography-headline {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
}

.avantages-left .typography-intro {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-gray);
    margin-bottom: 0;
}

.avantages-right {
    display: flex;
    flex-direction: column;
}

.avantage-list-item {
    display: flex;
    align-items: center;
    padding: 35px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.avantage-list-item:first-child {
    padding-top: 0;
}

.avantage-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.avantage-number {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-link);
    min-width: 70px;
    font-feature-settings: "tnum";
}

.avantage-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-dark);
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .avantages-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .avantages-left {
        position: static;
    }
    
    .avantage-list-item {
        padding: 24px 0;
    }
    
    .avantage-number {
        font-size: 26px;
        min-width: 50px;
    }
    
    .avantage-text {
        font-size: 18px;
    }
}

/* Gallery Split Layout */
.section-gallery {
    padding: 120px 0;
    background-color: var(--color-bg-dark);
}

.gallery-split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
}

.gallery-left {
    display: flex;
    flex-direction: column;
}

.category-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #30d158; /* Premium Apple green */
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.category-icon {
    stroke: #30d158;
}

.gallery-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gallery-subtext {
    font-size: 21px;
    line-height: 1.4;
    color: #d1d1d6; /* Brighter color for high readability on dark background */
    margin-bottom: 32px;
}

.gallery-link {
    font-size: 19px;
    font-weight: 500;
    color: #30d158 !important; /* Green link to match screenshot tag */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.gallery-link:hover {
    text-decoration: underline;
}

.gallery-link .arrow {
    transition: transform 0.2s ease;
}

.gallery-link:hover .arrow {
    transform: translateX(4px);
}

/* Video Thumbnail style */
.video-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: transform 0.5s ease;
}

.video-container:hover .video-thumbnail {
    transform: scale(1.03);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
}

.play-button {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    align-self: center;
    margin-top: auto;
    margin-bottom: auto;
    transition: all 0.3s ease;
}

.play-button svg {
    width: 28px;
    height: 28px;
    margin-left: 4px; /* nudge visually */
}

.play-button:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.video-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #ffffff;
}

.video-text h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 0;
    color: #ffffff !important;
}

.video-text p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 0;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .video-container {
        height: 320px;
    }
    
    .gallery-title {
        font-size: 36px;
    }
    
    .gallery-subtext {
        font-size: 17px;
    }
    
    .video-text h3 {
        font-size: 22px;
    }
    
    .video-text p {
        font-size: 15px;
    }
}

/* Contact */
.section-contact {
    background: #ffffff;
}

.contact-info h3, .policy-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-info p, .policy-info p {
    font-size: 17px;
    color: var(--color-text-gray);
    margin-bottom: 16px;
}

.contact-info .note {
    font-size: 14px;
    margin-top: 8px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

/* Footer */
.global-footer {
    background: var(--color-bg-light);
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: var(--color-text-gray);
    font-size: 12px;
}

.global-footer p {
    max-width: 1280px;
    margin: 0 auto;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--color-bg-white);
    border-radius: 20px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--color-nav-border);
    transition: transform 0.3s ease;
}

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

.testimonial-quote {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    font-weight: 400;
}

.testimonial-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-gray);
    letter-spacing: -0.01em;
}

.testimonial-disclaimer {
    margin-top: 30px;
    font-size: 11px;
    color: var(--color-text-gray);
    text-align: center;
    line-height: 1.4;
}

/* Lang Link Styling */
.lang-link {
    font-weight: 500 !important;
    color: var(--color-link) !important;
    border: 1px solid var(--color-link);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.lang-link:hover {
    background: var(--color-link);
    color: #fff !important;
    text-decoration: none;
}

/* Media Queries */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .typography-headline {
        font-size: 40px;
    }
    
    .typography-hero {
        font-size: 48px;
    }
    
    .hero-image-container {
        height: 400px;
        border-radius: 20px;
    }
    
    .nav-list {
        position: fixed;
        top: 48px;
        left: 0;
        width: 100%;
        height: 0;
        background: #fff;
        flex-direction: column;
        gap: 20px;
        padding: 0;
        overflow: hidden;
        transition: height 0.3s ease-in-out, padding 0.3s ease-in-out;
        z-index: 9998;
    }

    .nav-list.active {
        height: 100vh;
        padding: 40px 20px;
    }

    .nav-list a {
        font-size: 24px;
        font-weight: 500;
    }
    
    .hamburger {
        display: flex;
    }
}
