/* ========================= Root Variables ========================= */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --dark: #0a0e27;
    --light: #f5f7fa;
    --white: #ffffff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========================= Global Styles ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility helper */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================= Navigation ========================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    animation: slideDownNav 0.6s ease-out;
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 2rem;
}

/* Navbar logo image size (smaller) */
.nav-logo {
    width: 40px;
    height: auto;
    display: inline-block;
    margin-right: 0.5rem;
    border-radius: 6px;
    object-fit: contain;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .nav-logo { width: 30px; margin-right: 0.4rem; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--primary);
    padding-left: 1.8rem;
}

/* Nested Submenu Styles */
.dropdown-menu li.submenu-item {
    position: relative;
}

.dropdown-menu li.submenu-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-menu li.submenu-item > a::before {
    content: '';
    position: absolute;
    right: 1.5rem;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.dropdown-menu li.submenu-item:hover > a::before {
    width: 8px;
}

.submenu-item .submenu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.submenu-item:hover .submenu-arrow {
    transform: translateX(3px);
}

/* Submenu - Professional Sliding Panel */
.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    list-style: none;
    min-width: 240px;
    padding: 0.5rem 0;
    margin-left: 0.8rem;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 998;
    max-height: 500px;
}

/* Mobile Responsive Submenu */
@media (max-width: 768px) {
    .submenu {
        position: static;
        left: auto;
        top: auto;
        margin-left: 0;
        margin-top: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        border-left: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
    }

    .submenu-item.active .submenu {
        max-height: 500px;
        padding: 0.5rem 0;
        background: linear-gradient(135deg, #f0f4ff 0%, #f8f9ff 100%);
        border-left: 4px solid var(--primary);
        box-shadow: inset 0 2px 8px rgba(102, 126, 234, 0.1);
        margin-top: 0.3rem;
    }

    .submenu a {
        padding: 0.6rem 2rem 0.6rem 2.5rem;
        font-size: 0.85rem;
    }

    .submenu a:hover {
        padding-left: 3rem;
    }
}

.submenu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.submenu li {
    position: relative;
}

.submenu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.submenu a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    color: var(--primary);
    padding-left: 2rem;
    border-left-color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================= Responsive Navigation ========================= */
@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 2rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        display: none;
        padding: 1rem 0;
        border-bottom: 2px solid rgba(102, 126, 234, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        animation: slideDownMenu 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text);
        transition: all 0.3s ease;
        font-size: 1rem;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover {
        background: rgba(102, 126, 234, 0.08);
        color: var(--primary);
        padding-left: 2rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: rgba(102, 126, 234, 0.05);
        padding: 0;
        margin-top: 0;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .nav-item-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }

    .dropdown-menu a {
        padding: 0.75rem 1.5rem 0.75rem 3rem;
        font-size: 0.9rem;
        color: var(--text);
    }

    .dropdown-menu a:hover {
        background: rgba(102, 126, 234, 0.1);
        padding-left: 3.5rem;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-menu {
        top: 60px;
    }

    .nav-menu a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 1.6rem;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
    }
}

/* ========================= Hero Slider ========================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 75vh;
    overflow: hidden;
    margin-top: 60px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide-bg-img {
    background-attachment: fixed;
    animation: zoomInBg 1.5s ease-out;
}

@keyframes zoomInBg {
    from {
        transform: scale(1.1);
        filter: brightness(0.9);
    }
    to {
        transform: scale(1);
        filter: brightness(1);
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    animation: fadeInOverlay 1.2s ease-out;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 6rem;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.content-box {
    flex: 1;
    color: var(--white);
    animation: slideInLeft 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.slide-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.slide-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
}

.slide-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.ieee-approval {
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.85;
    font-weight: 300;
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

/* ========================= Buttons ========================= */
.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ========================= Slide Visual ========================= */
.slide-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.visual-element {
    width: 480px;
    height: 480px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 180px;
    color: rgba(255, 255, 255, 0.2);
    animation: slideImageIn 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.visual-element.clickable-image {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.visual-element.clickable-image:hover {
    transform: scale(1.05);
}

.visual-element.clickable-image:active {
    transform: scale(0.98);
}

@keyframes slideImageIn {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

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

/* ========================= Slider Navigation ========================= */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    background: transparent;
    color: var(--white);
    border: none;
    font-size: 2.5rem;
    z-index: 100;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    transform: translateY(-50%) translateX(8px) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.4));
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.9);
}

