:root {
    --primary: #003FCA;
    --primary-container: rgba(208, 220, 235, 0.5);
    --on-primary: #ffffff;
    --primary-container: rgba(5, 25, 49, 0.5);
    --on-surface: #3a3a3a;
    --on-surface-variant: #575757;
    --background: #ffffff;
    --surface: #ffffff;
    --surface-variant: #EDEDED;
    --secondary: #000000;
    --on-secondary: #b9b9b9;
}


/* ===========================
   NAVBAR / HEADER
   =========================== */
/* Header Styles */
.header {
    background: var(--on-primary);
    backdrop-filter: blur(13.9px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-out;
}

.header-container {
    max-width: 1440px !important;
}



/* Header slide up animation */
.header.slide-up {
    transform: translateY(-100%);
}

/* Header slide down animation */
.header.slide-down {
    transform: translateY(0);
}

.logo-img {
    height: 43.651px;
    width: 90px;
}

.header-nav-wrapper {
    gap: 32px;
}

.nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    list-style: none;
    margin: 0 !important;
    padding: 0;
}

.nav-menu li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu a, .header button {
    font-family: 'Unbounded', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400;
    color: var(--on-surface) !important;
    text-decoration: none;
    line-height: 26px;
}

.header button {color: var(--on-primary) !important;}

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

/* Active menu item styling */
.nav-menu a.active {
    color: var(--primary) !important;
}

.mobile-nav-menu a.active {
    color: var(--primary) !important;
    font-weight: 600;
}

.nav-dot {
    width: 6px;
    height: 6px;
}

.btn-register {
    background: var(--primary);
    color: var(--on-primary);
    padding: 16px 24px !important;
    border-radius: 1000px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    font-size: 16px !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #0060ca;
    transform: translateY(-2px);
    box-shadow: 0 -4px 12px rgba(0, 112, 234, 0.3);
}

/* Mega Menu Styles */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 40px 0;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
    height: 100vh;   
    background: url(../images/bg-left-menu.png), linear-gradient(178deg, #0244CD 1.33%, #050d62 33.74%, #000750 84.43%);
    background-repeat: no-repeat;
    background-position: left bottom;
    overflow: hidden;
}

.mega-menu-container {
    max-width: 1440px !important;
    margin: 0 auto;
}

.mega-menu p {
    font-size: 16px !important;
    color: #8b91c9;
}

.mega-menu.d-none {
    display: none !important;
}

.mega-menu-content {
    padding: 0 20px;
}

.mega-menu-title {
    font-size: 76px;
    font-weight: 800;
    line-height: 86px;
    color: var(--on-primary);
    margin-bottom: 15px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-height: max-content;
    z-index: 9;
    transition: all 0.6s ease;
}

.event-menu-item {
    max-height: 20px;
}

.mega-menu-item {
    font-size: 18px !important;
    font-weight: 600;
    color: var(--on-primary) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0px;    
}

.mega-menu-item:hover {
    color: var(--primary);
    text-decoration: none;
    margin-left: 5px;
}

.events-nav-link {
    cursor: pointer;
    transition: color 0.3s ease;
}

.events-nav-link.active {
    color: #6366f1;
}

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

/* Mega Menu Image Preview */
.mega-menu-image-preview {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    overflow: hidden;
    box-shadow:  18px 35px 18px 0px rgb(0 0 0 / 30%);
    max-width: 480px;
    width: 480px;
    height: auto;
    border-radius: 3px;
}

.mega-menu-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mega-menu-image-preview.show {
    opacity: 1;
}

/* Responsive Mega Menu */
@media (max-width: 1024px) {
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }
        .mega-menu-image-column img {
        display: none;
    }

    .mega-menu-column {
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mega-menu-item {
        font-size: 18px;
    }

    .mega-menu-title {
        font-size: 40px;
        line-height: 48px;
    }

    .mega-menu {
        padding: 20px 0;
        height: 110vh !important;
        position: fixed;
    }
    

    .mega-menu-content {
        padding: 0 15px;
    }

    .mega-menu-image-preview {
        display: none !important;
    }

    .mega-menu-column {
        gap: 40px;
    }

    .social-media-icon-mobile {
        position: absolute;
        bottom: 25%;
        z-index: 999;
        left: 5%;
        }
}


/* ===========================
   GALLERY STYLES (from gallery.css)
   =========================== */

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--on-surface);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background: var(--surface);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav.active {
    max-height: max-content;
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu li:last-child {
    margin-bottom: 0;
}

.mobile-nav-menu a {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--on-surface);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: color 0.3s ease;
}

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

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

    .hamburger-menu {
        display: flex;
    }

    .mobile-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }
}

/* Scroll behavior - add top padding to body when header is fixed */
body.header-fixed {
    padding-top: 0;
}

/* MEga Menu Enhancement */
.glare {
    position: absolute;
    top: 0;
    left: 0;
    z-index:0;
    width: 100%;
}

.smoke {
    position: absolute;
    bottom: -50px;
    left: 400px;
    z-index: 3;
}

.mega-menu-image {
    position: absolute;
    left: 0px;
    top: -180px;
    filter: drop-shadow(2px 4px 6px rgba(0, 3, 175, 0.336));
    opacity: .8;
}

.mega-menu-mic {
    position: relative;
    z-index: 1;
    left: 60px;
    bottom: -200px;
}

.glow {
    position: absolute;
    right: 0;
    bottom: 0;
}

.diamond-big {
    position: absolute;
    left: 0px;
    top: 0;
    animation: spin 10s linear infinite;
}

.diamond-small {
    position: absolute;
    right: -150px;
    top: 0;
    animation: spin 10s linear infinite;
}

.star-big {
    position: absolute;
    right: 0;
    bottom: 0px;
    z-index: 1;
    animation: spin 10s linear infinite;
}

.star-small {
    position: absolute;
    bottom: 0px;
    left: 0;
    animation: spin 10s linear infinite;
}

.rotate {
  animation: spin 10s linear infinite;
}

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

/* Header Avatar Styles */
.header-avatar-wrapper {
    position: relative;
    margin-left: 15px;
}

.header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a1628 0%, #1a237e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Unbounded', sans-serif;
}

.header-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 63, 202, 0.3);
}

.header-avatar-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    overflow: visible;
}

.header-avatar-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-avatar-dropdown a.dropdown-item,
.header-avatar-dropdown button.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--on-surface) !important;
    text-decoration: none;
    font-size: 16px !important;
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 400;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    line-height: 26px;
}

.header-avatar-dropdown a.dropdown-item:hover,
.header-avatar-dropdown button.dropdown-item:hover {
    background-color: var(--surface-variant);
    color: var(--primary) !important;
}

.header-avatar-dropdown .dropdown-item-form {
    margin: 0;
    display: block;
}

.header-avatar-dropdown button.logout-btn {
    color: #dc3545 !important;
    width: 100%;
    display: block;
}

.header-avatar-dropdown button.logout-btn:hover {
    background-color: #fff5f5;
    color: #dc3545 !important;
}

