/* ================================================
   Valxyria — Dark Mode Minimalist (Apple-inspired)
   ================================================ */

/* --- Reset & Base --- */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI',
        Roboto, Helvetica, Arial, sans-serif;
    background-color: #000000;
    color: #f5f5f7;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* --- Layout --- */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
}

.header__logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f5f5f7;
    transition: opacity 0.2s ease;
}

.header__logo:hover {
    opacity: 0.8;
}

/* Navigation */

.header__nav-list {
    display: flex;
    gap: 36px;
}

.header__nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(245, 245, 247, 0.7);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.header__nav-link:hover {
    color: #f5f5f7;
}

/* Hamburger Toggle */

.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
}

.header__menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: #f5f5f7;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__menu-toggle--active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.header__menu-toggle--active span:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle--active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Hero --- */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #f5f5f7;
}

.hero__subtitle {
    margin-top: 20px;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 400;
    color: rgba(245, 245, 247, 0.5);
    letter-spacing: 0.01em;
}

/* --- Sections --- */

.section {
    padding: 120px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    color: #f5f5f7;
}

.section__text {
    max-width: 640px;
    font-size: 1.125rem;
    color: rgba(245, 245, 247, 0.6);
    line-height: 1.7;
}

/* --- About --- */

.about {
    display: flex;
    align-items: center;
    gap: 64px;
}

.about__photo-wrapper {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.about__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about__content {
    flex: 1;
    min-width: 0;
}

/* --- Projects Grid --- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 32px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

.project-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #f5f5f7;
}

.project-card__description {
    font-size: 0.9375rem;
    color: rgba(245, 245, 247, 0.5);
    line-height: 1.6;
}

/* --- Store Grid --- */

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.store-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.store-card:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

.store-card__image {
    width: 100%;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.06);
}

.store-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 24px 24px 8px;
    color: #f5f5f7;
}

.store-card__price {
    font-size: 0.9375rem;
    font-weight: 400;
    padding: 0 24px 24px;
    color: rgba(245, 245, 247, 0.5);
}

/* --- Footer --- */

.footer {
    padding: 48px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer__section {
    min-width: 0;
}

.footer__heading {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f5f5f7;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    font-size: 0.8125rem;
    color: rgba(245, 245, 247, 0.5);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.footer__link:hover {
    color: #f5f5f7;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}

.footer__text {
    font-size: 0.75rem;
    color: rgba(245, 245, 247, 0.3);
    letter-spacing: 0.01em;
}

/* --- Cookie Consent Banner --- */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    background-color: rgba(28, 28, 30, 0.97);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-banner__text {
    flex: 1;
    font-size: 0.8125rem;
    color: rgba(245, 245, 247, 0.65);
    line-height: 1.6;
}

.cookie-banner__link {
    color: rgba(245, 245, 247, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.cookie-banner__link:hover {
    color: #f5f5f7;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 10px 24px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.cookie-banner__btn:hover {
    opacity: 0.85;
}

.cookie-banner__btn:active {
    transform: scale(0.97);
}

.cookie-banner__btn--accept {
    color: #000000;
    background-color: #f5f5f7;
}

.cookie-banner__btn--reject {
    color: #f5f5f7;
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Legal Pages --- */

.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    line-height: 1.75;
}

.legal__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f5f5f7;
    margin-bottom: 12px;
}

.legal__updated {
    font-size: 0.875rem;
    color: rgba(245, 245, 247, 0.35);
    margin-bottom: 56px;
}

.legal__section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #f5f5f7;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.legal__text {
    font-size: 1rem;
    color: rgba(245, 245, 247, 0.6);
    margin-bottom: 16px;
    line-height: 1.75;
}

.legal__list {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal__list li {
    font-size: 1rem;
    color: rgba(245, 245, 247, 0.6);
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal__link {
    color: rgba(245, 245, 247, 0.8);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.legal__link:hover {
    color: #f5f5f7;
}

.legal__table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.legal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 600px;
}

.legal__table th,
.legal__table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(245, 245, 247, 0.6);
    vertical-align: top;
}

.legal__table th {
    font-weight: 600;
    color: #f5f5f7;
    white-space: nowrap;
}

.legal__back {
    display: inline-block;
    margin-top: 48px;
    font-size: 0.9375rem;
    color: rgba(245, 245, 247, 0.5);
    transition: color 0.2s ease;
}

.legal__back:hover {
    color: #f5f5f7;
}

.legal__back::before {
    content: "← ";
}

/* Footer compact variant for legal pages */

.footer--compact {
    padding: 20px 0;
    text-align: center;
}

.footer--compact .footer__legal-links {
    font-size: 0.75rem;
    color: rgba(245, 245, 247, 0.3);
}

.footer--compact .footer__legal-links a {
    color: rgba(245, 245, 247, 0.4);
    transition: color 0.2s ease;
}

.footer--compact .footer__legal-links a:hover {
    color: rgba(245, 245, 247, 0.7);
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .header__menu-toggle {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }

    .header__nav--open {
        max-height: 320px;
        padding: 24px 0;
    }

    .header__nav-list {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .header__nav-link {
        font-size: 1rem;
    }

    .hero {
        min-height: 80vh;
        padding: 100px 24px 60px;
    }

    .section {
        padding: 80px 0;
    }

    .section__title {
        margin-bottom: 32px;
    }

    .projects-grid,
    .store-grid {
        grid-template-columns: 1fr;
    }

    .about {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .about__photo-wrapper {
        width: 180px;
        height: 180px;
    }

    .footer__container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: center;
    }

    .legal {
        padding: 100px 24px 60px;
    }
}
