body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F5F7FA;
    color: #333333;
}

/* Navbar */
.navbar {
    background: #007A78;
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInDown 0.5s ease;
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(360deg);
}
.school-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    transition: text-shadow 0.3s ease;
}

.school-name:hover {
    text-shadow: 0 0 10px #FF6F61;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #FF6F61;
    transform: scale(1.1);
}

/* Headings */
h2 {
    font-size: 2.5rem;
    color: #007A78;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    animation: fadeIn 1s ease;
}

h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #FF6F61;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: expand 1s ease;
}

/* Animation Trigger */
.animate {
    opacity: 0;
    
    
}

.animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section (Home Page) */
.hero-section {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.carousel {
    position: relative;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    animation: parallax 10s linear infinite;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 10px;
   
}

.carousel-content h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: glowText 2s infinite;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.carousel-btn {
    display: inline-block;
    background: #FF6F61;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: rainbowGlow 1.5s infinite;
}

.carousel-btn-prev,
.carousel-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #007A78;
    border: none;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-btn-prev:hover,
.carousel-btn-next:hover {
    background: #FF6F61;
    color: #fff;
    transform: scale(1.2);
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

/* Philosophy Section (Home Page) */
.philosophy-section {
    background: #fff;
    padding: 4rem 2rem;
}

.philosophy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-item {
    text-align: center;
    animation: slideInUp 1s ease;
}

.philosophy-item h3 {
    font-size: 1.5rem;
    color: #007A78;
    margin-bottom: 1rem;
}

.floating-icon {
    font-size: 2rem;
    color: #FF6F61;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite, rotate 5s linear infinite;
}

/* Why Choose Us Section (Home Page) */
.why-choose-us-section {
    background: #F5F7FA;
    padding: 4rem 2rem;
}

.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-choose-us-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, background 0.5s ease;
}

.why-choose-us-card:hover {
    transform: translateY(-10px) rotate(2deg);
    background: linear-gradient(45deg, #007A78, #FF6F61);
    color: #fff;
}

.why-choose-us-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.why-choose-us-card h3 {
    font-size: 1.5rem;
    color: #007A78;
    margin-bottom: 1rem;
}

.why-choose-us-card:hover h3,
.why-choose-us-card:hover p {
    color: #fff;
}

/* Events Section */
.events-section {
    background: #fff;
    padding: 4rem 2rem;
}

.events-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
}

.events-carousel::-webkit-scrollbar {
    display: none;
}

.event-card {
    flex: 0 0 300px;
    background: #F5F7FA;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    scroll-snap-align: center;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.event-card:hover {
    transform: perspective(1000px) rotateY(5deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: rainbowGlow 1.5s infinite;
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

.event-card:hover img {
    transform: scale(1.1);
}

.event-icon {
    font-size: 2rem;
    color: #FF6F61;
    margin: 0.5rem 0;
    animation: float 3s ease-in-out infinite;
}

.event-card h3 {
    font-size: 1.3rem;
    color: #007A78;
    margin: 0.5rem 0;
}

.event-card p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.event-btn {
    display: inline-block;
    background: #FF6F61;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: rainbowGlow 1.5s infinite;
}

/* Contact Section (Contact Page) */
.contact-section {
    background: #fff;
    padding: 4rem 2rem;
}

.contact-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
}

.contact-carousel::-webkit-scrollbar {
    display: none;
}

.contact-card {
    flex: 0 0 300px;
    background: #F5F7FA;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    scroll-snap-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.contact-card:hover {
    transform: perspective(1000px) rotateY(5deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: rainbowGlow 1.5s infinite;
}

.contact-icon {
    font-size: 2.5rem;
    color: #FF6F61;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.contact-card h3 {
    font-size: 1.3rem;
    color: #007A78;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: inline-block;
    background: #FF6F61;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: rainbowGlow 1.5s infinite;
}

/* Testimonials Section (Home Page) */
.testimonials-section {
    background: #FF6F61;
    color: #fff;
    padding: 4rem 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.testimonial-card .quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease;
}

.testimonial-card .author {
    font-weight: bold;
}

/* Our Story Section (About Page) */
.story-section {
    height: 600px;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.story-content {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    animation: parallax 10s linear infinite;
}

.story-content h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease;
}

.story-content p {
    font-size: 1.2rem;
    max-width: 600px;
    animation: slideInUp 1.2s ease;
}

/* Mission & Vision Section (About Page) */
.mission-vision-section {
    background: #F5F7FA;
    padding: 4rem 2rem;
}

.mission-vision-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.mission-vision-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-vision-item {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-vision-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.mission-vision-item .floating-icon {
    font-size: 2.5rem;
    animation: bounceIn 1s ease, rotate 5s linear infinite;
}

.mission-vision-item h3 {
    font-size: 1.5rem;
    color: #007A78;
    margin: 1rem 0;
}

.mission-vision-item p {
    color: #666;
}

/* Team Section (About Page) */
.team-section {
    background: #fff;
    padding: 4rem 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: #F5F7FA;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, background 0.5s ease;
}

.team-card:hover {
    transform: perspective(1000px) rotateY(10deg);
    background: linear-gradient(45deg, #007A78, #FF6F61);
    color: #fff;
}

.team-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.team-card h3 {
    font-size: 1.3rem;
    color: #007A78;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: #666;
}

.team-card:hover h3,
.team-card:hover p {
    color: #fff;
}

/* Values Section (About Page) */
.values-section {
    background: #FF6F61;
    color: #fff;
    padding: 4rem 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: rainbowGlow 1.5s infinite;
}

.value-card .floating-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite, rotate 5s linear infinite;
}

.value-card h3 {
    font-size: 1.3rem;
    margin: 1rem 0;
}

.value-card p {
    color: #f0f0f0;
}

/* Program Overview Section (Programs Page) */
.overview-section {
    height: 600px;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.overview-content {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    animation: parallax 10s linear infinite;
}

.overview-content h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease;
}

.overview-content p {
    font-size: 1.2rem;
    max-width: 600px;
    animation: slideInUp 1.2s ease;
}

/* Programs Section (Programs Page) */
.programs-section {
    background: #F5F7FA;
    padding: 4rem 2rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, background 0.5s ease;
}

.program-card:hover {
    transform: perspective(1000px) rotateY(10deg);
    background: linear-gradient(45deg, #007A78, #FF6F61);
    color: #fff;
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.program-card h3 {
    font-size: 1.3rem;
    color: #007A78;
    margin-bottom: 0.5rem;
}

.program-card p {
    color: #666;
}

.program-card:hover h3,
.program-card:hover p {
    color: #fff;
}

/* Learning Approach Section (Programs Page) */
.approach-section {
    background: #fff;
    padding: 4rem 2rem;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.approach-card {
    background: #F5F7FA;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: rainbowGlow 1.5s infinite;
}

.approach-card .floating-icon {
    font-size: 2rem;
    color: #FF6F61;
    animation: float 3s ease-in-out infinite, rotate 5s linear infinite;
}

.approach-card h3 {
    font-size: 1.3rem;
    color: #007A78;
    margin: 1rem 0;
}

.approach-card p {
    color: #666;
}

/* Admissions Overview Section (Admissions Page) */
.admissions-overview-section {
    height: 600px;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.admissions-overview-content {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    animation: parallax 10s linear infinite;
}

.admissions-overview-content h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease;
}

.admissions-overview-content p {
    font-size: 1.2rem;
    max-width: 600px;
    animation: slideInUp 1.2s ease;
}

/* How to Enroll Section (Admissions Page) */
.enroll-section {
    background: #F5F7FA;
    padding: 4rem 2rem;
}

.enroll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.enroll-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, background 0.5s ease;
}

.enroll-card:hover {
    transform: perspective(1000px) rotateY(10deg);
    background: linear-gradient(45deg, #007A78, #FF6F61);
    color: #fff;
}

.enroll-card .floating-icon {
    font-size: 2.5rem;
    color: #FF6F61;
    animation: bounceIn 1s ease, rotate 5s linear infinite;
}

.enroll-card h3 {
    font-size: 1.3rem;
    color: #007A78;
    margin: 1rem 0;
}

.enroll-card p {
    color: #666;
}

.enroll-card:hover h3,
.enroll-card:hover p {
    color: #fff;
}

.enroll-eligibility {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 2rem;
    color: #333333;
    animation: fadeIn 1s ease;
}

/* Why Choose Us Section (Admissions Page) */
.why-choose-section {
    background: #fff;
    padding: 4rem 2rem;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-choose-card {
    background: #F5F7FA;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: rainbowGlow 1.5s infinite;
}

.why-choose-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.why-choose-card h3 {
    font-size: 1.3rem;
    color: #007A78;
    margin-bottom: 0.5rem;
}

.why-choose-card p {
    color: #666;
}

/* Gallery Overview Section (Gallery Page) */
.gallery-overview-section {
    height: 600px;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.gallery-overview-content {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    animation: parallax 10s linear infinite;
}

.gallery-overview-content h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease;
}

.gallery-overview-content p {
    font-size: 1.2rem;
    max-width: 600px;
    animation: slideInUp 1.2s ease;
}

/* Our Memories Section (Gallery Page) */
.memories-section {
    background: #F5F7FA;
    padding: 4rem 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: perspective(1000px) rotateY(10deg) scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item p {
    padding: 1rem;
    color: #666;
    font-size: 1.1rem;
}

/* Call to Action Section (Home, About, Programs, Admissions, Gallery, Contact Pages) */
.cta-section {
    background: #007A78;
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    background: #FF6F61;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.cta-btn:hover {
    transform: scale(1.1);
    animation: rainbowGlow 1.5s infinite;
}

/* Footer */
.footer {
    background: #333333;
    color: #fff;
    padding: 3rem 2rem;
    animation: fadeIn 1s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-content p,
.footer-content ul {
    color: #ccc;
}

.footer-content ul {
    list-style: none;
    padding: 0;
}

.footer-content ul li {
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #FF6F61;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: #FF6F61;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    color: #ccc;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #FF6F61;
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
}

.scroll-to-top:hover {
    background: #e55a00;
    transform: scale(1.2);
}

/* Animations */
@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideInUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px #FF6F61; }
    50% { box-shadow: 0 0 20px #FF6F61; }
    100% { box-shadow: 0 0 5px #FF6F61; }
}

@keyframes glowText {
    0% { text-shadow: 0 0 5px #fff; }
    50% { text-shadow: 0 0 20px #fff; }
    100% { text-shadow: 0 0 5px #fff; }
}

@keyframes rainbowGlow {
    0% { box-shadow: 0 0 10px #FF6F61; }
    33% { box-shadow: 0 0 10px #007A78; }
    66% { box-shadow: 0 0 10px #F5F7FA; }
    100% { box-shadow: 0 0 10px #FF6F61; }
}

@keyframes parallax {
    0% { background-position: center 0; }
    100% { background-position: center 50px; }
}

@keyframes expand {
    from { width: 0; }
    to { width: 60px; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links a {
        margin-left: 0;
        margin-right: 1rem;
    }

    .carousel-content h3,
    .story-content h2,
    .overview-content h2,
    .admissions-overview-content h2,
    .gallery-overview-content h2 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section,
    .story-section,
    .overview-section,
    .admissions-overview-section,
    .gallery-overview-section {
        height: 400px;
    }

    .carousel-content,
    .story-content,
    .overview-content,
    .admissions-overview-content,
    .gallery-overview-content {
        padding: 1rem;
    }

    .carousel-btn,
    .cta-btn,
    .contact-btn {
        padding: 0.6rem 1rem;
    }

    .events-carousel,
    .contact-carousel {
        flex-direction: row;
        overflow-x: auto;
    }

    .event-card,
    .contact-card {
        flex: 0 0 250px;
    }

    .team-grid,
    .values-grid,
    .programs-grid,
    .approach-grid,
    .enroll-grid,
    .why-choose-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }

    .contact-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .carousel-content h3,
    .story-content h2,
    .overview-content h2,
    .admissions-overview-content h2,
    .gallery-overview-content h2 {
        font-size: 1.5rem;
    }

    .carousel-content p,
    .story-content p,
    .overview-content p,
    .admissions-overview-content p,
    .gallery-overview-content p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-section,
    .story-section,
    .overview-section,
    .admissions-overview-section,
    .gallery-overview-section {
        height: 300px;
    }

    .logo {
        height: 40px;
    }

    .mission-vision-item .floating-icon,
    .value-card .floating-icon,
    .approach-card .floating-icon,
    .enroll-card .floating-icon,
    .contact-icon {
        font-size: 1.8rem;
    }

    .event-card,
    .contact-card {
        flex: 0 0 200px;
    }

    .event-card img {
        height: 150px;
    }

    .gallery-item img {
        height: 150px;
    }

    .contact-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}