* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a3c34 0%, #4a8b6f 100%);
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.layer-1 {
    background: url('https://www.transparenttextures.com/patterns/noisy-grid.png') repeat;
    opacity: 0.6;
    filter: blur(2px);
}

.layer-2 {
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png') repeat;
    opacity: 0.4;
    transform: scale(1.3);
    filter: blur(4px);
}

.layer-3 {
    background: url('https://www.transparenttextures.com/patterns/subtle-stripes.png') repeat;
    opacity: 0.3;
    transform: scale(1.5);
    filter: blur(6px);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    opacity: 0.2;
    animation: particleMove 20s infinite linear;
}

@keyframes particleMove {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

.site-container {
    max-width: 90%;
    margin: 5rem auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 139, 111, 0.3);
    padding: 2rem;
    position: relative;
    z-index: 1;
    transform: perspective(1500px) rotateY(-15deg) rotateX(10deg);
    transform-origin: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-container:hover {
    transform: perspective(1500px) rotateY(-10deg) rotateX(5deg);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6), 0 0 30px rgba(74, 139, 111, 0.5);
}

main {
    position: relative;
    overflow-y: auto;
    height: 80vh; /* Ajustado para ocupar mais espaço vertical */
    padding-bottom: 0;
}

.page {
    display: none;
    text-align: center;
    padding: 0;
    height: 100%; /* Garante que a página ocupe toda a altura do main */
    display: flex;
    flex-direction: column;
}

.page.active {
    display: flex;
}

.hero-title {
    font-size: 3.5rem;
    color: #1a3c34;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.hero-title:hover {
    text-shadow: 0 5px 20px rgba(74, 139, 111, 0.5);
    transform: translateY(-5px);
}

.hero-text {
    font-size: 1.5rem;
    color: #2d5a50;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.hero-text:hover {
    transform: translateY(-3px);
}

.iframe-wrapper {
    flex: 1; /* Faz o wrapper ocupar todo o espaço restante */
    position: relative;
    width: 100%;
    height: 100%; /* Ocupa toda a altura disponível */
}

.site-iframe {
    width: 100%;
    height: 100%; /* Ocupa toda a altura do wrapper */
    border: none;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.error-message {
    font-size: 1.2rem;
    color: #2d5a50;
    margin-top: 1rem;
}

.error-message a {
    color: #4ade80;
    text-decoration: none;
    transition: color 0.3s ease;
}

.error-message a:hover {
    color: #22c55e;
}

/* Responsividade */
@media (max-width: 768px) {
    .site-container {
        max-width: 95%;
        margin: 3rem auto;
        transform: perspective(1200px) rotateY(-5deg) rotateX(5deg);
        padding: 1rem;
    }

    main {
        height: 85vh; /* Mais espaço vertical no celular */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .site-container {
        transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
        margin: 2rem auto;
        padding: 0.5rem;
    }

    main {
        height: 90vh; /* Máximo de espaço vertical no celular */
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }
}