.prev-btn {
    left: 3rem;
}

.next-btn {
    right: 3rem;
    animation: slideArrowPulse 2s ease-in-out infinite;
}

@keyframes slideArrowPulse {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50%) translateX(8px);
        opacity: 1;
    }
}

/* ========================= Progress Indicators ========================= */
.slider-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.2rem;
    z-index: 100;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--white);
    width: 35px;
    border-radius: 6px;
    border: 2px solid var(--white);
    transform: scale(1);
}

/* ========================= Slide Counter ========================= */
.slide-counter {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.7;
}

.countdown-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #0f1730 0%, #1e2540 60%);
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(102,126,234,0.12), transparent 30%), radial-gradient(circle at 80% 70%, rgba(118,75,162,0.08), transparent 30%);
    pointer-events: none;
}

.countdown-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 0.8s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.countdown-title { font-size: 3rem; color: #fff; font-weight: 900; margin-bottom: 0.5rem; text-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.countdown-subtitle { color: rgba(255,255,255,0.85); margin-bottom: 2rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 300; }

.countdown-timer { display:flex; justify-content:center; gap:1.25rem; align-items:center; flex-wrap:wrap; margin-bottom:2.5rem; }
.countdown-box {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding:1.6rem 1.4rem;
    min-width:120px;
    height:110px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    box-shadow: 0 18px 60px rgba(3,8,23,0.55), inset 0 1px 0 rgba(255,255,255,0.03);
    transition: transform .28s cubic-bezier(.2,.9,.2,1), box-shadow .28s cubic-bezier(.2,.9,.2,1);
}

.countdown-box::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 20px;
    background: conic-gradient(from 180deg at 50% 50%, rgba(102,126,234,0.18), rgba(118,75,162,0.12), rgba(102,126,234,0.18));
    filter: blur(12px);
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
    transform: rotate(0deg);
    animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.countdown-number {
    font-size:2.6rem;
    font-weight:900;
    color: #fff;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, #ffffff, #d9e9ff 50%, #c7e0ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 6px 18px rgba(12,18,40,0.45);
    display: inline-block;
    line-height: 1;
    transition: transform 300ms cubic-bezier(.2,.9,.2,1);
}

.countdown-label { font-size:0.75rem; color: rgba(255,255,255,0.85); margin-top:0.6rem; letter-spacing:1.6px; font-weight:700; text-transform:uppercase; z-index:1; }

.countdown-separator { font-size:2rem; color: rgba(255,255,255,0.7); display:flex; align-items:center; justify-content:center; min-width:28px; }

.countdown-separator::after {
    content: '';
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.25));
    opacity: 0.9;
    border-radius: 2px;
    transform-origin: center;
    animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
    0%,100% { transform: scaleY(1); opacity: 0.95; }
    50% { transform: scaleY(0.65); opacity: 0.6; }
}

