/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    background: rgba(26, 26, 26, 0.03);
    border: 1px dashed rgba(26, 26, 26, 0.1);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    100% { 
        transform: translate(100px, 50px) rotate(360deg); 
    }
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 80%;
    animation-duration: 20s;
}

.floating-element:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 70%;
    left: 10%;
    animation-duration: 15s;
    animation-direction: reverse;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 5%;
    animation-duration: 25s;
}

/* Logo Line Shimmer Animation */
.logo-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 26, 26, 0.5), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { 
        left: -100%; 
    }
    100% { 
        left: 100%; 
    }
}

/* Font Awesome Icon Fix */
i.fas,
i.fab {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* ===== CAPTIVATING TEXT EFFECTS ===== */

/* 1. Gradient Text Effect */
.text-gradient {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a5568 50%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* 2. Glow Effect */
.text-glow {
    text-shadow: 0 0 20px rgba(26, 26, 26, 0.5), 
                 0 0 40px rgba(26, 26, 26, 0.3);
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* 3. Sharp Stroke Effect */
.text-stroke {
    -webkit-text-stroke: 1px #1a1a1a;
    paint-order: stroke fill;
    font-weight: 900;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 4. Animated Gradient Text */
.text-animated-gradient {
    background: linear-gradient(90deg, 
        #1a1a1a 0%, 
        #4a5568 25%, 
        #1a1a1a 50%, 
        #4a5568 75%, 
        #1a1a1a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-text 3s linear infinite;
    font-weight: 900;
}

@keyframes shimmer-text {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* 5. Sharp Shadow Effect */
.text-sharp-shadow {
    text-shadow: 3px 3px 0 #4a5568,
                 6px 6px 0 #e2e8f0;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* 6. Neon Effect */
.text-neon {
    color: #1a1a1a;
    text-shadow: 0 0 10px rgba(26, 26, 26, 0.8),
                 0 0 20px rgba(74, 85, 104, 0.6),
                 0 0 30px rgba(26, 26, 26, 0.4);
    font-weight: 900;
    letter-spacing: 1px;
}

/* 7. Outline Text */
.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px #1a1a1a;
    font-weight: 900;
}

/* 8. Bold Impact with Letter Spacing */
.text-impact {
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    line-height: 1;
}

/* 9. Gradient + Glow Combo */
.text-gradient-glow {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a5568 50%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(26, 26, 26, 0.3);
    filter: drop-shadow(0 0 15px rgba(26, 26, 26, 0.2));
    font-weight: 900;
}

/* 10. Skew Effect */
.text-skew {
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    transform: skewX(-10deg);
}

/* 11. Wave Animation */
.text-wave {
    font-weight: 900;
    background: linear-gradient(90deg, #1a1a1a, #4a5568, #1a1a1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}

/* 12. Double Shadow (3D Effect) */
.text-3d {
    color: #1a1a1a;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3),
                 2px 2px 4px rgba(0, 0, 0, 0.2),
                 3px 3px 6px rgba(0, 0, 0, 0.1);
    font-weight: 900;
}

/* Service Item Hover Effects */
.grid > div:nth-child(n) {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-element:nth-child(1) {
        width: 50px;
        height: 50px;
    }
    
    .floating-element:nth-child(2) {
        width: 30px;
        height: 30px;
    }
    
    .floating-element:nth-child(3) {
        width: 40px;
        height: 40px;
    }
}

/* ===== MOBILE MENU ANIMATIONS ===== */

/* Menu opening animation */
.menu-open {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    to {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* Menu closing animation */
.menu-closing {
    animation: slideUp 0.3s ease-in forwards;
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    to {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
}

/* Icon rotation animation */
.rotate-animation {
    animation: iconRotate 0.3s ease-out forwards;
}

@keyframes iconRotate {
    from {
        transform: rotate(0deg);
        opacity: 1;
    }
    to {
        transform: rotate(90deg);
        opacity: 1;
    }
}

/* ===== TECH STACK MARQUEE ANIMATIONS ===== */

.marquee-container {
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    width: fit-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1a1a1a;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.marquee-item:hover {
    opacity: 1;
}

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

/* Smooth gradient fade effect on edges */
.marquee-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0));
    z-index: 10;
    pointer-events: none;
}

.marquee-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), white);
    z-index: 10;
    pointer-events: none;
}

/* FAQ Description - Force Dark Black Text */
.faq-description {
    color: #000000 !important;
}
 @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
            50% { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
        }
        
        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        
        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); }
            50% { box-shadow: 0 0 40px rgba(0, 0, 0, 0.5); }
        }
        
        .float-1 { animation: float 6s ease-in-out infinite; }
        .float-2 { animation: float 6s ease-in-out 2s infinite; }
        .float-3 { animation: float 6s ease-in-out 4s infinite; }
        
        .shimmer-line {
            position: relative;
            overflow: hidden;
        }
        
        .shimmer-line::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
            animation: shimmer 3s infinite;
        }
        
        .logo-spin:hover {
            animation: spin 0.6s ease-in-out;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .glow-box {
            animation: pulse-glow 2s ease-in-out infinite;
        }