:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-blue: #00d2ff;
    --accent-purple: #9d50bb;
    --accent-gold: #fbc02d;
    --card-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.bg-sculpture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    mix-blend-mode: screen;
}

.bg-sculpture-fallback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: min(70vw, 720px);
    max-height: min(80vh, 820px);
    object-fit: contain;
    opacity: 0.28;
    z-index: -3;
    pointer-events: none;
    filter: brightness(1.2) contrast(1.1);
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 78%);
    mask-image: radial-gradient(circle, black 40%, transparent 78%);
}
@media (max-width: 768px) {
    .bg-sculpture-fallback { max-width: 90vw; max-height: 60vh; opacity: 0.22; }
}
@media (max-width: 480px) {
    .bg-sculpture-fallback { max-width: 95vw; max-height: 50vh; opacity: 0.18; }
}

/* Ajuste do Hero para evitar sobreposição */
.hero-content {
    transform: translateY(-20vh); /* Subir mais o título */
}

.hero-content h1 {
    margin-bottom: 40px; /* Mais espaço para o nome abaixo */
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.3s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: transform 0.1s ease-out, opacity 0.3s;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
    position: fixed;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    opacity: 0.6;
    transition: all 0.4s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--app-color);
    transition: 0.4s;
}

nav a:hover {
    opacity: 1;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

nav a:hover::after {
    width: 100%;
}

.logo .glitch {
    font-size: 1.4rem;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    letter-spacing: 10px; /* Alinhado com o estilo do título */
    color: #fff;
    position: relative;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.logo .glitch::before,
.logo .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.4;
    color: #fff;
    font-family: 'Cinzel', serif;
}

.logo .glitch::before {
    animation: glassGlitch 4s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -1px);
}

.logo .glitch::after {
    animation: glassGlitch 3s infinite reverse;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    transform: translate(2px, 1px);
}

@keyframes glassGlitch {
    0%, 100% { transform: translate(0); opacity: 0; }
    5%, 10% { transform: translate(-2px, 1px); opacity: 0.4; }
    11%, 100% { transform: translate(0); opacity: 0; }
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 80, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 255, 0.75),
                    -0.025em 0.05em 0 rgba(255, 255, 0, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 80, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 255, 0.75),
                    -0.025em 0.05em 0 rgba(255, 255, 0, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 80, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 255, 0.75),
                    -0.05em -0.05em 0 rgba(255, 255, 0, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 80, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 255, 0.75),
                    -0.05em -0.05em 0 rgba(255, 255, 0, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 80, 0.75),
                    0.05em 0 0 rgba(0, 255, 255, 0.75),
                    0 -0.05em 0 rgba(255, 255, 0, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 80, 0.75),
                    0.05em 0 0 rgba(0, 255, 255, 0.75),
                    0 -0.05em 0 rgba(255, 255, 0, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 80, 0.75),
                    -0.025em -0.025em 0 rgba(0, 255, 255, 0.75),
                    -0.025em -0.05em 0 rgba(255, 255, 0, 0.75);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 42px, 0); }
    40% { clip: rect(16px, 9999px, 78px, 0); }
    60% { clip: rect(81px, 9999px, 13px, 0); }
    80% { clip: rect(95px, 9999px, 37px, 0); }
    100% { clip: rect(25px, 9999px, 59px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(30px, 9999px, 54px, 0); }
    40% { clip: rect(12px, 9999px, 89px, 0); }
    60% { clip: rect(48px, 9999px, 22px, 0); }
    80% { clip: rect(74px, 9999px, 35px, 0); }
    100% { clip: rect(91px, 9999px, 11px, 0); }
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero-content {
    transform: translateY(-10vh);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    font-family: 'Cinzel', serif;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 12px; /* Espaçamento de ampulheta */
    margin-bottom: 25px;
    position: relative;
    color: #fff;
    text-transform: uppercase;
    background: linear-gradient(
        to bottom,
        #fff 0%,
        rgba(255, 255, 255, 0.4) 50%,
        #fff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.hero-subtitle-name {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 15px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 30px;
    opacity: 0.8;
}

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


.hero-title-3d {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.6;
    max-width: 600px;
    margin: 0 auto;
}

.scroll-indicator {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.5;
    animation: fadeIn 2s ease-out 1s both;
}

.arrow {
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) rotate(45deg);}
    40% {transform: translateY(-10px) rotate(45deg);}
    60% {transform: translateY(-5px) rotate(45deg);}
}

/* Final Refined Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px; /* Aumentado para evitar sobreposição */
    padding: 100px 10%;
    perspective: 2000px;
}

.app-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Borda transparente cristalina */
    border-radius: 24px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: border-color 0.4s, background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
    /* animation: floatingCard 6s ease-in-out infinite; */ /* Removido para GSAP */
}

/* Removido para evitar conflito com GSAP */
/*
@keyframes floatingCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
*/

.app-card:hover {
    /* Transform controlado 100% pelo GSAP — não sobrescrever aqui */
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

/* ====== NARASSA GAME CARD 9:16 ====== */
.app-card-game {
    grid-row: span 2;
    padding: 0 0 15px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    cursor: crosshair;
}

.game-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
}

