:root {
    --bg-color: #080808;
    --text-color: #e0e0e0;
    --accent-color: #ff4a00;
    --font-display: 'Teko', sans-serif;
    --font-body: 'Roboto Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
}

/* --- LOADER --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s 1s ease-out;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--text-color);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* --- CURSOR --- */
.cursor-light {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.4s ease, height 0.4s ease, background 0.4s ease;
}

.cursor-light.hover-active {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 74, 0, 0.12) 0%, rgba(255, 255, 255, 0) 50%);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 1000;
    font-family: var(--font-body);
    font-weight: 700;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

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

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 18vw, 16rem);
    line-height: 0.85;
    text-transform: uppercase;
    overflow: hidden;
}

.hero-line {
    display: block;
    transform: translateY(110%);
    opacity: 0;
}

/* --- GENERAL CONTENT --- */
.content-section {
    padding: 10rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0; /* For scroll trigger fade-in */
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--accent-color);
    margin-bottom: 4rem;
    text-align: center;
    line-height: 1;
}

/* --- ETHOS --- */
#ethos .ethos-text {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.7;
    text-align: center;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto;
}

/* --- ATMOSPHERE --- */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), filter 0.3s;
}

.masonry-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* --- MENU --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.menu-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background-color: #1a1a1a;
}

.menu-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s;
}

.menu-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s;
}

.menu-card:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.card-overlay h3 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.card-overlay .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* --- CONTACT --- */
.contact-info {
    text-align: center;
}

.contact-line {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.contact-line a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* --- QUOTES --- */
.quote-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 12rem;
    line-height: 1;
    color: var(--accent-color);
    opacity: 0.2;
}

.quote-text-wrapper {
    position: relative;
    height: 120px;
    overflow: hidden;
}

#quote-text {
    position: absolute;
    width: 100%;
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    font-weight: 400;
}

.quote-controls {
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: 1rem;
}

.quote-controls button {
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.quote-controls button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 2rem;
    }

    nav a {
        margin-left: 1.5rem;
    }

    .content-section {
        padding: 8rem 2rem;
    }

    .masonry-grid {
        column-count: 1;
    }

    .quote-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .quote-mark {
        display: none;
    }

    .quote-controls {
        justify-self: center;
    }
}

@media (pointer: coarse) {
    .cursor-light {
        display: none;
    }
    body {
        cursor: auto;
    }
}