:root {
    --primary-blue: #1c5068;
    --secondary-blue: #2a7da1;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --bg-light: #f9fbff;
    --accent-gold: #c9a66b;
    --font-serif: "EB Garamond", serif;
    --font-jp-serif: "Noto Serif JP", serif;
    --font-sans: "Poppins", sans-serif;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

h1,
h2,
h3,
.serif-title {
    font-family: var(--font-serif);
    font-weight: 400;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo-img {
    height: 45px;
    /* Adjust based on actual asset proportions */
}

/* Hamburger Menu */
.hamburger-menu {
    width: 30px;
    height: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 100%;
    height: 1px;
    background-color: var(--primary-blue);
    transition: var(--transition);
}

.hamburger-menu.active .bar:first-child {
    transform: translateY(9.5px) rotate(45deg);
    background-color: white;
}

.hamburger-menu.active .bar:last-child {
    transform: translateY(-9.5px) rotate(-45deg);
    background-color: white;
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.nav-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue);
    background-image: url('images/hero_bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.95;
}

.nav-content {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list {
    list-style: none;
    text-align: center;
}

.nav-item {
    display: block;
    font-size: 2.5rem;
    color: white;
    font-family: var(--font-serif);
    margin: 15px 0;
    transform: translateY(30px);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-overlay.active .nav-item {
    transform: translateY(0);
    opacity: 1;
}

.nav-overlay.active .nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-overlay.active .nav-item:nth-child(2) {
    transition-delay: 0.15s;
}

.nav-overlay.active .nav-item:nth-child(3) {
    transition-delay: 0.2s;
}

.nav-overlay.active .nav-item:nth-child(4) {
    transition-delay: 0.25s;
}

.nav-overlay.active .nav-item:nth-child(5) {
    transition-delay: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-blue);
}

.hero-bg-abstract {
    background-image: url('images/hero_bg.webp');
    background-size: cover;
    background-position: center;
}

.hero-logo-container {
    text-align: center;
    color: white;
    z-index: 10;
}

.hero-logo-img {
    max-height: 18vh;
    filter: brightness(0) invert(1);
}

.hero-footer-text {
    position: absolute;
    bottom: 40px;
    font-family: var(--font-jp-serif);
    font-size: 1rem;
    color: white;
    letter-spacing: 0.3em;
    opacity: 0.9;
    z-index: 10;
}

@media (max-width: 768px) {
    .hero-footer-text {
        font-size: 0.85rem;
        letter-spacing: 0.2em;
        bottom: 30px;
    }
}

/* Content Sections */
.section {
    padding: 120px 0;
}

/* Concept Section - Blue Art Background */
.concept-section {
    position: relative;
    background-image: url('images/hero_bg.webp');
    background-size: cover;
    background-position: center;
    color: white;
}

.concept-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(28, 80, 104, 0.5), rgba(28, 80, 104, 0.7));
    z-index: 0;
}

.concept-content {
    position: relative;
    z-index: 1;
}

.concept-section .serif-title {
    color: white;
}

.concept-section .main-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.poetic-text {
    font-family: var(--font-jp-serif);
    font-size: 1.1rem;
    line-height: 2.2;
    margin: 60px auto;
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
    height: 350px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.poetic-text p {
    margin: 0 10px;
}

@media (max-width: 768px) {
    .poetic-text {
        height: 280px;
        font-size: 0.95rem;
        letter-spacing: 0.2em;
    }
}

.serif-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-blue);
}

/* Chef & Profile */
.chef-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 768px) {
    .chef-profile {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.chef-image {
    position: relative;
}

.chef-image::after {
    content: "";
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue);
    z-index: -1;
    opacity: 0.1;
}

/* Buttons - Pill Style */
.btn-blue {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--primary-blue);
    color: white;
    font-family: var(--font-serif);
    font-size: 1rem;
    border-radius: 30px;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

.btn-blue:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(28, 80, 104, 0.3);
}

/* Footer */
.main-footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 80px 0 40px;
    background-image: url('images/hero_bg.webp');
    background-size: cover;
    background-position: bottom;
}

.footer-grid {
    text-align: center;
}

.footer-logo-img {
    height: 40px;
    margin-bottom: 40px;
}

/* Sponsor Section */
.sponsor-section {
    text-align: center;
    margin-bottom: 60px;
}

.hanahaku-banner {
    font-family: var(--font-jp-serif);
    margin-bottom: 30px;
}

.hanahaku-text {
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    display: block;
    color: var(--primary-blue);
}

.hanahaku-year {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.powerfood-logo {
    font-family: var(--font-jp-serif);
    font-size: 1rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.sponsor-badge {
    padding: 8px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--primary-blue);
}

.footer-links a {
    color: var(--primary-blue);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
    color: var(--text-muted);
}

/* Animations */
.appear {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition);
}

.appear.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading */
body.loading-active {
    overflow: hidden;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Parallax */
.parallax-text {
    position: relative;
    transition: transform 0.1s linear;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    mix-blend-mode: difference;
    background-color: transparent;
}

.cursor.active {
    width: 50px;
    height: 50px;
    background-color: white;
    border-color: transparent;
}

@media (hover: none) {
    .cursor {
        display: none;
    }
}