/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Tet Color Palette */
    --tet-red-primary: #D9232E;
    --tet-red-dark: #C41E3A;
    --tet-red-darker: #9B1B2E;
    --gold-primary: #FFD700;
    --gold-dark: #DAA520;
    --gold-darker: #B8860B;

    /* Neutral Colors */
    --white: #FFFFFF;
    --black: #1A1A1A;
    --overlay-dark: rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Shadows */
    --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.4);
    --shadow-red: 0 4px 15px rgba(217, 35, 46, 0.3);
    --shadow-navbar: 0 2px 20px rgba(0, 0, 0, 0.1);

    /* Fonts */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-hero: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--white);
    overflow-x: hidden;
    background: var(--black);
}

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-navbar);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    flex: 0 0 auto;
    z-index: 2;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 1;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-dark));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
    z-index: 2;
}

.auth-logged-in {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== Buttons ===== */
.btn-login,
.btn-logout,
.btn-albums {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-login,
.btn-albums {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--black);
    box-shadow: var(--shadow-gold);
}

.btn-login::before,
.btn-albums::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.btn-login:hover,
.btn-albums:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

.btn-logout {
    background: linear-gradient(135deg, var(--tet-red-primary) 0%, var(--tet-red-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 35, 46, 0.5);
    background: linear-gradient(135deg, var(--tet-red-dark) 0%, var(--tet-red-darker) 100%);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: var(--gold-primary);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://albumse.online/src/tet_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    backdrop-filter: blur(0px);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.title-main {
    font-family: var(--font-hero);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 50%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    letter-spacing: 3px;
    animation: glow 2s ease-in-out infinite alternate;
    text-transform: uppercase;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.title-sub {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.gold-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    border-radius: 3px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scaleX(1);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.1);
    }
}

.tet-symbol {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Call to Action Button */
.btn-cta {
    margin-top: 2rem;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-primary);
    color: var(--black);
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

/* Fireworks Canvas */
#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== Decorative Elements ===== */
.firecracker,
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 5;
}

.firecracker {
    width: 120px;
    height: 300px;
    background: linear-gradient(180deg,
            var(--tet-red-primary) 0%,
            var(--tet-red-dark) 50%,
            var(--gold-primary) 100%);
    border-radius: 10px;
    opacity: 0.15;
    box-shadow: 0 0 30px rgba(217, 35, 46, 0.3);
}

.firecracker-1 {
    top: 10%;
    left: 5%;
    transform: rotate(-15deg);
    animation: sway 4s ease-in-out infinite;
}

.firecracker-2 {
    top: 15%;
    right: 5%;
    transform: rotate(15deg);
    animation: sway 4s ease-in-out infinite reverse;
}

@keyframes sway {

    0%,
    100% {
        transform: rotate(-15deg) translateY(0);
    }

    50% {
        transform: rotate(15deg) translateY(-20px);
    }
}

.sparkle {
    width: 4px;
    height: 4px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-primary);
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.sparkle-3 {
    top: 60%;
    left: 10%;
    animation-delay: 1s;
}

.sparkle-4 {
    top: 70%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--glass-border);
        transform: none;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-auth {
        flex-direction: column;
        width: 100%;
    }

    .auth-logged-in {
        flex-direction: column;
        width: 100%;
    }

    .btn-login,
    .btn-logout,
    .btn-albums,
    .btn-cta {
        width: 100%;
        text-align: center;
    }

    .firecracker {
        width: 60px;
        height: 150px;
        opacity: 0.1;
    }

    .hero {
        background-attachment: scroll;
    }

    .hero-decoration {
        gap: 1rem;
    }

    .gold-line {
        width: 50px;
    }

    .tet-symbol {
        font-size: 2rem;
    }

    .btn-cta {
        margin-top: 2rem;
        padding: 1rem 3rem;
        font-size: 0.9rem;
        font-weight: 800;
        font-family: var(--font-primary);
        color: var(--black);
        background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
        border: none;
        border-radius: 50px;
        cursor: pointer;
        box-shadow: var(--shadow-gold);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo img {
        height: 40px;
    }

    .title-main {
        letter-spacing: 1px;
    }

    .title-sub {
        letter-spacing: 0.5px;
    }

    .hero-decoration {
        gap: 0.5rem;
    }

    .gold-line {
        width: 30px;
    }

    .tet-symbol {
        font-size: 1.5rem;
    }
}

/* Desktop/Mobile Auth Button Visibility */
.nav-auth-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
    z-index: 2;
}

.nav-auth-mobile {
    display: none;
}

@media (max-width: 768px) {
    .nav-auth-desktop {
        display: none !important;
    }

    .nav-auth-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-top: 1rem;
    }
}

/* ===== Dropdown Menu ===== */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu .nav-link {
    display: block;
    padding: 10px 20px;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.dropdown-menu .nav-link:last-child {
    border-bottom: none;
}

.dropdown-menu .nav-link::after {
    display: none;
}

.dropdown-menu .nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
    padding-left: 25px;
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        display: none;
        width: 100%;
        padding-left: 20px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .dropdown-menu .nav-link {
        white-space: normal;
        text-align: center;
    }

    .dropdown-menu .nav-link:hover {
        padding-left: 10px;
    }
}