/* Estilos para o efeito de sticky scroll e animações */

@font-face {
    font-family: 'Glacial-Regular';
    src: url('fonts/Glacial-Regular.otf') format('opentype');
}

html, body {
    overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
    scroll-behavior: smooth;
}

.scroll-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

.scroll-section {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden; /* Hide overflowing content on desktop */
}

#insect-particle-canvas {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 50%;
    z-index: 10;
}

/* Estilos para a seção 7 */
#new-section .tilt-card, #new-section .tilt-card-inner {
    transform-style: preserve-3d;
}

#new-section .tilt-card:hover, #new-section .tilt-card-inner:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Media Queries for Responsiveness */

@media (max-width: 1024px) {
    /* Allow normal scrolling */
    html, body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .scroll-container {
        scroll-snap-type: none;
        overflow-y: visible;
        height: auto;
    }

    .scroll-section {
        height: auto !important;
        min-height: fit-content;
        padding: 80px 40px;
        overflow: visible; /* Show all content */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #hero, #final-cta {
        height: 100vh !important;
    }

    h1, .text-8xl, .text-7xl, .text-6xl {
        font-size: 2.8rem !important;
    }
    h2, .text-5xl {
        font-size: 2.2rem !important;
    }
    h3, .text-4xl {
        font-size: 1.8rem !important;
    }

    header.absolute {
        position: relative;
        flex-direction: column;
        gap: 1rem;
    }

    /* Section 2 */
    #clean-minimalist .flex-grow.flex { flex-direction: column; text-align: center; }
    #clean-minimalist .w-1\/2 { width: 100%; }
    #clean-minimalist .bg-contain { height: 300px; background-position: center; margin-top: 2rem; }
    #clean-minimalist .rounded-t-3xl { margin-top: 0; }
    #clean-minimalist .justify-around { flex-wrap: wrap; gap: 20px; }
    #clean-minimalist .grid { grid-template-columns: 1fr; }

    /* Section 3 */
    #dark-tech .grid { grid-template-columns: 1fr; text-align: center; }
    #dark-tech .text-left { text-align: center; }

    /* Section 4 */
    #colorful-creative .grid { grid-template-columns: 1fr; justify-items: center; }
    #colorful-creative .grid > div { width: 100%; max-width: 320px; height: auto; }
    #colorful-creative .description-wrapper {
        background-color: rgba(38, 38, 38, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px); /* Safari support */
        border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border like the glass-effect class */
        margin-top: 2rem;
    }

    /* Section 5 */
    #corporate-elegant {
        overflow: visible;
    }
    #corporate-elegant > .flex-grow.flex {
        flex-direction: column;
    }
    #corporate-elegant .w-3\/5, #corporate-elegant .w-2\/5 {
        width: 100%;
        padding: 40px 20px;
    }
    #corporate-elegant .w-2\/5 header {
        margin-bottom: 2rem;
    }
    #corporate-elegant .absolute.left-1\/2 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        z-index: 5;
        order: -1;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    #corporate-elegant .w-96 { width: 100%; }
    #corporate-elegant .h-\[700px\] {
        height: auto;
        max-height: 450px;
        border-radius: 40px;
        object-fit: cover;
    }
    #corporate-elegant footer.absolute {
        position: relative;
        padding: 40px 20px;
    }
    #corporate-elegant footer .grid { grid-template-columns: 1fr; gap: 20px; }
    #corporate-elegant .w-2\/5.bg-white > main { margin-bottom: 20px; }

    /* Section 6 */
    #mobile-app .grid { grid-template-columns: 1fr; text-align: center; }
    #mobile-app .phone-frame { margin-top: 40px; transform: scale(0.95); }
    #mobile-app .floating-card-1, #mobile-app .floating-card-2 {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        margin: 20px auto;
        width: 90%;
        z-index: auto;
    }

    /* Section 7 */
    #new-section .grid { grid-template-columns: 1fr; }
    #new-section .absolute.bottom-0 {
        position: relative;
        margin-top: 40px;
    }
    #new-section .text-center.-mt-24 { margin-top: 0; }
}


@media (max-width: 768px) {
    .scroll-section {
        padding: 60px 20px;
    }

    h1, .text-8xl, .text-7xl, .text-6xl {
        font-size: 2.2rem !important;
    }
    h2, .text-5xl {
        font-size: 1.8rem !important;
    }
    h3, .text-4xl {
        font-size: 1.5rem !important;
    }

    header .hidden.md\:flex {
        display: none;
    }
    
    #clean-minimalist .bg-contain { height: 250px; }
    #corporate-elegant .h-\[700px\] { max-height: 400px; }
    .phone-frame { transform: scale(0.9); }
}


