:root {
    --bg-dark: #f4f7fb;
    --bg-darker: #ffffff;
    --primary-blue: #0066ff;
    --primary-blue-glow: rgba(0, 102, 255, 0.3);
    --secondary-blue: #00aaff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
@media (pointer: fine) { * { cursor: none; } }
ul { list-style: none; }
a { text-decoration: none; }

/* ── Custom Cursor ── */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    background: var(--primary-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.15s ease, height 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
    box-shadow: 0 0 8px 2px rgba(0, 102, 255, 0.6), 0 0 20px 4px rgba(0, 102, 255, 0.25);
}
.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1.5px solid rgba(0, 102, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s ease,
                background 0.3s ease,
                box-shadow 0.3s ease;
    background: rgba(0, 102, 255, 0.04);
    backdrop-filter: blur(1px);
    will-change: transform;
    box-shadow: inset 0 0 8px rgba(0, 102, 255, 0.1), 0 0 10px rgba(0, 102, 255, 0.08);
}
.cursor-dot.hovered {
    width: 6px; height: 6px;
    background: var(--secondary-blue);
    box-shadow: 0 0 12px 4px rgba(0, 170, 255, 0.8), 0 0 30px 8px rgba(0, 170, 255, 0.3);
}
.cursor-ring.hovered {
    width: 60px; height: 60px;
    border-color: rgba(0, 170, 255, 0.7);
    background: rgba(0, 170, 255, 0.06);
    box-shadow: inset 0 0 15px rgba(0, 170, 255, 0.15), 0 0 25px rgba(0, 170, 255, 0.2);
}
body:has(.cursor-dot) { cursor: none; }
body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
html { scroll-behavior: smooth; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) {
    .container { padding: 0 20px; }
}
.section { padding: 100px 0; position: relative; z-index: 10; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 10px 30px -10px var(--primary-blue-glow);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: none;
    font-size: 1rem;
}
.btn-primary {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-blue-glow);
    border: 1px solid var(--primary-blue);
}
.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 0 25px var(--primary-blue-glow);
}
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}
.btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--secondary-blue);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

#particles-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }

.navbar { 
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); 
    width: 92%; max-width: 1200px; z-index: 100; padding: 15px 30px; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); border-radius: 50px; 
    border: 1px solid rgba(255, 255, 255, 0.8); 
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.08); 
}
.navbar.scrolled { 
    top: 10px; padding: 12px 30px; 
    background: rgba(244, 247, 251, 0.9); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    border: 1px solid var(--glass-border); 
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.logo-text .dot { color: var(--primary-blue); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-main); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--secondary-blue); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: none;
    z-index: 1001;
    padding: 10px;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 4px;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 90px;
        right: 20px;
        transform: translateY(-20px);
        width: 280px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
        box-shadow: -20px 20px 60px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        gap: 20px;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-links a { width: 100%; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 10px; }
    .nav-links li:last-child a { border-bottom: none; }
    
    .nav-cta { display: none; }
    
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }
}



.hero { min-height: 100vh; display: flex; align-items: center; padding: 180px 0 100px; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero-content h1 .text-gradient { display: inline-block; }
.hero-content p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }
.hero-btns { display: flex; gap: 20px; }
@media (max-width: 1024px) {
    .hero { padding-top: 180px; }
}


.abstract-shape { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.globe {
    width: 150px; height: 150px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--secondary-blue), var(--primary-blue));
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    box-shadow: 0 0 50px var(--primary-blue-glow);
    animation: pulse 4s infinite alternate;
}
.orbit { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(0, 102, 255, 0.4); }
.orbit-1 { width: 250px; height: 250px; animation: rotate 20s linear infinite; }
.orbit-2 { width: 350px; height: 350px; animation: rotate 30s linear infinite reverse; }

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 30px var(--primary-blue-glow); }
    100% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 60px var(--primary-blue-glow); }
}
@keyframes rotate { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card .icon-box {
    width: 70px; height: 70px; background: rgba(0, 102, 255, 0.1); border-radius: 18px;
    display: flex; justify-content: center; align-items: center; margin-bottom: 20px;
    font-size: 2.8rem; color: var(--secondary-blue); border: 1px solid rgba(0, 102, 255, 0.2);
}

/* About Grid */
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { text-align: center; padding: 30px 20px; }
.stat-icon { font-size: 3rem; color: var(--primary-blue); margin-bottom: 15px; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--text-main); line-height: 1; margin-bottom: 5px; }
.stat-label { color: var(--text-muted); font-size: 1rem; font-weight: 500; }
/* Process */
.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { text-align: center; }
.step-number { font-size: 3rem; font-weight: 700; color: rgba(0,0,0,0.05); margin-bottom: 15px; -webkit-text-stroke: 1px var(--glass-border); }

