/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors inspired by Violet - Purple/Violet theme */
    --primary-violet: #6a4c93;
    --secondary-violet: #8b7ab8;
    --light-violet: #b8a9d6;
    --dark-violet: #4a3668;
    --cream: #f5f1e8;
    --gold: #c9a961;
    --dark-gold: #b8942c;
    --white: #ffffff;
    --dark-text: #2a2a2a;
    --light-text: #666666;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6a4c93 0%, #8b7ab8 100%);
    --gradient-gold: linear-gradient(135deg, #c9a961 0%, #e6d5a8 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(106, 76, 147, 0.8) 0%, rgba(139, 122, 184, 0.6) 100%);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--cream);
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Navegação ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-violet);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-violet);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ========== Hero Section ========== */
.hero {
    height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(184, 169, 214, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(245, 241, 232, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.95;
    margin-bottom: 60px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========== Animações ========== */
.fade-in {
    animation: fadeIn 1.5s ease-in;
}

.fade-in-delay {
    animation: fadeIn 1.5s ease-in 0.5s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Section Headers ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--primary-violet);
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 0 auto;
}

/* ========== Story Section ========== */
.story-section {
    padding: 120px 0;
    background: var(--cream);
}

.story-content {
    display: grid;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.story-block {
    position: relative;
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(106, 76, 147, 0.15);
}

.story-number {
    position: absolute;
    top: -20px;
    left: 40px;
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.story-block h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-violet);
    margin-bottom: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.story-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
    position: relative;
    z-index: 1;
}

/* ========== Character Section ========== */
.character-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--cream) 0%, var(--white) 100%);
}

.character-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.character-image-container {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(106, 76, 147, 0.2);
    background: var(--white);
    padding: 20px;
}

.character-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    border: 3px solid var(--gold);
    border-radius: 20px;
    z-index: -1;
}

.character-info .section-header {
    text-align: left;
    margin-bottom: 40px;
}

.character-info .title-underline {
    margin: 0;
}

.character-details {
    background: var(--cream);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(106, 76, 147, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--primary-violet);
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--light-text);
}

.character-description {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--light-text);
    margin-bottom: 30px;
}

.character-quote {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-violet);
    padding: 25px 30px;
    border-left: 4px solid var(--gold);
    background: rgba(201, 169, 97, 0.05);
    border-radius: 5px;
    line-height: 1.7;
}

/* ========== Letters Section ========== */
.letters-section {
    padding: 120px 0;
    background: var(--white);
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.letter-card {
    background: var(--cream);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.letter-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(106, 76, 147, 0.1);
}

.letter-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.letter-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary-violet);
    margin-bottom: 15px;
}

.letter-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--light-text);
    margin-bottom: 20px;
}

.letter-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-gold);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========== Gallery Section ========== */
.gallery-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--white) 0%, var(--cream) 100%);
}

.gallery-description {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--light-text);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.theme-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.theme-card:hover::before {
    transform: scaleX(1);
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(106, 76, 147, 0.15);
}

.theme-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.4;
    margin-bottom: 15px;
    z-index: 0;
    position: relative;
}

.theme-card h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary-violet);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.theme-card p {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ========== Footer ========== */
.footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0 40px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-quote {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.footer-divider {
    width: 100px;
    height: 2px;
    background: var(--gradient-gold);
    margin: 30px auto;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* ========== Responsive Design ========== */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .character-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .character-info .section-header {
        text-align: center;
    }

    .character-info .title-underline {
        margin: 0 auto;
    }

    .nav-menu {
        gap: 20px;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .story-block {
        padding: 30px 25px;
    }

    .story-block h3 {
        font-size: 1.5rem;
    }

    .letters-grid {
        grid-template-columns: 1fr;
    }

    .themes-grid {
        grid-template-columns: 1fr;
    }

    .footer-quote {
        font-size: 1.4rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
}

/* ========== Scroll Progress Indicator ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-gold);
    z-index: 9999;
    transition: width 0.1s ease;
}