.countdown-btn { background: linear-gradient(90deg,#fff,#f2f6ff); color: #0f1730; padding: .9rem 2.4rem; border-radius: 999px; font-weight:700; box-shadow: 0 12px 40px rgba(16,24,48,0.45); z-index:1; }
.countdown-box:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 32px 80px rgba(3,8,23,0.65); }

/* flip animation for number change */
.countdown-number.flip {
    animation: flipDown 480ms cubic-bezier(.34,1.56,.64,1);
}

@keyframes flipDown {
    0% { transform: rotateX(0deg) translateY(0); opacity: 1; }
    40% { transform: rotateX(-80deg) translateY(-8px); opacity: 0.06; }
    60% { transform: rotateX(80deg) translateY(8px); opacity: 0.06; }
    100% { transform: rotateX(0deg) translateY(0); opacity: 1; }
}

@media (max-width:768px) { .countdown-title{font-size:2rem;} .countdown-number{font-size:2rem;} .countdown-box{min-width:90px;padding:1rem;} }

/* Programs section removed */

/* ========================= Contact Section ========================= */
.contact {
    padding: 6rem 2rem;
    background: var(--light);
}

/* ========================= Welcome Section ========================= */
.welcome-section {
    padding: 4.5rem 2rem;
    background: linear-gradient(180deg, rgba(250,250,252,1) 0%, rgba(243,246,255,1) 100%);
    color: var(--text);
}

.welcome-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.welcome-section h2 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.welcome-section .welcome-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.welcome-section p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.welcome-section .btn.btn-outline {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.8rem 1.6rem;
    border: 1px solid rgba(34, 58, 115, 0.12);
    background: transparent;
    color: var(--primary);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.welcome-section .btn.btn-outline:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(40, 60, 120, 0.06);
}

/* Welcome action buttons */
.welcome-actions {
    margin-top: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
}

.btn.btn-learn {
    display: inline-block;
    padding: 0.7rem 1.25rem;
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(34, 58, 115, 0.12);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: none;
    transition: transform 220ms ease, box-shadow 220ms ease, background 180ms ease;
}

.btn.btn-learn:hover {
    background: rgba(34, 58, 115, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(34, 64, 140, 0.08);
}

@media (max-width: 480px) {
    .welcome-actions { justify-content: center; }
    .btn.btn-learn { width: 100%; display: block; }
}

/* Submit button icon styling */
.btn .btn-icon {
    margin-right: 0.6rem;
    font-size: 0.95rem;
    display: inline-block;
    transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
    transform-origin: center;
}

.btn.btn-outline:hover .btn-icon {
    transform: translateX(6px) rotate(-8deg);
}

@media (prefers-reduced-motion: reduce) {
    .btn .btn-icon, .btn.btn-outline:hover .btn-icon { transition: none; transform: none; }
}

@media (min-width: 900px) {
    .welcome-section .container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 3rem 1.25rem;
    }
    .welcome-section h2 {
        font-size: 1.8rem;
    }
    .welcome-section .welcome-lead {
        font-size: 0.98rem;
    }
}

/* Welcome gallery */
.welcome-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.25rem 0 0.75rem 0;
    align-items: stretch;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(20, 30, 60, 0.06);
    transform: translateY(8px);
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(.2,.9,.2,1) forwards;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.98) saturate(1.02);
}

.welcome-gallery .gallery-item:nth-child(1) { animation-delay: 0.06s; }
.welcome-gallery .gallery-item:nth-child(2) { animation-delay: 0.16s; }
.welcome-gallery .gallery-item:nth-child(3) { animation-delay: 0.26s; }
.welcome-gallery .gallery-item:nth-child(4) { animation-delay: 0.36s; }

@keyframes fadeUp {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1100px) {
    .welcome-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
    .welcome-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .welcome-gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item { animation: none; transform: none; opacity: 1; }
    .gallery-item img { transition: none; }
}

/* ========================= About Section ========================= */
.about-section {
    padding: 5rem 2rem;
    margin-top: 45px;
    background: linear-gradient(180deg, rgba(250,250,252,1) 0%, rgba(243,246,255,1) 100%);
    color: var(--text);
}

.about-section h2 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.about-section .about-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 500;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-box {
    background: rgba(255,255,255,0.8);
    padding: 1.8rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 6px 20px rgba(20,30,60,0.04);
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(20,30,60,0.08);
}

.feature-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: block;
}

.feature-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-section h2 {
        font-size: 1.9rem;
    }

    .about-section .about-lead {
        font-size: 0.99rem;
    }
}

/* ========================= Photo Album Section ========================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideInDown 0.8s ease-out;
}

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

.section-title {
    font-size: 2.8rem;
    color: var(--text);
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    margin: 0 auto;
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.2s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

/* Photo Album Grid */
.photo-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Album Card */
.album-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    animation: slideUp 0.6s ease-out both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.album-card:nth-child(1) { animation-delay: 0.1s; }
.album-card:nth-child(2) { animation-delay: 0.2s; }
.album-card:nth-child(3) { animation-delay: 0.3s; }
.album-card:nth-child(4) { animation-delay: 0.4s; }
.album-card:nth-child(5) { animation-delay: 0.5s; }
.album-card:nth-child(6) { animation-delay: 0.6s; }

.album-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 48px rgba(102, 126, 234, 0.2);
}

/* Album Image Wrapper */
.album-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.album-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.album-card:hover .album-image {
    transform: scale(1.1) rotate(2deg);
}

/* Album Overlay */
.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

/* Album Content */
.album-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 2;
}

