/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html, body {
    height: 100%;
}

body {
    color: #333;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/Account Panel Login Final.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: #000;
    padding: 20px 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Social Links */
.social-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-shrink: 0;
}

.social-links li a img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border: none;
    background: none;
    transition: transform 0.3s ease;
}

.social-links li a:hover img {
    transform: scale(1.2);
}

/* Countdown Wrapper (centered between socials and nav) */
.countdown-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFD700;
    z-index: 500;
}

.grand-opening-text {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 0 0 5px #FFD700;
}

#countdown {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 4px;
    font-weight: bold;
    font-size: 0.95rem;
    background: rgba(17,17,17,0.85);
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(255,215,0,0.7);
}

#countdown span {
    min-width: 28px;
    text-align: center;
}

/* Main nav links (right) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.nav-links li a {
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    transition: 0.3s;
    border: 2px solid #FFD700;
    background-color: #111;
    color: #FFD700;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: #FFD700;
    color: #111;
}

/* =============================
   HAMBURGER MENU
   ============================= */
.hamburger-menu {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
    z-index: 1002;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #FFD700;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-content {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 260px;
    background: rgba(17,17,17,0.95);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1003;
    box-shadow: -4px 0 15px rgba(0,0,0,0.6);
    border-left: 2px solid #FFD700;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hamburger-menu.active .menu-content {
    transform: translateX(0);
}

.menu-content li {
    list-style: none;
}

.menu-content li a {
    display: block;
    padding: 15px 25px;
    color: #FFD700;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    transition: background 0.3s, color 0.3s, padding-left 0.3s;
}

.menu-content li a:hover {
    background-color: #FFD700;
    color: #111;
    padding-left: 35px;
}

.hamburger-menu.active .menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .menu-btn span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-title {
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFD700;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 10px;
}

/* Hide mobile-only links on desktop */
.mobile-only {
    display: none;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 90px;
    width: 100%;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: none;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    background-color: #fff;
    color: #FFD700;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: #FFD700;
    color: #fff;
}

/* Subpage Hero */
body.subpage .hero {
    min-height: auto;
    padding-top: 40px;
}

body.subpage .hero::before {
    display: none;
}

/* Gallery Section */
.gallery h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Class Paths Gallery */
.gallery-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.image-caption {
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFD700;
    font-size: 1.1rem;
}

.image-container img {
    max-width: 250px;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
}

/* Boss Jewels Gallery */
.boss-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.boss-gallery .boss-item {
    text-align: center;
    background-color: #111;
    border-radius: 8px;
    padding: 10px;
}

.boss-gallery .image-container img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lightbox-overlay.show {
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    object-fit: contain;
    cursor: zoom-out;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.lightbox-overlay.show img {
    transform: scale(1);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    margin-top: 50px;
}

footer a {
    color: #FFD700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFD700;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease;
    z-index: 2000;
}

#backToTop:hover {
    background-color: #000;
    color: #FFD700;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .countdown-wrapper {
        position: static;
        transform: none;
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger-menu {
        margin-left: 0;
    }
    .hero {
        padding-top: 100px;
    }
    .mobile-only {
        display: block;
    }
    .social-links {
        justify-content: center;
        width: 100%;
    }
    .image-container img {
        max-width: 200px;
    }
    .boss-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hamburger-menu {
        margin-left: 0;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .image-container img {
        max-width: 160px;
    }
    .boss-gallery {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
        padding: 10px;
    }
    footer {
        padding: 15px;
    }
}
