/* JEMIN NUTRIOUS - Theme: Bottle Green (#0F3D2E), White (#FFFFFF), Gold (#D4AF37) */

:root {
    --color-green: #0F3D2E;
    --color-gold: #D4AF37;
    --color-white: #FFFFFF;
    --color-light-green: #1a5c46;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-green);
    color: var(--color-white);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.text-gold {
    color: var(--color-gold);
}

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

/* Typography Utilities */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-green);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.loading-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-gold);
    font-weight: 700;
    letter-spacing: 4px;
    overflow: hidden;
    display: flex;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: fadeSlideUp 0.8s forwards;
}

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

/* Hero & About Sequence Container */
.hero-about-container {
    position: relative;
    height: 300vh; /* Allow for scrolling */
    margin-bottom: -100vh; /* Creates the overlay effect with the next section */
}

.canvas-wrapper {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 0;
}

#hero-canvas {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    transform: scale(1.05); /* Hide watermark by slightly scaling past edges */
}

.section-overlay {
    position: absolute;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    pointer-events: none; /* Let clicks pass to canvas if needed, though mostly just visual */
    padding: 0 10%;
}

.hero-text-overlay {
    top: 0;
    align-items: flex-start; /* Text on left */
}

.hero-text-overlay h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-text-overlay p {
    font-size: 1.5rem;
    max-width: 500px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.about-text-overlay {
    top: 150vh; /* Starts midway through scroll */
    align-items: flex-start;
}

.about-content {
    background: rgba(15, 61, 46, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    max-width: 600px;
    pointer-events: auto;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-gold);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: var(--color-gold);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* About Section */
.about-section {
    min-height: 100vh;
    padding: 8rem 0;
    background-color: var(--color-green);
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
}

.about-text {
    flex: 1;
    z-index: 2;
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.about-image-wrapper {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.plate-mask {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    position: relative;
    z-index: 2;
}

#scrolling-plate {
    max-width: 500px;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6));
    transform: translateY(100px) rotate(-20deg);
    opacity: 0.5;
    will-change: transform, opacity;
}

.scrolling-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: circle(42% at 50% 50%);
    transform: scale(1.3);
}

/* Menu Section */
.menu-section {
    padding: 8rem 0;
    background-color: var(--color-green);
    position: relative;
    z-index: 20;
    min-height: 100vh;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.menu-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(15, 61, 46, 0.4);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 40px;
    padding: 4rem;
    gap: 4rem;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
    overflow: hidden;
}

.menu-card:nth-child(even) {
    flex-direction: row-reverse;
}

.menu-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.card-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: circle(42% at 50% 50%);
    transform: scale(1.3);
    transition: scale 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    animation: slowRotate 30s linear infinite;
}

@keyframes slowRotate {
    from { transform: scale(1.3) rotate(0deg); }
    to { transform: scale(1.3) rotate(360deg); }
}

.menu-card:hover .menu-image {
    scale: 1.1; /* slightly bigger than 1 to give a zoom effect, but wait, scale property stacks with transform scale! */
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0) 70%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.menu-card:hover .glow-effect {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.card-content {
    flex: 1;
    text-align: left;
}

.card-content h3 {
    font-size: 3.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.card-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.card-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.btn-solid {
    background-color: var(--color-gold);
    color: var(--color-green);
}

.btn-solid:hover {
    background-color: #e5c358;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

/* Benefits Timeline Section */
.benefits-section {
    padding: 12rem 0;
    background-color: var(--color-light-green);
    position: relative;
    z-index: 20;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    height: 100%;
    width: 2px;
    background: rgba(212, 175, 55, 0.3);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: var(--color-green);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    flex-grow: 1;
}

.timeline-content h4 {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery-section {
    padding: 8rem 0;
    background-color: var(--color-green);
    position: relative;
    z-index: 20;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 61, 46, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay p {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background-color: #0a291f;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #888;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-green);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--color-gold);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--color-gold);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

.modal-content h2 {
    margin-bottom: 2rem;
    color: var(--color-gold);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ddd;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
}

.nutrient-info {
    line-height: 2;
    font-size: 1.1rem;
}

.nutrient-info p {
    margin-bottom: 0.5rem;
}

.nutrient-info span {
    color: var(--color-gold);
    font-weight: bold;
}

/* Utility Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text-overlay h1 { font-size: 3rem; }
    .hero-text-overlay p { font-size: 1.2rem; }
    .about-content { margin: 0 1rem; padding: 2rem; }
    .about-content h2 { font-size: 2rem; }
    .timeline::before { left: 30px; }
    .timeline-icon { width: 60px; height: 60px; font-size: 1.5rem; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    
    .menu-card, .menu-card:nth-child(even) {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        text-align: center;
    }
    
    .card-content {
        text-align: center;
    }
    
    .card-content h3 {
        font-size: 2.5rem;
    }
    
    .card-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .menu-image {
        max-width: 250px;
    }
}
