:root {
    --primary: #3b82f6;
    --accent: #10b981;
    --bg-dark: #020617;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-dark);
    color: #f8fafc;
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

/* Page fade-in/slide-up animation on load */
main {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.glass-nav {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.bento-card:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.2);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    min-width: 260px;
    padding: 0.75rem;
}

.nav-dropdown:hover .dropdown-menu { 
    display: block; 
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 150;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-menu-overlay.active { 
    display: block; 
}

/* Premium Galaxy/Space Background Animation Styling */
.stars-container {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at top right, #0c0a0f, #020617);
    overflow: hidden;
}

.stars-sub-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    will-change: opacity, transform;
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: var(--min-opacity, 0.2); transform: scale(0.9); }
    50% { opacity: var(--max-opacity, 0.8); transform: scale(1.1); }
}

/* Nebula Gas Clouds */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.06;
    mix-blend-mode: screen;
    will-change: transform;
    animation: drift 25s ease-in-out infinite alternate;
    pointer-events: none;
}
.nebula-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #701a75 0%, transparent 70%);
    top: -15%;
    right: -15%;
}
.nebula-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #1e1b4b 0%, transparent 70%);
    bottom: -10%;
    left: -15%;
    animation-delay: -6s;
}
.nebula-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0284c7 0%, transparent 70%);
    top: 35%;
    left: 20%;
    animation-delay: -12s;
}

@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(60px, 40px, 0) scale(1.08); }
}

/* Styled Planets */
.planet {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.planet-ring-container {
    position: absolute;
    width: 130px;
    height: 130px;
    top: 15%;
    left: 10%;
    animation: orbit-slow 220s linear infinite;
    pointer-events: none;
    opacity: 0.30;
}
.planet-1 {
    width: 56px;
    height: 56px;
    background: radial-gradient(circle at 30% 30%, #581c87 0%, #1e1b4b 100%);
    box-shadow: inset -12px -12px 24px rgba(0,0,0,0.85), 
                0 0 20px rgba(168, 85, 247, 0.15);
    position: absolute;
    top: 37px;
    left: 37px;
    border-radius: 50%;
}
.planet-ring {
    position: absolute;
    width: 120px;
    height: 24px;
    border: 5px solid rgba(168, 85, 247, 0.35);
    border-radius: 50%;
    top: 53px;
    left: 5px;
    transform: rotate(-18deg);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.planet-2-container {
    position: absolute;
    width: 70px;
    height: 70px;
    bottom: 25%;
    right: 12%;
    animation: orbit-slow 280s linear infinite reverse;
    pointer-events: none;
    opacity: 0.30;
}
.planet-2 {
    width: 44px;
    height: 44px;
    background: radial-gradient(circle at 30% 30%, #0284c7 0%, #0f172a 100%);
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.85), 
                0 0 15px rgba(2, 132, 199, 0.15);
    position: absolute;
    top: 13px;
    left: 13px;
    border-radius: 50%;
}

.planet-3-container {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 25%;
    right: 30%;
    animation: orbit-slow 200s linear infinite;
    pointer-events: none;
    opacity: 0.30;
}
.planet-3 {
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 30% 30%, #e11d48 0%, #311018 100%);
    box-shadow: inset -6px -6px 14px rgba(0,0,0,0.85), 
                0 0 12px rgba(225, 29, 72, 0.15);
    position: absolute;
    top: 11px;
    left: 11px;
    border-radius: 50%;
}

@keyframes orbit-slow {
    0% { transform: rotate(0deg) translate3d(25px, 0, 0) rotate(0deg); }
    100% { transform: rotate(360deg) translate3d(25px, 0, 0) rotate(-360deg); }
}

/* Shooting Stars / Comets */
.comet {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(135deg);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}
.animate-comet {
    animation: comet-strike 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes comet-strike {
    0% { transform: translate3d(0, 0, 0) rotate(135deg); opacity: 0; }
    15% { opacity: 0.8; }
    100% { transform: translate3d(-350px, 350px, 0) rotate(135deg); opacity: 0; }
}

/* Eco Mode overrides to disable animations and conserve resource usage */
.eco-mode .nebula {
    animation: none !important;
    display: none;
}
.eco-mode .planet-ring-container,
.eco-mode .planet-2-container,
.eco-mode .planet-3-container {
    animation: none !important;
    transform: none !important;
}
.eco-mode .star {
    animation: none !important;
}



::-webkit-scrollbar { 
    width: 6px; 
}
::-webkit-scrollbar-track { 
    background: #020617; 
}
::-webkit-scrollbar-thumb { 
    background: #3b82f6; 
    border-radius: 10px; 
}

/* WhatsApp Floating Button Styling */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0px 15px 30px rgba(37, 211, 102, 0.5);
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background: #25d366;
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Rocket ki ghumne wali animation */
@keyframes rocket-orbit {
    0% { transform: rotate(0deg) translateX(45px) rotate(0deg); z-index: 20; }
    50% { transform: rotate(180deg) translateX(45px) rotate(-180deg); z-index: -1; }
    100% { transform: rotate(360deg) translateX(45px) rotate(-360deg); z-index: 20; }
}

/* Button ki breathing animation */
@keyframes breathing {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(16, 185, 129, 0.6); }
}

.animate-rocket {
    animation: rocket-orbit 4s linear infinite;
}

.animate-button {
    animation: breathing 3s ease-in-out infinite;
}

/* Mobile Responsive */
@media screen and (max-width: 640px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
    .wa-tooltip { 
        display: none; 
    }
}
