@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;
    /* --second-bg-color:  rgb(2, 36, 58); */
    /* --second-bg-color:  #159895; */
    /* --second-bg-color:  #0d4c5c; */
    /* --second-bg-color:  #1a5f7a; */
    --text-color: white;
    --main-color: #0ef;
    /* --main-color:  #f9004d; */
    
}

*::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;
    /* background-color: #f4f4f4; */
}

/* Header Styling */
.header {
    /* background-color: #1f242d; */
    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 {
    /* No background color or border radius */
    /* color: #0ef;  */
     /* You can just change the text color on hover */
    /* color: red;   */
    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: 15px 0;  */
    padding: 8px; 
    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); }
}



/* General styling */
.about {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 2rem;
    /* background: var(--second-bg-color); */
    background-color: #101010;
    /* background:  #1a5f7a; */
    padding: 5rem;
}

.about-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); */
    transition: box-shadow 0.3s ease;
}
/* 
.about-img:hover {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
} */

.about-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(45deg, rgba(33, 150, 243, 0.8), rgba(63, 81, 181, 0.8));*/
    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;
    /*animation: pulse 10s infinite;*/
}

@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; /* Adjust as needed */
    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: #d93025; */
    background-color: red;
     /* bnt backgroundcolor */
}

.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;
    /* font-family: 'Poppins', sans-serif; */
}

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; /* Add !important */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn,
.filter-btn.active {
    /* border: 3px solid #ff2d75 !important; */
    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: 1.5rem; */
    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: 15px; */
    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 {
    border: 3px solid #00eeff;
} */
.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: 1.8rem; */
    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;
    /* round button */
    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: 1.2rem; */
    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: 1.5rem; */
    font-size: 20px;
    color: var(--text-color);
    text-align: center;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    /* font-size: 2rem; */
    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: 2rem; */
    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);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .school-box {
        width: 450px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .heading {
        font-size: 3.5rem;
    }
    
    .school-box {
        width: 350px;
        height: 220px;
    }
    
    .gallery-filters {
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .gallery-line-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .school {
        padding: 6rem 5% 8rem;
    }
    
    .heading {
        font-size: 2.8rem;
    }
    
    .school-box {
        width: 300px;
        height: 200px;
    }
    
    .school-layer h4 {
        font-size: 1.5rem;
    }
    
    .gallery-line-title {
        font-size: 1.2rem;
    }
}

.body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

/* Section layout */
.teachers {
    padding: 100px 40px;
    max-width: 1800px;
    margin: 0 auto;
}

.heading {
    text-align: center;
    /* font-size: 3.5rem; */
    font-size: 40px !important;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
    /* text-transform: uppercase; */
    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 */
.teachers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 0 auto;
}

/* 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: calc(20% - 25px); 
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 25px 20px;
    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);
}

.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(-15px) scale(1.03);
    box-shadow: 0 20px 40px 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: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    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.1);
    box-shadow: 0 0 30px 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.1);
}

/* Text inside the box */
.teacher-box h4 {
    font-size: 20px;
    color: aqua;
    margin: 10px 0 5px;
    font-weight: 600;
}
.principal{
    font-size: 18px;
    color: #7eff7e;
    margin: 8px 0;
    font-weight: 400;

}

.teacher-subject {
    font-size: 16px;
    color: white;
    margin: 8px 0;
    font-weight: 400;
}

.teacher-contact {
    margin-top: 15px;
    width: 100%;
}

.teacher-contact p {
    margin: 8px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #00e5ff;
}

.teacher-contact i {
    color: #00e5ff;
    font-size: 0.9rem;
}

.teacher-contact a {
    color: #7eff7e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.teacher-contact a:hover {
    color: #00ff00;
    text-decoration: underline;
}

/* Social icons */
.teacher-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.teacher-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: #00e5ff; */
    color: aqua;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

/* 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(-3px);
}

/* Floating animation for boxes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.teacher-box {
    animation: float 6s ease-in-out infinite;
}

/* Different animation delays for each box */
.teacher-box:nth-child(1) { animation-delay: 0s; }
.teacher-box:nth-child(2) { animation-delay: 0.5s; }
.teacher-box:nth-child(3) { animation-delay: 1s; }
.teacher-box:nth-child(4) { animation-delay: 1.5s; }
.teacher-box:nth-child(5) { animation-delay: 2s; }
.teacher-box:nth-child(6) { animation-delay: 2.5s; }
.teacher-box:nth-child(7) { animation-delay: 3s; }
.teacher-box:nth-child(8) { animation-delay: 3.5s; }
.teacher-box:nth-child(9) { animation-delay: 4s; }
.teacher-box:nth-child(10) { animation-delay: 4.5s; }
.teacher-box:nth-child(11) { animation-delay: 5s; }
.teacher-box:nth-child(12) { animation-delay: 5.5s; }
.teacher-box:nth-child(13) { animation-delay: 6s; }
.teacher-box:nth-child(14) { animation-delay: 6.5s; }
.teacher-box:nth-child(15) { animation-delay: 7s; }

/* Filter buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    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;
}

.filter-btn:hover, .filter-btn.active {
    background: #00e5ff;
    color: #16213e;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.7);
}

/* ========== Responsive Design ========== */

/* Large screens (max 1400px) → 4 boxes per row */
@media (max-width: 1400px) {
    .teacher-box {
        width: calc(25% - 25px);
    }
}

/* Tablets (max 1024px) → 3 boxes per row */
@media (max-width: 1024px) {
    .teacher-box {
        width: calc(33.33% - 25px);
    }
    
    .heading {
        font-size: 2.8rem;
    }
}

/* Small tablets (max 768px) → 2 boxes per row */
@media (max-width: 768px) {
    .teacher-box {
        width: calc(50% - 20px);
    }
    
    .heading {
        font-size: 2.5rem;
    }
}

/* Mobile (max 600px) → 1 box per row */
@media (max-width: 600px) {
    .teacher-box {
        width: 90%;
    }
    
    .heading {
        font-size: 2.2rem;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

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%; 
    }
}