/* ========================================= */
/* CORE VARIABLES & SETUP                    */
/* ========================================= */
:root {
    --bg-dark: #09090b;
    --card-glass: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --cyan: #00f2fe;
    --blue: #4facfe;
    --gradient: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    --easing-premium: cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    cursor: none; 
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    line-height: 1.7; 
}

img, video { max-width: 100%; height: auto; } 

/* ========================================= */
/* BACKGROUND & EFFECTS (HARDWARE ACCEL)     */
/* ========================================= */
.bg-grid {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2; opacity: 0.5;
}

.blob {
    position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1;
    animation: float 12s infinite ease-in-out alternate;
    will-change: transform; 
}
.blob-1 { width: 450px; height: 450px; background: rgba(0, 242, 254, 0.12); top: -10%; left: -10%; }
.blob-2 { width: 550px; height: 550px; background: rgba(79, 172, 254, 0.12); bottom: -20%; right: -10%; animation-delay: -6s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.05); }
}

/* ========================================= */
/* CURSOR & LOADER                           */
/* ========================================= */
.cursor { width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); }
.cursor-follower { width: 40px; height: 40px; border: 1px solid rgba(0, 242, 254, 0.5); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.3s var(--easing-premium), height 0.3s var(--easing-premium), background 0.3s; }