.album-card:hover .album-content {
    opacity: 1;
    transform: translateY(0);
}

.album-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.album-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Album Footer */
.album-footer {
    padding: 1.2rem 1.5rem;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.album-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.album-card:hover .album-date {
    color: var(--secondary);
    gap: 0.8rem;
}

.album-date i {
    transition: transform 0.3s ease;
}

.album-card:hover .album-date i {
    transform: rotate(15deg);
}

/* Album Stats Section */
.album-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 16px;
    margin-top: 3rem;
    animation: slideInUp 0.8s ease-out 0.5s both;
}

/* ========================= Sponsors Section ========================= */
.sponsors-section {
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(250,250,252,1) 0%, rgba(243,246,255,1) 100%);
    color: var(--text);
    margin-top: 45px;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-items: center;
    margin-top: 1.2rem;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(20,30,60,0.04);
    transition: transform 260ms ease, box-shadow 260ms ease, opacity 260ms ease;
    opacity: 0;
    will-change: transform, opacity;
    animation: sponsorEnter 520ms cubic-bezier(.2,.9,.2,1) forwards;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    filter: grayscale(0.06) contrast(0.98);
    transition: transform 220ms ease, filter 220ms ease;
    display: block;
}

.sponsor-item:hover img {
    transform: scale(1.03);
    filter: grayscale(0);
}

