/**
 * Animations for Tamil Aagamam Website
 * Focused on enhancing the spiritual and mystical theme
 */

/* Particle Animation Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Individual Particle */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 1;
}

/* Sacred Geometry Pattern */
.sacred-geometry {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('../images/pattern1.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
    animation: rotate 60s linear infinite;
}

.sacred-geometry.pattern1 {
    top: -50px;
    right: -50px;
}

.sacred-geometry.pattern2 {
    bottom: -50px;
    left: -50px;
    background-image: url('../images/pattern2.svg');
    animation-direction: reverse;
}

/* Enhanced Hero Content Animations */
.hero-title {
    animation: fadeInDown 1.2s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1.2s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero-buttons {
    animation: fadeInUp 1.2s ease-out 0.6s;
    animation-fill-mode: both;
}

/* Button Hover Effects */
.hero-buttons .btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.hero-buttons .btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.hero-buttons .btn:hover:before {
    left: 0;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Glow Effect */
.hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(142, 68, 173, 0.3) 0%, rgba(46, 49, 146, 0) 70%);
    z-index: 1;
    animation: pulse 8s infinite alternate;
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.3;
    }
}