@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@700&display=swap');
:root { 
    --primary: #0066ff; 
    --secondary: #00c6ff; 
    --accent: #9d4edd; 
    --success: #10b981; 
    --bg-light: #f8fafc; 
    --glass-bg: rgba(255, 255, 255, 0.65); 
    --glass-border: rgba(255, 255, 255, 1); 
    --glass-hover: rgba(255, 255, 255, 0.95); 
    --text-main: #0f172a; 
    --text-muted: #64748b; 
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-main); line-height: 1.6; position: relative; overflow-x: hidden; min-height: 100vh; }

/* Abstract Mesh Gradient Background (Light Mode) */
.mesh-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2;
    background: radial-gradient(at 0% 0%, rgba(0, 102, 255, 0.15) 0px, transparent 50%),
                radial-gradient(at 100% 0%, rgba(157, 78, 221, 0.15) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(0, 198, 255, 0.15) 0px, transparent 50%);
    filter: blur(60px);
}

.bg-orb { position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none;}
.orb-1 { width: 600px; height: 600px; background: rgba(0, 198, 255, 0.2); top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: rgba(157, 78, 221, 0.15); bottom: -100px; right: 5%; animation-delay: -5s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(100px, 50px) scale(1.1); } }

/* Header Premium */
header { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(24px) saturate(180%); border-bottom: 1px solid var(--glass-border); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04); }
.logo { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; color: var(--text-main); text-decoration: none; text-transform: uppercase; letter-spacing: -1px; text-shadow: 0 2px 10px rgba(0,102,255,0.2); }
.nav-links a { margin-left: 25px; text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: all 0.3s; position: relative;}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; box-shadow: 0 0 10px rgba(0,102,255,0.4); }

/* Search Bar Premium */
.search-bar { flex: 0 1 500px; display: flex; position: relative;}
.search-bar input { width: 100%; padding: 12px 20px; background: rgba(255, 255, 255, 0.8); color: var(--text-main); border: 1px solid #e2e8f0; border-radius: 50px 0 0 50px; outline: none; backdrop-filter: blur(10px); font-size: 15px; transition: all 0.3s; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);}
.search-bar input:focus { border-color: var(--primary); background: #ffffff; box-shadow: 0 0 0 4px rgba(0,102,255,0.1); }
.search-bar input::placeholder { color: #94a3b8; }
.search-bar button { padding: 12px 25px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 800; border: none; border-radius: 0 50px 50px 0; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3); transition: all 0.3s; text-transform: uppercase; font-size: 14px; letter-spacing: 1px;}
.search-bar button:hover { box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5); transform: scale(1.02); }

.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: 2.5fr 1fr; gap: 40px; }
.app-list { display: flex; flex-direction: column; gap: 20px; }

/* Premium Glass Cards with 3D effect */
.app-card, .sidebar, .destaque-board, .glass-panel { background: var(--glass-bg); backdrop-filter: blur(24px) saturate(180%); border: 1px solid var(--glass-border); border-radius: 24px; padding: 25px; text-decoration: none; color: inherit; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.05); }
.app-card { display: flex; align-items: flex-start; gap: 25px; }

.app-card:hover { background: var(--glass-hover); transform: translateY(-6px) scale(1.01); border-color: rgba(0, 102, 255, 0.2); box-shadow: 0 20px 40px rgba(0,102,255,0.08), 0 0 20px rgba(0, 102, 255, 0.05); }
.app-icon { width: 90px; height: 90px; border-radius: 20px; object-fit: cover; box-shadow: 0 8px 25px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05); transition: transform 0.4s; }
.app-card:hover .app-icon { transform: scale(1.05) rotate(2deg); }

.app-info { flex: 1; display:flex; flex-direction: column;}
.app-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; color: var(--text-main); font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.5px;}
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; border-bottom: 2px solid #e2e8f0; padding-bottom: 12px; margin-bottom: 25px; margin-top: 40px; color: var(--text-main); letter-spacing: -0.5px;}
.section-title:first-child { margin-top: 0; }

/* Badges */
.badge-container { display: flex; gap: 10px; margin-bottom: 8px;}
.badge { background: #f1f5f9; color: var(--text-muted); font-size: 0.8rem; padding: 5px 12px; border-radius: 50px; display: inline-block; border: 1px solid #e2e8f0; font-weight: 600; letter-spacing: 0.5px;}
.badge-cat { background: rgba(0, 102, 255, 0.1); color: var(--primary); border-color: rgba(0, 102, 255, 0.2); }

/* Download Button */
.btn-download { background: linear-gradient(135deg, var(--success), #047857); color: #fff; padding: 12px 25px; border-radius: 50px; font-weight: 800; font-size: 15px; text-align: center; border: none; text-decoration: none; display: inline-block; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); transition: all 0.3s; cursor: pointer; text-transform: uppercase; letter-spacing: 1px;}
.btn-download:hover { box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); transform: translateY(-3px) scale(1.02); color: #fff; }

.mini-card { display: flex; gap: 15px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #e2e8f0; align-items: center; transition: transform 0.3s;}
.mini-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mini-card:hover { transform: translateX(5px); }
.mini-card img { width: 55px; height: 55px; border-radius: 14px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.1);}
.mini-card-info h4 { font-size: 1.05rem; margin-bottom: 5px; font-weight: 600; color: var(--text-main); font-family: 'Space Grotesk', sans-serif;}

/* 3D Mascot */
model-viewer {
    --poster-color: transparent;
}
model-viewer::part(default-progress-bar) {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    height: 3px;
    border-radius: 3px;
}

.hero-section model-viewer {
    animation: mascotFadeIn 1.2s ease-out;
    filter: drop-shadow(0 10px 40px rgba(0, 102, 255, 0.15));
}

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

@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; }
    header { flex-wrap: wrap; gap: 15px; }
    .search-bar { order: 3; flex: 1 1 100%; }
    .hero-section { flex-direction: column !important; text-align: center !important; padding: 50px 20px 30px !important; }
    .hero-section > div:first-child { text-align: center !important; }
    .hero-section h1 { font-size: 2.4rem !important; }
    .hero-section model-viewer { height: 320px !important; }
}
