section {
    padding: 100px 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #1a1a1a;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Before/After Section */
.before-after-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.comparison-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.comparison-description {
    max-width: 1000px;
    margin: 2rem auto 4rem auto;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-before {
    clip-path: inset(0 0 0 50%); /* Initially shows the left half of the 'before' image */
    z-index: 2; /* Ensure it's on top of the 'after' image */
}

.comparison-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-after {
    transition: clip-path 0.3s ease;
    z-index: 1; /* Ensure it's below the 'before' image */
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #d4af37;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: bold;
}

.comparison-labels {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 5;
}

.label {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-section {
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.4s ease;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay do fotógrafo */
.photographer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 50%, transparent 100%);
    padding: 1rem 1.25rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #000;
    z-index: 10;
}

.gallery-item:hover .photographer-overlay {
    transform: translateY(0);
}

.photographer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photographer-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    display: block;
}

.photographer-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.photographer-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #262626;
    margin: 0;
    line-height: 1.2;
}

.photographer-label {
    font-size: 0.8rem;
    color: #8e8e8e;
    margin: 0;
    line-height: 1.2;
}

.photographer-overlay:hover .photographer-name {
    color: #0095f6;
}

/* Featured Image - Large */
.featured-image {
    grid-column: span 2;
    grid-row: span 2;
}

/* Featured Image Vertical - Large */
.featured-image-vertical {
    grid-column: span 1;
    grid-row: span 2;
}

/* Featured Image Horizontal - Large */
.featured-image-horizontal {
    grid-column: span 2;
    grid-row: span 1;
}

/* Tablet */
@media (max-width: 768px) {
    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .gallery-item {
        width: 100%;
        aspect-ratio: 4/3;
    }
    
    .featured-image,
    .featured-image-vertical,
    .featured-image-horizontal {
        aspect-ratio: 4/3;
    }
    
    /* No mobile, mostra o overlay sempre */
    .photographer-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 60%, transparent 100%);
    }
}

/* Mobile */
@media (max-width: 480px) {
    nav {
        padding: 0 0.5rem; /* Ainda mais reduzido */
        flex-wrap: nowrap; /* Garante que os itens não quebrem linha */
    }

    .logo {
        font-size: 0.9rem; /* Fonte ainda menor */
        white-space: nowrap;
        min-width: 0; /* Permite que o flex item encolha abaixo do tamanho do conteúdo */
        flex-shrink: 1; /* Permite encolher */
    }

    .cta-btn {
        padding: 0.4rem 0.6rem; /* Padding ainda menor */
        font-size: 0.7rem; /* Fonte ainda menor */
        white-space: nowrap;
        min-width: 0; /* Permite que o flex item encolha abaixo do tamanho do conteúdo */
        flex-shrink: 0; /* Impede que o botão encolha desproporcionalmente, prioriza o texto */
    }

    .gallery-grid {
        gap: 1rem;
    }
    
    .photographer-overlay {
        padding: 0.875rem 1rem;
    }
    
    .photographer-avatar {
        width: 36px;
        height: 36px;
    }
    
    .photographer-avatar img {
        width: 32px;
        height: 32px;
    }
    
    .photographer-name {
        font-size: 0.875rem;
    }
    
    .photographer-label {
        font-size: 0.75rem;
    }
}

/* Services */
.services {
    background: #1a1a1a;
    color: white;
}

.services h2 {
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
    border-color: #d4af37;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

.testimonials {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 4px solid #d4af37;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.testimonial-author {
    font-weight: 600;
    color: #d4af37;
}

.cta-section {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    text-align: center;
}

.cta-section h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #2d2d2d;
}

.cta-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Increased gap for better separation */
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    color: rgba(0, 0, 0, 0.7); /* Darker, less prominent color */
    font-size: 1.1rem;
    text-decoration: none; /* Removed underline for a cleaner look */
    transition: color 0.3s ease;
}

.email-link:hover {
    color: rgba(0, 0, 0, 0.9); /* Darken on hover */
}

.email-link svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    stroke: currentColor; /* Inherits the link's color */
}

/* About Section */
.about-section {
    background: white;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto; /* Adicionado para manter a proporção da imagem */
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.about-text {
    flex: 1.2;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #555;
}

footer {
    background: #0f0f0f;
    color: white;
    text-align: center;
    padding: 2rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-image {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .about-container {
        flex-direction: column;
        gap: 2rem; /* Reduce gap for mobile */
    }

    .hero p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .featured-image {
        grid-column: span 1;
        grid-row: span 1;
    }



    .services-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.desktop-nav .logo .subtitle,
.mobile-nav .logo .subtitle {
    font-size: 0.6em; /* Smaller than the main title */
    color: #b0b0b0; /* A lighter color */
    margin-top: 0em; /* Reduced spacing */
    display: block; /* Ensures it takes its own line */
    text-align: center; /* Center the text */
}
