/* ===== VARIABLES ===== */
:root {
    --primary: #FDBC0C;
    --primary-dark: #e5a800;
    --secondary: #273052;
    --secondary-light: #344580;
    --text-light: #ffffff;
    --text-dark: #222222;
    --text-gray: #666666;
    --overlay: rgba(0, 0, 0, 0.65);
    --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #fff;
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
}

body.menu-open {
    overflow: hidden;
}


/* ===== NAVBAR ===== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(39, 48, 82, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 101;
}

.school-logo {
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.school-name {
    color: var(--text-light);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}

.school-tagline {
    color: var(--primary);
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    opacity: 0.9;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 102;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-menu-container {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(15px, 2.5vw, 30px);
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    padding: 5px 0;
    position: relative;
    transition: var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-menu a:hover i {
    transform: rotate(180deg);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary);
}

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 35px;
    left: -15px;
    background: var(--secondary);
    min-width: 220px;
    border-radius: 8px;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: dropdownFade 0.3s ease-out;
    z-index: 1000;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: var(--text-light) !important;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(253, 188, 12, 0.2);
    padding-left: 25px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ===== HERO SECTION - COMPLETE STYLES ===== */

/* Hero Main Container */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
    padding: 0;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.1);
    animation: videoZoom 20s ease-in-out infinite alternate;
}

@keyframes videoZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(39, 48, 82, 0.85) 0%, rgba(39, 48, 82, 0.7) 100%);
    z-index: -1;
}

/* Grain Effect Overlay */
.hero-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc0IiBudW1PY3RhdmVzPSIzIiAvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNmKSIgb3BhY2l0eT0iMC4wNCIgLz48L3N2Zz4=');
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: grainShift 8s steps(10) infinite;
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(5%, 5%); }
    30% { transform: translate(-5%, 5%); }
    40% { transform: translate(5%, -5%); }
    50% { transform: translate(-5%, -5%); }
    60% { transform: translate(5%, 5%); }
    70% { transform: translate(-5%, 5%); }
    80% { transform: translate(5%, -5%); }
    90% { transform: translate(-5%, -5%); }
}

/* Floating Shapes Background */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.4;
}

.shape {
    position: absolute;
    background: rgba(253, 188, 12, 0.1);
    border-radius: 50%;
    filter: blur(40px);
    animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: 5%;
    background: rgba(39, 48, 82, 0.2);
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 20%;
    background: rgba(253, 188, 12, 0.15);
    animation-delay: -10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    bottom: 20%;
    left: 15%;
    background: rgba(255, 255, 255, 0.05);
    animation-delay: -15s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(5%, 5%) scale(1.1);
    }
    50% {
        transform: translate(-5%, 10%) scale(0.9);
    }
    75% {
        transform: translate(-10%, -5%) scale(1.05);
    }
}

/* Main Content Container */
.hero-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    gap: 40px;
}

/* Left Column - Logo */
.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero-logo {
    width: 350px;
    height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(253, 188, 12, 0.5));
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(253, 188, 12, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(253, 188, 12, 0.8));
    }
}

/* Right Column - All Content */
.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 25px;
}

/* Motto Section */
.hero-motto {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    animation: fadeInUp 0.6s ease forwards;
}

.motto-row {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

.motto-word {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
}

.motto-word.gold {
    color: #FDBC0C;
    text-shadow: 0 0 15px rgba(253, 188, 12, 0.4);
}

.motto-word.white {
    color: #ffffff;
}

.motto-word:hover {
    transform: translateY(-3px);
    text-shadow: 0 0 25px currentColor;
}

.motto-word::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FDBC0C, transparent);
    transition: width 0.3s ease;
}

.motto-word:hover::after {
    width: 100%;
}

/* Decorative Line Under Motto */
.motto-decoration {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 5px 0 10px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.decoration-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FDBC0C, transparent);
}

.decoration-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FDBC0C;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Excellence Since 1929 Badge */
.excellence-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(253, 188, 12, 0.15);
    backdrop-filter: blur(8px);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(253, 188, 12, 0.4);
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.excellence-badge i {
    color: var(--primary);
    font-size: 1.3rem;
    animation: medalGlow 2s ease-in-out infinite;
}