.game-wrapper canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.game-overlay-title {
    position: absolute;
    top: 12px; left: 0; right: 0;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: #00f260;
    text-shadow: 0 0 20px rgba(0, 242, 96, 0.6), 0 0 40px rgba(0, 242, 96, 0.3);
    z-index: 2;
    pointer-events: none;
}

.game-overlay-hint {
    position: absolute;
    bottom: 15px; left: 0; right: 0;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    z-index: 2;
    pointer-events: none;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.app-card-game .platform {
    padding: 10px 20px 0;
}

.app-card-game .btn-detail {
    margin: auto 20px 0;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    position: relative;
    transform-style: preserve-3d;
    transition: 0.3s;
}

.app-icon-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--app-color));
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(20px); /* Pop out sutil fixo */
}

.app-card:hover .app-icon-img {
    transform: translateZ(60px) scale(1.6); /* Pop out agressivo no hover */
    filter: drop-shadow(0 0 20px var(--app-color));
}

.app-card h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem; /* Tamanho corrigido para não cortar */
    margin-bottom: 8px;
    background: linear-gradient(to bottom, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.app-card .platform {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--app-color);
    margin-bottom: 18px;
    display: block;
}

.btn-detail {
    margin-top: auto;
    background: var(--app-color);
    border: none;
    color: #000;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.app-card:hover .btn-detail {
    background: #fff;
    transform: scale(1.05);
}

/* Modal Glassmorphism */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Mais transparente para ver o fundo */
    z-index: 1000;
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    width: 90%;
    max-width: 900px;
    border-radius: 40px;
    position: relative;
    padding: 60px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--app-color), transparent);
}


.close-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.close-modal:hover {
    opacity: 1;
    color: var(--app-color);
}

.modal-header {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

#modal-img {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-title-group h2 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 5px;
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-title-group span {
    color: var(--app-color);
    letter-spacing: 4px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    opacity: 0.9;
}

#modal-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #fff;
    opacity: 0.95;
    margin-bottom: 40px;
    border-left: 5px solid var(--app-color);
    padding-left: 30px;
    font-weight: 400;
}

.modal-info h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--app-color);
    font-weight: 800;
}

#modal-features li {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
}

#modal-features li::before {
    content: '→';
    margin-right: 10px;
    color: var(--app-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: #222;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-blue);
}

/* Sections Styling */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 50px;
    background: linear-gradient(90deg, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.about-section {
    padding: 150px 10%;
    position: relative;
    background: transparent;
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 80px 60px; /* Mais espaço vertical */
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px); /* Mais blur para legibilidade */
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.about-subtitle {
    font-family: var(--font-heading);
    color: var(--accent-blue);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    margin-top: 35px;
    font-weight: 800;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 20px;
}

.about-list {
    list-style: none;
    margin-bottom: 30px;
}

.about-list li {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    opacity: 0.9;
}

.about-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.about-list li span {
    color: var(--accent-blue);
    font-weight: 700;
}



.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px; /* Espaço após o texto */
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-blue);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

.about-image-container {
    position: relative;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-image-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent-blue), transparent 30%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.experience-card {
    position: relative;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: rgba(10, 10, 10, 0.6); /* Glass base */
    border-radius: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.experience-card span {
    font-size: 8rem;
    font-weight: 900;
    opacity: 0.03;
    position: absolute;
    color: #fff;
}

.experience-card h3 {
    font-size: 1.8rem;
    text-align: center;
    padding: 20px;
    color: var(--accent-blue);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    z-index: 2;
}

/* Floating Tech Icons Styles */
.tech-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    color: var(--accent-blue);
    opacity: 0.15; /* Sutil para não poluir */
    font-weight: 900;
    font-family: var(--font-heading);
    pointer-events: none;
    filter: blur(1px);
    transition: opacity 0.5s;
}

.floating-icon:hover {
    opacity: 0.5;
}

/* Contact Section */
.contact-section {
    padding: 150px 10%;
    text-align: center;
}

.contact-section p {
    font-size: 1.5rem;
    opacity: 0.6;
    margin-bottom: 60px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-btn {
    padding: 20px 40px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    transition: 0.4s;
    background: rgba(255,255,255,0.02);
}

.contact-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255,255,255,0.1);
}

/* --- RESPONSIVIDADE COMPLETA (AUTO-AJUSTE) --- */

@media (max-width: 1200px) {
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 60px 5%;
        gap: 50px;
    }
    
    .hero-content h1 {
        letter-spacing: 6px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 5%;
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 20px;
    }

    .hero-content {
        transform: translateY(-5vh);
    }

    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 4rem);
        letter-spacing: 4px;
    }

    .hero-subtitle-name {
        letter-spacing: 6px;
        font-size: 0.7rem;
    }

    .about-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
        border-radius: 20px;
        margin: 20px;
    }

    .modal-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    #modal-img {
        width: 120px;
        height: 120px;
    }

    .contact-links {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 60px; /* Gap maior para evitar sobreposição no mobile */
        padding: 50px 8%;
    }

    .logo .glitch {
        font-size: 1.1rem;
        letter-spacing: 5px;
    }

    nav a {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 5%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }
}
/* Narrate Button Style */
.narrate-btn {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.narrate-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

.narrate-btn.active {
    background: var(--app-color);
    border-color: var(--app-color);
    color: #000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,255,255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255, 0); }
}

footer {
    padding: 80px 10% 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 4px;
    opacity: 0.4;
    text-transform: uppercase;
}
