* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: white;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-weight: 400;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

/* Fixed Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bgimage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 56px;
    z-index: 100;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header.scrolled {
    padding: 12px 56px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: start;
}

.header-logo-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-logo-link:hover {
    transform: scale(1.05);
}

.header-logo {
    height: 60px;
    width: auto;
    display: block;
    max-width: none;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.header.scrolled .header-logo {
    height: 60px;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.header-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.98);
    text-transform: none;
}

.header-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.25px;
}

.header-nav {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    justify-self: end;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
}

.menu-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

/* Cart Toggle Button */
.cart-toggle {
    background: linear-gradient(135deg, rgba(122, 31, 60, 0.35), rgba(176, 91, 96, 0.35));
    border: 1px solid rgba(122, 31, 60, 0.35);
    border-radius: 12px;
    padding: 12px 18px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(122, 31, 60, 0.35);
    margin-left: auto;
    justify-self: end;
}

.cart-toggle:hover {
    background: linear-gradient(135deg, rgba(122, 31, 60, 0.5), rgba(176, 91, 96, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 31, 60, 0.45);
    border-color: rgba(176, 91, 96, 0.6);
}

.cart-toggle:active {
    transform: translateY(0);
}

.cart-count {
    background: linear-gradient(135deg, #7A1F3C, #B05B60);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    position: absolute;
    top: -6px;
    right: -6px;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 4px;
    position: relative;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #7A1F3C, #B05B60);
    transition: transform 0.25s ease;
    transform: scaleX(0);
    transform-origin: left;
    border-radius: 2px;
}

.nav-link:hover {
    color: white;
    text-shadow: 0 0 12px rgba(122, 31, 60, 0.35);
}

.nav-link:hover::before {
    transform: scaleX(1);
}

.nav-link.active {
    color: white;
    font-weight: 700;
    text-shadow: 0 0 14px rgba(122, 31, 60, 0.45);
}

.nav-link.active::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #7A1F3C, #B05B60);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 80px 80px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}


.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.hero-content > * {
    animation-delay: 0.2s;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title-prefix {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.hero-title-main {
    font-family: 'Poppins', sans-serif;
    font-size: 5.5rem;
    font-weight: 700;
    color: #7A1F3C;
    margin-top: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(122, 31, 60, 0.25);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 550px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    letter-spacing: 0.01em;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: scale(1.1);
}

.btn-primary {
    background: #7A1F3C;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(122, 31, 60, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(122, 31, 60, 0.35);
    background: #8A2F4C;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-discord {
    background-color: #5865F2;
    color: white;
}

.btn-discord:hover {
    background-color: #4752C4;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.btn-discord:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-download {
    background-color: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-download:hover {
    background-color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-download:active {
    transform: translateY(-1px) scale(0.98);
}

.btn svg {
    flex-shrink: 0;
}

.hero-logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 40px;
    z-index: 10;
    animation: slideInRight 1s ease-out 0.3s both;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    width: auto;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

/* Promotional Section */
.promo-section {
    position: relative;
    padding: 60px 40px;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.promo-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px;
    max-width: 1100px;
    width: 100%;
    display: flex;
    gap: 35px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-card.visible {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.promo-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.promo-content {
    flex: 1;
}

.promo-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.promo-description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.01em;
    font-weight: 400;
}

.promo-image-container {
    flex-shrink: 0;
}

.promo-image {
    width: 280px;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    position: relative;
    padding: 40px 80px;
    z-index: 10;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-separator-inline {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero {
        padding: 120px 60px 80px;
    }
    
    .hero-title-prefix {
        font-size: 2.5rem;
    }
    
    .hero-title-main {
        font-size: 4.5rem;
    }
    
    .hero-logo {
        max-height: 400px;
    }
}

@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 40px 60px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-logo-container {
        padding-left: 0;
    }
    
    .hero-logo {
        max-height: 300px;
    }
    
    .promo-card {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-image {
        width: 100%;
        max-width: 400px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    body::before,
    body::after {
        position: absolute;
        background-attachment: scroll;
        background-position: center top;
    }

    .header {
        padding: 12px 18px;
        gap: 10px;
        grid-template-columns: auto 1fr auto;
    }

    .header-brand {
        width: auto;
        justify-content: flex-start;
    }

    .header-brand-text {
        text-align: left;
    }
    
    .header-logo {
        height: 56px;
    }

    .header.scrolled {
        padding: 12px 18px;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
    }

    .header.scrolled .header-logo {
        height: 56px;
    }

    .header-nav {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        gap: 18px;
        padding: 120px 24px 24px;
        background: rgba(10, 10, 10, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 120;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .header-nav.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .menu-close {
        display: inline-flex;
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .cart-toggle {
        justify-self: end;
    }

    .nav-link {
        padding: 6px 2px;
        font-size: 0.78rem;
    }

    .cart-toggle {
        padding: 8px 12px;
    }
    
    .hero {
        padding: 130px 20px 40px;
    }
    
    .hero-title-prefix {
        font-size: 2rem;
    }
    
    .hero-title-main {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .promo-section {
        padding: 40px 20px;
    }
    
    .promo-card {
        padding: 30px 20px;
    }
    
    .promo-title {
        font-size: 1.6rem;
    }
    
    .promo-description {
        font-size: 0.95rem;
    }

    .promo-card {
        padding: 32px 24px;
        flex-direction: column;
        gap: 24px;
    }
    
    .footer {
        padding: 30px 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-separator-inline {
        display: none;
    }
}
