/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #d4af37;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 72px;
}

main {
    padding-top: var(--header-height);
}

@media (max-width: 768px) {
    main {
        padding-top: 64px;
    }
}

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

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

/* Header minimalista */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.1em;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 300;
    margin-top: -2px;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
    position: relative;
}

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

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

/* Menu Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    padding: 60px 2rem 20px;
    text-align: center;
    background: var(--secondary-color);
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-location {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.location-text {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 400;
}

.coordinates {
    font-size: 0.8rem;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

/* Portfolio Section */
.portfolio {
    padding: 20px 2rem 60px;
    background: white;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0;
}

.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: var(--transition);
    z-index: -1;
}

.category-btn:hover::before,
.category-btn.active::before {
    left: 0;
}

.category-btn:hover,
.category-btn.active {
    color: rgb(196, 181, 53);
    border-color: var(--accent-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    background: white;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.portfolio-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 12px 12px 0 0;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 2rem;
    background: white;
    border-radius: 0 0 12px 12px;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.portfolio-type {
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* About Section */
.about {
    padding: 100px 2rem;
    background: var(--secondary-color);
}

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

.about-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 100px 2rem;
    background: white;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.social-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.social-link.instagram:hover {
    border-color: #e4405f;
    color: #e4405f;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem 2rem;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* Modal melhorado */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    margin: 0 auto;
    width: min(900px, 92vw);
    height: 95vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
    box-sizing: border-box;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
    z-index: 10;
}

.close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-image-container {
    width: 100%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    flex-shrink: 0;
}

#modalImage {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

.modal-info {
    padding: 1rem 1.5rem 0.5rem;
    background: white;
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.modal-info h3 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.modal-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.modal-date {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 400;
}

.modal-type {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.modal-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 300;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav.nav-open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
        font-weight: 500;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 40px 1rem 20px;
    }
    
    .portfolio {
        padding: 20px 1rem;
    }
    
    .portfolio-header {
        margin-bottom: 0.8rem;
    }
    
    .portfolio-categories {
        margin-bottom: 0.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .about, .contact {
        padding: 80px 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        width: 96vw;
        height: 80vh;
    }
    
    .modal-image-container {
        height: 60vh;
    }
    
    #modalImage {
        max-height: 60vh;
    }
    
    .modal-info {
        padding: 1rem 1.5rem 1.5rem;
        flex: 1;
        min-height: 0;
    }
    
    .modal-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .portfolio-item {
        margin: 0 1rem;
    }
    
    .portfolio-image {
        height: 300px;
    }
    
    .modal-info h3 {
        font-size: 1.5rem;
    }
    
    .close {
        right: 1rem;
        top: 1rem;
        width: 40px;
        height: 40px;
    }
}


/* Estilos para o modal de tela cheia */
#fullscreenModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2001;
}

#fullscreenImage {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;
}

#fullscreenImage.zoomIn {
    animation-name: zoomIn;
}

#fullscreenImage.zoomOut {
    animation-name: zoomOut;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.5);
        opacity: 0;
    }
}
/* Animações */
.portfolio-item {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

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