:root {
    /* Paleta principal atualizada conforme especificação */
    --primary-color: #d6909b; /* Elementos decorativos e cabeçalhos */
    --secondary-color: #fff8eb; /* Fundo */
    --text-color: #3a3a3a; /* Texto padrão */
    --title-color: #5f081f; /* Títulos */
    --accent-color: #d6909b; /* Ícones e separadores */

    /* Cores auxiliares existentes */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-color: #f7f7f7;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --animation-duration: 0.8s;
    --hover-scale: 1.05;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
    transition: padding 0.3s ease;
    min-height: auto;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

header h1 {
    transition: var(--transition);
}

header h1:hover {
    transform: scale(var(--hover-scale));
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Seções */
.section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: var(--transition);
}

.section-header:hover h2 {
    transform: scale(1.03);
}

.section-divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto;
    transition: width 0.5s ease;
}

.section-header:hover .section-divider {
    width: 100px;
}

.bg-light {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    /* Fallback gradient caso a imagem não carregue */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* Imagem principal com overlay escuro */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/home.jpg?v=4');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    /* Transição suave para carregamento */
    transition: background-image 0.3s ease-in-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: scaleIn 0.8s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--text-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: var(--text-color);
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover, nav ul li a.active {
    color: white;
    transform: translateY(-2px);
}

nav ul li a.active {
    font-weight: 700;
}

/* Main Content Styles */
main {
    padding: 2rem 0;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    margin-top: 20px;
    color: var(--accent-color);
}

.about-text ul {
    list-style: none;
    margin-top: 15px;
}

.about-text ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about-text ul li i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 15px;
}

.service-card p {
    margin-top: 15px;
    padding-top: 10px;
}

/* Schedule Section */
.schedule-container {
    display: flex;
    justify-content: center;
}

.schedule-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 500px;
}

.schedule-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.schedule-header i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 15px;
}

.schedule-header h3 {
    font-size: 1.5rem;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.schedule-list li:last-child {
    border-bottom: none;
}

.day {
    font-weight: 600;
}

.hours {
    color: var(--accent-color);
    font-weight: 600;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.contact-list li {
    display: flex;
    margin-bottom: 25px;
}

.contact-list li i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-list li h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Contact Form Button */
.contact-form .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
}

.contact-form .btn i {
    font-size: 1.2rem;
}

/* Gallery Styles */
.gallery-container {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-container h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.gallery-item .content {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-item h3 {
    margin-bottom: 1rem;
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--accent-color);
}

.gallery-item p {
    margin-top: 1rem;
    padding-top: 0.5rem;
    color: #666;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay i {
    color: white;
    font-size: 2rem;
}

/* Indicador de múltiplas fotos */
.multiple-photos-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.multiple-photos-indicator i {
    font-size: 0.8rem;
}

.loading-message {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    color: #6c757d;
}

/* Gallery Modal - Design Profissional */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInFromTop 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.modal-counter {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
}

.modal-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.modal-action-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
}

/* Modal Body */
.modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.modal-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100%;
}

.image-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    animation: imageZoomIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1.1rem;
}

.image-loading i {
    font-size: 2rem;
    color: var(--accent-color);
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
}

.nav-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.4);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

/* Modal Footer */
.modal-footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    animation: slideInFromBottom 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.image-details {
    margin-bottom: 1.5rem;
}

.image-title h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.image-description p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.image-metadata {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.metadata-item i {
    color: var(--accent-color);
    width: 16px;
}

/* Thumbnail Strip */
.thumbnail-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--accent-color);
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

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

