/* -----------------------------------------------------------
   1. CORE & SCROLLBAR
----------------------------------------------------------- */
body {
    background-color: #050a14;
    color: #ffffff;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #FACC15;
    border-radius: 4px;
}

/* -----------------------------------------------------------
   2. UTILITIES & EFFECTS
----------------------------------------------------------- */

/* Glowing Text */
.text-glow {
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.5);
}

/* Glassmorphism */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Button Hover Slide Effect */
.btn-slide {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-slide:hover::after {
    left: 100%;
}

/* Portfolio Image Zoom */
.portfolio-img {
    transition: transform 0.6s ease;
}
.group:hover .portfolio-img {
    transform: scale(1.1);
}

/* -----------------------------------------------------------
   3. BACKGROUND ANIMATIONS (Orbs & Glows)
----------------------------------------------------------- */

/* Abstract Orb Animation */
.orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #FACC15 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Top Hero Glow (Yellow Gradient) */
.top-glow {
    background: radial-gradient(ellipse 100% 50% at 50% 0%, rgba(250, 204, 21, 0.15) 0%, rgba(5, 10, 20, 0) 100%);
    pointer-events: none;
}

/* -----------------------------------------------------------
   4. SPACE THEME (Stars & Shooting Stars)
----------------------------------------------------------- */

/* Container positioning for sections with stars */
#contact, #hero {
    position: relative;
    overflow: hidden;
}

/* Static Twinkling Stars */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    z-index: 0; 
}

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(0.8); box-shadow: 0 0 2px rgba(255,255,255,0.2); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 6px rgba(255,255,255,0.8); }
    100% { opacity: 0.2; transform: scale(0.8); box-shadow: 0 0 2px rgba(255,255,255,0.2); }
}

/* Shooting Star Animation */
.shooting-star {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,1));
    filter: drop-shadow(0 0 4px #fff);
    transform: rotate(45deg); 
    opacity: 0;
    animation: shoot 20s linear infinite;
    pointer-events: none;
    z-index: 1; 
}

.shooting-star::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px #fff;
}

@keyframes shoot {
    0% {
        transform: translateX(-100px) translateY(-100px) rotate(45deg);
        opacity: 1;
    }
    10% {
        transform: translateX(150vw) translateY(150vh) rotate(45deg);
        opacity: 0;
    }
    10.01% {
        opacity: 0;
        transform: translateX(-100px) translateY(-100px) rotate(45deg);
    }
    100% {
        opacity: 0;
    }
}



/* -----------------------------------------------------------
   5. SOLAR SYSTEM ANIMATIONS
----------------------------------------------------------- */
@keyframes solar-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    animation: solar-spin linear infinite;
}

.planet {
    position: absolute;
    top: -6px; /* Offset to sit on the line (half of planet size roughly) */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* -----------------------------------------------------------
   6. CHATBOT BUBBLES
----------------------------------------------------------- */
.floating-bubble {
    animation: floatBubble 6s ease-in-out infinite;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.fb-1 { animation-delay: 0s; }
.fb-2 { animation-delay: 1.5s; }
.fb-3 { animation-delay: 0.5s; }
.fb-4 { animation-delay: 2s; }
.fb-5 { animation-delay: 1s; }
.fb-6 { animation-delay: 2.5s; }

/* -----------------------------------------------------------
   7. CHAT MESSAGE STYLES
----------------------------------------------------------- */
.chat-message {
    transform: translateY(20px); /* Start slightly down for animation */
}

/* -----------------------------------------------------------
   8. GSAP VISIBILITY DEFAULTS
   (Ensures elements are visible if JS fails or before load)
----------------------------------------------------------- */
.service-card, 
.pricing-card, 
.value-card, 
.team-card, 
.portfolio-item,
.project-card,
.contact-info-card,
.contact-form-card,
.faq-card {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}