/* Hero section animations */

/* Dynamic background animation */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(75, 0, 130, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.7;
    z-index: 1;
    animation: pulse-bg 8s infinite alternate;
}

@keyframes pulse-bg {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

body.light-mode .hero::before {
    background: radial-gradient(circle at center, rgba(30, 136, 229, 0.2) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
}

/* Enhanced hero animations with more dynamic effects */

/* Hero content entrance animation */
.hero-content > * {
    opacity: 1;
    visibility: visible !important;
}

.hero-subtitle {
    animation: fadeUpStagger 0.7s forwards 0.1s;
    visibility: visible !important;
}

.hero h1 {
    opacity: 1;
    visibility: visible !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: var(--font-accent);
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
    animation: none;
    filter: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.hero .subtitle {
    animation: typingEffect 3.5s steps(30, end) forwards;
}

.hero-buttons {
    animation: fadeUpStagger 0.7s forwards 0.7s;
}

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

@keyframes glowPulse {
    0% { text-shadow: 0 0 1px rgba(255, 215, 0, 0.4); }
    100% { text-shadow: 0 0 2px rgba(255, 215, 0, 0.7); }
}

/* Typing effect for subtitle */
@keyframes typingEffect {
    from { width: 0; }
    to { width: 100%; }
}

/* Realistic floating animation for hero content */
.hero-content {
    animation: none;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Disabled floating animation that was causing blurriness
@keyframes heroFloat {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(-50%, -52%) rotate3d(1, 0, 0, 1deg); }
    50% { transform: translate(-50.5%, -50%) rotate3d(0, 1, 0, -0.5deg); }
    75% { transform: translate(-49.5%, -51%) rotate3d(0, 1, 0, 0.5deg); }
}
*/

/* Enhanced scroll indicator animation */
.scroll-indicator {
    animation: fadeInDelay 1s forwards 1.5s, bounceUpDown 2s infinite 2.5s;
    opacity: 0;
}

@keyframes fadeInDelay {
    from { opacity: 0; }
    to { opacity: 0.8; }
}

@keyframes bounceUpDown {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Button animation */
.hero-buttons .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%
    );
    animation: shineEffect 8s infinite;
}

@keyframes shineEffect {
    0% { left: -100%; }
    20%, 100% { left: 100%; }
}

/* 3D hover effect for main name */
.hero h1 {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.hero h1:hover {
    transform: perspective(500px) rotateX(5deg) rotateY(5deg) scale(1.03);
    cursor: default;
}

/* Light mode adjustments */
body.light-mode .hero h1 {
    color: #1976D2 !important;
    text-shadow: none !important;
    background: none !important;
    animation: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

@keyframes glowPulseLight {
    0% { text-shadow: 0 0 1px rgba(30, 136, 229, 0.4); }
    100% { text-shadow: 0 0 2px rgba(30, 136, 229, 0.7); }
}

/* Animated background gradient */
.particles-js {
    position: relative;
}

.particles-js::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(75, 0, 130, 0.3) 0%,
        rgba(0, 0, 0, 0) 50%,
        rgba(255, 215, 0, 0.2) 100%
    );
    animation: gradientMove 15s infinite alternate;
    z-index: 0;
}

body.light-mode .particles-js::before {
    background: linear-gradient(
        135deg,
        rgba(30, 136, 229, 0.15) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(13, 71, 161, 0.1) 100%
    );
}

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