:root {
    --bg: #030508;
    --primary: #ff0000; 
    --border: rgba(255, 0, 0, 0.2);
    --card: rgba(255, 255, 255, 0.02);
    --text: #ffffff;
    --text-dim: #94a3b8;
    --telegram-blue: #0088cc;
}

body {
    background: var(--bg); color: var(--text);
    font-family: 'Poppins', sans-serif; margin: 0; overflow-x: hidden;
    animation: pageLoadFadeIn 0.8s ease-out;
}

.glow-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.08) 0%, transparent 60%);
    z-index: -1;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 12px; }

/* Navbar & Search Box - Optimized for Mobile */
.navbar { 
    padding: 8px 0; /* Padding kam ki gayi */
    backdrop-filter: blur(20px); 
    background: rgba(3,5,8,0.85); 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
}

.nav-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 10px; /* Logo aur Search ke beech gap */
}

/* Search Box Compact Version */
.nav-search-box { 
    display: flex; 
    align-items: center; 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--border); 
    border-radius: 20px; /* Zyada round */
    padding: 4px 12px; 
    width: 140px; /* Fixed small width for mobile */
    transition: width 0.3s ease;
    position: relative;
}

/* Focus hone par thoda bada dikhega (Optional) */
.nav-search-box:focus-within {
    width: 180px;
    border-color: var(--primary);
}

.nav-search-box input { 
    background: transparent; 
    border: none; 
    color: white; 
    outline: none; 
    width: 100%; 
    font-size: 0.75rem; /* Chota text */
    padding-right: 20px; 
}

.nav-search-box i { 
    color: var(--primary); 
    font-size: 0.8rem; 
    position: absolute; 
    right: 12px; 
}

/* Logo adjustments for mobile */
.logo span {
    font-size: 0.85rem;
}

/* Desktop ke liye thoda bada (Media Query) */
@media (min-width: 768px) {
    .nav-search-box {
        width: 250px;
    }
    .nav-search-box:focus-within {
        width: 300px;
    }
    .logo span {
        font-size: 1rem;
    }
}
/* Hero Section & Slider */
.hero-section { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 0; gap: 20px; }
.main-title { font-family: 'Bebas Neue', cursive; font-size: 3rem; line-height: 1; margin: 5px 0; text-shadow: 0 0 20px rgba(255,0,0,0.5); }
.main-title .highlight { color: var(--primary); }
.sub-text { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 3px; }

.slider-frame { 
    position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 15px; overflow: hidden; 
    border: 2px solid var(--primary); background: #000; box-shadow: 0 10px 30px rgba(255,0,0,0.3); 
    cursor: grab;
}
.slider-track { display: flex; transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1); height: 100%; }
.slide { min-width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* Dots */
.slider-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 5;
}
/* Dots Styling Updated */
.slider-dots {
    position: absolute; 
    bottom: 12px; 
    left: 50%; 
    transform: translateX(-50%);
    display: flex; 
    gap: 8px; 
    z-index: 10;
}

.dot { 
    width: 8px; 
    height: 8px; 
    background: rgba(255, 255, 255, 0.3); 
    border-radius: 50%; 
    transition: 0.3s all ease; 
    cursor: pointer;
}

.dot.active { 
    background: var(--primary); 
    width: 20px; 
    border-radius: 10px; 
    box-shadow: 0 0 10px var(--primary); 
}

/* Slider Frame Improvement */
.slider-frame { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 16/9; 
    border-radius: 15px; 
    overflow: hidden; 
    border: 2px solid var(--primary); 
    background: #000; 
    box-shadow: 0 10px 30px rgba(255,0,0,0.3); 
    cursor: grab; /* Shows user they can drag */
}
.slider-frame:active { cursor: grabbing; }
/* App Sections & Cards (RE-FIXED HOVER) */
.section-container { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 20px; animation: fadeInScale 0.6s ease-out; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-title { font-weight: 700; font-size: 0.85rem; }

.apps-row-wrapper { overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: 8px 0; }
.apps-row-wrapper::-webkit-scrollbar { display: none; }
.apps-row { display: flex; gap: 8px; }

.app-card { 
    min-width: 82px; max-width: 82px; background: rgba(255,255,255,0.01); border-radius: 10px; padding: 10px 4px; 
    text-align: center; border: 1px solid var(--border); 
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Original Transition */
    cursor: pointer; position: relative; overflow: hidden;
}

/* Original Hover Effect Restored */
.app-card:hover { 
    border-color: var(--primary); 
    transform: translateY(-4px); 
    background: rgba(255,0,0,0.05); 
}

.app-img-icon { width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 6px; display: block; box-shadow: 0 3px 6px rgba(0,0,0,0.3); }
.app-name { font-size: 0.58rem; font-weight: 600; color: #fff; white-space: normal; height: 2.2em; overflow: hidden; line-height: 1.1; margin-bottom: 4px; }
.new-price { color: #ff3333; font-weight: 800; font-size: 0.72rem; }

.card-btn { 
    background: var(--primary); color: white; border: none; width: 90%; padding: 4px; border-radius: 5px; 
    font-weight: 700; font-size: 0.52rem; margin-top: 6px; cursor: pointer; 
    transition: all 0.3s ease; 
}
.card-btn:hover { 
    transform: scale(1.05); 
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); 
}

/* Footer (RE-FIXED ORIGINAL) */
.footer-main { padding: 40px 0 20px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; margin-bottom: 12px; margin-top: 0; }
.footer-subtitle { font-size: 0.75rem; color: var(--text-dim); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.75rem; transition: all 0.3s ease; display: inline-block; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.footer-bottom { text-align: center; font-size: 0.65rem; color: var(--text-dim); border-top: 1px solid rgba(255,255,255,0.05); margin-top: 25px; padding-top: 15px; }


/* Telegram */
.floating-telegram { position: fixed; bottom: 20px; right: 20px; width: 55px; height: 55px; background: linear-gradient(135deg, var(--telegram-blue), #0071bc); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white !important; font-size: 24px; z-index: 1000; animation: float-bounce 3s ease-in-out infinite; text-decoration: none; border: 2px solid rgba(255, 255, 255, 0.2); }

@keyframes float-bounce { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
@keyframes pageLoadFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.8); } 70% { transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }


