@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Josefin Sans', sans-serif; 
}

:root {
    --bg-color:  #191919;
    --second-bg-color:  #101010;
    --text-color: white;
    --main-color: #0ef;
}

*::selection {
    background: var(--main-color);
    color: var(--bg-color);
} 

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

/* dropdown navbar */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Header Styling */
.header {
    background-color: #101010;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

span{ color: aqua; }

/* Logo image styling */
.logo img {
    height: 70px;           
    width: auto;
    margin-left: 40px;
    margin-right: 10px;      
}

/* Logo text styling */
.logo span {
    color: white;            
    font-size: 24px;
    font-weight: bold;
}

.logo:hover span {
    color: aqua;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }

    .logo span {
        font-size: 18px;
    }
}

/* Base Header Styles */
.header {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem;
    background-color: #101010;
}

/* Navbar Styles */
.navbar {
    display: flex;
    align-items: center;
    padding: 0; 
    justify-content: flex-end; 
    flex-wrap: wrap; 
}

/* Navbar Links */
.navbar a {
    color: white;
    padding: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    margin-left: 3rem; 
    transition: 0.3s;
}

.navbar a:hover {
    color: aqua; 
    text-decoration: underline;
}

/* Menu Icon */
#menu-icon {
    display: none; 
}

/* Dropdowns */
.dropdown {
    position: relative;
}

/* Dropdown Content */
.dropdown-content {
    display: none; 
    position: absolute;
    background-color: #1f242d;
    min-width: 200px; 
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    left: 0; 
}

/* Show Dropdown on Hover for Desktop */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; 
        display: none; 
        width: 100%; 
        background-color: #1f242d; 
    }

    .navbar.active {
        display: flex; 
    }

    .navbar a {
        margin-left: 0;
        width: 100%; 
        text-align: left; 
        padding: 15px; 
    }

    .dropdown-content {
        position: relative; 
        width: 100%; 
        display: none; 
    }

    #menu-icon {
        display: block; 
        font-size: 2.5rem; 
        position: absolute;
        right: 1rem; 
        top: 1rem;
    }
}

/* Add dropdown arrow */
.dropdown-toggle:after {
    content: ' ▼';
    font-size: 10px;
}

/* Additional Styles for Dropdown Items */
.dropdown-content a {
    color: white;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    font-size: 15px;
}

/* Basic styles for the container */
.home-slider {
    width: 100vw;           
    height: 100vh;           
    position: absolute;     
    left: 0;               
    top: 0;                
    overflow: hidden;     
}

/* Inner container holding the images */
.home-slider-inner {
    position: absolute;
    width: 100%;            
    height: 100%;           
    left: 0;               
    top: 0;                 
    display: flex;           
}

/* Full-screen images */
.home-slider-inner img {
    width: 100vw;           
    height: 100vh;        
    object-fit: cover;      
    flex-shrink: 0;        
    animation: slide 20s infinite; 
}

/* Keyframes for sliding effect */
@keyframes slide {
    0%, 20% {
        transform: translateX(0%);  
    }
    25%, 45% {
        transform: translateX(-100%); 
    }
    50%, 70% {
        transform: translateX(-200%); 
    }
    75%, 95% {
        transform: translateX(-300%); 
    }
    100% {
        transform: translateX(0%);   
    }
}

/* Tablet - Screens larger than 768px */
@media (max-width: 1024px) {
    .home-slider {
        height: 100vh;       
    }

    .home-slider-inner img {
        object-fit: cover;   
    }
}

/* Mobile (Portrait) - max-width: 768px */
@media (max-width: 768px) {
    .home-slider {
        height: 100vh;    
    }

    .home-slider-inner img {
        object-fit: cover;   
    }
}

/* Mobile (Landscape) - max-width: 480px */
@media (max-width: 480px) {
    .home-slider {
        height: 100vh;    
    }

    .home-slider-inner img {
        object-fit: cover;   
    }
}

/* marquee section */
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    background-color: red; 
    color: white; 
    padding: 8px 0; 
    font-size: 25px;
    font-weight: bold;
    font-family: 'Josefin Sans', sans-serif;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 50s linear infinite;
    color: white; 
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* ========== SCHOOL INTRODUCTION SECTION ========== */
.about {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 2rem;
    background-color: #101010;
    padding: 5rem;
}

.about-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

.about-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.about-img:hover::before {
    opacity: 1;
}

.about-img img {
    width: 100%; 
    height: 100%;
    display: block;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.about-img:hover img {
    transform: scale(1.1);
    animation: none;
}

.about-content {
    max-width: 800px;
    text-align: center;
}

.about-content p {
    margin-bottom: 2rem;
    font-size: 18px; 
    color: white; 
    letter-spacing: -0.9px; 
    line-height: 28px; 
    text-align: justify; 
}

.about-content h2 {
    font-size: 45px; 
    color: white;
    text-transform: capitalize; 
    letter-spacing: 2px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 18px;
    color: var(--second-bg-color);
    color: white;
    font-weight: bold;
    transition: background-position 0.5s ease, box-shadow 0.5s ease;
    margin-top: 2rem;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--main-color) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: left;
}

.btn:hover {
    background-position: right;
    box-shadow: none;
    background-color: red;
}

.heading {
    text-align: center;
    font-size: 50px; 
    color: white; 
    letter-spacing: 1px; 
}

/* ========== GALLERY SECTION ========== */
:root {
    --main-color: #00eeff;
    --text-color: #ffffff;
    --bg-color: #0a0a0a;
    --second-bg-color: #191919;
    --card-bg: rgba(25, 25, 25, 0.8);
    --accent-color: #ff2d75;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.school {
    background: linear-gradient(135deg, #0a0a0a 0%, #191919 100%);
    min-height: 100vh;
    padding: 10rem 9% 10rem;
    position: relative;
}

.school::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 238, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 45, 117, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.school .heading {
    text-align: center;
    font-size: 40px !important; 
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
    text-transform: none !important;
}

.heading span {
    color: var(--main-color);
    position: relative;
}

.heading span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border-radius: 30px;
    color: var(--text-color);
    font-size: 20px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn,
.filter-btn.active {
    border: 3px solid aqua !important;
    border-radius: 30px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 238, 255, 0.3), transparent);
    transition: 0.5s;
    color: white;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
}

/* Gallery Layout with Two Lines */
.gallery-lines-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.gallery-line {
    position: relative;
}

.gallery-line-title {
    font-size: 20px !important;
    margin-bottom: 1.5rem;
    color: white;
    padding-left: 1rem;
    border-left: 4px solid var(--main-color);
}

/* Horizontal Gallery Container */
.school-container {
    display: flex;
    overflow-x: auto;
    gap: 2.5rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) transparent;
}

.school-container::-webkit-scrollbar {
    height: 8px;
}

.school-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.school-container::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

.school-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.school-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    flex: 0 0 auto;
    width: 500px; 
    height: 300px; 
    transform: translateY(50px);
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.school-box:nth-child(2) { animation-delay: 0.1s; }
.school-box:nth-child(3) { animation-delay: 0.2s; }
.school-box:nth-child(4) { animation-delay: 0.3s; }
.school-box:nth-child(5) { animation-delay: 0.4s; }
.school-box:nth-child(6) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.school-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 238, 255, 0.3);
}

.school-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(0.9);
}

.school-box:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.school-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2000%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.1) 0%, rgba(255, 45, 117, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.school-box:hover::before {
    opacity: 1;
}

/* Overlay Layer */
.school-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 2;
}

.school-box:hover .school-layer {
    transform: translateY(0);
}

.layer-content {
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
}

.school-box:hover .layer-content {
    transform: translateY(0);
    opacity: 1;
}

.school-layer h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.school-layer p {
    font-size: 18px;
    margin-bottom: 1.5rem;
    color: white
}

.school-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: var(--main-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.school-layer a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.school-layer a:hover::before {
    left: 100%;
}

.school-layer a:hover {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transform: scale(1.1);
}

.school-layer a i {
    font-size: 20px;
    color: var(--bg-color);
}

/* Navigation arrows for horizontal scrolling */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.nav-btn {
    background: transparent;
    border: 3px solid var(--main-color); 
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 25px;
}

.nav-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.3);
}

.lightbox-caption {
    margin-top: 1rem;
    font-size: 20px;
    color: var(--text-color);
    text-align: center;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--main-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.lightbox-nav button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-color);
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-nav button:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

/* ========== SCHOOL FOUNDERS SECTION ========== */
.founders-section {
    position: relative;
    background: linear-gradient(135deg, #1a5276, #2c3e50);
    color: #ecf0f1;
    min-height: 100vh;
    overflow: hidden;
    padding: 4rem 0;
}

.founders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Particle Background */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: #f1c40f;
    border-radius: 50%;
    opacity: 0.5;
}

/* Header Styles */
.founders-header {
    text-align: center;
    padding: 10px;
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1rem;
    gap: 1.5rem;
}

.school-icon {
    width: 80px;
    height: 80px;
    animation: float 4s ease-in-out infinite, rotate 8s linear infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* Remove general .logo styles that affect navbar */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* Apply special styles ONLY to founder section logo */
.founders-section .logo-container .logo {
    font-family: 'Playfair Display', serif;
    font-size: 50px;
    font-weight: 700;
    display: inline-block;
    background: linear-gradient(45deg, #f1c40f, #d35400);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulse 3s infinite;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-bottom: 1.5rem;
}

/* Founder section underline (only for founder) */
.founders-section .logo-container .logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #f1c40f, #d35400, transparent);
    border-radius: 2px;
    box-shadow: 0 0 15px #f1c40f;
    animation: underlineGlow 4s ease-in-out infinite alternate;
}

.founders-section .logo-container .logo::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ecf0f1, transparent);
    border-radius: 1px;
    opacity: 0.7;
}

.tagline {
    font-size: 25px;
    opacity: 0.9;
    margin-bottom: 0.1rem;
    animation: fadeInUp 1.5s ease;
    padding: 10px;
}

/* Mountain Background */
.mountain-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    overflow: hidden;
}

.mountain {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #27ae60, #2ecc71);
    clip-path: polygon(0 100%, 10% 70%, 20% 80%, 30% 60%, 40% 90%, 50% 50%, 60% 80%, 70% 40%, 80% 70%, 90% 30%, 100% 100%);
    animation: mountainShift 20s ease-in-out infinite alternate;
}

/* Founders Content */
.founders-intro {
    text-align: center;
    max-width: 800px;
    margin: 10px auto 20px;
    font-size: 18px;
    line-height: 1.5;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    height: auto;
    min-height: unset;
}

.founders-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 3rem 0;
    perspective: 1000px;
}

.founder-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    opacity: 0;
    transform: translateY(50px) rotateY(10deg);
    position: relative;
    z-index: 5;
}

.founder-card.visible {
    opacity: 1;
    transform: translateY(0) rotateY(0);
}

.founder-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.founder-image {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.5s ease;
    filter: brightness(0.9);
}

.founder-card:hover .founder-img {
    transform: scale(1.2) rotate(2deg);
    filter: brightness(1.1);
}

.founder-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.founder-card:hover .founder-overlay {
    transform: translateY(0);
}

.founder-info {
    padding: 2rem;
    position: relative;
}

.founder-name {
    font-size: 18px;
    margin-bottom: 0.5rem;
    color: #f1c40f;
    font-family: 'Playfair Display', serif;
}

.founder-title {
    font-size: 18px;
    margin-bottom: 0.5rem;
    color: #d35400;
    font-weight: 600;
}

.founder-dates {
    font-size: 16px;
    margin-bottom: 1rem;
    color: #ecf0f1;
    opacity: 0.8;
}

