:root {
    --bg-color: #050814;
    --text-color: #f0f0f0;
    --accent-color: #D4AF37; /* Gold */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Shippori Mincho', serif;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 2;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

/* Canvas for Fireworks */
#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

.logo {
    pointer-events: auto;
    font-family: var(--font-heading);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    mix-blend-mode: difference;
}

.menu-btn {
    pointer-events: auto;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    mix-blend-mode: difference;
}

.menu-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.hamburger {
    width: 30px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background: #fff;
    transition: transform 0.3s var(--easing);
}

.menu-btn.active .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-btn.active .hamburger span:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--easing);
}

.menu-overlay.active {
    pointer-events: auto;
    opacity: 1;
}

.menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.nav ul {
    list-style: none;
    text-align: center;
}

.nav li {
    margin: 2rem 0;
    overflow: hidden;
}

.nav a {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    text-decoration: none;
    transform: translateY(100%);
    transition: transform 0.5s var(--easing), color 0.3s;
}

.menu-overlay.active .nav a {
    transform: translateY(0);
}

.menu-overlay.active .nav li:nth-child(1) a { transition-delay: 0.1s; }
.menu-overlay.active .nav li:nth-child(2) a { transition-delay: 0.15s; }
.menu-overlay.active .nav li:nth-child(3) a { transition-delay: 0.2s; }
.menu-overlay.active .nav li:nth-child(4) a { transition-delay: 0.25s; }
.menu-overlay.active .nav li:nth-child(5) a { transition-delay: 0.3s; }

.nav a:hover {
    color: var(--accent-color);
}

.btn-back {
    font-size: 1rem !important;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 2rem;
    border-radius: 2rem;
    margin-top: 2rem;
}

/* Typography Helpers */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.3em;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    opacity: 0.6;
    margin-bottom: 2rem;
}

/* Sections General */
.section {
    position: relative;
    padding: 8rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

/* Hero Section */
.hero.fullscreen {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/images/hero_bg.png');
    background-size: cover;
    background-position: center bottom;
    z-index: -1;
    transform: scale(1.1);
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5,8,20,0.2), rgba(5,8,20,0.8));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: center;
}

.hero-date {
    font-family: var(--font-heading);
    letter-spacing: 0.3em;
    font-size: 1rem;
    margin-bottom: 4vh;
    color: #f7d86a;
    text-shadow: 0 2px 10px rgba(247, 216, 106, 0.45);
}

.hero-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: auto;
    min-height: 50vh;
}

.t-sub {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 1.2rem;
    letter-spacing: 0.8em;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
    text-indent: 0.8em; /* To center with letter-spacing */
}

.t-main {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 6rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    letter-spacing: 0.2em;
    line-height: 1;
}

.hero-subtitle {
    margin-top: 3vh;
    font-family: var(--font-heading);
    letter-spacing: 0.4em;
    font-size: 1rem;
    opacity: 1;
    color: #ffe29a;
    text-shadow: 0 2px 12px rgba(255, 226, 154, 0.45);
    position: relative;
    z-index: 20;
    transform: translateY(-1.1rem);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 20;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateY(-100%);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@media (min-width: 769px) {
    .hero-subtitle {
        transform: translateY(-1.6rem);
    }

    .scroll-indicator {
        bottom: 1rem;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.img-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    aspect-ratio: 1/1; /* Square crop to fix horizontal stretching */
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s var(--easing);
}

.section.is-visible .img-wrapper img {
    transform: scale(1);
}

.about-content {
    padding-left: 0;
}

.about-text {
    font-size: 1.1rem;
    margin-top: 3rem;
    line-height: 2.4;
}

.about-text p {
    margin-bottom: 2rem;
}

/* Gallery Section (Horizontal) */
.gallery {
    padding: 0;
    overflow: hidden;
    height: 100vh;
    background: #080c1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header.center {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-scroller {
    width: 100%;
    overflow-x: hidden; /* Hide scrollbar */
    padding: 0 0 4rem 0;
    white-space: nowrap;
}

.gallery-track {
    display: inline-flex;
    gap: 2rem;
    animation: marquee 40s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.gallery-card {
    width: 40vw;
    height: 50vh;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.5s, transform 0.5s;
}

.gallery-card:hover {
    opacity: 1;
    transform: scale(1.02);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drag-indicator {
    display: none; /* Hide since we are auto-scrolling */
}

/* Info Section */
.info-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.info-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    pointer-events: none;
}

.info-header {
    text-align: center;
    margin-bottom: 3rem;
}

.info-list {
    margin: 0;
    padding: 0;
}

.info-row {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row dt {
    width: 120px;
    color: var(--accent-color);
    font-weight: 700;
}

.info-row dd {
    margin: 0;
    min-width: 0;
}

.info-action {
    text-align: center;
    margin-top: 3rem;
}

.btn-primary {
    background: var(--accent-color);
    color: #050814;
    border: none;
    padding: 1.2rem 4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.5);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--easing);
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 2001;
    background: #0f1429;
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(20px);
    transition: transform 0.4s var(--easing);
    text-align: center;
}

.modal.is-open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-family: var(--font-heading);
    color: var(--accent-color);
}

.dummy-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dummy-form input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    color: #fff;
}

/* Animation Utilities */
.reveal, .reveal-vertical {
    opacity: 0;
    transition: all 1s var(--easing);
}

.reveal { transform: translateY(30px); }
.reveal-vertical { transform: translateX(30px); }

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--easing);
}

.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .fixed-header { padding: 1.5rem; }
    .section-title {
        font-size: 2rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    .hero-title-wrap { height: auto; }
    .t-main { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-content { padding-left: 0; }
    .gallery-card { width: 80vw; height: 40vh; }
    .info-wrapper { padding: 2rem 1.25rem; }
    .info-wrapper::before {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    .info-row { flex-direction: column; gap: 0.5rem; }
    .info-row dt { width: 100%; }
    .info-row dd { width: 100%; }
    .info-action .btn-primary {
        padding: 1rem 1.6rem;
        font-size: 0.9rem;
        letter-spacing: 0.06em;
    }
}
