/* =========================================
   1. CORE SETTINGS & COLORS
========================================= */
:root {
    --primary: #00ff66;
    --secondary: #00d4ff;
    --glass-bg: rgba(2, 12, 6, 0.5);
    --glass-border: rgba(0, 255, 102, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    width: 100vw; height: 100vh; overflow: hidden;
    background-color: #000;
    font-family: 'Poppins', sans-serif;
    color: #f8fafc; cursor: none;
}

/* =========================================
   2. FUTURISTIC PRELOADER
========================================= */
#cyber-loader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #010402; display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 99999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}
.loader-ring {
    width: 80px; height: 80px; border: 3px solid transparent;
    border-top-color: var(--primary); border-bottom-color: var(--secondary);
    border-radius: 50%; animation: spin 1.2s linear infinite; position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
}
.loader-ring::before {
    content: ""; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 2px solid transparent; border-right-color: var(--primary); border-left-color: #ff007f;
    border-radius: 50%; animation: spin-reverse 0.8s linear infinite;
}
.loader-text {
    margin-top: 25px; color: var(--primary); font-size: 14px; font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 4px; text-transform: uppercase; animation: pulse 1.5s infinite;
    text-shadow: 0 0 10px rgba(0,255,102,0.6);
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* =========================================
   3. CUSTOM CURSOR
========================================= */
.cursor-dot { position: fixed; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; pointer-events: none; z-index: 999999; transform: translate(-50%, -50%); box-shadow: 0 0 10px var(--primary); }
.cursor-outline { position: fixed; width: 40px; height: 40px; border: 1px solid rgba(0, 255, 102, 0.5); border-radius: 50%; pointer-events: none; z-index: 999998; transform: translate(-50%, -50%); transition: width 0.15s, height 0.15s; }

/* =========================================
   4. VIDEO BACKGROUND
========================================= */
.bg-video { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; object-fit: cover; filter: brightness(0.85) contrast(1.1); }
.video-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; background: linear-gradient(135deg, rgba(1,4,2,0.8) 0%, rgba(0,20,5,0.5) 50%, rgba(1,4,2,0.8) 100%); pointer-events: none; }

/* =========================================
   5. HEADER & TOP BUTTONS
========================================= */
.header { position: fixed; top: 35px; left: 45px; right: 45px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; }
.header-left { display: flex; align-items: center; }
.header-center { display: none; }
.header-right { display: flex; align-items: center; gap: 15px; }

.cyber-logo { height: 75px; filter: drop-shadow(0 0 8px rgba(0, 255, 102, 0.4)); transition: 0.3s; cursor: none; }
.desktop-logo:hover { transform: scale(1.05); }
.mobile-logo { display: none; }

.mobile-call { display: none !important; }

.call-btn {
    background: rgba(0, 255, 102, 0.1); border: 1px solid var(--primary);
    color: var(--primary); font-family: 'Space Grotesk', sans-serif;
    padding: 8px 20px; border-radius: 30px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; cursor: none; display: flex; align-items: center; gap: 8px;
    transition: 0.3s; box-shadow: 0 0 15px rgba(0,255,102,0.2); backdrop-filter: blur(5px);
}
.call-btn:hover { background: var(--primary); color: #010402; box-shadow: 0 0 20px rgba(0,255,102,0.6); transform: translateY(-2px); }

.flag-btn {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem; padding: 6px 12px; border-radius: 50%; cursor: none;
    transition: 0.3s; backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif; font-weight: 600; color: #fff;
}
.flag-btn:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.1); border-color: #fff; }

/* =========================================
   6. MAIN CONTENT AREA
========================================= */
.content-area { position: absolute; top: 43%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 850px; z-index: 10; text-align: center; }

.premium-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: 24px;
    padding: 50px; box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.tagline { display: inline-block; color: var(--primary); font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; border: 1px solid rgba(0,255,102,0.3); padding: 5px 15px; border-radius: 50px; background: rgba(0,255,102,0.05); }
.title { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 700; line-height: 1.2; margin-bottom: 15px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.text-gradient { background: linear-gradient(90deg, #fff, #a3c2b0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.highlight { color: var(--primary); }
.desc { font-size: 1.05rem; line-height: 1.7; color: #e2e8f0; font-weight: 300; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

.fade-in { animation: smoothFade 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes smoothFade { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

/* =========================================
   7. BOTTOM NAVIGATION
========================================= */
.bottom-nav { position: fixed; bottom: 25px; left: 0; width: 100%; display: flex; justify-content: center; z-index: 100; }
.nav-wrapper { 
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.1); 
    padding: 5px 15px; border-radius: 20px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

.nav-btn {
    background: transparent; border: none; color: #94a3b8; font-family: 'Poppins', sans-serif; cursor: none; transition: all 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 15px; border-radius: 15px; min-width: 75px;
}
.nav-btn i { font-size: 1.3rem; transition: 0.3s; }
.nav-btn span { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.5px; }
.nav-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }

.nav-btn.active { color: var(--primary); background: rgba(0, 255, 102, 0.05); }
.nav-btn.active i { transform: translateY(-2px); filter: drop-shadow(0 0 8px rgba(0,255,102,0.5)); }

/* =========================================
   8. MOBILE RESPONSIVE UPDATES
========================================= */
@media (max-width: 768px) {
    body { cursor: auto; } .cursor-dot, .cursor-outline { display: none; }
    
    .header { top: 15px; left: 10px; right: 10px; justify-content: space-between; } 
    .desktop-logo { display: none; }
    .desktop-call { display: none !important; }
    
    .header-center { display: flex; align-items: center; justify-content: center; position: absolute; left: 50%; transform: translateX(-50%); }
    
    .mobile-logo { display: block; height: 50px; cursor: pointer; margin-top:50px; }
    
    .mobile-call { display: flex !important; background: rgba(0, 255, 102, 0.1); border: 1px solid var(--primary); color: var(--primary); padding: 8px 12px; border-radius: 12px; cursor: pointer; backdrop-filter: blur(5px); transition: 0.3s; }
    .mobile-call:hover { background: var(--primary); color: #000; }
    
    .header-right { gap: 10px; }
    .flag-btn { padding: 4px 10px; font-size: 0.9rem; border-radius: 10px; cursor: pointer; }

    .content-area { top: 50%; width: 95%; } 
    .premium-panel { padding: 25px 20px; }
    .title { font-size: 2rem; } .desc { font-size: 0.9rem; }
    
    /* මෙනුව පහළටම ඇලවීම සඳහා යාවත්කාලීන කළ කොටස */
    .bottom-nav { bottom: 0; }
    .nav-wrapper { 
        width: 100%; border-radius: 0; 
        padding: 8px 5px 12px 5px; 
        gap: 0; justify-content: space-around; 
        border-left: none; border-right: none; border-bottom: none;
        background: rgba(0, 0, 0, 0.85);
    }
    .nav-btn { min-width: auto; padding: 5px; gap: 3px; cursor: pointer; }
    .nav-btn i { font-size: 1.15rem; } 
    .nav-btn span { font-size: 0.55rem; letter-spacing: 0; }
}