/* ============================================================
   Nealkanth Technologies - Custom Styles
   ============================================================ */

/* ---- Base Styles ---- */
html {
    scroll-behavior: smooth;
}

* {
    border-color: rgba(255, 255, 255, 0.08);
    outline-color: rgba(0, 212, 255, 0.5);
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff, #a855f7);
    border-radius: 3px;
}

/* ---- Glassmorphism ---- */
.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
}
.glass-strong {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Neon Glow Effects ---- */
.glow-blue {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
}
.glow-purple {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 40px rgba(168, 85, 247, 0.1);
}
.glow-text-blue {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
}
.glow-text-purple {
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5), 0 0 20px rgba(168, 85, 247, 0.3);
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 50%, #06f9e4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Grid Background ---- */
.grid-bg {
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ---- Mouse Follow Light ---- */
.mouse-light {
    pointer-events: none;
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: left 0.1s ease-out, top 0.1s ease-out;
}

/* ---- Section Spacing ---- */
.section-padding {
    padding: 6rem 1rem;
}
@media (min-width: 768px) {
    .section-padding {
        padding: 8rem 2rem;
    }
}

/* ---- Loading Screen ---- */
@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8)) drop-shadow(0 0 50px rgba(168, 85, 247, 0.4)); }
}
.animate-logo-glow {
    animation: logo-glow 2s ease-in-out infinite;
}

@keyframes loading-dot-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}
.loading-dot {
    animation: loading-dot-pulse 1.2s ease-in-out infinite;
}

/* ---- Floating Animation ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}
.animate-float-slow {
    animation: float-slow 5s ease-in-out infinite;
}

/* ---- Pulse Glow ---- */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.4), 0 0 60px rgba(168, 85, 247, 0.2); }
}
.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ---- Shimmer ---- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

/* ---- World Map Pulse ---- */
@keyframes map-pulse {
    0% { r: 8; opacity: 0.8; }
    50% { r: 18; opacity: 0.2; }
    100% { r: 8; opacity: 0.8; }
}
@keyframes dash-flow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: 20; }
}
.map-pulse-circle {
    animation: map-pulse 3s ease-in-out infinite;
}
.route-dash {
    animation: dash-flow 2s linear infinite;
}

/* ---- Rotating Gradient Border ---- */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}
.animate-spin-medium {
    animation: spin-slow 10s linear infinite;
}

/* ---- Orbiting Dots ---- */
@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---- Scroll Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ---- Section Underline Animation ---- */
.section-underline {
    transform: scaleX(0);
    transition: transform 0.8s ease-out 0.3s;
}
.section-heading.visible .section-underline {
    transform: scaleX(1);
}

/* ---- Card Hover Effects ---- */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.hover-card:hover {
    transform: translateY(-8px);
}

/* ---- Counter Animation ---- */
.counter-value {
    display: inline-block;
}

/* ---- Testimonial Carousel ---- */
.testimonial-slide {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}
.testimonial-slide.exit-left {
    opacity: 0;
    transform: translateX(-300px);
}
.testimonial-slide.exit-right {
    opacity: 0;
    transform: translateX(300px);
}

/* ---- Portfolio Filter Animation ---- */
.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.portfolio-item.hidden-item {
    opacity: 0;
    transform: scale(0.9);
    position: absolute;
    pointer-events: none;
}

/* ---- Nav Active Indicator ---- */
.nav-link.active {
    color: #00d4ff;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 24px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #00d4ff, #a855f7);
}

/* ---- Mobile Nav Active ---- */
.mobile-nav-link.active {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* ---- Form Inputs ---- */
input:focus, textarea:focus, select:focus {
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

/* ---- Stagger Animation Helpers ---- */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }
.stagger-9 { transition-delay: 0.45s; }
.stagger-10 { transition-delay: 0.5s; }

/* ---- Hero Service Item Animation ---- */
.hero-service {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.4s ease-out forwards;
}
@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

/* ---- Hero Shape Parallax ---- */
.hero-shape {
    transition: transform 0.15s ease-out;
}

/* ---- Team Avatar Rotating Ring ---- */
@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.avatar-ring {
    animation: rotate-gradient 8s linear infinite;
}

/* ---- Bottom Glow Accent ---- */
.bottom-glow {
    width: 0;
    transition: width 0.5s ease;
}
.group:hover .bottom-glow {
    width: 75%;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .gradient-text {
        font-size: inherit;
    }
}
