/* ============================================
   HERO ANIMATIONS - Enhanced
   ============================================ */

/* Particle Canvas */
#heroParticles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Floating Tech Icons */
.floating-icons {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.06;
    color: #0d6efd;
    animation: floatIcon linear infinite;
}

@keyframes floatIcon {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.06; }
    90% { opacity: 0.06; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Gradient Animated Highlight */
.hero-title .highlight {
    background: linear-gradient(135deg, #0d6efd, #6610f2, #0d6efd, #6610f2);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Stagger Reveal Animations */
.hero-section .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero-section .reveal:nth-child(2) { transition-delay: 0.25s; }
.hero-section .reveal:nth-child(3) { transition-delay: 0.4s; }
.hero-section .reveal:nth-child(4) { transition-delay: 0.55s; }
.hero-section .reveal:nth-child(5) { transition-delay: 0.7s; }
.hero-section .col-lg-6:last-child .reveal { transition-delay: 0.5s; }

/* Code Window Glow */
.code-window {
    animation: codeGlow 3s ease-in-out infinite alternate;
}

@keyframes codeGlow {
    0% { box-shadow: 0 20px 60px rgba(13, 110, 253, 0.1); }
    100% { box-shadow: 0 20px 60px rgba(102, 16, 242, 0.2); }
}

/* Hero Badge Pulse */
.hero-badge {
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { border-color: rgba(13, 110, 253, 0.3); box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
    50% { border-color: rgba(13, 110, 253, 0.6); box-shadow: 0 0 20px rgba(13, 110, 253, 0.1); }
}

/* Button Glow Enhanced */
.btn-glow {
    position: relative;
    animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(13, 110, 253, 0.15); }
}

/* Stats Counter Glow on appear */
.hero-stat-value {
    opacity: 0;
    transform: translateY(10px);
    animation: statAppear 0.6s ease forwards;
    animation-delay: 1s;
}

@keyframes statAppear {
    to { opacity: 1; transform: translateY(0); }
}

/* Service Cards 3D Tilt */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

.service-icon {
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Grid Lines Animation */
.hero-bg-grid {
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* Tech Pill Hover */
.tech-pill {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-pill:hover {
    transform: translateY(-3px) scale(1.05);
}

.tech-pill.active {
    animation: pillGlow 2s ease-in-out infinite alternate;
}

@keyframes pillGlow {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 15px rgba(13, 110, 253, 0.2); }
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator a {
    color: rgba(255,255,255,0.3);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.scroll-indicator a:hover {
    color: rgba(255,255,255,0.7);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Section Divider Wave */
.section-wave {
    position: relative;
    margin-top: -2px;
}

.section-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Typing cursor blink enhanced */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #0d6efd;
    animation: cursorBlink 0.8s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Mobile adjustments for animations */
@media (max-width: 768px) {
    .floating-icons { display: none; }
    .scroll-indicator { display: none; }
    #heroParticles { display: none; }
}
