@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@700&display=swap");

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* Keyframes for Animated Flowing Rainbow Glow (for Hero Text) */
@keyframes pulsateGlow {
    0% {
        text-shadow:
            0 0 5px rgba(255, 0, 0, 0.9),    /* Red */
            0 0 15px rgba(255, 165, 0, 0.7), /* Orange */
            0 0 25px rgba(255, 255, 0, 0.5); /* Yellow */
    }
    16% {
        text-shadow:
            0 0 5px rgba(255, 165, 0, 0.9),  /* Orange */
            0 0 15px rgba(255, 255, 0, 0.7), /* Yellow */
            0 0 25px rgba(0, 128, 0, 0.5);   /* Green */
    }
    33% {
        text-shadow:
            0 0 5px rgba(255, 255, 0, 0.9),  /* Yellow */
            0 0 15px rgba(0, 128, 0, 0.7),   /* Green */
            0 0 25px rgba(0, 0, 255, 0.5);   /* Blue */
    }
    50% {
        text-shadow:
            0 0 5px rgba(0, 128, 0, 0.9),    /* Green */
            0 0 15px rgba(0, 0, 255, 0.7),   /* Blue */
            0 0 25px rgba(75, 0, 130, 0.5);  /* Indigo */
    }
    66% {
        text-shadow:
            0 0 5px rgba(0, 0, 255, 0.9),    /* Blue */
            0 0 15px rgba(75, 0, 130, 0.7),  /* Indigo */
            0 0 25px rgba(238, 130, 238, 0.5); /* Violet */
    }
    83% {
        text-shadow:
            0 0 5px rgba(75, 0, 130, 0.9),   /* Indigo */
            0 0 15px rgba(238, 130, 238, 0.7), /* Violet */
            0 0 25px rgba(255, 0, 0, 0.5);   /* Red */
    }
    100% {
        text-shadow:
            0 0 5px rgba(255, 0, 0, 0.9),
            0 0 15px rgba(255, 165, 0, 0.7),
            0 0 25px rgba(255, 255, 0, 0.5);
    }
}

/* Keyframes for Continuous Gradient Shift Text Fill (Still defined, but not used by hero-h1-animation anymore) */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Keyframes for Animated "River-like" Glow for Logo (TEXT SHADOW version) */
@keyframes riverGlow {
    0% {
        text-shadow:
            0 0 8px #FFFF00, /* Yellow */
            0 0 15px #0000FF; /* Blue */
    }
    25% {
        text-shadow:
            0 0 8px #0000FF, /* Blue */
            0 0 15px #FFFFFF; /* White */
    }
    50% {
        text-shadow:
            0 0 8px #FFFFFF, /* White */
            0 0 15px #000000; /* Black */
    }
    75% {
        text-shadow:
            0 0 8px #000000, /* Black */
            0 0 15px #808080; /* Gray */
    }
    100% {
        text-shadow:
            0 0 8px #808080, /* Gray */
            0 0 15px #FFFF00; /* Yellow (loops back to start) */
    }
}


/* Hero text elements with updated outside glow */
.hero-h1-animation {
    animation-delay: 0.3s;
    animation: fadeInUp 1s ease-out forwards,
               pulsateGlow 6s infinite linear;
    color: white;
}

.hero-p-animation {
    animation-delay: 0.6s;
    animation: fadeInUp 1s ease-out forwards, pulsateGlow 6s infinite linear;
    color: white;
}

/* CSS Class for the Logo's River Glow Animation (TEXT SHADOW version) */
.logo-river-glow {
    color: white; /* Text color explicitly white */
    animation: riverGlow 5s infinite linear; /* Apply the new text-shadow animation */
    font-family: 'Josefin Sans', sans-serif; /* Apply specific font from import */
}

/* 3D Tilt and Zoom Image Effect for other sections */
.image-tilt-zoom {
    transform: scale(1) rotateX(0deg) rotateY(0deg);
    filter: grayscale(20%);
    box-shadow: none;
    transition: transform 0.4s ease-out, box-shadow 0.3s ease-in-out, filter 0.5s ease-in-out;
}

.group:hover .image-tilt-zoom {
    transform: scale(1.08) rotateX(2deg) rotateY(-2deg);
    filter: grayscale(0%);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.8);
}

/* NEW: Team Card Overlay on Click Styles */
.team-card {
    position: relative; /* Needed for absolute positioning of overlay */
    overflow: hidden; /* Ensures contents stay within bounds */
    border-radius: 0.5rem; /* Matches image and shadow */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Default shadow */
    transition: box-shadow 0.3s ease-in-out; /* Smooth shadow transition */
}

.team-card:hover {
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.15); /* Slightly larger shadow on hover */
}

.team-card img {
    /* object-fit and height/width are handled by Tailwind classes in HTML */
    border-radius: 0.5rem; /* Ensure image is rounded */
}

/* Glassy Button Effect */
/* For the primary yellow buttons */
.btn-glassy-yellow {
    background: linear-gradient(180deg, rgba(255, 235, 100, 0.95) 0%, rgba(255, 215, 0, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1),
                0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-glassy-yellow:hover {
    background: linear-gradient(180deg, rgba(255, 245, 130, 0.98) 0%, rgba(255, 225, 30, 0.9) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
                inset 0 -1px 0 rgba(0, 0, 0, 0.15),
                0 6px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* For the secondary white/border buttons (optional, to match theme) */
.btn-glassy-white {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.05),
                0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.btn-glassy-white:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1),
                0 6px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Polished Card Effect (for text sections on solid backgrounds, e.g., Our Story) */
.polished-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 100%);
    border: 1px solid rgba(220, 220, 220, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
}

.polished-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Ensure text colors within the card remain readable */
.polished-card h3,
.polished-card p {
    color: inherit;
}

/* ... (previous CSS code) ... */

/* NEW: Team Card Overlay on Click Styles */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease-in-out;
}

.team-card:hover {
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.15);
}

.team-card img {
    /* object-fit and height/width are handled by Tailwind classes in HTML */
    border-radius: 0.5rem; /* Ensure image is rounded */
    object-position: top; /* ADD THIS LINE: Anchors the image to the top */
}

/* ... (rest of your CSS code) ... */