#loader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg-dark); display: flex; justify-content: center; align-items: center; z-index: 10000; transition: opacity 0.6s var(--easing-premium); }
.spinner { width: 50px; height: 50px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
.loader-text { font-size: 2.2rem; font-weight: 800; letter-spacing: 5px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================= */
/* NAVIGATION & GLOBAL UTILS                 */
/* ========================================= */
nav { position: fixed; top: 20px; width: 100%; display: flex; justify-content: center; z-index: 1000; }
.nav-container.glass {
    width: 90%; max-width: 1000px;
    background: rgba(15, 15, 18, 0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border); border-radius: 50px;
    display: flex; justify-content: space-between; align-items: center; padding: 12px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px !important; width: 40px !important; border-radius: 50%; object-fit: cover; display: block; border: 1px solid var(--card-border); }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.5px; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s var(--easing-premium); }
.nav-links a:hover { color: var(--text-main); }
.nav-cta { background: var(--card-glass); border: 1px solid var(--card-border); padding: 8px 22px; border-radius: 20px; color: var(--text-main) !important; transition: all 0.3s var(--easing-premium); }
.nav-cta:hover { background: var(--gradient); color: #000 !important; border-color: transparent; box-shadow: 0 5px 15px rgba(0,242,254,0.3); }

/* Premium Glass & Hover Lift Effect */
.glass { 
    background: var(--card-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); 
    border: 1px solid var(--card-border); border-radius: 24px; 
    transition: all 0.4s var(--easing-premium); 
}
.hover-lift:hover { 
    transform: translateY(-8px); 
    border-color: rgba(0, 242, 254, 0.3); 
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.08); 
}

/* Increased Spacing for Premium Feel */
.section-padding { padding: 140px 20px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-title { font-size: 3.2rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; }
.section-desc { color: var(--text-muted); font-size: 1.15rem; max-width: 650px; margin: 0 auto; line-height: 1.6; }

/* ========================================= */
/* BUTTONS & CTA                             */
/* ========================================= */
.cta-button { padding: 16px 38px; border-radius: 30px; font-weight: 600; text-decoration: none; transition: all 0.4s var(--easing-premium); position: relative; display: inline-block; cursor: none; font-size: 1rem; letter-spacing: 0.5px;}
.cta-button.primary { background: var(--gradient); color: #000; box-shadow: 0 10px 25px rgba(0, 242, 254, 0.25); border: 1px solid transparent; }
.cta-button.primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 35px rgba(0, 242, 254, 0.45); }
.cta-button.secondary { background: var(--card-glass); color: var(--text-main); border: 1px solid var(--card-border); backdrop-filter: blur(10px); }
.cta-button.secondary:hover { background: rgba(0, 242, 254, 0.1); border-color: var(--cyan); transform: translateY(-4px) scale(1.02); }
.center-cta { display: flex; justify-content: center; margin-top: 60px; }

/* ========================================= */
/* HERO SECTION                              */
/* ========================================= */
#hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; padding-top: 100px; }
.promo-pill { display: inline-flex; align-items: center; gap: 12px; padding: 10px 24px; border-radius: 30px; margin-bottom: 35px; font-size: 0.95rem; font-weight: 500; }
.pulse-dot { width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 10px var(--cyan); animation: pulse 1.5s infinite; }
.badge { background: transparent; color: var(--text-main); font-weight: 800; font-size: 0.75rem; letter-spacing: 1px; }

.hero-title { font-size: 5vw; font-weight: 800; line-height: 1.1; margin-bottom: 25px; letter-spacing: -2px; }
.hero-subtitle { max-width: 700px; margin: 0 auto 45px; color: var(--text-muted); font-size: 1.25rem; line-height: 1.7; font-weight: 400;}
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* ========================================= */
/* ABOUT / TRUST SECTION                     */
/* ========================================= */
.about-box { padding: 60px; max-width: 950px; margin: 0 auto; text-align: center; }
.about-text { font-size: 1.2rem; line-height: 1.8; color: var(--text-main); margin-bottom: 35px; font-weight: 300;}
.trust-badges { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.badge-item { background: rgba(0, 242, 254, 0.08); border: 1px solid rgba(0, 242, 254, 0.2); padding: 10px 20px; border-radius: 25px; font-size: 0.95rem; color: var(--cyan); font-weight: 600; letter-spacing: 0.5px; }

/* ========================================= */
/* PROCESS SECTION                           */
/* ========================================= */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-top: 50px; }
.process-card { padding: 45px 35px; text-align: left; }
.step-number { font-size: 4rem; font-weight: 800; margin-bottom: 15px; opacity: 0.8; line-height: 1; }
.process-card h3 { font-size: 1.4rem; margin-bottom: 15px; font-weight: 600; }
.process-card p { color: var(--text-muted); font-size: 1rem; }

/* ========================================= */
/* SERVICES BENTO GRID                       */
/* ========================================= */
.expanded-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.bento-card { padding: 45px; text-align: left; display: flex; flex-direction: column;}
.card-icon { font-size: 2.8rem; margin-bottom: 25px; }
.bento-card h3 { font-size: 1.4rem; margin-bottom: 15px; font-weight: 600; }
.bento-card p { color: var(--text-muted); font-size: 1rem; flex-grow: 1;}

.hover-reveal .reveal-text { opacity: 0.7; transition: opacity 0.4s var(--easing-premium); }
.hover-reveal:hover .reveal-text { opacity: 1; color: var(--text-main);}

/* ========================================= */
/* PORTFOLIO & CASE STUDIES                  */
/* ========================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 45px; }
.portfolio-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-img { width: 100%; height: 280px; object-fit: cover; border-bottom: 1px solid var(--card-border); }
.project-info { padding: 40px; display: flex; flex-direction: column; flex-grow: 1; }

.project-info h4 { font-size: 1.6rem; margin-bottom: 15px; }
.case-study-details { margin: 15px 0; padding: 15px; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px solid var(--card-border); }
.case-study-details p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 10px; line-height: 1.5;}
.case-study-details p:last-child { margin-bottom: 0; }
.case-study-details strong { color: var(--text-main); font-weight: 600;}

.tech-stack { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.tech-tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); padding: 6px 12px; border-radius: 20px; color: var(--cyan); }

.project-outcome { font-size: 1.05rem; color: var(--text-main); margin-bottom: 30px; font-weight: 500; flex-grow: 1;}
.project-outcome strong { color: var(--cyan); }

/* CAROUSELS FOR PORTFOLIO (FIXED) */
.carousel-container { display: flex; flex-wrap: nowrap !important; overflow-x: hidden; scroll-behavior: smooth; width: 100%; height: 280px; background: #050505; border-bottom: 1px solid var(--card-border); }
.carousel-img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.reel-img { width: 100%; height: 400px; object-fit: contain; background-color: #050505; border-bottom: 1px solid var(--card-border); display: block; }


/* ========================================= */
/* PRICING SECTION (BULLETPROOF BADGE)       */
/* ========================================= */
.pricing-card-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; max-width: 1100px; margin: 40px auto 0; padding-top: 25px; }
.pricing-card { padding: 50px 40px; display: flex; flex-direction: column; text-align: center; position: relative; }

.plan-name { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 15px; font-weight: 500;}
.pricing-card .price { font-size: 3.5rem; font-weight: 800; margin-bottom: 5px; line-height: 1;}
.plan-subtitle { font-size: 0.95rem; color: var(--cyan); font-weight: 600; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 1px;}

.pricing-card ul { list-style: none; margin-bottom: 40px; flex-grow: 1; text-align: left; }
.pricing-card ul li { margin-bottom: 18px; color: var(--text-muted); position: relative; font-size: 1rem; padding-left: 25px;}
.pricing-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: bold; }

/* The Pro Agency Card & Badge Fix */
.featured-card { border-color: rgba(0, 242, 254, 0.4); box-shadow: 0 0 40px rgba(0, 242, 254, 0.1); transform: scale(1.05); z-index: 2; margin-top: 15px;}
.featured-card:hover { transform: scale(1.05) translateY(-10px); }

.featured-badge { 
    position: absolute; 
    top: -20px; 
    left: 50%; 
    transform: translateX(-50%); 
    font-size: 0.8rem; 
    letter-spacing: 1.5px; 
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%); 
    color: #000; 
    padding: 8px 22px; 
    border-radius: 30px; 
    font-weight: 800; 
    z-index: 10; 
    display: flex;
    align-items: center;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4); 
}

