/* Hero Section Advanced Animations */

/* Hero Background Animation */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0c0c1d, #1a1a3a);
}

/* Animated Background Elements */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Grid Pattern */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    animation: grid-fade 8s infinite alternate;
}

/* Animated Gradient Background */
.gradient-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
                rgba(108, 99, 255, 0.1) 0%, 
                rgba(108, 99, 255, 0.05) 20%, 
                rgba(108, 99, 255, 0) 60%);
    animation: rotate-gradient 20s linear infinite;
}

/* Animated Shapes */
.hero .animated-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.4), rgba(138, 132, 255, 0.1));
    filter: blur(30px);
    opacity: 0.6;
    z-index: 1;
    animation: float-shape 15s infinite ease-in-out;
}

.hero .shape1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero .shape2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.3), rgba(255, 126, 95, 0.1));
}

.hero .shape3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(255, 126, 95, 0.1));
}

/* Particle Effect */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    z-index: 2;
}

/* Hero Content Animations */
.hero-content {
    position: relative;
    z-index: 10;
    padding: 180px 0 100px;
    text-align: center;
    animation: content-fade-in 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 800;
    font-family: var(--bold-font);
    opacity: 0;
    transform: translateY(20px);
    animation: title-reveal 0.8s ease-out forwards 0.3s;
}

.hero-content h1 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--primary-color);
    animation: line-reveal 1s ease-out forwards 1.2s;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    animation: title-reveal 0.8s ease-out forwards 0.6s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: title-reveal 0.8s ease-out forwards 0.9s;
}

.hero-btns {
    opacity: 0;
    transform: translateY(20px);
    animation: title-reveal 0.8s ease-out forwards 1.2s;
}

/* Typing Effect for Hero Text */
.typing-effect {
    display: inline-block;
    position: relative;
    color: var(--primary-color);
}

.typing-effect::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--primary-color);
    animation: cursor-blink 1s infinite;
}

/* Highlight Effect */
.highlight {
    position: relative;
    display: inline-block;
    color: #fff;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(108, 99, 255, 0.3);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: highlight-reveal 0.8s ease-out forwards 1.5s;
}

/* Button Animations */
.hero-btns .btn {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}

.hero-btns .primary-btn {
    position: relative;
    overflow: hidden;
}

.hero-btns .primary-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.hero-btns .primary-btn:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    opacity: 0;
    animation: fade-in 1s ease-out forwards 2s;
    z-index: 10;
}

.scroll-indicator span {
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll-animation 2s infinite;
}

/* Keyframe Animations */
@keyframes grid-fade {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float-shape {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

@keyframes content-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes title-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes line-reveal {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes cursor-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes highlight-reveal {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes scroll-animation {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        padding: 160px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero .shape1 {
        width: 300px;
        height: 300px;
    }
    
    .hero .shape2 {
        width: 200px;
        height: 200px;
    }
    
    .hero .shape3 {
        width: 150px;
        height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
}
