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

:root {
    --red: #c0152a;
    --red-d: #6a0a18;
    --red-l: #f04060;
    --green: #1a8a30;
    --green-d: #084a14;
    --green-l: #4a9e4d;
    --purple: #8020b0;
    --purple-d: #40086a;
    --purple-l: #d080f0;
    --gold: #c9a84c;
    --cream: #f5e8d8;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background: #0a0408;
    color: var(--cream);
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
}

@media (max-width: 600px) {
    nav {
        padding: 0.8rem 1rem;
        grid-template-columns: auto 1fr;
    }

    .nav-logo {
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .nav-center {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
        padding: 0 0.5rem;
        gap: 0.25rem;
    }

    .nav-center::-webkit-scrollbar {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .nav-btn {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        padding: 0.35rem 0.6rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.045'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.35;
    z-index: 999;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 2.8rem;
    background: rgba(6, 2, 5, 0.35);
    backdrop-filter: blur(10px);
    border-bottom: 0.5px solid rgba(201, 168, 76, 0.12);
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gold);
    letter-spacing: 0.18em;
    opacity: 0.9;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* .nav-right {
    
} */

.nav-btn {
    position: relative;
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    color: var(--cream);
    text-decoration: none;
    padding: 0.45rem 1.2rem;
    border: 0.5px solid rgba(201, 168, 76, 0.4);
    background: rgba(201, 168, 76, 0.04);
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(192, 21, 42, 0.18), rgba(128, 32, 176, 0.18));
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-btn:hover {
    border-color: rgba(201, 168, 76, 0.9);
    color: var(--gold);
}

.nav-btn:hover::before {
    opacity: 1;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-mosaic {
    position: absolute;
    inset: -80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    animation: driftDiagonal 22s linear infinite;
    will-change: transform;
}

@keyframes driftDiagonal {
    0% {
        transform: translate(0px, 0px);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

.bg-tile {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(4px) saturate(1.15);
    opacity: 0.92;
}

.t1 {
    background-image: url('pic/1.jpg');
}

.t2 {
    background-image: url('pic/2.jpg');
}

.t3 {
    background-image: url('pic/3.jpg');
}

.t4 {
    background-image: url('pic/4.jpg');
}

.t5 {
    background-image: url('pic/5.jpg');
}

.t6 {
    background-image: url('pic/6.jpg');
}

.t7 {
    background-image: url('pic/7.jpg');
}

.t8 {
    background-image: url('pic/8.jpg');
}

.t9 {
    background-image: url('pic/9.jpg');
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(192, 21, 42, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(128, 32, 176, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(26, 138, 48, 0.15) 0%, transparent 45%),
        rgba(8, 3, 6, 0.15);
    z-index: 1;
}

.hero-slash {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(192, 21, 42, 0.10) 0%,
            transparent 35%,
            transparent 55%,
            rgba(128, 32, 176, 0.12) 75%,
            rgba(26, 138, 48, 0.08) 100%);
    z-index: 2;
}


.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 720px;
    padding: 2rem 2.5rem;
    animation: heroReveal 1.8s ease both;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: heroReveal 1.8s 0.3s ease both;
}

.hero-title {
    font-weight: 300;
    font-style: italic;
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    line-height: 1.08;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 1.6rem;
    animation: heroReveal 1.8s 0.5s ease both;
}

.hero-sub {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    line-height: 1.85;
    color: rgba(245, 232, 216, 0.78);
    letter-spacing: 0.06em;
    margin-bottom: 2.6rem;
    animation: heroReveal 1.8s 0.7s ease both;
}


.hero-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.6), transparent);
    margin: 2rem auto;
    animation: heroReveal 1.8s 0.6s ease both;
}

.hero-flag {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 0.6rem;
    width: 90px;
    animation: heroReveal 1.8s 0.8s ease both;
}

.flag-bar {
    flex: 1;
    height: 22px;
}

.f1 {
    background: var(--red);
    box-shadow: 0 0 10px rgba(192, 21, 42, 0.5);
}

.f2 {
    background: var(--green);
    box-shadow: 0 0 10px rgba(26, 138, 48, 0.5);
}

.f3 {
    background: var(--purple);
    box-shadow: 0 0 10px rgba(128, 32, 176, 0.5);
}

.flag-label {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: rgba(245, 232, 216, 0.5);
    text-align: center;
    margin-bottom: 2rem;
    animation: heroReveal 1.8s 0.9s ease both;
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInDelay 2.5s 1.8s ease forwards;
}

@keyframes fadeInDelay {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.5;
    }
}

.scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    font-style: italic;
    color: var(--gold);
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(0.6);
        opacity: 0.9;
    }
}

.section-intro {
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, #0a0408 0%, #0d060a 100%);
    padding: 5rem 2.5rem;
    text-align: center;
}

.section-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.35), transparent);
}

.section-tag {
    font-size: 0.72rem;
    letter-spacing: 0.45em;
    color: var(--gold);
    text-transform: uppercase;
    font-style: italic;
    opacity: 0.75;
    margin-bottom: 1.5rem;
}

.section-body {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 2;
    color: rgba(245, 232, 216, 0.7);
    letter-spacing: 0.04em;
}

.tri-stripe {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 2.5rem auto 0;
    width: 90px;
}

.tri-stripe div {
    flex: 1;
    height: 3px;
}

.tri-stripe .s1 {
    background: var(--red);
}

.tri-stripe .s2 {
    background: var(--green);
}

.tri-stripe .s3 {
    background: var(--purple);
}