/* Subtle entrance animation for sponsor tiles */
@keyframes sponsorEnter {
    from { opacity: 0; transform: translateY(12px) scale(.995); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Slight lift on hover for the sponsor tile */
.sponsor-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(20,30,60,0.08);
}

/* Staggered entrance for nicer feel */
.sponsors-grid .sponsor-item:nth-child(1) { animation-delay: 0.06s; }
.sponsors-grid .sponsor-item:nth-child(2) { animation-delay: 0.12s; }
.sponsors-grid .sponsor-item:nth-child(3) { animation-delay: 0.18s; }
.sponsors-grid .sponsor-item:nth-child(4) { animation-delay: 0.24s; }
.sponsors-grid .sponsor-item:nth-child(5) { animation-delay: 0.30s; }
.sponsors-grid .sponsor-item:nth-child(6) { animation-delay: 0.36s; }
.sponsors-grid .sponsor-item:nth-child(7) { animation-delay: 0.42s; }

@media (max-width: 720px) {
    .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================= Footer ========================= */
.site-footer {
    background: linear-gradient(180deg, #0f1730 0%, #111428 100%);
    color: rgba(255,255,255,0.92);
    padding: 3rem 2rem 2.5rem 2rem;
    margin-top: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.footer-about {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo {
    width: 120px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.footer-about-text { flex: 1; }

.site-footer h3, .site-footer h4 {
    color: #fff;
    margin-bottom: 0.6rem;
}

.site-footer p { color: rgba(255,255,255,0.85); line-height: 1.6; }

.footer-contact p { margin: 0.25rem 0; }

.footer-links ul { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.footer-links li { margin: 0.35rem 0; }
.footer-links a { color: rgba(255,255,255,0.9); text-decoration: none; transition: color 180ms ease; }
.footer-links a:hover { color: var(--primary); }

.footer-meta { text-align: center; color: rgba(255,255,255,0.85); grid-column: 1 / -1; margin-top: 1rem; }
.footer-meta p { margin: 0.35rem 0; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-meta { text-align: center; margin-top: 1rem; }
}

@media (max-width: 520px) {
    .footer-about { flex-direction: column; align-items: flex-start; }
    .footer-logo { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    .sponsor-item, .sponsor-item img { transition: none; animation: none; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Responsive Design for Album */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .photo-album-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .album-content h3 {
        font-size: 1.3rem;
    }

    .album-content p {
        font-size: 0.85rem;
    }

    .album-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }

    .photo-album-grid {
        grid-template-columns: 1fr;
    }

    .album-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ========================= Footer ========================= */
.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================= Responsive Design ========================= */
@media (max-width: 1024px) {
    .slide-title {
        font-size: 3.5rem;
    }

    .slide-subtitle {
        font-size: 1.1rem;
    }

    .slide-content {
        padding: 0 4rem;
        gap: 2rem;
    }

    .visual-element {
        width: 400px;
        height: 400px;
        font-size: 140px;
    }

    .about h2,
    .contact h2 {
        font-size: 2.8rem;
    }

    .slider-nav {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .prev-btn {
        left: 2rem;
    }

    .next-btn {
        right: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-slider {
        margin-top: 60px;
    }

    .slide-bg-video iframe {
        transform: scale(3.5) !important;
    }

    .slide-content {
        flex-direction: column;
        justify-content: center;
        padding: 3rem 2rem;
        gap: 2rem;
    }

    .content-box {
        text-align: center;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .visual-element {
        width: 320px;
        height: 320px;
        font-size: 100px;
    }

    .slider-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .prev-btn {
        left: 1.5rem;
    }

    .next-btn {
        right: 1.5rem;
    }

    .about h2,
    .contact h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .features-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .slide-counter {
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .slider-indicators {
        bottom: 1.5rem;
        gap: 0.8rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 28px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .slide-content {
        padding: 2rem 1.5rem;
    }

    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .slide-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }

    .visual-element {
        width: 240px;
        height: 240px;
        font-size: 70px;
    }

    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 1rem;
    }

    .next-btn {
        right: 1rem;
    }

    .about h2,
    .contact h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .about h2::after,
    .contact h2::after {
        width: 80px;
    }

    .feature-card,
    .contact-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .slider-indicators {
        bottom: 1rem;
        gap: 0.6rem;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .indicator.active {
        width: 22px;
    }

    .slide-counter {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .about,
    .contact {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 360px) {
    .slide-title {
        font-size: 1.5rem;
    }

    .slide-subtitle {
        font-size: 0.8rem;
    }

    .visual-element {
        width: 180px;
        height: 180px;
        font-size: 50px;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* ========================= Modal/Lightbox Styles ========================= */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.image-modal.closing {
    opacity: 0;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 80px rgba(102, 126, 234, 0.3), inset 0 0 60px rgba(255, 255, 255, 0.05);
    transform: scale(0.8) translateY(30px);
    animation: modalScaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    overflow: auto;
    max-height: calc(100vh - 4rem);
}

.image-modal.closing .modal-content {
    animation: modalScaleOut 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

#modalImage {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: imageZoomIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10001;
    font-weight: 300;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.8) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes modalScaleOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.8) translateY(30px);
        opacity: 0;
    }
}

@keyframes imageZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
        filter: blur(10px);
    }
    to {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* Modal Responsive Design */
@media (max-width: 1024px) {
    .modal-content {
        max-width: 85%;
        padding: 1.5rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    #modalImage {
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .image-modal {
        padding: 1rem;
    }

    .modal-content {
        max-width: 95%;
        padding: 1rem;
        border-radius: 15px;
    }

    .modal-close {
        top: 0.8rem;
        right: 0.8rem;
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }

    #modalImage {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .image-modal {
        padding: 0.5rem;
    }

    .modal-content {
        max-width: 100%;
        padding: 0.8rem;
        border-radius: 12px;
        max-height: calc(100vh - 1rem);
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }

    #modalImage {
        border-radius: 6px;
    }
}

@media (max-width: 360px) {
    .modal-content {
        border-radius: 10px;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
    }
}
/* ========================= Photo Slider (Best Moments) ========================= */
.moments-slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1; /* span full width of parent grid so it's centered */
    justify-self: center;
}

.slider {
    width: 100%;
    max-width: 1100px; /* made larger for a more prominent presentation */
    aspect-ratio: 16 / 10; /* slightly taller for photography */
    border-radius: 18px;
    box-shadow: 0 14px 50px rgba(102, 126, 234, 0.18), 0 30px 90px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg,#eef2fb 0%, #e9edf5 100%); /* subtle non-white background to avoid flash */
    animation: slideInUp 0.8s cubic-bezier(0.2,0.9,0.2,1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(30%) scale(1.06);
    border-radius: 18px;
    transition: opacity 0.9s cubic-bezier(0.2, 0.9, 0.2, 1), 
                transform 0.9s cubic-bezier(0.2, 0.9, 0.2, 1),
                filter 0.9s ease;
    object-fit: cover;
    will-change: transform, opacity, filter;
}

.slider img.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 5;
    filter: none;
}

/* make slider images clearly clickable and add subtle hover */
.slider img {
    cursor: zoom-in;
}

.slider img:hover {
    transform: scale(1.01);
    filter: saturate(1.05) brightness(1.02);
}

.slider img.previous {
    opacity: 0;
    transform: translateX(-30%) scale(0.98);
    filter: blur(1.6px) saturate(0.9) brightness(0.92);
    z-index: 3;
}

.navigation-button {
    cursor: pointer;
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 14px;
    animation: fadeIn 1s ease-out 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.line {
    cursor: pointer;
    height: 10px;
    width: 48px; /* pill shaped */
    background-color: rgba(10,12,35,0.06);
    border-radius: 999px;
    display: inline-block;
    position: relative;
    transition: transform 260ms cubic-bezier(0.2,0.9,0.2,1), box-shadow 260ms ease;
    border: 1px solid rgba(10,12,35,0.06);
    overflow: hidden;
}

.line:hover {
    transform: scale(1.05) translateY(-2px);
}

.line::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 2px;
    height: calc(100% - 4px);
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 999px;
    transition: none;
}

.line.active {
    box-shadow: 0 8px 30px rgba(102,126,234,0.18);
    transform: scale(1.06);
}

/* animated progress fill on the active pill, duration set via --anim-duration */
.line.active::after {
    animation: progressFill var(--anim-duration, 2000ms) linear forwards;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: calc(100% - 8px); }
}

/* pause state for user interactions */
.line.paused::after { animation-play-state: paused !important; }

.nav-button {
    position: absolute;
    top: 50%;
    background: rgba(255,255,255,0.04); /* subtle transparent shell */
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    padding: 14px;
    z-index: 12;
    transition: transform 280ms cubic-bezier(0.2,0.9,0.2,1), box-shadow 280ms ease, background 280ms ease;
    transform: translateY(-50%) translateX(0) scale(1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    opacity: 0.9;
}

/* Icon styling inside button */
.nav-button i {
    font-size: 1.15rem;
    transition: transform 260ms cubic-bezier(0.2,0.9,0.2,1), color 260ms ease;
    display: inline-block;
}

/* Hidden-by-default subtle entrance; reveal when user hovers the slider for a polished interaction */
.moments-slider-container .nav-button {
    opacity: 0.85;
    transform: translateY(-50%) translateX(0) scale(0.98);
}

.moments-slider-container:hover .nav-button {
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
}

.nav-button:hover {
    background: linear-gradient(90deg, rgba(102,126,234,0.14), rgba(118,75,162,0.12));
    box-shadow: 0 10px 40px rgba(102,126,234,0.18), 0 6px 20px rgba(0,0,0,0.12);
}

.nav-button:hover i {
    transform: translateX(-4px) rotate(-8deg);
}

.nav-button.next:hover i {
    transform: translateX(4px) rotate(8deg);
}

.nav-button:active {
    transform: translateY(-50%) scale(0.98);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12) inset;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

@media (max-width: 1024px) {
    .moments-slider-container {
        max-width: 900px;
        margin: 50px auto;
    }

    .slider {
        max-width: 800px;
    }

    .nav-button {
        font-size: 24px;
        padding: 14px;
    }

    .navigation-button {
        gap: 10px;
        margin-top: 25px;
    }

    .line {
        height: 11px;
        width: 11px;
    }
}

@media (max-width: 768px) {
    .moments-slider-container {
        max-width: 95%;
        margin: 40px auto;
    }

    .slider {
        max-width: 100%;
        border-radius: 15px;
    }

    .slider img {
        border-radius: 15px;
    }

    .nav-button {
        font-size: 20px;
        padding: 12px;
    }

    .prev {
        left: 12px;
    }

    .next {
        right: 12px;
    }

    .navigation-button {
        gap: 8px;
        margin-top: 20px;
    }

    .line {
        height: 10px;
        width: 10px;
    }
}

@media (max-width: 480px) {
    .moments-slider-container {
        max-width: 100%;
        margin: 30px 10px;
    }

    .slider {
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15), 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .slider img {
        border-radius: 12px;
    }

    .nav-button {
        font-size: 16px;
        padding: 10px;
    }

    .prev {
        left: 8px;
    }

    .next {
        right: 8px;
    }

    .navigation-button {
        gap: 6px;
        margin-top: 15px;
    }

    .line {
        height: 8px;
        width: 8px;
    }
}