/* Estilos para o efeito de vidro fosco */
.glass-effect {
    background: rgba(255, 255, 255, 0.1); /* Fundo branco com 10% de opacidade */
    backdrop-filter: blur(10px); /* Efeito de desfoque */
    -webkit-backdrop-filter: blur(10px); /* Suporte para Safari */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borda sutil */
}

.moon-background {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35vw;
    height: 35vw;
    z-index: 5;
    animation: move-moon 240s linear infinite; /* Animação mais lenta */
}

@keyframes move-moon {
    0% {
        transform: translate(-50%, 50%) scaleX(-1); /* Começa parcialmente visível, espelhado */
    }
    100% {
        transform: translate(300vw, -200%) scaleX(-1); /* Termina mais alto, espelhado */
    }
}

/* Estilos para o mockup de celular */
.phone-frame {
    position: relative;
    width: 300px;
    height: 620px;
    background-color: #111111;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    margin: 0 auto; /* Centraliza o mockup */
}

.phone-side-buttons {
    position: absolute;
    top: 120px;
    right: -2px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.phone-side-buttons .button {
    width: 2px;
    height: 25px;
    background-color: #111111;
    border-radius: 0 2px 2px 0;
}

.phone-side-buttons .button:last-child {
    height: 40px;
}

.phone-screen {
    background-color: white;
    height: 100%;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.top-bezel {
    padding-top: 25px; /* Borda superior maior */
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 20;
}

.camera {
    width: 8px;
    height: 8px;
    background-color: #222;
    border-radius: 50%;
    border: 1px solid #444;
}

.phone-content {
    padding-top: 45px; /* Espaço para a borda superior */
    flex-grow: 1;
    overflow-y: auto; /* Permite scroll se o conteúdo for maior */
    color: black;
    display: flex;
    flex-direction: column;
}

.phone-content .content-wrapper {
    flex-grow: 1;
}

.phone-content .navigation-bar {
    padding: 10px 0;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: auto; /* Empurra para o final */
}

.floating-card-1 {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(30%);
    z-index: 25;
    width: 300px;
}

.floating-card-2 {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(10%);
    z-index: 25;
    width: 300px;
}


/* Estilos para o canvas de partículas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#particle-canvas-section4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Estilos para o efeito de tilt */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.tilt-card:hover {
    transform: translateZ(20px);
}

.tilt-card-inner {
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.tilt-card-inner:hover {
    transform: translateZ(10px);
}

/* Estilos para o efeito de scroll suave */
.smooth-scroll-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.smooth-scroll-content {
    will-change: transform;
}

/* Estilos para o efeito de texto gradiente */
.gradient-text {
    background: linear-gradient(to right, #8A2BE2, #DA70D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Estilos para o efeito de brilho */
.glow-effect {
    box-shadow: 0 0 20px rgba(200, 150, 255, 0.5);
}

/* Estilos para o efeito de borda neon */
.neon-border {
    border: 3px solid transparent;
    background-image: linear-gradient(to bottom right, #8A2BE2, #DA70D6);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.8), inset 0 0 20px rgba(218, 112, 214, 0.5);
}

/* Estilos para o efeito de partículas de insetos */
#insect-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Estilos para o efeito de texto com sombra */
.text-shadow-glow {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Estilos para o efeito de fundo com gradiente */
.background-gradient {
    background: radial-gradient(circle at center, rgba(100, 0, 200, 0.1) 0%, transparent 50%), linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(20, 0, 40, 0.8) 100%);
}

/* Estilos para o efeito de brilho de fundo */
.background-glow {
    box-shadow: inset 0 0 100px rgba(100, 0, 200, 0.3);
}

/* Estilos para o efeito de brilho de texto lilás */
.lilac-glow {
    background: radial-gradient(circle at center, rgba(200, 150, 255, 0.1) 0%, transparent 70%);
}

/* Estilos para o efeito de sombra de tag */
.tag-shadow {
    box-shadow: 0 0 10px rgba(200, 150, 255, 0.5);
}

/* Estilos para o efeito de sombra de tag forte */
.strong-tag-shadow {
    box-shadow: 0 0 8px rgba(200, 150, 255, 0.3);
}

/* Estilos para o efeito de texto com sombra roxa */
.purple-text-shadow {
    text-shadow: 0 0 10px rgba(200, 150, 255, 0.8);
}

/* Estilos para o efeito de sombra de imagem */
.image-shadow {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Estilos para o efeito de texto com sombra dourada */
.gold-text-shadow {
    color: #fff8dc;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Estilos para o efeito de cartão com desfoque */
.blur-card {
    backdrop-filter: blur(10px);
}

/* Estilos para a seção 4 */
#colorful-creative .description-wrapper {
    background: transparent;
    border-radius: 0.5rem; /* 8px */
    transition: background-color 0.3s ease;
}
