@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

:root {
    --color-dark-gray: #333333;
    --color-warm-yellow: #FFC72C;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-dark-gray);
    color: #E5E7EB; /* gray-200 */
}

/* Header shadow on scroll */
#header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    background-color: rgba(31, 41, 55, 0.9); /* bg-gray-800 with more opacity */
}

/* Hero Section Animated Background */
#hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111827; /* gray-900 */
    background-image: 
        radial-gradient(circle at 25% 30%, rgba(255, 199, 44, 0.15), transparent 40%),
        radial-gradient(circle at 75% 70%, rgba(255, 199, 44, 0.15), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 199, 44, 0.05), transparent 60%);
    overflow: hidden;
}

#hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%),
                linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    animation: moveGrid 20s linear infinite;
    opacity: 0.3;
}

@keyframes moveGrid {
    0% { background-position: 0 0, 30px 30px; }
    100% { background-position: 60px 60px, 90px 90px; }
}

/* Scroll Animations */
.scroll-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-target.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation: fadeIn 1.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-yellow-400 {
    background-color: var(--color-warm-yellow);
}

.bg-yellow-300 {
    background-color: #FFD65C; /* A lighter shade for hover */
}

.text-yellow-400 {
    color: var(--color-warm-yellow);
}

.hover\:text-yellow-400:hover {
    color: var(--color-warm-yellow);
}

.hover\:text-yellow-300:hover {
     color: #FFD65C;
}

.border-gray-700 {
    border-color: #374151;
}

.bg-gray-800 {
    background-color: #1F2937;
}

.bg-gray-900 {
    background-color: #111827;
}

.text-gray-900 {
    color: #111827;
}

/* Philosophy Animation */
.philosophy-animation {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
}

.philosophy-item {
    font-weight: 500;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.philosophy-item:hover {
    color: #fcd34d;
    transform: translateY(-2px);
}

.philosophy-arrow {
    color: #9ca3af;
    font-weight: bold;
    transition: all 0.3s ease;
}

.delay-200 { animation-delay: 200ms; }
.delay-400 { animation-delay: 400ms; }
.delay-600 { animation-delay: 600ms; }
.delay-800 { animation-delay: 800ms; }
.delay-1000 { animation-delay: 1000ms; }

@media (max-width: 768px) {
    .philosophy-animation {
        font-size: 0.875rem;
        flex-direction: column;
        space-x: 0;
        space-y: 2px;
    }
    
    .philosophy-arrow {
        transform: rotate(90deg);
    }
}

/* Dynamic Explore Services Animation */
.explore-services-btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 199, 44, 0.3);
    transition: all 0.4s ease;
}

.explore-services-btn:hover {
    box-shadow: 0 0 40px rgba(255, 199, 44, 0.8);
    transform: translateY(-3px) scale(1.05);
}

/* Floating Elements Animation */
.dynamic-animation-container {
    height: 120px;
    position: relative;
}

.floating-elements {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.floating-text {
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 199, 44, 0.7);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.floating-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 15px rgba(255, 199, 44, 0.8));
}

@keyframes float-1 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 1; 
    }
    25% { 
        transform: translateY(-25px) rotate(8deg) scale(1.1); 
        opacity: 0.9; 
    }
    50% { 
        transform: translateY(-40px) rotate(-5deg) scale(1.2); 
        opacity: 0.8; 
    }
    75% { 
        transform: translateY(-25px) rotate(3deg) scale(1.1); 
        opacity: 0.9; 
    }
}

@keyframes float-2 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 1; 
    }
    25% { 
        transform: translateY(-35px) rotate(-6deg) scale(1.15); 
        opacity: 0.85; 
    }
    50% { 
        transform: translateY(-50px) rotate(4deg) scale(1.25); 
        opacity: 0.75; 
    }
    75% { 
        transform: translateY(-35px) rotate(-2deg) scale(1.15); 
        opacity: 0.85; 
    }
}

