:root {
    --gold: #E6D39E;
    --black: #141414;
    --red: #C8102E;
    --white: #FFFFFF;
    --dark-gray: #1a1a1a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background-color: var(--black);
    color: var(--gold);
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(230, 211, 158, 0.1);
}

.header__container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.header__logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 1px;
    z-index: 1001;
}

.header__logo:hover {
    color: var(--red);
    text-shadow: 0 0 15px rgba(200, 16, 46, 0.5);
    transform: scale(1.05);
}

.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--gold);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.header__menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.header__menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.header__menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.header__nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.header__nav-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red);
    transition: var(--transition);
}

.header__nav-link:hover {
    color: var(--red);
}

.header__nav-link:hover::after {
    width: 100%;
}

.main {
    min-height: 100vh;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/casino_brand.png') no-repeat center center/cover;
    background-color: var(--black);
    z-index: 0;
}

.hero__background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.4) 0%, rgba(20, 20, 20, 0.8) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 30px rgba(230, 211, 158, 0.3);
    line-height: 1.2;
    letter-spacing: 2px;
}

.hero__subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--white);
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
}

.hero__social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 50%, var(--black) 100%);
}

.section__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section__intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.section__subtitle {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--white);
    font-style: italic;
    opacity: 0.95;
}

.about__content,
.ethos__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about__text p,
.ethos__text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--white);
}

.ethos__title-group {
    margin-bottom: 2rem;
}

.ethos__list {
    list-style-position: outside;
    padding-left: 2rem;
    margin: 2rem 0;
}

.ethos__list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.ethos__synonyms {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(230, 211, 158, 0.2);
    font-size: 1.1rem;
}

.about__image img,
.ethos__image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(230, 211, 158, 0.2);
    transition: var(--transition);
}

.about__image img:hover,
.ethos__image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(200, 16, 46, 0.4);
}

.nfts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.nfts__card {
    background: linear-gradient(145deg, var(--dark-gray) 0%, var(--black) 100%);
    padding: 2rem;
    border: 2px solid var(--gold);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nfts__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 211, 158, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.nfts__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(200, 16, 46, 0.4), 0 0 30px rgba(230, 211, 158, 0.2);
    border-color: var(--red);
}

.nfts__card:hover::before {
    opacity: 1;
}

.nfts__link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nfts__card img {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.nfts__card:hover img {
    transform: scale(1.1);
}

.nfts__name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0;
    transition: var(--transition);
}

.nfts__card:hover .nfts__name {
    color: var(--red);
}

.collections__gallery {
    margin-top: 4rem;
    text-align: center;
}

.btn {
    background: linear-gradient(135deg, var(--gold) 0%, #d4c189 100%);
    color: var(--black);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230, 211, 158, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, var(--red) 0%, #a00d24 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.4);
}

.btn--large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.btn--social {
    padding: 0.875rem 2rem;
}

.memes__carousel {
    max-width: 100%;
    margin: 3rem auto;
    border: 3px solid var(--gold);
    border-radius: 16px;
    overflow: hidden;
    background: var(--dark-gray);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(230, 211, 158, 0.1);
    padding: 2rem 0;
}

.memes__wrapper {
    display: flex;
    gap: 2rem;
    animation: autoSlide 120s linear infinite;
    will-change: transform;
    padding: 0 2rem;
}

.memes__wrapper img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 2px solid rgba(230, 211, 158, 0.3);
    transition: var(--transition);
}

.memes__wrapper img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--red);
    border-color: var(--red);
}

@keyframes autoSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-3620px);
    }
}

.games__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.games__item {
    text-align: center;
    background: linear-gradient(145deg, var(--dark-gray) 0%, var(--black) 100%);
    padding: 2.5rem;
    border: 2px solid var(--gold);
    border-radius: 16px;
    transition: var(--transition);
}

.games__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(200, 16, 46, 0.4);
    border-color: var(--red);
}

.games__link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

.games__item img {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(230, 211, 158, 0.3);
    transition: var(--transition);
}

.games__item:hover img {
    transform: scale(1.05);
    border-color: var(--red);
}

.games__name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin: 1rem 0;
}

.games__description {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.games__button {
    margin-top: 1rem;
}

.faq {
    background: var(--black);
}

.faq__list {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq__item {
    margin: 1.5rem 0;
    border: 2px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark-gray);
    transition: var(--transition);
}

.faq__item:hover {
    border-color: var(--red);
    box-shadow: 0 5px 20px rgba(200, 16, 46, 0.2);
}

.faq__question {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gold);
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(230, 211, 158, 0.1) 0%, transparent 100%);
    transition: var(--transition);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    transition: var(--transition);
    color: var(--red);
}

.faq__item[open] .faq__question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq__question:hover {
    color: var(--red);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1) 0%, transparent 100%);
}

.faq__answer {
    padding: 1.5rem;
    color: var(--white);
    line-height: 1.8;
    font-size: 1.05rem;
    border-top: 1px solid rgba(230, 211, 158, 0.2);
}

.footer {
    background: linear-gradient(180deg, var(--black) 0%, #0a0a0a 100%);
    padding: 3rem 0 2rem;
    text-align: center;
    border-top: 2px solid rgba(230, 211, 158, 0.2);
    margin-top: 4rem;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer__text {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer__social {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer__social-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.footer__social-link:hover {
    color: var(--red);
    text-shadow: 0 0 10px rgba(200, 16, 46, 0.5);
}

.footer__social-divider {
    color: rgba(230, 211, 158, 0.4);
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .header__container {
        padding: 0 1.5rem;
    }

    .section__container {
        padding: 0 1.5rem;
    }

    .about__content,
    .ethos__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ethos__content {
        direction: ltr;
    }

    .ethos__image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header__menu-toggle {
        display: block;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(10px);
        transition: left 0.3s ease-in-out;
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header__nav.active {
        left: 0;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .header__nav-link {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .hero__content {
        padding: 2rem 1rem;
    }

    .hero__social {
        flex-direction: column;
        align-items: stretch;
    }

    .btn--social {
        width: 100%;
    }

    .section {
        padding: 4rem 0;
    }

    .nfts__grid,
    .games__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .memes__wrapper img {
        width: 150px;
        height: 210px;
    }

    @keyframes autoSlide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-2720px);
        }
    }

    .about__text p,
    .ethos__text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header__logo {
        font-size: 1.5rem;
    }

    .header__container {
        padding: 0 1rem;
    }

    .section__container {
        padding: 0 1rem;
    }

    .hero__content {
        padding: 1.5rem 0.5rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn--large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
