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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --text-primary: #2c3e50;
    --text-secondary: #555; /* Aumentado contraste */
    --text-light: #ecf0f1;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #2c3e50;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333; /* Melhor contraste */
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333; /* Melhor contraste */
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: black;
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: black;
    border-color: black;
}

.btn-secondary:hover {
    background: black;
    color: white;
    transform: translateY(-2px);
}

/* Navigation - CORREÇÃO IMPORTANTE */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Cor corrigida */
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: whitesmoke;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: whitesmoke;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-medium);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background: white; /* CORREÇÃO: Branco para contraste */
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* Hero Section - Melhorias de responsividade */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsivo */
    font-weight: 700;
    color: black;
    margin-bottom: 0.5rem;
}

.title-subtitle {
    display: block;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem); /* Responsivo */
    font-weight: 400;
    color: #555; /* Melhor contraste */
    font-family: 'Inter', sans-serif;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem); /* Responsivo */
    color: #555; /* Melhor contraste */
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 350px; /* Limite máximo */
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-image-container:hover .hero-image {
    transform: scale(1.05);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.hero-image-container:hover .hero-image-overlay {
    opacity: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.scroll-arrow:hover {
    background: white;
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem); /* Responsivo */
    color: black;
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: #777; /* Cor mais visível */
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem); /* Responsivo */
    color: #555; /* Melhor contraste */
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-primary);
}

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

.about-intro {
    margin-bottom: 2rem;
}

.about-details {
    margin-bottom: 3rem;
}

.about-details p {
    margin-bottom: 1.5rem;
    color: #555; /* Melhor contraste */
    font-size: 1.05rem;
}

/* Projects Section - CORREÇÕES IMPORTANTES */
.projects {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Garante altura igual */
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.8), rgba(231, 76, 60, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
    padding: 20px;
    text-align: center;
    color: white;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.project-content {
    padding: 20px;
    flex-grow: 1; /* Preenche espaço restante */
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Preenche espaço */
}

.project-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto; /* Empurra para baixo */
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--secondary-color);
}

/* The Pub Section - Correções de layout */
.film-feature {
    background: var(--bg-secondary);
    padding: 4rem 0;
    color: var(--text-primary);
    max-width: 100%;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 41%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    margin: 10px 0 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.film-specs {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
    color: #444;
    font-weight: 600;
}

.film-info {
    max-width: 900px;
    margin: 0 auto;
    color: #333;
    line-height: 1.7;
}

.film-info h3 {
    color: #222;
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.film-info p {
    margin-bottom: 20px;
}

.film-info ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.film-info ul li {
    margin-bottom: 10px;
}

/* Contact Section - Melhorias de layout */
.contact {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: block;
}

.contact-details a:hover {
    color: var(--secondary-color);
}

.contact-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Footer - Correções de layout */
.footer {
    background: black;
    color: var(--text-light);
    padding: 3rem 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text p {
    color: #ddd;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}


.download-cv {
    width: 260px;
    margin: 2rem auto;
    padding: 12px 20px;
    text-align: center;
    border: 2px solid white;  /* borda branca */
    border-radius: 30px;
    background-color: black;  /* fundo preto */
    color: white;             /* texto branco */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.download-cv a {
    color: inherit;           /* herda a cor da caixa */
    text-decoration: none;
    display: block;           /* para preencher toda a caixa */
}

.download-cv:hover {
    background-color: white;          /* fundo branco no hover */
    color: var(--accent-color);       /* texto muda para cor destaque */
    border-color: white;
}

.download-cv:hover a {
    color: var(--accent-color);       /* mantém texto com a cor destaque */
}



@media (max-width: 480px) {
    .download-cv {
        width: 90%;
        padding: 1rem;
        font-size: 1rem;
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-link {
        color: #333;
        padding: 15px;
        display: block;
    }
    
    .hero-image-container {
        height: 400px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}


@media (max-width: 480px) {
    .title-main {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .film-specs {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}