/* ============================================
   FONT IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

* {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
    --white: #ffffff;
    --black: #000000;
    --dark-bg: #1a202c;
    --dark-surface: #2d3748;
    --dark-border: #4a5568;
    --primary-500: #667eea;
    --primary-700: #764ba2;
    --secondary-500: #f093fb;
    --secondary-700: #f5576c;
    --accent-500: #4facfe;
    --accent-700: #00f2fe;
    --success-500: #43e97b;
    --success-700: #38f9d7;
    --primary-gradient: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-700) 100%);
    --accent-gradient: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-700) 100%);
    --success-gradient: linear-gradient(135deg, var(--success-500) 0%, var(--success-700) 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --white-10: rgba(255, 255, 255, 0.10);
    --white-08: rgba(255, 255, 255, 0.08);
    --white-05: rgba(255, 255, 255, 0.05);
    --white-04: rgba(255, 255, 255, 0.04);
    --white-02: rgba(255, 255, 255, 0.02);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glow: 0 0 20px rgba(102, 126, 234, 0.3);
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --transition-fast: 0.2s ease;
    --transition-default: 0.3s ease;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0 }
    to { transform: translateX(0); opacity: 1 }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1 }
    to { transform: translateX(-100%); opacity: 0 }
}
@keyframes shimmer {
    0% { left: -100% }
    100% { left: 100% }
}
@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg) }
    100% { transform: translateX(100%) rotate(45deg) }
}
@keyframes float {
    0% { transform: translateY(0) }
    50% { transform: translateY(-5px) }
    100% { transform: translateY(0) }
}
@keyframes slideInLeft {
    from { transform: translateX(-100%) }
    to { transform: translateX(0) }
}
@keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px) }
    to { opacity: 1; transform: translateY(0) }
}
@keyframes scrollNotifications {
    0% { transform: translateX(0) }
    100% { transform: translateX(-33.33%) }
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) }
    50% { transform: translateY(-5px) }
}
@keyframes backgroundShift {
    0% { background-position: 0% 0% }
    100% { background-position: 100% 100% }
}
@keyframes floating {
    0% { transform: translate(0, 0px) }
    50% { transform: translate(0, -12px) }
    100% { transform: translate(0, 0px) }
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.4) }
    50% { transform: scale(1.05); box-shadow: 0 8px 25px 0 rgba(102, 126, 234, 0.6) }
    100% { transform: scale(1); box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.4) }
}
@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0 }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-gradient {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
    transition: transform 0.3s ease;
}
.navbar-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}
.navbar-3d {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.nav-item-3d {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}
.nav-item-3d::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.nav-item-3d:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.nav-item-3d:hover::before {
    left: 100%;
}

/* ============================================
   GLOSSY BUTTONS
   ============================================ */
