/**
 * SatvikSetu - Animation and Enhanced Styling
 */

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide Up Animation */
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Slide In From Right */
@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Grow Animation */
@keyframes grow {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Rotate Animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Section Animation */
.hero-content {
    animation: fadeIn 1.5s ease-out, slideUp 1s ease-out;
}

.hero-content h1 {
    animation: slideInLeft 1.2s ease-out 0.3s both;
}

.hero-content p {
    animation: slideInLeft 1.2s ease-out 0.6s both;
}

.hero-content .btn {
    animation: slideInLeft 1.2s ease-out 0.9s both;
}

/* Section Title Animation */
.section-title {
    animation: fadeIn 1s ease-out;
}

.section-title h2 {
    animation: slideUp 1s ease-out;
}

.section-title p {
    animation: slideUp 1s ease-out 0.2s both;
}

/* Feature Cards Animation */
.feature-card {
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out, slideUp 0.8s ease-out;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    animation: pulse 2s infinite;
}

/* Mission Section */
.mission-text {
    animation: slideInLeft 1s ease-out;
}

.mission-image {
    animation: slideInRight 1s ease-out;
}

/* Team Members */
.team-member {
    animation: fadeIn 0.8s ease-out, slideUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.member-image {
    overflow: hidden;
}

.member-image img {
    transition: all 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

/* Gallery Items */
.gallery-item {
    animation: fadeIn 0.8s ease-out;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.gallery-item img {
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Filter Buttons */
.filter-buttons {
    animation: fadeIn 1s ease-out;
}

.filter-button {
    transition: all 0.3s ease;
}

.filter-button:hover, .filter-button.active {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Testimonials */
.testimonial {
    animation: fadeIn 1s ease-out, slideUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.testimonial-image {
    animation: pulse 5s infinite;
}

/* Forms */
.contact-form, .testimonial-form, .waitlist-form {
    animation: fadeIn 1s ease-out, slideUp 0.8s ease-out;
}

.form-group {
    animation: slideInLeft 0.8s ease-out;
}

.form-submit {
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

/* Submit buttons pulse effect */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Vision Section */
.vision-quote {
    animation: grow 1s ease-out;
}

.vision-text {
    animation: slideInRight 1s ease-out;
}

/* Footer Animation */
.footer {
    animation: fadeIn 1s ease-out;
}

/* Social Icons */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Page Banner Animation */
.page-banner {
    animation: fadeIn 1.5s ease-out;
}

.page-banner h1 {
    animation: slideInLeft 1s ease-out;
}

.page-banner p {
    animation: slideInLeft 1s ease-out 0.3s both;
}

/* Fade in elements when they come into view */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom hover effects for cards */
.hover-zoom {
    transition: all 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.03);
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 127, 80, 0.3);
    border-radius: 50%;
    border-top-color: #ff7f50;
    animation: rotate 1s linear infinite;
    margin: 20px auto;
}

/* Flash message animation */
.flash-message {
    animation: fadeIn 0.5s ease-out, slideUp 0.5s ease-out;
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    z-index: 1;
}

.btn:hover:after {
    left: 100%;
}

/* Responsive animations for mobile */
@media (max-width: 768px) {
    .hero-content h1,
    .hero-content p,
    .hero-content .btn {
        animation: slideUp 1s ease-out;
    }
    
    .mission-text, 
    .mission-image,
    .vision-text {
        animation: fadeIn 1s ease-out;
    }
}
