/* CUSTOM CURSOR */
.cursor-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}
.cursor-ring {
    width: 40px; height: 40px;
    border: 2px solid rgba(37,99,235,0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
}
.cursor-ring.hover {
    width: 60px; height: 60px;
    border-color: var(--accent);
    background: rgba(37,99,235,0.08);
}
@media (max-width: 768px) { .cursor-dot, .cursor-ring { display: none; } }

/* SCROLL PROGRESS BAR */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%; height: 3px;
    background: linear-gradient(90deg, var(--accent), #60a5fa, var(--accent));
    z-index: 1001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(37,99,235,0.5);
}

/* RIPPLE EFFECT */
.ripple-btn { position: relative; overflow: hidden; }
.ripple-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* TYPEWRITER CURSOR */
.typewriter-cursor {
    display: inline-block;
    width: 3px; height: 1em;
    background: var(--accent);
    margin-left: 4px;
    animation: blink-cursor 0.8s step-end infinite;
    vertical-align: text-bottom;
}

/* ENHANCED PRELOADER */
#preloader .loader-brand-icon {
    font-size: 4rem;
    color: var(--accent);
    animation: loaderPulse 1.2s ease-in-out infinite;
    display: block;
    margin-bottom: 20px;
}
#preloader .loader-ring {
    width: 60px; height: 60px;
    border: 3px solid rgba(37,99,235,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
#preloader .loader-progress {
    width: 200px; height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin: 16px auto 0;
    overflow: hidden;
}
#preloader .loader-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), #60a5fa);
    border-radius: 3px;
    transition: width 0.3s ease;
}
@keyframes loaderPulse { 0%,100% { transform:scale(1); opacity:1 } 50% { transform:scale(1.1); opacity:0.8 } }

/* STATS CIRCLE PROGRESS */
.stat-circle-wrap {
    position: relative;
    width: 140px; height: 140px;
    margin: 0 auto 12px;
}
.stat-circle-wrap svg { transform: rotate(-90deg); }
.stat-circle-wrap .stat-circle-bg {
    fill: none; stroke: rgba(37,99,235,0.1); stroke-width: 8;
}
.stat-circle-wrap .stat-circle-fill {
    fill: none; stroke: var(--accent); stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 439.823;
    stroke-dashoffset: 439.823;
    transition: stroke-dashoffset 1.5s ease-out;
}
.stat-circle-wrap .stat-circle-fill.visible { stroke-dashoffset: var(--offset); }
.stat-circle-wrap .stat-circle-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.stat-circle-wrap .stat-icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 4px; }
.stat-circle-wrap .stat-number {
    font-size: 1.6rem; font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-primary);
    display: inline;
}
.stat-circle-wrap .stat-label {
    font-size: 1.2rem; font-weight: 600;
    color: var(--accent);
    display: inline;
    margin-left: 2px;
}

.marquee-wrapper { display: block; }

/* FOOTER ACCORDION MOBILE */
@media (max-width: 768px) {
    .footer .footer-widget .widget-title {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        user-select: none;
        margin-bottom: 0;
        padding: 12px 0;
    }
    .footer .footer-widget .widget-title::after {
        content: '\F282';
        font-family: 'bootstrap-icons';
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }
    .footer .footer-widget .widget-title.open::after { transform: rotate(180deg); }
    .footer .footer-widget .footer-links,
    .footer .footer-widget .contact-info,
    .footer .footer-widget .footer-desc,
    .footer .footer-widget .social-links {
        max-height: 0; overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
        opacity: 0; margin: 0;
    }
    .footer .footer-widget .widget-title.open + .footer-links,
    .footer .footer-widget .widget-title.open + .contact-info,
    .footer .footer-widget .widget-title.open ~ .footer-desc,
    .footer .footer-widget .widget-title.open ~ .social-links {
        max-height: 600px; opacity: 1;
        margin-top: 12px; margin-bottom: 12px;
    }
}

/* SECTION DIVIDER WAVES */
.section-divider {
    position: relative;
    width: 100%; height: 80px;
    overflow: hidden; line-height: 0;
}
.section-divider svg { width: 100%; height: 100%; }
.section-divider.top { margin-bottom: -2px; }
.section-divider.bottom { margin-top: -2px; }

/* GSAP ENTRANCE */
.gsap-hidden {
    opacity: 0; transform: translateY(40px);
    will-change: opacity, transform;
}
.gsap-hidden.gsap-left { transform: translateX(-60px); }
.gsap-hidden.gsap-right { transform: translateX(60px); }
.gsap-hidden.gsap-scale { transform: scale(0.8); }
.gsap-stagger > * {
    opacity: 0; transform: translateY(30px);
    will-change: opacity, transform;
}

/* PARTICLE HERO CONTAINER */
#hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
#hero-particles canvas { display: block; }

/* HERO FLOATING CARDS TILT */
.floating-card { will-change: transform; transition: transform 0.1s ease; }

/* AOS CUSTOM OVERRIDES */
[data-aos="fade-up"] { transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
[data-aos="zoom-in"] { transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }

