/* ===================================
   CHATURBHUJ DIGITAL SCHOOL - PREMIUM CSS
   Ultra-Modern Glassmorphism Design
   =================================== */

/* === ROOT VARIABLES === */
:root {
    /* Color Palette - Premium Digital School Theme */
    --primary-navy: #0a1628;
    --secondary-navy: #1a2642;
    --accent-blue: #2563eb;
    --accent-cyan: #06b6d4;
    --accent-purple: #7c3aed;
    --accent-gold: #f59e0b;
    --text-white: #ffffff;
    --text-light: #e5e7eb;
    --text-gray: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --overlay-dark: rgba(10, 22, 40, 0.85);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    
    /* Spacing */
    --container-width: 1400px;
    --section-padding: 120px;
    --card-padding: 30px;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* Effects */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.3);
    --blur-amount: 12px;
}

/* === GLOBAL RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #0a1628 0%, #1a2642 50%, #2d3a5a 100%);
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* === GLASS CARD EFFECT === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(255, 255, 255, 0.3);
}

/* === NAVIGATION BAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    width: 28px;
    height: 3px;
    background: var(--text-white);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 40px 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

.hero-glass-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-primary, .btn-secondary {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    color: var(--text-light);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 20px;
    margin: 10px auto 0;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* === NOTICE BOARD === */
.notice-board {
    background: rgba(245, 158, 11, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.notice-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.notice-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notice-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    white-space: nowrap;
}

.notice-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    animation: ticker 45s linear infinite;
    gap: 80px;
}

.ticker-item {
    white-space: nowrap;
    font-size: 1rem;
    color: var(--text-white);
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === SECTION STYLES === */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* === ABOUT SECTION === */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.about-text {
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.about-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

.about-description {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.vision-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.vm-card {
    padding: 35px;
    text-align: center;
}

.vm-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.vm-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-cyan);
}

.vm-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.highlight-card {
    padding: 30px;
    text-align: center;
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.highlight-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
}

.highlight-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* === ACADEMICS SECTION === */
.academics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.academic-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.academic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.academic-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-cyan);
}

.card-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-features li {
    font-size: 0.95rem;
    color: var(--text-gray);
    padding-left: 25px;
    position: relative;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: 700;
}

.curriculum-highlights {
    margin-top: 60px;
}

.curriculum-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-white);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.curriculum-item {
    padding: 30px;
    text-align: center;
    position: relative;
}

.curriculum-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.curriculum-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
}

.curriculum-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* === FACILITIES SECTION === */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.facility-card {
    overflow: hidden;
    padding: 0;
}

.facility-image {
    height: 250px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-icon {
    font-size: 5rem;
}

.facility-content {
    padding: 35px;
}

.facility-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-cyan);
}

.facility-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.facility-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

/* === GALLERY SECTION === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.gallery-item {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 20px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.overlay-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
}

/* === WHY CHOOSE SECTION === */
.why-choose-section {
    background: rgba(37, 99, 235, 0.05);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-card {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why-number {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    opacity: 0.3;
}

.why-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-white);
}

.why-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* === CONTACT SECTION === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    padding: 30px;
    text-align: center;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.info-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-cyan);
}

.info-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.info-text a {
    color: var(--accent-cyan);
}

.info-text a:hover {
    text-decoration: underline;
}

.info-hours {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateX(5px);
}

.social-icon {
    font-size: 1.5rem;
}

.contact-map {
    position: sticky;
    top: 100px;
}

.map-container {
    height: 500px;
    overflow: hidden;
    padding: 0;
}

.map-container iframe {
    border-radius: 20px;
}

/* === FOOTER === */
.footer {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 60px;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-icon {
    font-size: 2rem;
}

.footer-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.social-icon-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-gray);
    transition: var(--transition-smooth);
    padding-left: 15px;
    position: relative;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 20px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    font-size: 0.95rem;
    color: var(--text-gray);
    display: flex;
    gap: 10px;
    line-height: 1.6;
}

.contact-icon {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--accent-cyan);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.footer-bottom-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.footer-bottom-links a:hover {
    color: var(--accent-cyan);
}

.separator {
    color: var(--text-gray);
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.6);
}

.arrow-up {
    display: block;
    font-size: 1.5rem;
}

/* === SCROLL ANIMATIONS === */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* === RESPONSIVE DESIGN === */

/* Tablets and Small Laptops */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
        --container-width: 100%;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-glass-box {
        padding: 50px 40px;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .facilities-grid,
    .academics-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        position: static;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .container,
    .nav-container,
    .notice-container,
    .footer-content,
    .footer-bottom-content {
        padding: 0 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero-section {
        padding: 120px 20px 80px;
    }
    
    .hero-glass-box {
        padding: 40px 25px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
    
    .notice-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-text {
        padding: 25px;
    }
    
    .about-subtitle {
        font-size: 1.5rem;
    }
    
    .vision-mission,
    .about-highlights,
    .curriculum-grid,
    .why-choose-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .academics-grid {
        grid-template-columns: 1fr;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .card-title,
    .facility-title {
        font-size: 1.4rem;
    }
    
    .facility-image {
        height: 200px;
    }
    
    .facility-icon {
        font-size: 3.5rem;
    }
    
    .map-container {
        height: 350px;
    }
}

/* Large Screens */
@media (min-width: 1600px) {
    :root {
        --container-width: 1600px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3.2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .notice-board,
    .scroll-indicator,
    .back-to-top,
    .hero-cta {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-card {
        border: 1px solid #ccc;
        background: white;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.2);
        --glass-border: rgba(255, 255, 255, 0.4);
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
   }