/* ========================================= */
/* TESTIMONIALS                              */
/* ========================================= */
.testimonial-slider { overflow: hidden; padding: 20px 0; width: 100%; margin-top: 20px; }
.testimonial-track { display: flex; gap: 30px; animation: slideLeft 30s linear infinite; }
.testimonial-slider:hover .testimonial-track { animation-play-state: paused; }

@keyframes slideLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.testimonial-card { flex: 0 0 420px; padding: 45px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.stars { color: var(--cyan); font-size: 1.2rem; margin-bottom: 20px; letter-spacing: 2px;}
.client-quote { font-size: 1.15rem; line-height: 1.7; margin-bottom: 25px; font-style: italic; color: var(--text-main); font-weight: 300;}
.client-name { color: var(--text-main); font-weight: 600; font-size: 1.05rem; }
.client-title { color: var(--text-muted); font-size: 0.85rem; font-weight: 400;}

/* ========================================= */
/* CONTACT SECTION                           */
/* ========================================= */
.contact-section { max-width: 950px; padding: 80px 60px; border-radius: 40px; text-align: center; }
.contact-details { margin-top: 50px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.contact-card { padding: 45px; }
.contact-card h4 { margin-bottom: 15px; font-size: 1.3rem; color: var(--text-muted); }
.contact-number { margin-bottom: 25px; color: var(--text-main); font-weight: 800; font-size: 1.6rem; }
.contact-link { color: #ffffff !important; font-size: 1.2rem; font-weight: 600; text-decoration: none; transition: color 0.3s, text-shadow 0.3s; }
.contact-link:hover { color: var(--cyan) !important; text-shadow: 0 0 15px var(--cyan); }

.button-group { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-small { padding: 12px 20px; font-size: 0.95rem; text-align: center; flex: 1; border-radius: 12px; text-decoration: none; font-weight: 600; transition: all 0.3s var(--easing-premium); cursor: none; }
.btn-small.primary { background: var(--gradient); color: #000; }
.btn-small.secondary { background: rgba(255,255,255,0.05); color: var(--text-main); border: 1px solid var(--card-border); }
.btn-small:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);}

/* ========================================= */
/* AGENCY FOOTER                             */
/* ========================================= */
.agency-footer { border-top: 1px solid var(--card-border); background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(20px); padding-top: 80px; margin-top: 120px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-brand p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; max-width: 400px; }
.footer-links h4, .footer-socials h4 { color: var(--text-main); font-size: 1.2rem; margin-bottom: 25px; font-weight: 600; }
.footer-links ul, .footer-socials ul { list-style: none; }
.footer-links li, .footer-socials li { margin-bottom: 15px; }
.footer-links a, .footer-socials a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.3s var(--easing-premium); }
.footer-links a:hover, .footer-socials a:hover { color: var(--cyan); transform: translateX(5px); display: inline-block;}

.footer-bottom { border-top: 1px solid var(--card-border); padding: 25px 20px; text-align: center; display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; color: var(--text-muted); font-size: 0.85rem; }

/* ========================================= */
/* REVEAL ANIMATIONS (HARDWARE ACCEL)        */
/* ========================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s var(--easing-premium); will-change: transform, opacity;}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-stagger { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--easing-premium); will-change: transform, opacity;}
.reveal-stagger.active { opacity: 1; transform: translateY(0); }

/* ========================================= */
/* RESPONSIVE DESIGN (FLAWLESS MOBILE)       */
/* ========================================= */

/* Pricing Scrollable Row on Mobile/Tablet */
@media (max-width: 1024px) {
    .pricing-card-container { 
        display: flex; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        padding-bottom: 30px; 
        max-width: 100%; 
        gap: 20px; 
        padding-top: 35px; 
        scrollbar-width: thin; 
        scrollbar-color: var(--cyan) transparent;
        -webkit-overflow-scrolling: touch;
    }
    .pricing-card-container::-webkit-scrollbar { height: 6px; }
    .pricing-card-container::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 10px; }
    
    .pricing-card { 
        flex: 0 0 320px; 
        scroll-snap-align: center; 
    }
    
    /* Remove scale so cards don't cut off when swiping */
    .featured-card { transform: scale(1); margin-top: 0;}
    .featured-card:hover { transform: translateY(-10px); }
    
    .footer-container { grid-template-columns: 1fr 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-container.glass { padding: 15px 20px; justify-content: center; }
    
    /* Hero Section Fixes */
    #hero { padding-top: 110px; }
    .hero-title { font-size: 2.6rem; line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1.05rem; padding: 0 10px; margin-bottom: 35px; line-height: 1.6;}
    .promo-pill { font-size: 0.8rem; padding: 8px 15px; flex-wrap: wrap; justify-content: center; line-height: 1.4;}
    
    .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
    .cta-button { width: 100%; }
    
    .section-padding { padding: 90px 20px; }
    .section-title { font-size: 2.3rem; }
    
    .about-box { padding: 35px 20px; }
    .trust-badges { flex-direction: column; }
    
    .process-card, .bento-card, .portfolio-card { padding: 30px 20px; }
    
    /* Pricing slightly narrower for phones */
    .pricing-card { flex: 0 0 290px; padding: 40px 30px;}
    
    /* Faster Testimonials */
    .testimonial-track { animation: slideLeft 15s linear infinite; }
    .testimonial-card { flex: 0 0 300px; padding: 30px 25px; }
    
    .contact-section { padding: 40px 20px; border-radius: 25px; }
    .contact-number { font-size: 1.4rem; }
    
    .footer-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    .footer-bottom { flex-direction: column; gap: 15px; }
    
    /* Ensure no horizontal overflow ever happens */
    body, html { overflow-x: hidden; width: 100%; }
}