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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #c9a961;
    --text-light: #f5f5f5;
    --text-dark: #333;
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --overlay-light: rgba(0, 0, 0, 0.4);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-light);
    background-color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Language Selector */
.lang-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    /*background: rgba(0, 0, 0, 0.6);*/
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 8px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);*/
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    opacity: 0.4;
    filter: grayscale(100%);
}

.lang-btn .fi {
    font-size: 1.8rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.lang-btn:hover {
    opacity: 0.7;
    filter: grayscale(50%);
}

.lang-btn.active {
    opacity: 1;
    filter: grayscale(0%);
    font-weight: 600;
}

.lang-btn.active .fi {
    filter: none;
}

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

/* Language-specific Image Section */
.section-image {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: var(--spacing-md);
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-impact {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    border-left: 3px solid var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.impact-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-style: italic;
    color: var(--accent-color);
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

/* Sections */
.section {
    padding: var(--spacing-lg) 0;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    text-align: center;
    line-height: 1.3;
}

.section-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    text-align: center;
    line-height: 1.3;
}

.section-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Image Placeholders */
.image-placeholder {
    position: relative;
    width: 100%;
    margin-top: var(--spacing-lg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.image-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.image-placeholder:hover .image-overlay {
    transform: translateY(0);
}

/* Section-specific styles */
.section-1 {
    background: linear-gradient(180deg, var(--primary-color) 0%, #252525 100%);
}

.section-2 {
    background: linear-gradient(180deg, #252525 0%, var(--primary-color) 100%);
    padding-bottom: var(--spacing-md);
}

.section-3 {
    background: linear-gradient(180deg, var(--primary-color) 0%, #1f1f1f 100%);
    padding-top: var(--spacing-md);
}

.section-4 {
    background: linear-gradient(180deg, #1f1f1f 0%, var(--primary-color) 100%);
    padding: var(--spacing-lg) 0;
}

.reflection-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: var(--spacing-lg);
}

/* Image Carousel */
.image-carousel {
    position: relative;
    width: 100%;
    margin-top: var(--spacing-lg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide .image-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.image-caption {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
}

/* Closing Section */
.closing-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.closing-content {
    max-width: 800px;
    margin: 0 auto;
}

.closing-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.closing-text {
    font-size: clamp(2.1rem, 3vw, 2.4rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Footer */
.footer {
    background-color: #0f0f0f;
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Selection Styles */
::selection {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

::-moz-selection {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        min-height: 100vh;
    }

    .section {
        padding: var(--spacing-md) 0;
    }

    .image-placeholder img {
        min-height: 300px;
    }

    .image-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    }

    .carousel-container {
        padding-bottom: 75%; /* Aspect ratio mais alto no mobile */
    }

    .carousel-indicators {
        bottom: 15px;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    .lang-selector {
        top: 10px;
        right: 10px;
        padding: 4px;
    }

    .lang-btn {
        width: 38px;
        height: 38px;
        padding: 0;
    }

    .lang-btn .fi {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-content {
        padding: var(--spacing-sm);
    }

    .section {
        padding: var(--spacing-md) 0;
    }

    .lang-selector {
        top: 10px;
        right: 10px;
        padding: 4px;
    }

    .lang-btn {
        width: 36px;
        height: 36px;
        padding: 0;
    }

    .lang-btn .fi {
        font-size: 1.3rem;
    }
}

/* Loading State */
.loading {
    opacity: 0;
}

.loaded {
    opacity: 1;
    transition: opacity 0.5s ease;
}