.glossy-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.glossy-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-container {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(51, 65, 85, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInLeft 0.3s ease-out;
}
.mobile-menu-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.mobile-menu-item::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}
.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}
.mobile-menu-item:hover::before {
    left: 100%;
}
.hamburger-line {
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ============================================
   NOTIFICATION SCROLLER
   ============================================ */
.notification-scroll-container {
    animation: scrollNotifications 30s linear infinite;
}
.notification-scroll-container:hover {
    animation-play-state: paused;
}

/* ============================================
   ABOUT SECTION - Image Grid (1-2-1)
   ============================================ */
.about-images-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.about-img-row {
    display: flex;
    gap: 1rem;
}
.about-img-row.about-img-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.about-img-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    flex: 1;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}
.about-img-wrapper:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.about-img-wrapper.about-img-wide {
    border-radius: 1.25rem;
}
.about-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.about-img-wide .about-img {
    height: 200px;
}
.about-img-pair .about-img {
    height: 180px;
}
.about-img-wrapper:hover .about-img {
    transform: scale(1.08);
}
.about-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(22,163,74,0.3), rgba(37,99,235,0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.about-img-wrapper:hover .about-img-overlay {
    opacity: 1;
}

@media (max-width: 640px) {
    .about-img-row.about-img-pair {
        grid-template-columns: 1fr;
    }
    .about-img { height: 180px; }
    .about-img-wide .about-img { height: 160px; }
    .about-img-pair .about-img { height: 160px; }
}

/* ============================================
   FLIP CARD STYLES
   ============================================ */
.flip-card {
    perspective: 1000px;
}
.flip-card-inner {
    position: relative;
    width: 100%; height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%; height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.flip-card-back {
    transform: rotateY(180deg);
}
@media (max-width: 640px) {
    .flip-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ============================================
   LEADERSHIP PHOTO RING
   ============================================ */
.leader-photo-ring {
    padding: 4px;
    border-radius: 5%;
    background: conic-gradient(from 0deg, #f97316, #3b82f6, #8b5cf6, #ec4899, #f97316);
    /* animation: ringRotate 6s linear infinite; */
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}
@keyframes ringRotate {
    100% { filter: hue-rotate(360deg); }
}
.leader-photo-ring img {
    border-radius: 5%;
    border: 4px solid white;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.leader-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    transform: rotate(25deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 1;
}
.flip-card:hover .leader-shine {
    left: 100%;
}
/* Middle card prominence */
.leader-card-primary .leader-photo-ring {
    padding: 5px;
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.35);
}

/* ============================================
   TEAM PHOTO RING
   ============================================ */
.team-photo-ring {
    padding: 3px;
    border-radius: 7%;
    background: conic-gradient(from 90deg, var(--team-color-from, #8b5cf6), var(--team-color-to, #6366f1), var(--team-color-from, #8b5cf6));
    flex-shrink: 0;
}
.team-photo-ring img {
    border-radius: 7%;
    border: 3px solid white;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   FLIP CARD HOVER LIFT
   ============================================ */
.flip-card {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.flip-card:hover {
    transform: translateY(-6px);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

/* Team front face accent line */
.team-card-face {
    transition: box-shadow 0.3s ease;
}

/* ============================================
   NOTICE CARDS
   ============================================ */
.notice-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.notice-card-inner {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.notice-card:hover .notice-title {
    color: #ea580c;
}
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

/* ============================================
   LINE CLAMP
   ============================================ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    transition: all 0.3s ease;
}
.filter-btn.active {
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
}
#lightbox {
    transition: opacity 0.3s ease;
}
#lightbox:not(.hidden) {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

/* ============================================
   PROGRAMS
   ============================================ */
.program-slide {
    position: absolute;
    inset: 0;
    transition: opacity 1s ease-in-out;
}
#program-modal:not(.hidden) {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

/* ============================================
   AOS OVERRIDES
   ============================================ */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-duration: 0.6s;
}
[data-aos].aos-animate {
    opacity: 1;
}
[data-aos="fade-right"] {
    transform: translateX(-30px);
}
[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}
[data-aos="fade-left"] {
    transform: translateX(30px);
}
[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ============================================
   ANIMATION DELAY UTILITIES
   ============================================ */
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-800 { animation-delay: 0.8s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .navbar-3d {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .nav-item-3d {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    .notice-card-inner {
        margin-bottom: 1rem;
    }
    #lightbox-info {
        padding: 1rem;
    }
    #lightbox-title {
        font-size: 1.25rem;
    }
    #program-modal .flex-row {
        flex-direction: column;
    }
}
@media (max-width: 1024px) {
    .program-card {
        margin-bottom: 1rem;
    }
}

/* ============================================
   LOGIN MODAL
   ============================================ */
#login-modal.show {
    display: flex;
}
#login-modal.show #login-modal-container {
    transform: scale(1);
    opacity: 1;
}
#login-modal #login-modal-container {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
#login-modal input:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
#login-submit-btn:active {
    transform: translateY(0) !important;
}
.login-shake {
    animation: loginShake 0.5s ease;
}
@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}