/* Portfolio Grid */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.portfolio-card { padding: 0; cursor: none; }
.portfolio-img { height: 250px; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.portfolio-info { padding: 25px; background: var(--bg-dark); }
.portfolio-card:hover .portfolio-img { transform: scale(1.05); }

/* Testimonials */
.testimonials-slider-wrapper { width: 100%; overflow: hidden; position: relative; padding: 20px 0; }
.testimonials-slider-wrapper::before, .testimonials-slider-wrapper::after { content: ''; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2; pointer-events: none; }
.testimonials-slider-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-main), transparent); }
.testimonials-slider-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-main), transparent); }
.testimonials-slider { display: flex; gap: 30px; width: max-content; animation: scroll-testimonials 40s linear infinite; }
.testimonials-slider:hover { animation-play-state: paused; }
.testimonial-card { display: flex; flex-direction: column; justify-content: space-between; min-width: 350px; max-width: 350px; flex-shrink: 0; cursor: none; }
.review-text { font-size: 1.1rem; font-style: italic; margin-bottom: 30px; flex-grow: 1; }
@keyframes scroll-testimonials { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 15px)); } }

/* Marquee */
.tech-stack { padding: 60px 0; background: var(--bg-darker); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); overflow: hidden; }
.tech-title { text-align: center; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; }
.marquee-container { width: 100%; overflow: hidden; position: relative; white-space: nowrap; }
.marquee { display: inline-block; animation: marquee 30s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 8px; margin: 0 40px; font-size: 1.2rem; color: var(--text-muted); font-weight: 500; }
.marquee span i { font-size: 1.5rem; color: var(--secondary-blue); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* CTA */
.cta-box { padding: 80px 40px; background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(0, 102, 255, 0.1)); border: 1px solid rgba(0, 102, 255, 0.3); }

/* Footer */
footer { background: var(--bg-darker); padding-top: 80px; border-top: 1px solid var(--glass-border); }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { margin-bottom: 25px; color: var(--text-main); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; color: var(--text-muted); }
.social-links { display: flex; gap: 15px; }
.social-link { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; color: var(--text-main); font-size: 1.2rem; border: 1px solid var(--glass-border); transition: all 0.3s ease; text-decoration: none; }
.social-link:hover { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); transform: translateY(-3px); box-shadow: 0 5px 15px var(--primary-blue-glow); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding: 20px 0; text-align: center; color: var(--text-muted); }

/* Animations — default visible; JS adds .js-animations class to body to enable fade-in */
.animate-fade-up { opacity: 1; transform: translateY(0); transition: all 0.8s ease; }
.js-animations .animate-fade-up { opacity: 0; transform: translateY(30px); }
.animate-fade-up.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 3rem; }
    .hero-btns { justify-content: center; }
    .about-container { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero { padding-top: 120px; }
    .hero-content h1 { font-size: 2.8rem; line-height: 1.2; }
    .hero-content p { font-size: 1.1rem; }
    .process-timeline { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .cta-box { grid-template-columns: 1fr !important; text-align: center !important; padding: 40px 20px; }
    .cta-box ul { text-align: left; }
}
@media (max-width: 480px) {
    .about-stats-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
    .btn { width: 100%; text-align: center; }
    .hero-btns { flex-direction: column; }
}

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .animate-fade-up { opacity: 1 !important; transform: none !important; }
    #particles-bg { display: none; }
    .cursor-dot, .cursor-ring { display: none; }
}