.founder-quote {
    font-style: normal;
    padding: 1rem;
    border-left: 4px solid #f1c40f;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 10px 10px 0;
    position: relative;
    overflow: hidden;
    font-size: 18px;
}

/* Placeholder for missing image */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a5276, #2c3e50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ecf0f1;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
    display: none;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f1c40f;
}

/* Animations */
@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 fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    from { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
    to { box-shadow: 0 10px 30px rgba(241, 196, 15, 0.3); }
}

@keyframes mountainShift {
    0% { clip-path: polygon(0 100%, 10% 70%, 20% 80%, 30% 60%, 40% 90%, 50% 50%, 60% 80%, 70% 40%, 80% 70%, 90% 30%, 100% 100%); }
    100% { clip-path: polygon(0 100%, 10% 60%, 20% 90%, 30% 50%, 40% 80%, 50% 40%, 60% 70%, 70% 50%, 80% 80%, 90% 40%, 100% 100%); }
}

@keyframes underlineGlow {
    0% { box-shadow: 0 0 10px #f1c40f; }
    100% { box-shadow: 0 0 20px #f1c40f, 0 0 30px #d35400; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bookPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========== LEADERSHIP MESSAGES SECTION ========== */
.messages-section {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background:  #101010;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    overflow-x: hidden;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.messages-section::-webkit-scrollbar {
    display: none;
}

.messages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 238, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 45, 117, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.messages-container {
    max-width: 1600px;
    width: 100%;
    position: relative;
    z-index: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.messages-container::-webkit-scrollbar {
    display: none;
}

.messages-section-title {
    text-align: center;
    margin-bottom: 50px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.messages-section-title h1 {
    font-size: 50px;
    margin-bottom: 15px;
    text-shadow: 0 2px 15px rgba(255,255,255,0.5);
    background: linear-gradient(135deg, #ffff00, #ffa500, #ff69b4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 8s infinite alternate, textGlow 3s infinite alternate;
    filter: brightness(1.2);
    
    /* Animated underline styles */
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

/* Animated underline effect */
.messages-section-title h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ffff00 20%, 
        #ffa500 50%, 
        #ff69b4 80%, 
        transparent 100%);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    animation: underlinePulse 3s infinite alternate, underlineShift 5s infinite alternate;
}

/* Underline animations */
@keyframes underlinePulse {
    0% {
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
        transform: translateX(-50%) scaleX(1);
    }
    100% {
        box-shadow: 0 2px 20px rgba(255, 255, 255, 0.6), 0 2px 30px rgba(255, 105, 180, 0.4);
        transform: translateX(-50%) scaleX(1.1);
    }
}

@keyframes underlineShift {
    0% {
        background: linear-gradient(90deg, 
            transparent 0%, 
            #ffff00 20%, 
            #ffa500 50%, 
            #ff69b4 80%, 
            transparent 100%);
    }
    50% {
        background: linear-gradient(90deg, 
            transparent 0%, 
            #ff69b4 20%, 
            #ffa500 50%, 
            #ffff00 80%, 
            transparent 100%);
    }
    100% {
        background: linear-gradient(90deg, 
            transparent 0%, 
            #ffa500 20%, 
            #ffff00 50%, 
            #ff69b4 80%, 
            transparent 100%);
    }
}

.messages-cards-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.messages-cards-container::-webkit-scrollbar {
    display: none;
}

.message-card {
    flex: 1;
    min-width: 35%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    height: auto;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.message-card:hover::before {
    opacity: 1;
}

.message-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.message-card.principal {
    animation: fadeInUp 1s ease 0.3s forwards;
}

.message-card.chairman {
    animation: fadeInUp 1s ease 0.6s forwards;
}

.message-card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(17, 136, 206, 0.9) 0%, rgba(240,240,240,0.9) 100%);
    flex-shrink: 0;
}

.message-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease;
}

.message-card:hover .message-card-header::after {
    transform: scaleX(1);
}

.message-photo-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 5px solid transparent;
    background: linear-gradient(135deg, #1c92e0, #b009f1) border-box;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.message-card:hover .message-photo-container {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.chairman .message-photo-container {
    background: linear-gradient(135deg, #e74c3c, #e67e22) border-box;
}

.message-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: brightness(0.9) saturate(0.8);
}

.message-card:hover .message-photo-container img {
    transform: scale(1.2);
    filter: brightness(1) saturate(1.2);
}

.message-header-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.message-header-content h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease 0.5s;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.message-card.animate-in .message-header-content h2 {
    opacity: 1;
    transform: translateX(0);
}

.chairman .message-header-content h2 {
    background: linear-gradient(135deg, #2c3e50, #e74c3c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.message-header-content p {
    color: #7f8c8d;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s ease 0.7s;
}

.message-card.animate-in .message-header-content p {
    opacity: 1;
    transform: translateY(0);
}

/*principal and chairman paragraph message hover*/
.message-card.principal:hover .message-text p,
.message-card.chairman:hover .message-text p {
    background-color: #16bcee !important;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.message-role-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.5s ease 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.message-card.animate-in .message-role-badge {
    transform: translateX(0);
    opacity: 1;
}

.chairman .message-role-badge {
    background: linear-gradient(135deg, #e74c3c, #e67e22);
}

.message-card-body {
    padding: 20px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.message-text {
    margin-bottom: 20px;
    flex: 1;
}

.message-text p {
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
    font-size: 1.5rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
}

.message-card.animate-in .message-text p {
    opacity: 1;
    transform: translateY(0);
}

.message-signature {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 1.2s;
    position: relative;
    flex-shrink: 0;
}

.message-signature:before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.message-card.animate-in .message-signature {
    opacity: 1;
    transform: translateY(0);
}

.chairman .message-signature:before {
    background: linear-gradient(90deg, transparent, #e74c3c, transparent);
}

.message-signature p {
    margin-bottom: 6px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.message-signature p:first-child {
    font-style: normal;
    color: #7f8c8d;
}

.message-signature p:nth-child(2) {
    font-weight: bold;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #3498db, #e74c3c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hover effects */
.message-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes colorShift {
    0% {
        background: linear-gradient(135deg, #ffff00, #ffa500, #ff69b4);
        -webkit-background-clip: text;
        background-clip: text;
    }
    50% {
        background: linear-gradient(135deg, #00ffff, #ff00ff, #00ff00);
        -webkit-background-clip: text;
        background-clip: text;
    }
    100% {
        background: linear-gradient(135deg, #ff4444, #ffa500, #ffff00);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 25px rgba(255,255,255,0.8);
    }
    to {
        text-shadow: 0 0 35px rgba(255,255,255,1), 0 0 45px rgba(255,255,255,0.8);
    }
}

/* ========== TEACHERS & STAFF SECTION ========== */
.body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    min-height: 100vh;
    padding: 25px;
}

.teachers {
    padding: 50px 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.teachers .heading {
    text-align: center;
    font-size: 40px !important;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    letter-spacing: 2px;
    text-transform: none !important;
}

.teachers .heading span {
    color: #00e5ff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

.teachers .heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    border-radius: 2px;
}

/* Container for all teacher boxes - Grid layout with 4 columns */
.teachers-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin: 0 auto;
    justify-items: center;
    width: 90%;
}

/* Individual teacher box */
.teacher-box {
    background: linear-gradient(145deg, rgba(2, 36, 58, 0.9), rgba(4, 20, 34, 0.9));
    border-radius: 20px;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 15px 10px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(102, 51, 153, 0.3);
    max-width: 260px;
    gap: 1px;
}

.teacher-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #663399, #00e5ff, #663399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.teacher-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 229, 255, 0.2);
    border-color: rgba(102, 51, 153, 0.6);
}

.teacher-box:hover::before {
    transform: scaleX(1);
}

/* Teacher image */
.teacher-img-container {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    border: 3px solid #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transition: all 0.4s ease;
}

.teacher-box:hover .teacher-img-container {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.8);
}

.teacher-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.teacher-box:hover .teacher-img-container img {
    transform: scale(1.06);
}

/* Text inside the box */
.teacher-box h4 {
    font-size: 18px;
    color: aqua;
    margin: 6px 0 3px;
    font-weight: 600;
    line-height: 1.3;
}

.principal {
    font-size: 16px;
    color: #7eff7e;
    margin: 4px 0;
    font-weight: 400;
    line-height: 1.3;
}

.teacher-subject {
    font-size: 14px;
    color: white;
    margin: 4px 0;
    font-weight: 400;
    line-height: 1.3;
}

.teacher-contact {
    margin-top: 10px;
    width: 100%;
}

.teacher-contact p {
    margin: 4px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #00e5ff;
    line-height: 1.3;
}

.teacher-contact i {
    color: #00e5ff;
    font-size: 0.8rem;
}

.teacher-contact a {
    color: #7eff7e;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.teacher-contact a:hover {
    color: #00ff00;
    text-decoration: underline;
}

/* Social icons */
.teacher-social {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    justify-content: center;
}

.teacher-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: aqua;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
}

/* Set different colors for each social media icon */
.teacher-social a:nth-child(1) { color: aqua; }
.teacher-social a:nth-child(2) { color: #1da1f2; }
.teacher-social a:nth-child(3) { color: red; }
.teacher-social a:nth-child(4) { color: #0a66c2; }

.teacher-social a:hover {
    background: #00e5ff;
    color: #16213e;
    transform: translateY(-2px);
}

/* Floating animation for boxes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.teacher-box {
    animation: float 6s ease-in-out infinite;
}

/* Different animation delays for each box */
.teacher-box:nth-child(4n+1) { animation-delay: 0s; }
.teacher-box:nth-child(4n+2) { animation-delay: 0.5s; }
.teacher-box:nth-child(4n+3) { animation-delay: 1s; }
.teacher-box:nth-child(4n+4) { animation-delay: 1.5s; }

/* Filter buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 18px;
    background: rgba(2, 36, 58, 0.7);
    border: 1px solid #00e5ff;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.filter-btn:hover, .filter-btn.active {
    background: #00e5ff;
    color: #16213e;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

/* ========== CONTACT US SECTION ========== */
.contact {
    background-color: #191919;
    padding: 10rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact h2 {
    font-size: 40px;
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

.contact .contact_content {
    margin-bottom: 2rem;
    font-size: 18px;
    color: white;
    letter-spacing: 1px;
    line-height: 28px;
    text-align: center;
    padding: 20px;
}

.contact .red-text {
    color: red;
    font-weight: bold;
}

.contact .highlight-text {
    display: block;
    text-align: center;
    font-size: 18px;
    margin-bottom: 2rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.input-box .input-field {
    width: 48%;
}

.field .item {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 2px solid rebeccapurple;
    outline: none;
    border-radius: 6px;
    font-size: 18px;
    color: white;
    margin: 12px 0;
    background-color: #101010;
}

.field.error .item {
    border-color: #d93025;
}

.field .item::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.field .error-txt {
    font-size: 14.5px;
    color: #d93025;
    text-align: left;
    margin: -5px 0 10px;
    display: none;
}

.field.error .error-txt {
    display: block;
}

form .textarea-field .item {
    resize: none;
}

form .textarea-field .error-txt {
    margin-top: -10px;
}

form button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 18px;
    color: white;
    font-weight: bold;
    transition: .5s ease;
    margin-top: 2rem;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--main-color) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: left;
    border: none;
    cursor: pointer;
}

.field .item:hover {
    border-color: aqua;
    transform: scale(1.02);
    transition: 0.3s ease; 
}

form button:hover {
    background-position: right;
    box-shadow: none;
    background-color: red;
}

.item.error {
    border: 2px solid red;
}

.error-txt {
    color: red;
    font-size: 1.4rem;
    margin-top: 0.5rem;
    visibility: hidden;
}

.input-field.error .error-txt {
    visibility: visible;
}

/* Animated Links Section */
.contact-links {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    margin-top: -25px; 
    margin-left: 50px;
}

.links-title {
    font-size: 30px;
    margin-bottom: 20px;
    text-align: left;
    color: red;
    position: relative;
    padding-bottom: 10px;
}

.links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--main-color);
}

.animated-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(102, 51, 153, 0.3);
    border-color: var(--main-color);
}

.link-item a {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.link-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: blueviolet; 
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.link-item:hover .link-icon {
    transform: scale(1.1) rotate(10deg);
    background: white;
    color: #ff0000; 
}

.link-item:hover .link-icon {
    transform: scale(1.1) rotate(10deg);
    background: white;
    color: var(--main-color);
}

.link-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.link-arrow {
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Link background animation */
.link-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 51, 153, 0.2), transparent);
    transition: left 0.6s ease;
}

.link-item:hover .link-bg {
    left: 100%;
}

/* ========== FOOTER SECTION ========== */
.footer {
    background-color: #101010;
    color: white;
    padding: 50px 20px; 
    font-size: 20px;
    display: flex;
    justify-content: center; 
    min-height: 50vh; 
    position: relative; 
    text-align: left;
}

.footer-container {
    display: flex; 
    max-width: 1200px; 
    width: 100%; 
    gap: 30px; 
    flex-grow: 1; 
    overflow-x: auto; 
    text-align: center;
    justify-content: center; 
}

.footer-section {
    flex: 0 1 auto; 
    padding: 10px; 
    text-align: center; 
}

.footer-section p{
    color: #0ef;
    font-size: 15px;
}

.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section ul {
    padding: 0;
    list-style: none;
}

.footer-section ul a {
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section a {
    color: #0ef;
    text-decoration: none;
    font-size: 15px;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    background-color: #1f242d;
    padding: 20px;
    font-size: 18px;
    width: 100%; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
}

.developer-name a {
    color: #0ef;
    font-weight: bold;
    text-decoration: none; 
}

.developer-name a:hover {
    text-decoration: underline; 
}

/* ========== RESPONSIVE DESIGN FIXES ========== */

/* School Introduction Section Responsive */
@media (max-width: 768px) {
    .about-content h2 {
        font-size: 35px !important;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .about-content h2 {
        font-size: 28px !important;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 360px) {
    .about-content h2 {
        font-size: 24px !important;
    }
}

/* Teachers & Staff Section Responsive */
@media (max-width: 768px) {
    .teachers .heading {
        font-size: 32px !important;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .teachers .heading {
        font-size: 28px !important;
        margin-bottom: 20px;
    }
}

@media (max-width: 360px) {
    .teachers .heading {
        font-size: 24px !important;
    }
}

/* Contact Us Section Responsive */
@media (max-width: 768px) {
    .contact h2 {
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    .contact h2 {
        font-size: 28px !important;
    }
}

@media (max-width: 360px) {
    .contact h2 {
        font-size: 24px !important;
    }
}

/* Section Padding Responsive Fixes */
@media (max-width: 768px) {
    section {
        padding: 8rem 5% 2rem !important;
    }
    
    .about {
        padding: 3rem !important;
    }
    
    .contact {
        padding: 5rem 3rem !important;
    }
    
    .contact-links {
        margin-top: 0; 
        margin-left: 0; 
    }
    
    .animated-links {
        gap: 12px;
    }
    
    .link-item a {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 6rem 3% 2rem !important;
    }
    
    .about {
        padding: 2rem !important;
    }
    
    .contact {
        padding: 3rem 1.5rem !important;
    }
}

/* Teachers Container Responsive */
@media (max-width: 1400px) {
    .teachers-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .teacher-box {
        max-width: 240px;
        padding: 12px 8px;
    }
}

@media (max-width: 1024px) {
    .teachers-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .teachers .heading {
        font-size: 32px !important;
        margin-bottom: 25px;
    }
    
    .teacher-box {
        max-width: 280px;
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .teachers-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .teachers .heading {
        font-size: 28px !important;
        margin-bottom: 20px;
    }
    
    .teacher-box {
        max-width: 300px;
        min-height: 410px;
        padding: 15px 10px;
    }
    
    .teacher-img-container {
        width: 115px;
        height: 115px;
    }
    
    .filter-buttons {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .teachers-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .teachers .heading {
        font-size: 26px !important;
        margin-bottom: 20px;
    }
    
    .teacher-box {
        max-width: 320px;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .teachers {
        padding: 40px 10px;
    }
    
    .teachers .heading {
        font-size: 24px !important;
        margin-bottom: 15px;
    }
    
    .teacher-box {
        min-height: 380px;
        padding: 12px 8px;
        max-width: 280px;
    }
    
    .teacher-img-container {
        width: 100px;
        height: 100px;
    }
    
    .teacher-box h4 {
        font-size: 16px;
    }
    
    .teacher-subject, .principal {
        font-size: 12px;
    }
    
    .teacher-contact p {
        font-size: 11px;
    }
}

/* Contact Form Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-links {
        margin-top: 40px;
    }
    
    .input-box .input-field {
        width: 100%;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 40px 15px; 
    }

    .footer-container {
        flex-direction: column; 
        align-items: center; 
    }

    .footer-section {
        width: 100%; 
        margin-bottom: 20px; 
    }

    .footer-copyright {
        padding: 15px; 
        font-size: 16px; 
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 10px; 
    }

    .footer-copyright {
        padding: 10px; 
        font-size: 14px; 
    }

    .footer-section {
        width: 100%; 
    }
}

/* BREAKPOINTS */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 879px) {
    .school-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 115vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about img {
        width: 70vw;
        margin-top: 4rem;
    }
}

@media (max-width: 580px) {
    .school-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .contact form .input-box input {
        width: 100%;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}

@media (max-width: 365px) {
    .home-img img,
    .about-img img {
        width: 90vw;
    }
}

/* Messages Section Responsive */
@media (max-width: 1400px) {
    .messages-container {
        max-width: 1200px;
    }
    
    .message-card {
        min-width: 38%;
    }
}

@media (max-width: 1200px) {
    .messages-container {
        max-width: 1100px;
    }
    
    .message-text p {
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) {
    .messages-section-title h1 {
        font-size: 45px;
    }
}

@media (max-width: 1000px) {
    .messages-cards-container {
        flex-direction: column;
        align-items: center;
    }
    
    .message-card {
        flex: 0 0 85%;
        min-width: 85%;
        max-width: 650px;
    }
}

@media (max-width: 768px) {
    .messages-section-title h1 {
        font-size: 40px;
    }
    
    .message-card {
        flex: 0 0 90%;
        min-width: 90%;
    }
    
    .message-card-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .message-photo-container {
        margin-right: 0;
        margin-bottom: 15px;
        width: 90px;
        height: 90px;
    }
    
    .message-header-content h2 {
        font-size: 1.6rem;
    }
    
    .message-text p {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .messages-section {
        padding: 60px 15px;
    }
    
    .messages-section-title h1 {
        font-size: 36px;
    }
    
    .message-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .message-header-content h2 {
        font-size: 1.4rem;
    }
    
    .message-text p {
        font-size: 1.2rem;
    }
}

/* Founders Section Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .founders-container {
        padding: 1.5rem;
    }
    
    .logo {
        font-size: 44px !important;
    }
    
    .tagline {
        font-size: 22px !important;
    }
    
    .founders-intro {
        margin: 12px auto 18px !important;
        padding: 1.2rem !important;
        font-size: 17px !important;
        line-height: 1.5 !important;
    }
    
    .founder-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .founder-image {
        height: 280px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .founders-section {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .founders-container {
        padding: 1.2rem;
    }

    .founders-header {
        margin-bottom: 1.5rem;
        padding: 5px;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .logo {
        font-size: 40px !important;
        padding-bottom: 1rem;
    }
    
    .school-icon {
        width: 60px;
        height: 60px;
    }
    
    .tagline {
        font-size: 20px !important;
        padding: 8px;
        margin-bottom: 0.5rem;
    }

    .founders-intro {
        margin: 10px auto 16px !important;
        padding: 1rem !important;
        font-size: 16px !important;
        line-height: 1.45 !important;
        border-radius: 10px;
    }

    .founders-cards-container {
        margin: 2rem 0;
        gap: 1.8rem;
    }
    
    .founder-card {
        min-width: 45% !important;
        max-width: 45% !important;
    }
    
    .founder-image {
        height: 260px;
    }
    
    .founder-info {
        padding: 1.5rem;
    }
    
    .founder-name {
        font-size: 20px !important;
        margin-bottom: 0.8rem;
    }
    
    .founder-title {
        font-size: 17px !important;
        margin-bottom: 0.8rem;
    }
    
    .founder-dates {
        font-size: 15px !important;
        margin-bottom: 1.2rem;
    }
    
    .founder-quote {
        font-size: 15px !important;
        padding: 0.8rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .founders-section {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .founders-container {
        padding: 1rem;
    }

    .founders-header {
        margin-bottom: 1.5rem;
        padding: 5px;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .logo {
        font-size: 36px !important;
        padding-bottom: 1rem;
    }
    
    .school-icon {
        width: 60px;
        height: 60px;
    }
    
    .tagline {
        font-size: 18px !important;
        padding: 8px;
        margin-bottom: 0.5rem;
    }

    .founders-intro {
        margin: 5px auto 12px !important;
        padding: 0.6rem !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
        border-radius: 10px;
    }

    .founders-cards-container {
        margin: 2rem 0;
        gap: 1.5rem;
    }
    
    .founder-card {
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }
    
    .founder-image {
        height: 250px;
    }
    
    .founder-info {
        padding: 1.5rem;
    }
    
    .founder-name {
        font-size: 22px !important;
        margin-bottom: 0.8rem;
    }
    
    .founder-title {
        font-size: 18px !important;
        margin-bottom: 0.8rem;
    }
    
    .founder-dates {
        font-size: 16px !important;
        margin-bottom: 1.2rem;
    }
    
    .founder-quote {
        font-size: 16px !important;
        padding: 0.8rem;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 32px !important;
    }
    
    .tagline {
        font-size: 16px !important;
    }
    
    .founders-intro {
        margin: 3px auto 10px !important;
        padding: 0.5rem !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
    }
    
    .founder-name {
        font-size: 20px !important;
    }
    
    .founder-title {
        font-size: 16px !important;
    }
    
    .founder-dates {
        font-size: 14px !important;
    }
    
    .founder-quote {
        font-size: 15px !important;
    }
    
    .founder-image {
        height: 220px;
    }
    
    .founders-cards-container {
        gap: 1rem;
    }
}



/*I think this code is not necessary*/
.body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

/* Section layout */
.teachers {
    padding: 50px 15px; /* Further reduced padding */
    max-width: 1400px;
    margin: 0 auto;
}

.heading {
    text-align: center;
    font-size: 40px !important;
    font-weight: 700;
    margin-bottom: 30px; /* Further reduced margin */
    position: relative;
    letter-spacing: 2px;
    text-transform: none !important;
}

.heading span {
    color: #00e5ff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

.heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    border-radius: 2px;
}

/* Container for all teacher boxes - Grid layout with 4 columns */
.teachers-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px; /* Reduced gap from 15px to 10px */
    margin: 0 auto;
    justify-items: center;
    /* image size adjustment */
    width: 90%; 
    
}

/* Individual teacher box */
.teacher-box {
    background: linear-gradient(145deg, rgba(2, 36, 58, 0.9), rgba(4, 20, 34, 0.9));
    border-radius: 20px;
    width: 100%;
    min-height: 400px; /* Slightly reduced height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 15px 10px; /* Reduced padding */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(102, 51, 153, 0.3);
    max-width: 260px;
    gap: 1px;
}

.teacher-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #663399, #00e5ff, #663399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.teacher-box:hover {
    transform: translateY(-8px) scale(1.02); /* Further reduced hover effect */
    box-shadow: 0 12px 25px rgba(0, 229, 255, 0.2);
    border-color: rgba(102, 51, 153, 0.6);
}

.teacher-box:hover::before {
    transform: scaleX(1);
}

/* Teacher image */
.teacher-img-container {
    width: 125px; /* Further reduced */
    height: 125px; /* Further reduced */
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px; /* Further reduced margin */
    position: relative;
    border: 3px solid #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transition: all 0.4s ease;
}

.teacher-box:hover .teacher-img-container {
    transform: scale(1.06); /* Further reduced scale */
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.8);
}

.teacher-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.teacher-box:hover .teacher-img-container img {
    transform: scale(1.06); /* Further reduced scale */
}

/* Text inside the box */
.teacher-box h4 {
    font-size: 18px;
    color: aqua;
    margin: 6px 0 3px; /* Further reduced margins */
    font-weight: 600;
    line-height: 1.3;
}

.principal {
    font-size: 16px;
    color: #7eff7e;
    margin: 4px 0; /* Further reduced margin */
    font-weight: 400;
    line-height: 1.3;
}

.teacher-subject {
    font-size: 14px;
    color: white;
    margin: 4px 0; /* Further reduced margin */
    font-weight: 400;
    line-height: 1.3;
}

.teacher-contact {
    margin-top: 10px; /* Further reduced margin */
    width: 100%;
}

.teacher-contact p {
    margin: 4px 0; /* Further reduced margin */
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* Further reduced gap */
    color: #00e5ff;
    line-height: 1.3;
}

.teacher-contact i {
    color: #00e5ff;
    font-size: 0.8rem;
}

.teacher-contact a {
    color: #7eff7e;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.teacher-contact a:hover {
    color: #00ff00;
    text-decoration: underline;
}

/* Social icons */
.teacher-social {
    display: flex;
    gap: 6px; /* Further reduced gap */
    margin-top: 12px; /* Further reduced margin */
    justify-content: center;
}

.teacher-social a {
    width: 28px; /* Further reduced */
    height: 28px; /* Further reduced */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: aqua;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px; /* Further reduced */
}

/* Set different colors for each social media icon */
.teacher-social a:nth-child(1) { color: aqua; }
.teacher-social a:nth-child(2) { color: #1da1f2; }
.teacher-social a:nth-child(3) { color: red; }
.teacher-social a:nth-child(4) { color: #0a66c2; }

.teacher-social a:hover {
    background: #00e5ff;
    color: #16213e;
    transform: translateY(-2px);
}

/* Floating animation for boxes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px); /* Further reduced float distance */
    }
}

.teacher-box {
    animation: float 6s ease-in-out infinite;
}

/* Different animation delays for each box */
.teacher-box:nth-child(4n+1) { animation-delay: 0s; }
.teacher-box:nth-child(4n+2) { animation-delay: 0.5s; }
.teacher-box:nth-child(4n+3) { animation-delay: 1s; }
.teacher-box:nth-child(4n+4) { animation-delay: 1.5s; }

/* Filter buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px; /* Further reduced gap */
    margin-bottom: 25px; /* Further reduced margin */
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 18px; /* Further reduced padding */
    background: rgba(2, 36, 58, 0.7);
    border: 1px solid #00e5ff;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.85rem; /* Slightly smaller */
}

.filter-btn:hover, .filter-btn.active {
    background: #00e5ff;
    color: #16213e;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

/* ========== Responsive Design ========== */

/* Large screens (max 1400px) - Keep 4 columns */
@media (max-width: 1400px) {
    .teachers-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px; /* Further reduced gap */
    }
    
    .teacher-box {
        max-width: 240px;
        padding: 12px 8px; /* Further reduced padding */
    }
}

/* Tablets (max 1024px) → 3 boxes per row */
@media (max-width: 1024px) {
    .teachers-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px; /* Further reduced gap */
    }
    
    .heading {
        font-size: 2.8rem !important;
        margin-bottom: 25px; /* Further reduced */
    }
    
    .teacher-box {
        max-width: 280px;
        min-height: 420px; /* Further reduced */
    }
}

/* Small tablets (max 768px) → 2 boxes per row */
@media (max-width: 768px) {
    .teachers-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Further reduced gap */
    }
    
    .heading {
        font-size: 2.5rem !important;
        margin-bottom: 20px; /* Further reduced */
    }
    
    .teacher-box {
        max-width: 30px;
        min-height: 410px; /* Further reduced */
        padding: 15px 10px;
    }
    
    .teacher-img-container {
        width: 115px; /* Further reduced */
        height: 115px; /* Further reduced */
    }
}

/* Mobile (max 600px) → 1 box per row */
@media (max-width: 600px) {
    .teachers-container {
        grid-template-columns: 1fr;
        gap: 15px; /* Further reduced gap */
    }
    
    .heading {
        font-size: 2.2rem !important;
        margin-bottom: 20px;
    }
    
    .teacher-box {
        max-width: 320px;
        min-height: 400px; /* Further reduced */
    }
    
    .filter-buttons {
        gap: 6px; /* Further reduced gap */
        margin-bottom: 20px; /* Further reduced */
    }
    
    .filter-btn {
        padding: 6px 15px; /* Further reduced padding */
        font-size: 0.8rem;
    }
}

/* Extra small mobile (max 480px) */
@media (max-width: 480px) {
    .teachers {
        padding: 40px 10px; /* Further reduced padding */
    }
    
    .heading {
        font-size: 1.8rem !important; /* Further reduced */
        margin-bottom: 15px; /* Further reduced */
    }
    
    .teacher-box {
        min-height: 380px; /* Further reduced */
        padding: 12px 8px; /* Further reduced padding */
        max-width: 280px;
    }
    
    .teacher-img-container {
        width: 100px; /* Further reduced */
        height: 100px; /* Further reduced */
    }
    
    .teacher-box h4 {
        font-size: 16px; /* Further reduced */
    }
    
    .teacher-subject, .principal {
        font-size: 12px; /* Further reduced */
    }
    
    .teacher-contact p {
        font-size: 11px; /* Further reduced */
    }
}

body {
    background-color: #101010;
    color: white;
}

/* contact section */
.contact {
    background-color: #191919;
     /* background:  #0d4c5c; */
    padding: 10rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact h2 {
    font-size: 40px;
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

.contact .contact_content {
    margin-bottom: 2rem;
    font-size: 18px;
    color: white;
    letter-spacing: 1px;
    line-height: 28px;
    text-align: center;
    padding: 20px;
}

.contact .red-text {
    color: red;
    font-weight: bold;
}

.contact .highlight-text {
    display: block;
    text-align: center;
    font-size: 18px;
    margin-bottom: 2rem;
}


.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.input-box .input-field {
    width: 48%;
}

.field .item {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 2px solid rebeccapurple;
    outline: none;
    border-radius: 6px;
    font-size: 18px;
    color: white;
    margin: 12px 0;
    background-color: #101010;
}

.field.error .item {
    border-color: #d93025;
}

.field .item::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.field .error-txt {
    font-size: 14.5px;
    color: #d93025;
    text-align: left;
    margin: -5px 0 10px;
    display: none;
}

.field.error .error-txt {
    display: block;
}

form .textarea-field .item {
    resize: none;
}

form .textarea-field .error-txt {
    margin-top: -10px;
}

form button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 18px;
    color: white;
    font-weight: bold;
    transition: .5s ease;
    margin-top: 2rem;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--main-color) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: left;
    border: none;
    cursor: pointer;
}

.field .item:hover {
    border-color: aqua;
    transform: scale(1.02);
    transition: 0.3s ease; 
}
form button:hover {
    background-position: right;
    box-shadow: none;
    background-color: red;
}

.item.error {
    border: 2px solid red;
}

.error-txt {
    color: red;
    font-size: 1.4rem;
    margin-top: 0.5rem;
    visibility: hidden;
}

.input-field.error .error-txt {
    visibility: visible;
}

/* Animated Links Section */
.contact-links {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    margin-top: -25px; 
    margin-left: 50px;
}

.links-title {
    font-size: 30px;
    margin-bottom: 20px;
    text-align: left;
    color: red;
    position: relative;
    padding-bottom: 10px;
}

.links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--main-color);
}

.animated-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(102, 51, 153, 0.3);
    border-color: var(--main-color);
}

.link-item a {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}


.link-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: blueviolet; 
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.link-item:hover .link-icon {
    transform: scale(1.1) rotate(10deg);
    background: white;
    color: #ff0000; 
}

.link-item:hover .link-icon {
    transform: scale(1.1) rotate(10deg);
    background: white;
    color: var(--main-color);
}

.link-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.link-arrow {
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Link background animation */
.link-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 51, 153, 0.2), transparent);
    transition: left 0.6s ease;
}

.link-item:hover .link-bg {
    left: 100%;
}

/* Responsive styles for links */
@media (max-width: 768px) {
    .contact-links {
        margin-top: 0; 
        margin-left: 0; 
    }
    
    .animated-links {
        gap: 12px;
    }
    
    .link-item a {
        padding: 12px 15px;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-links {
        margin-top: 40px;
    }
    
    .input-box .input-field {
        width: 100%;
    }
}

/* BREAKPOINTS */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 879px) {
    .school-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }


    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 115vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about img {
        width: 70vw;
        margin-top: 4rem;
    }
}

@media (max-width: 580px) {
    .school-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .contact form .input-box input {
        width: 100%;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}

@media (max-width: 365px) {

    .home-img img,
    .about-img img {
        width: 90vw;
    }
}


/* footer new section */
.footer {
    background-color: #101010;
    /* background:  #0d4c5c; */
    color: white;
    padding: 50px 20px; 
    font-size: 20px;
    display: flex;
    justify-content: center; 
    min-height: 50vh; 
    position: relative; 
    text-align: left;
}

.footer-container {
    display: flex; 
    max-width: 1200px; 
    width: 100%; 
    gap: 30px; 
    flex-grow: 1; 
    overflow-x: auto; 
    text-align: center;
    justify-content: center; 
    /* Center items inside the container */
}



.footer-section {
    flex: 0 1 auto; 
    padding: 10px; 
    text-align: center; 
}

.footer-section p{
    color: #0ef;
    font-size: 15px;

}

.footer-section h3 {
    margin-bottom: 10px;
}
/* .footer-section .social-media {
    white-space: nowrap; 

} */

.footer-section ul {
    padding: 0;
    list-style: none;
}

.footer-section ul a {
    display: block;
    margin-bottom: 15px;
    text-align: center;
    /* Add other styles for icons */
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section a {
    color: #0ef;
    text-decoration: none;
    font-size: 15px;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    background-color: #1f242d;
    padding: 20px;
    font-size: 18px;
    width: 100%; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
}
.developer-name a {
    color: #0ef;
    font-weight: bold;
    text-decoration: none; 
}

.developer-name a:hover {
    text-decoration: underline; 
}


/* Media Queries */
@media (max-width: 768px) {
    .footer {
        padding: 40px 15px; 
    }

    .footer-container {
        flex-direction: column; 
        align-items: center; 
    }

    .footer-section {
        width: 100%; 
        margin-bottom: 20px; 
        
    }

    .footer-copyright {
        padding: 15px; 
        font-size: 16px; 
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 10px; 
    }

    .footer-copyright {
        padding: 10px; 
        font-size: 14px; 
    }

    .footer-section {
        width: 100%; 
    }
}