/**
 * Anti-Gravity UI Design System (Premium)
 * ---------------------------------------
 * Core Aesthetics: Glassmorphism, Neon Glow, 3D Depth, Smooth Transitions.
 */

:root {
    --ag-primary: #00D4FF;
    --ag-secondary: #A855F7;
    --ag-accent: #FF3366;
    --ag-bg: #050510;
    --ag-glass: rgba(255, 255, 255, 0.03);
    --ag-glass-border: rgba(255, 255, 255, 0.08);
    --ag-blur: 20px;
    --ag-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --ag-glow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* Glassmorphism Utility */
.ag-glass {
    background: var(--ag-glass);
    backdrop-filter: blur(var(--ag-blur));
    -webkit-backdrop-filter: blur(var(--ag-blur));
    border: 1px solid var(--ag-glass-border);
    border-radius: 20px;
    box-shadow: var(--ag-shadow);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ag-glass:hover {
    border-color: var(--ag-primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
    transform: translateY(-5px) scale(1.01);
}

/* Gravity-Defying Animations */
@keyframes ag-float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.ag-float {
    animation: ag-float 6s ease-in-out infinite;
}

@keyframes ag-glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 5px var(--ag-primary)); }
    50% { filter: drop-shadow(0 0 20px var(--ag-primary)); }
}

.ag-glow-pulse {
    animation: ag-glow-pulse 4s infinite;
}

/* Buttons */
.ag-btn {
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--ag-primary), var(--ag-secondary));
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.ag-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.4);
}

.ag-btn-outline {
    background: transparent;
    border: 1px solid var(--ag-primary);
    color: var(--ag-primary);
}

.ag-btn-outline:hover {
    background: var(--ag-primary);
    color: #000;
}

/* Cards */
.ag-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ag-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--ag-primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Progress Bars */
.ag-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.ag-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ag-primary), var(--ag-secondary));
    transition: width 1s ease-in-out;
}

/* Text Gradients */
.ag-text-gradient {
    background: linear-gradient(135deg, var(--ag-primary), var(--ag-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Styles */
.ag-header {
    position: fixed;
    top: 20px;
    left: 5%;
    right: 5%;
    height: 70px;
    z-index: 1000;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ag-header .logo {
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #eee;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 15px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--ag-primary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Floating Actions Redesign */
.floating-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: 0.4s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.social-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.youtube-btn { background: #ff0000; box-shadow: 0 0 15px rgba(255,0,0,0.4); }
.whatsapp-btn { background: #25D366; box-shadow: 0 0 15px rgba(37,211,102,0.4); }
.telegram-btn { background: #0088cc; box-shadow: 0 0 15px rgba(0,136,204,0.4); }

.color-cyan { color: var(--ag-primary); }
.color-purple { color: var(--ag-secondary); }
.color-pink { color: var(--ag-accent); }

/* Forms & Selects Fix */
select, option {
    background-color: #0d0d20;
    color: #ffffff;
}
input, select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}
input::placeholder { color: #aaa; }

/* Mobile Menu Button & Mobile Btns */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.ag-hide-desktop {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ag-header {
        padding: 0 15px;
        left: 2%;
        right: 2%;
        border-radius: 20px;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: block;
        position: absolute;
        top: 120%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 25, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid var(--ag-glass-border);
        border-radius: 20px;
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: 0.4s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-links li {
        margin-bottom: 20px;
    }
    
    .header-btns {
        display: none !important;
    }
    
    .nav-links.active .header-btns-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .header-container {
        justify-content: space-between;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr !important;
    }
    
    .floating-container {
        bottom: 10px;
        left: 10px;
        gap: 8px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
