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

:root {
    --primary-color: #111827;
    --secondary-color: #4b5563;
    --whatsapp-color: #25D366;
    --text-light: #ffffff;
    --text-dark: #111827;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --transition: all 0.3s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo h2 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

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

.nav-link {
    background: none;
    border: none;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.875rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.025em;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

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

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

/* Tab System */
.tab-content {
    margin-top: 0;
    min-height: 100vh;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

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

/* Home Section - Rotating Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Mantém o cover mas garante preenchimento total */
    background-size: cover;
    background-color: #000;
}

.banner-slide:nth-child(1) {
    background-position: center top;
}

.banner-slide:nth-child(2) {
    background-position: center center;
}

.banner-slide:nth-child(3) {
    background-position: center center;
}

.banner-slide:nth-child(4) {
    background-position: center center;
}

.banner-slide:nth-child(5) {
    background-position: center center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding-top: 0;
}

.banner-content {
    text-align: left;
    color: white;
    max-width: 800px;
    padding: 2rem;
    position: absolute;
    bottom: 4rem;
    left: 2rem;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    animation: fadeInUp 1s ease-out;
}

.banner-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.banner-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--whatsapp-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition);
    letter-spacing: 0.025em;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.banner-whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.banner-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 3;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background: white;
    transform: scale(1.2);
}

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

/* Container and Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.portfolio-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: white;
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(0);
    transition: var(--transition);
    opacity: 0;
}

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

.portfolio-overlay h3 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.portfolio-overlay p {
    font-size: 0.75rem;
    color: #d1d5db;
}

/* Zoom Button */
.zoom-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.portfolio-item:hover .zoom-button,
.product-card:hover .zoom-button {
    opacity: 1;
}

.zoom-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 5% auto;
    text-align: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-zoom-in,
.modal-zoom-out {
    position: absolute;
    bottom: -40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-zoom-in {
    left: calc(50% - 40px);
}

.modal-zoom-out {
    left: calc(50% + 4px);
}

.modal-zoom-in:hover,
.modal-zoom-out:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.product-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 400;
}

.product-description {
    color: #6b7280;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.whatsapp-btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--whatsapp-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.75rem;
    transition: var(--transition);
}

.whatsapp-btn-buy:hover {
    background: #128c7e;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .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);
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--primary-color);
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-whatsapp-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.875rem;
    }
    
    .banner-content {
        bottom: 3rem;
        left: 1.5rem;
        right: 1.5rem;
        padding: 1.5rem;
    }
    
    .portfolio-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 0.875rem;
    }
    
    .banner-content {
        bottom: 2rem;
        left: 1rem;
        right: 1rem;
        padding: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
}