/* Fullscreen Mode */
.gallery-modal.fullscreen-mode .modal-header,
.gallery-modal.fullscreen-mode .modal-footer {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-modal.fullscreen-mode:hover .modal-header,
.gallery-modal.fullscreen-mode:hover .modal-footer {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modal-body {
        padding: 1rem;
    }
    
    .image-container img {
        max-height: 60vh;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .prev-btn {
        left: 1rem;
    }
    
    .next-btn {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .modal-header {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 0.5rem;
    }
    
    .image-container img {
        max-height: 50vh;
        border-radius: 8px;
    }
    
    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 0.5rem;
    }
    
    .next-btn {
        right: 0.5rem;
    }
    
    .image-title h2 {
        font-size: 1.5rem;
    }
    
    .image-metadata {
        gap: 1rem;
    }
    
    .metadata-item {
        font-size: 0.9rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .modal-action-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-actions {
        gap: 0.25rem;
    }
    
    .modal-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .image-metadata {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .thumbnail-strip {
        gap: 0.5rem;
    }
    
    .thumbnail {
        width: 50px;
        height: 38px;
    }
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 40px 0 20px;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 992px) {
    /* Ajustes para tablets */
    header {
        padding: 0.3rem 0;
    }
    
    .logo img {
        height: 70px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* Header ultra compacto em mobile */
    header {
        padding: 0.05rem 0;
    }
    
    header .container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        position: relative;
        margin: 15px;
        min-height: 50px;
        max-height: 60px;
    }
    
    /* Logo centralizada e maior para mobile */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo img {
        height: 65px;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        display: none;
        animation: slideDown 0.3s ease;
    }
    
    nav.show {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        display: flex;
        padding: 20px 0;
        margin: 0;
        list-style: none;
    }
    
    nav ul li {
        margin: 10px 0;
        transform: translateX(-20px);
        opacity: 0;
        animation: slideIn 0.3s ease forwards;
    }
    
    nav ul li:nth-child(1) { animation-delay: 0.1s; }
    nav ul li:nth-child(2) { animation-delay: 0.2s; }
    nav ul li:nth-child(3) { animation-delay: 0.3s; }
    nav ul li:nth-child(4) { animation-delay: 0.4s; }
    nav ul li:nth-child(5) { animation-delay: 0.5s; }
    nav ul li:nth-child(6) { animation-delay: 0.6s; }
    
    nav ul li a {
        color: white;
        font-weight: 500;
        display: block;
        padding: 8px 0;
        transition: all 0.3s ease;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        color: var(--accent-color);
        transform: translateX(10px);
    }
    
    .mobile-menu-btn {
        display: block;
        color: var(--primary-color);
        font-size: 24px;
        cursor: pointer;
        transition: transform 0.3s ease;
        z-index: 1000;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Overlay não utilizado no dropdown */
    
    .mobile-menu-btn:hover {
        transform: rotate(90deg);
    }
    
    @keyframes slideDown {
        from {
            transform: scaleY(0);
        }
        to {
            transform: scaleY(1);
        }
    }
    
    @keyframes slideIn {
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    /* Header mínimo para telas pequenas */
    header {
        padding: 0.02rem 0;
    }
    
    header .container {
        margin: 12px;
        min-height: 45px;
        max-height: 55px;
        justify-content: center;
    }
    
    /* Logo centralizada para telas pequenas */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo img {
        height: 60px;
    }
    
    .hero-section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    /* Header ultra mínimo para telas muito pequenas */
    header {
        padding: 0.01rem 0;
    }
    
    header .container {
        margin: 10px;
        min-height: 40px;
        max-height: 50px;
        justify-content: center;
    }
    
    /* Logo centralizada para telas muito pequenas */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo img {
        height: 55px;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* ===== SISTEMA DE CARREGAMENTO DE IMAGENS ===== */

/* Estados de carregamento */
.about-image img,
.logo img {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.about-image img.image-loaded,
.logo img.image-loaded {
    opacity: 1;
}

/* Placeholder durante carregamento - apenas se necessário */
.about-image img.loading {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loading-pattern 1s linear infinite;
}

@keyframes loading-pattern {
    0% { background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
    100% { background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px; }
}

/* Fallback para imagens que falharam */
.image-fallback {
    border: 2px dashed #ddd;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

/* Otimizações para performance */
.about-image img,
.logo img {
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Lazy loading suporte */
.lazy-loading {
    opacity: 0.5;
    filter: blur(2px);
    transition: opacity 0.3s, filter 0.3s;
}

.lazy-loaded {
    opacity: 1;
    filter: blur(0);
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Estilos para notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification i {
    font-size: 18px;
    color: var(--primary-color);
}

.notification.success i {
    color: #28a745;
}

.notification.error i {
    color: #dc3545;
}

.notification.warning i {
    color: #ffc107;
}

.notification p {
    margin: 0;
    flex: 1;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.4;
}

.notification .close-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification .close-btn:hover {
    background: #f5f5f5;
    color: var(--text-color);
}

.notification.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Gallery Modal Responsive Styles */
@media (max-width: 1024px) {
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1.5rem;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .prev-btn {
        left: 1.5rem;
    }
    
    .next-btn {
        right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modal-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .modal-counter {
        text-align: center;
        font-size: 1rem;
    }
    
    .modal-actions {
        justify-content: center;
    }
    
    .modal-action-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .image-container img {
        max-height: 60vh;
        border-radius: 8px;
    }
    
    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 1rem;
    }
    
    .next-btn {
        right: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
    }
    
    .image-title h2 {
        font-size: 1.5rem;
    }
    
    .image-description p {
        font-size: 1rem;
    }
    
    .image-metadata {
        gap: 1rem;
        flex-direction: column;
    }
    
    .metadata-item {
        font-size: 0.9rem;
    }
    
    .thumbnail-strip {
        gap: 0.5rem;
    }
    
    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-counter {
        font-size: 0.9rem;
    }
    
    .modal-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 0.5rem;
    }
    
    .image-container img {
        max-height: 50vh;
        border-radius: 6px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .prev-btn {
        left: 0.5rem;
    }
    
    .next-btn {
        right: 0.5rem;
    }
    
    .modal-footer {
        padding: 0.75rem;
    }
    
    .image-title h2 {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }
    
    .image-description p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .metadata-item {
        font-size: 0.8rem;
    }
    
    .thumbnail-strip {
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
    
    .thumbnail-item {
        width: 40px;
        height: 40px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-header {
        padding: 0.5rem 1rem;
    }
    
    .modal-body {
        padding: 0.5rem 1rem;
    }
    
    .image-container img {
        max-height: 70vh;
    }
    
    .modal-footer {
        padding: 0.5rem 1rem;
    }
    
    .image-details {
        margin-bottom: 1rem;
    }
    
    .image-title h2 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }
    
    .image-description p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .modal-action-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .nav-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .thumbnail-item {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

/* Modal scrollbar customization */
.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Thumbnail strip scrollbar */
.thumbnail-strip::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

.thumbnail-strip::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 105, 180, 0.8);
}
