/* style.css - Elite Premium UI (Perfect Mobile Scaling & Splash Fix) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #3b82f6; --primary-glow: rgba(59, 130, 246, 0.4); --accent: #8b5cf6;
    --bg: #060913; --card: rgba(18, 24, 43, 0.75); --border: rgba(59, 130, 246, 0.25);
    --text: #ffffff; --text-dim: #94a3b8; --success: #10b981; --warning: #eab308; --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

/* Desktop Base Scaling */
html { scroll-behavior: smooth; scroll-padding-top: 130px; font-size: 14px; } 

body { top: 0 !important; background: var(--bg); color: var(--text); overflow-x: hidden; width: 100vw; background-image: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.05), transparent 25%), radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.05), transparent 25%); min-height: 100vh; display: flex; flex-direction: column; }
.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }

.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.text-center { text-align: center; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

/* Glass Panel - Compact Padding */
.glass-panel { background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); padding: 1.8rem; }

/* FIX: Absolute Top Splash Screen (Covers Everything) */
#splash-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; background-color: #000; z-index: 99999; display: flex; justify-content: center; align-items: center; text-align: center; cursor: pointer; transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.splash-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 1; pointer-events: none;}
.splash-content { position: relative; z-index: 2; pointer-events: none;}
#splash-profile { width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--primary); margin: 0 auto 1.2rem; object-fit: cover; box-shadow: 0 0 20px var(--primary-glow); }
.splash-content h1 { font-size: 2.2rem; background: linear-gradient(135deg, #fff, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem; font-weight: 800;}
.splash-content p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 2rem; letter-spacing: 1px; text-transform: uppercase;}
.tap-indicator { font-size: 0.9rem; color: var(--primary); animation: pulseText 1.5s infinite; }
@keyframes pulseText { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* HEADER FIX: Safe Z-index below Splash Screen */
header { position: fixed; width: 100%; top: 0; left: 0; background: rgba(6, 9, 19, 0.95); backdrop-filter: blur(15px); z-index: 9000; border-bottom: 1px solid rgba(255,255,255,0.08); height: 70px; display: flex; align-items: center;}
.nav-container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; }
.logo { font-size: 1.4rem; font-weight: 800; cursor: pointer; white-space: nowrap;} .logo span { color: var(--primary); }

/* Desktop Menu */
.nav-menu { display: flex; list-style: none; gap: 1.5rem; }
.nav-link { color: var(--text-dim); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: 0.3s; position: relative; padding: 0.5rem 0;}
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--primary); transition: 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--text); } .nav-link.active::after { width: 100%; }

.auth-zone { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-btn { background: rgba(59, 130, 246, 0.1); border: 1px solid var(--border); color: var(--primary); padding: 6px 12px; border-radius: 8px; font-size: 0.85rem; cursor: pointer; transition: 0.3s; font-weight: 600; white-space: nowrap;}
.lang-btn:hover { border-color: var(--primary); background: var(--primary); color: white;}
.glow-btn-small { background: rgba(59, 130, 246, 0.1); color: var(--primary); border: 1px solid var(--border); padding: 0.6rem 1.2rem; border-radius: 20px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: 0.3s; white-space: nowrap;}
.glow-btn-small:hover { background: var(--primary); color: white; box-shadow: 0 0 15px var(--primary-glow); }
.profile-trigger { display: flex; align-items: center; justify-content: center; }
.profile-trigger img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--primary); cursor: pointer; object-fit: cover; background: var(--card); transition: 0.3s;}
.profile-trigger img:hover { transform: scale(1.05); box-shadow: 0 0 10px var(--primary-glow); }

/* Buttons & Audio */
.glow-btn { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; border: none; padding: 0.9rem 1.8rem; border-radius: 30px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;}
.glow-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-glow); }
.outline-btn { background: transparent; color: var(--text); border: 2px solid var(--border); padding: 0.9rem 1.8rem; border-radius: 30px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: 0.3s; display: inline-block; text-decoration: none;}
.outline-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(59, 130, 246, 0.05); }
.floating-audio-btn { position: fixed; bottom: 80px; right: 20px; z-index: 8000; width: 50px; height: 50px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); color: var(--primary); font-size: 1.2rem; cursor: pointer; backdrop-filter: blur(10px); transition: 0.3s;}
.floating-audio-btn:hover { background: var(--primary); color: white; box-shadow: 0 0 15px var(--primary-glow); }