@keyframes medalGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(253, 188, 12, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(253, 188, 12, 0.9));
    }
}

.excellence-badge span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Event Highlight */
.event-highlight {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-left: 5px solid var(--primary);
    max-width: 420px;
    width: 100%;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(253, 188, 12, 0.3);
    margin-top: 5px;
}

.event-highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--secondary);
    box-shadow: 0 5px 15px rgba(253, 188, 12, 0.3);
}

.event-highlight-info {
    flex: 1;
}

.event-highlight-label {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.event-highlight-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

.event-highlight-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-highlight-date::before {
    content: '📅';
    font-size: 0.9rem;
    opacity: 0.8;
}

.event-highlight-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-highlight-link:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateX(5px);
    border-color: var(--primary);
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: controlsGlow 3s ease-in-out infinite;
}

@keyframes controlsGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(253, 188, 12, 0.2);
        border-color: rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(253, 188, 12, 0.4);
        border-color: rgba(253, 188, 12, 0.4);
    }
}

.video-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.video-control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(253, 188, 12, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.video-control-btn:hover::before {
    width: 80px;
    height: 80px;
}

.video-control-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: scale(1.1);
    border-color: var(--primary);
}

.control-icon {
    width: 22px;
    height: 22px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #FDBC0C, transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0.3);
        opacity: 0.3;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(0.3);
        opacity: 0.3;
    }
}

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

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */

/* Large Desktop */
@media (max-width: 1400px) {
    .hero-content {
        padding: 0 6%;
    }
    
    .hero-logo {
        width: 320px;
        height: 320px;
    }
    
    .motto-word {
        font-size: 4.5rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-content {
        padding: 0 5%;
        gap: 30px;
    }
    
    .hero-logo {
        width: 280px;
        height: 280px;
    }
    
    .motto-word {
        font-size: 4rem;
    }
    
    .motto-row {
        gap: 20px;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .hero {
        min-height: 800px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 30px;
        padding: 120px 5% 30px;
        justify-content: center;
    }
    
    .hero-left, .hero-right {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .hero-left {
        align-items: center;
    }
    
    .hero-right {
        align-items: center;
    }
    
    .hero-motto {
        text-align: center;
    }
    
    .motto-row {
        justify-content: center;
    }
    
    .excellence-badge {
        justify-content: center;
    }
    
    .event-highlight {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .hero {
        min-height: 750px;
    }
    
    .hero-content {
        padding: 100px 5% 20px;
        gap: 25px;
    }
    
    .hero-logo {
        width: 220px;
        height: 220px;
    }
    
    .motto-word {
        font-size: 3.2rem;
        letter-spacing: 3px;
    }
    
    .motto-row {
        gap: 15px;
    }
    
    .excellence-badge {
        padding: 10px 20px;
    }
    
    .excellence-badge span {
        font-size: 1rem;
    }
    
    .excellence-badge i {
        font-size: 1.1rem;
    }
    
    .event-highlight {
        padding: 15px;
        gap: 12px;
    }
    
    .event-highlight-title {
        font-size: 1rem;
    }
    
    .event-highlight-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .video-controls {
        bottom: 20px;
        right: 20px;
        padding: 10px;
    }
    
    .video-control-btn {
        width: 40px;
        height: 40px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-line {
        height: 50px;
    }
}

/* Mobile Large */
@media (max-width: 576px) {
    .hero {
        min-height: 700px;
    }
    
    .hero-content {
        padding: 90px 4% 20px;
        gap: 20px;
    }
    
    .hero-logo {
        width: 180px;
        height: 180px;
    }
    
    .motto-word {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .motto-row {
        gap: 10px;
    }
    
    .decoration-dot {
        width: 6px;
        height: 6px;
    }
    
    .excellence-badge {
        padding: 8px 15px;
        gap: 10px;
    }
    
    .excellence-badge span {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .excellence-badge i {
        font-size: 1rem;
    }
    
    .event-highlight {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 10px;
    }
    
    .event-highlight-info {
        text-align: center;
    }
    
    .event-highlight-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .event-highlight-link {
        width: 35px;
        height: 35px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero {
        min-height: 650px;
    }
    
    .hero-content {
        padding: 80px 4% 15px;
    }
    
    .hero-logo {
        width: 150px;
        height: 150px;
    }
    
    .motto-word {
        font-size: 2rem;
        letter-spacing: 1.5px;
    }
    
    .motto-row {
        gap: 8px;
    }
    
    .excellence-badge {
        padding: 6px 12px;
    }
    
    .excellence-badge span {
        font-size: 0.8rem;
    }
    
    .event-highlight {
        padding: 12px;
    }
    
    .event-highlight-label {
        font-size: 0.7rem;
    }
    
    .event-highlight-title {
        font-size: 0.9rem;
    }
    
    .event-highlight-date {
        font-size: 0.8rem;
    }
    
    .video-controls {
        bottom: 15px;
        right: 15px;
        padding: 8px;
        gap: 8px;
    }
    
    .video-control-btn {
        width: 36px;
        height: 36px;
    }
    
    .control-icon {
        width: 18px;
        height: 18px;
    }
    
    .scroll-text {
        font-size: 0.7rem;
    }
    
    .scroll-line {
        height: 40px;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 70px 5% 15px;
    }
    
    .hero-logo {
        width: 120px;
        height: 120px;
    }
    
    .motto-word {
        font-size: 1.8rem;
    }
    
    .excellence-badge {
        padding: 5px 10px;
    }
    
    .excellence-badge span {
        font-size: 0.8rem;
    }
    
    .event-highlight {
        padding: 10px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* High Resolution Screens */
@media (min-width: 2000px) {
    .hero-content {
        max-width: 1800px;
    }
    
    .hero-logo {
        width: 400px;
        height: 400px;
    }
    
    .motto-word {
        font-size: 6rem;
    }
    
    .event-highlight {
        max-width: 500px;
        padding: 22px 28px;
    }
    
    .event-highlight-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .event-highlight-title {
        font-size: 1.4rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .motto-word:hover {
        transform: none;
    }
    
    .motto-word::after {
        display: none;
    }
    
    .event-highlight-link:hover {
        transform: none;
    }
    
    .video-control-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }
    
    .video-control-btn:hover::before {
        display: none;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        animation: none;
        transform: scale(1);
    }
    
    .hero-grain,
    .floating-shapes,
    .decoration-dot,
    .excellence-badge i,
    .scroll-indicator,
    .video-controls {
        animation: none;
    }
    
    .motto-word,
    .excellence-badge,
    .event-highlight {
        animation: fadeIn 0.5s ease forwards;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary);
    color: var(--text-light);
    padding: clamp(40px, 6vh, 60px) 5% 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    object-fit: contain;
}

.footer-brand-text h3 {
    font-size: clamp(1.5rem, 3.5vw, 1.8rem);
    margin-bottom: 5px;
    color: var(--text-light);
}

.footer-tagline {
    color: var(--primary);
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    flex-wrap: wrap;
}

.footer-contact i {
    color: var(--primary);
    width: 20px;
    font-size: 1.1rem;
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 30px);
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sitemap-column h4 {
    color: var(--primary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitemap-column h4 i {
    font-size: 1.1rem;
}

.sitemap-column ul {
    list-style: none;
    padding: 0;
}

.sitemap-column ul li {
    margin-bottom: 12px;
}

.sitemap-column ul li a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.sitemap-column ul li a i {
    font-size: 0.8rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.sitemap-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.sitemap-column ul li a:hover i {
    transform: translateX(3px);
}

.footer-social {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social h4 {
    color: var(--text-light);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-social h4 i {
    color: var(--primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 15px);
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 6vw, 45px);
    height: clamp(40px, 6vw, 45px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: clamp(1rem, 2vw, 1.2rem);
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: #aaa;
}

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== PLACEHOLDER STYLES ===== */
.logo-placeholder {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    color: var(--secondary);
}

.footer-logo-placeholder {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 36px;
    color: var(--secondary);
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1200px) {
    .hero-content {
        padding: 0 5%;
        gap: 30px;
    }
    
    .hero-logo {
        width: 250px;
        height: 250px;
    }
    
    .motto-word {
        font-size: 4rem;
    }
}

@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        gap: 30px;
        padding: 100px 5% 20px;
        justify-content: center;
    }
    
    .hero-left, .hero-right {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .hero-left {
        align-items: center;
    }
    
    .hero-right {
        align-items: center;
    }
    
    .motto-row {
        justify-content: center;
    }
    
    .hero-description {
        text-align: center;
    }
    
    .hero-text {
        margin: 0 auto;
    }
    
    .achievement-counters {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-badges {
        justify-content: center;
    }
    
    .quick-links {
        position: static;
        transform: none;
        margin-top: 20px;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        padding: 80px 5% 20px;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
    }
    
    .motto-word {
        font-size: 3rem;
    }
    
    .motto-row {
        gap: 15px;
    }
    
    .stats-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-badge {
        padding: 10px 15px;
    }
    
    .achievement-counters {
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-buttons a {
        width: 100%;
    }
    
    .quick-links {
        flex-wrap: wrap;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--secondary);
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    }
    
    .nav-menu-container.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
        white-space: normal;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        padding: 10px 0 10px 20px;
        margin-top: 10px;
        animation: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .footer-sitemap {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .sitemap-column {
        text-align: center;
    }
    
    .sitemap-column h4 {
        justify-content: center;
    }
    
    .sitemap-column ul li a {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        min-height: 600px;
    }
    
    .hero-logo {
        width: 150px;
        height: 150px;
    }
    
    .motto-word {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .motto-row {
        gap: 10px;
    }
    
    .stat-badge {
        padding: 8px 12px;
    }
    
    .stat-badge span {
        font-size: 1rem;
    }
    
    .counter-number {
        font-size: 1.5rem;
    }
    
    .counter-label {
        font-size: 0.65rem;
    }
    
    .event-highlight {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .btn-primary, .btn-secondary, .btn-outline {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .navbar {
        padding: 10px 15px;
    }
    
    .school-logo {
        width: 35px;
        height: 35px;
    }
    
    .school-name {
        font-size: 1rem;
    }
    
    .school-tagline {
        font-size: 0.6rem;
    }
    
    .video-controls {
        bottom: 10px;
        right: 10px;
        padding: 8px;
    }
    
    .video-control-btn {
        width: 32px;
        height: 32px;
    }
    
    .footer {
        padding: 30px 15px 15px;
    }
    
    .footer-sitemap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .nav-menu a:hover {
        color: var(--text-light);
    }
    
    .nav-menu a:hover::before {
        width: 0;
    }
    
    .btn-primary:hover, .btn-secondary:hover,
    .btn-outline:hover, .quick-link:hover,
    .stat-badge:hover, .motto-word:hover {
        transform: none;
    }
    
    .video-control-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* ===== PAGE HEADER STYLES ===== */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    padding: 120px 20px 80px;
    text-align: center;
    color: var(--text-light);
    margin-top: 0;
    position: relative;
    width: 100%;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
    animation: fadeInUp 1s ease 0.2s both;
}

.breadcrumb {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    animation: fadeInUp 1s ease 0.3s both;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.homepage .navbar {
    position: absolute;
}

.homepage .navbar.scrolled {
    position: fixed;
}

body:not(.homepage) .page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    padding: 120px 20px 80px;
    text-align: center;
    color: var(--text-light);
    margin-top: 0;
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.homepage) .navbar {
    position: fixed;
    background: rgba(39, 48, 82, 0.95);
    backdrop-filter: blur(10px);
}

/* Gallery Pagination */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 188, 12, 0.3);
}

.pagination-info {
    color: var(--secondary);
    font-weight: 500;
}

.gallery-caption {
    padding: 8px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}