@keyframes float-3 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 1; 
    }
    25% { 
        transform: translateY(-30px) rotate(4deg) scale(1.2); 
        opacity: 0.8; 
    }
    50% { 
        transform: translateY(-45px) rotate(-3deg) scale(1.3); 
        opacity: 0.7; 
    }
    75% { 
        transform: translateY(-30px) rotate(2deg) scale(1.2); 
        opacity: 0.8; 
    }
}

.animate-float-1 { 
    animation: float-1 4s ease-in-out infinite; 
}
.animate-float-2 { 
    animation: float-2 4s ease-in-out infinite 1.3s; 
}
.animate-float-3 { 
    animation: float-3 4s ease-in-out infinite 2.6s; 
}

/* Energy Wave Effect */
.energy-wave {
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 199, 44, 0.1),
        rgba(255, 199, 44, 0.3),
        rgba(255, 199, 44, 0.1),
        transparent
    );
    animation: energyPulse 4s ease-in-out infinite;
    border-radius: 50%;
    transform: scale(0.6);
    filter: blur(1px);
}

@keyframes energyPulse {
    0%, 100% { 
        transform: scale(0.6) rotate(0deg);
        opacity: 0.2;
    }
    25% { 
        transform: scale(0.9) rotate(90deg);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
    75% { 
        transform: scale(0.9) rotate(270deg);
        opacity: 0.5;
    }
}

/* Enhanced hover effects for floating elements */
.floating-elements:hover .floating-text {
    animation-play-state: paused;
    transform: scale(1.3);
    transition: transform 0.3s ease;
}

/* Tech-style glow effects */
.tech-glow {
    box-shadow: 0 0 20px rgba(255, 199, 44, 0.3),
                0 0 40px rgba(255, 199, 44, 0.2),
                0 0 60px rgba(255, 199, 44, 0.1);
}

/* Holographic grid overlay */
.holographic-grid {
    position: relative;
    overflow: hidden;
}

.holographic-grid::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 199, 44, 0.1) 50%,
        transparent 70%
    );
    animation: holographicScan 3s ease-in-out infinite;
}

@keyframes holographicScan {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Neon border effects */
.neon-border {
    border: 1px solid rgba(255, 199, 44, 0.3);
    box-shadow: 
        0 0 5px rgba(255, 199, 44, 0.5),
        inset 0 0 5px rgba(255, 199, 44, 0.2);
}

.neon-border:hover {
    border-color: rgba(255, 199, 44, 0.6);
    box-shadow: 
        0 0 15px rgba(255, 199, 44, 0.8),
        inset 0 0 15px rgba(255, 199, 44, 0.4);
}

/* Cyberpunk-style text effects */
.cyber-text {
    background: linear-gradient(45deg, #FFC72C, #FFD65C, #FFC72C);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: cyberGlow 2s ease-in-out infinite alternate;
}

@keyframes cyberGlow {
    0% {
        background-position: 0% 50%;
        text-shadow: 0 0 10px rgba(255, 199, 44, 0.5);
    }
    100% {
        background-position: 100% 50%;
        text-shadow: 0 0 20px rgba(255, 199, 44, 0.8),
                     0 0 30px rgba(255, 199, 44, 0.6);
    }
}

/* Digital rain effect */
.digital-rain {
    position: relative;
    overflow: hidden;
}

.digital-rain::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255, 199, 44, 0.03) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(255, 199, 44, 0.02) 50%, transparent 100%);
    animation: digitalRain 8s linear infinite;
}

@keyframes digitalRain {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Pulse glow for buttons */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 199, 44, 0.5),
                    0 0 10px rgba(255, 199, 44, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 199, 44, 0.8),
                    0 0 25px rgba(255, 199, 44, 0.6),
                    0 0 35px rgba(255, 199, 44, 0.4);
    }
}

/* Matrix-style falling particles */
.matrix-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.matrix-particles::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 10%;
    width: 1px;
    height: 200%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 199, 44, 0.3) 50%, 
        transparent 100%);
    animation: matrixFall 6s linear infinite;
    animation-delay: 0s;
}

.matrix-particles::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 90%;
    width: 1px;
    height: 200%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 199, 44, 0.2) 50%, 
        transparent 100%);
    animation: matrixFall 8s linear infinite;
    animation-delay: 2s;
}

@keyframes matrixFall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}