#main-content { padding-top: 70px; flex: 1; display: flex; flex-direction: column; width: 100%; }

.spa-page { display: none; animation: fadeInPage 0.4s ease-out forwards; width: 100%; }
.spa-page.active-page { display: block; }
@keyframes fadeInPage { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.semantic-section { padding: 3rem 5%; max-width: 1000px; margin: 0 auto; width: 100%; min-height: calc(100vh - 150px); }
.section-title { text-align: center; margin-bottom: 2.5rem; font-size: 2rem; font-weight: 700; }

/* Hero Section */
.hero { text-align: center; max-width: 800px; padding-top: 1.5rem;}
.hero-img-box img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--border); padding: 4px; margin-bottom: 1.2rem; object-fit: cover; background: var(--card); }
.hero h1 { font-size: 2.6rem; margin-bottom: 0.6rem; font-weight: 800; line-height: 1.2; }
.subtitle { font-size: 1.2rem; color: var(--primary); font-weight: 600; margin-bottom: 1rem; }
.about-text { font-size: 1rem; color: var(--text-dim); margin-bottom: 2rem; line-height: 1.6; padding: 0 1rem; }

.developer-stats { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.8rem; }
.stat { background: rgba(0,0,0,0.3); padding: 12px 20px; border-radius: 12px; border: 1px solid var(--border); }
.stat span { display: block; font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.stat small { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.skills-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 2.5rem; padding: 0 1rem; }
.skill-badge { background: rgba(59, 130, 246, 0.1); border: 1px solid var(--primary); color: var(--text); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; box-shadow: 0 0 10px rgba(59, 130, 246, 0.15); transition: 0.3s; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem;}

/* Grid & Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; padding: 0; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: 0.3s;}
.card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.card img { width: 100%; height: 160px; object-fit: cover; border-bottom: 1px solid rgba(255,255,255,0.05); }
.card-info { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.card-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-info p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.2rem; flex: 1; line-height: 1.5; }
.card-btns { display: flex; gap: 0.8rem; }
.card-btns a { flex: 1; text-align: center; padding: 0.7rem; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: 0.3s; }
.visit-btn { background: rgba(59, 130, 246, 0.1); color: var(--primary); border: 1px solid var(--border); }
.visit-btn:hover { background: var(--primary); color: white; }
.download-btn { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.download-btn:hover { background: var(--success); color: white; }

/* Forms */
.input-row { display: flex; gap: 1.2rem; margin-bottom: 1.2rem; }
input, select, textarea { width: 100%; padding: 1.1rem; background: rgba(0,0,0,0.4); border: 1px solid var(--border); color: white; border-radius: 10px; outline: none; font-size: 0.95rem; transition: 0.3s; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
.checkbox-container { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-dim); margin-bottom: 1rem; cursor: pointer;}
.checkbox-container input { width: auto; transform: scale(1.1); }

/* Modals & Dashboards */
.dashboard-overlay { position: fixed; top: 0; right: -100%; width: 350px; height: 100%; background: var(--bg); z-index: 9500; transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1); border-left: 1px solid var(--border); }
.dashboard-overlay.active { right: 0; }
.dashboard-content { padding: 2rem 1.5rem; height: 100%; overflow-y: auto; }
.close-dash { position: absolute; top: 15px; right: 20px; font-size: 1.6rem; cursor: pointer; color: var(--text-dim); transition: 0.3s; }
.close-dash:hover { color: var(--danger); transform: rotate(90deg); }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9500; justify-content: center; align-items: center; backdrop-filter: blur(8px); }
.modal-content { width: 90%; max-width: 380px; padding: 2rem; position: relative; border-radius: 14px; }
.modal .close { position: absolute; top: 12px; right: 18px; font-size: 1.6rem; cursor: pointer; color: var(--text-dim); }
.auth-tabs { display: flex; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.auth-tab-btn { flex: 1; padding: 8px; background: transparent; border: none; color: var(--text-dim); font-size: 0.95rem; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; transition: 0.3s; }
.auth-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.input-container { position: relative; margin-bottom: 1rem;}
.input-container i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
.input-container input { padding-left: 2.8rem; margin-bottom: 0; }
.google-btn { width: 100%; background: white; color: #333; border: none; padding: 0.8rem; border-radius: 10px; font-weight: 600; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 0.9rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: 0.3s;}
.google-btn:hover { background: #f1f5f9; }
.google-btn img { width: 18px; height: 18px; }

.popup-icon { font-size: 3.5rem; margin-bottom: 1rem; display: inline-block; animation: popScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.success-icon { color: var(--success); }
.warning-icon { color: var(--warning); }
@keyframes popScale { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* Pre-Footer Marquee & Footer */
.scrolling-ticker { width: 100%; overflow: hidden; white-space: nowrap; background: rgba(6, 9, 19, 0.9); border-top: 1px solid var(--border); padding: 10px 0; display: flex; align-items: center; margin-top: auto;}
.ticker-text { display: inline-block; animation: ticker 25s linear infinite; font-weight: 700; font-size: 0.9rem; color: var(--primary); letter-spacing: 2px; text-transform: uppercase; }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

.premium-footer { background: var(--card); backdrop-filter: blur(15px); border-top: 1px solid var(--border); padding: 2.5rem 5%; }
.footer-content { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-logo { font-size: 1.4rem; font-weight: 800; } .footer-logo span { color: var(--primary); }
#footer-dynamic-text { color: var(--text-dim); font-size: 0.85rem; line-height: 1.5; max-width: 500px;}
.footer-socials { display: flex; gap: 1.2rem; margin-top: 0.8rem; }
.footer-socials a { color: var(--text-dim); font-size: 1.3rem; transition: 0.3s; }
.footer-socials a:hover { color: var(--primary); transform: translateY(-3px); }


/* ================================================================= */
/* FIX: MOBILE LAYOUT (Compact Scaling + Fixed Menu Under Header)    */
/* ================================================================= */

@media (max-width: 768px) {
    /* 1. Global Scaling Down for App-like feel */
    html { font-size: 13px; scroll-padding-top: 120px; } 

    /* 2. Header stays at Top */
    header { height: 65px; position: fixed; top: 0; width: 100%; z-index: 9000; }
    
    .nav-container { padding: 0 1rem; height: 100%; display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; width: 100%;}
    .logo { font-size: 1.3rem; }
    .auth-zone { gap: 10px; flex-shrink: 0; display: flex; align-items: center;}
    .lang-btn { padding: 5px 10px; font-size: 0.85rem; }
    .glow-btn-small { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
    .profile-trigger img { width: 34px; height: 34px; }

    /* 3. Menu FIXED DIRECTLY UNDER THE HEADER (Top: 65px) */
    .nav-menu { 
        position: fixed; 
        top: 65px; 
        left: 0; 
        width: 100%; 
        background: rgba(6, 9, 19, 0.98); 
        backdrop-filter: blur(20px); 
        padding: 0.5rem 0; 
        justify-content: space-evenly; 
        flex-direction: row; 
        gap: 0; 
        border-top: none; 
        border-bottom: 1px solid var(--border); 
        z-index: 8999; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    }
    .nav-link { font-size: 0.85rem; display: flex; flex-direction: column; align-items: center; padding: 4px; font-weight: 600;}
    .nav-link::after { display: none; }
    .nav-link.active { color: var(--primary); }
    
    /* 4. Content Padding accounts for Header (65px) + Menu (~45px) */
    #main-content { padding-top: 110px; } 
    
    .semantic-section { min-height: auto; padding-bottom: 2.5rem; padding-top: 1rem;}
    .premium-footer { padding-bottom: 2.5rem; } 
    
    /* App-like adjustments */
    .hero { padding-top: 1rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; gap: 0.8rem; }
    .input-row { flex-direction: column; gap: 1rem; }
    .dashboard-overlay { width: 100%; }
    .glass-panel { padding: 1.2rem; }
    
    /* Safely position audio button */
    .floating-audio-btn { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 1.1rem; z-index: 8000; }
}