@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-green: #05140b;
    --accent-green: #2ecc71;
    --luminous-green: #ccff00;
    --mist-white: rgba(240, 244, 240, 0.9);
    --gold: #ccff00; 
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(204, 255, 0, 0.15);
    --glow: 0 0 20px rgba(204, 255, 0, 0.3);
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Enable custom cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--primary-green);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.8;
    background-image: linear-gradient(rgba(5, 20, 11, 0.9), rgba(5, 20, 11, 0.9)), 
                    url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?auto=format&fit=crop&q=80&w=1920');
    background-attachment: fixed;
    background-size: cover;
}

/* Filmic Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3 {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
}

.serif {
    font-family: var(--font-serif);
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--luminous-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

#cursor-border {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--luminous-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translate(-50%, -50%);
}

.cursor-hover #cursor-border {
    width: 60px;
    height: 60px;
    background: rgba(204, 255, 0, 0.1);
    border-width: 2px;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--luminous-green);
    z-index: 10001;
    width: 0%;
    box-shadow: var(--glow);
    transition: width 0.1s linear;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary-green);
}
::-webkit-scrollbar-thumb {
    background: var(--luminous-green);
    border-radius: 10px;
    box-shadow: var(--glow);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(5, 20, 11, 0.5);
    backdrop-filter: blur(10px);
}

header.scrolled {
    background: rgba(10, 46, 31, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
}

.logo span {
    color: var(--gold);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(204, 255, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--luminous-green);
    box-shadow: 0 0 10px var(--luminous-green);
    transition: var(--transition);
}

nav a:hover {
    color: var(--luminous-green);
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.6), 0 0 20px rgba(204, 255, 0, 0.4);
}

nav a:hover::after {
    width: 80%;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(10, 46, 31, 0.2), rgba(10, 46, 31, 0.6)), 
                url('hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 20;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1rem;
    line-height: 1;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--mist-white);
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.mist-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

/* Volumetric Mist Blobs - Optimized */
.mist-blob {
    position: absolute;
    width: 100vw;
    height: 60vh;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 80%);
    filter: blur(80px); /* Reduced blur for performance */
    pointer-events: none;
    border-radius: 50%;
    z-index: 5;
    left: -100vw;
    will-change: transform, opacity;
}

@keyframes mistDrift {
    0% { transform: translateX(0); opacity: 0; }
    15% { opacity: 0.5; }
    85% { opacity: 0.5; }
    100% { transform: translateX(250vw); opacity: 0; }
}

.layer-1 { top: -10%; animation: mistDrift 40s linear infinite; }
.layer-2 { top: 30%; animation: mistDrift 60s linear infinite 10s; scale: 1.5; opacity: 0.05; }
.layer-3 { top: 60%; animation: mistDrift 80s linear infinite 20s; scale: 2; opacity: 0.1; }
/* Layer 4-5 removed for performance */

/* Sections */
section {
    padding: 100px 10%;
    position: relative;
    z-index: 20;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-title p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.section-title .underline {
    width: 100px;
    height: 2px;
    background: var(--luminous-green);
    margin: 0 auto;
    position: relative;
}

.section-title .underline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--luminous-green);
    border-radius: 50%;
    box-shadow: var(--glow);
}

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

.card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 3rem 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(204, 255, 0, 0.03);
    border-color: var(--luminous-green);
    box-shadow: var(--glow), inset 0 0 30px rgba(204, 255, 0, 0.05);
}

.card i {
    font-size: 2.5rem;
    color: var(--luminous-green);
    margin-bottom: 1.5rem;
    display: block;
    text-shadow: var(--glow);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--luminous-green);
    text-shadow: 0 0 5px rgba(204, 255, 0, 0.2);
}

.card p {
    font-size: 0.95rem;
    color: var(--mist-white);
}

/* Rain Effect Overlay */
#rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000; /* Ensure it's on top of everything */
    opacity: 0;
    transition: opacity 1s ease;
}

.drop {
    position: absolute;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.3));
    width: 1px;
    height: 120px; /* Longer drops for speed feel */
    top: -150px;
    animation: fall linear infinite;
    opacity: 0.4;
    filter: blur(0.5px);
}

/* Reveal Animations - Only hide if JS is ready */
.js-ready .reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(10px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
}

.js-ready .reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-left.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.js-ready .reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-right.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Staggered Reveals */
.js-ready .reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-stagger.active > * {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

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

@keyframes fall {
    to { transform: translateY(110vh); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Waterfall Trail Section */
.waterfall-trail {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.waterfall-trail::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.waterfall-card {
    flex: 0 0 350px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    scroll-snap-align: center;
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 0.8s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

.waterfall-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--luminous-green);
    box-shadow: var(--glow);
}

.wf-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
}

.waterfall-card:hover .wf-image {
    transform: scale(1.1);
}

.wf-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--luminous-green);
    opacity: 0.1;
    z-index: 1;
}

.wf-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(5, 20, 11, 0.9), transparent);
    margin-top: -50px;
}

.wf-content h3 {
    color: var(--luminous-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.wf-content p {
    font-size: 0.9rem;
    color: var(--mist-white);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.wf-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.wf-tags span {
    font-size: 0.7rem;
    background: rgba(204, 255, 0, 0.15);
    color: var(--luminous-green);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(204, 255, 0, 0.2);
}

/* Wildlife Carousel */
.animal-carousel {
    padding: 2rem 0;
    width: 100%;
}

.animal-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 120s linear infinite;
}

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

.animal-card {
    flex: 0 0 400px;
    height: 550px;
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.animal-card:hover {
    transform: translateY(-20px) scale(1.02);
    border-color: var(--luminous-green);
    box-shadow: var(--glow);
}

.animal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(5, 20, 11, 0.9));
    z-index: 1;
}

.animal-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 3rem 2rem;
    z-index: 2;
    transition: var(--transition);
}

.animal-info h3 {
    color: var(--luminous-green);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
    text-transform: none;
    font-style: italic;
    letter-spacing: 0;
}

.animal-info p {
    color: var(--mist-white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.6;
}

.animal-card:hover .animal-info {
    transform: translateY(-10px);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 6 - 2rem * 6)); } /* Adjust based on card count and gap */
}

/* Responsive fixes */
@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }
    nav {
        display: none;
    }
    .waterfall-card {
        flex: 0 0 85vw;
    }
}

/* Sanctuaries Section Styles */
#sanctuaries {
    background: transparent;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--luminous-green);
    color: var(--primary-green);
    box-shadow: var(--glow);
    border-color: var(--luminous-green);
}

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

.business-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 35px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.business-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.business-card:hover::after {
    left: 125%;
}

.business-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--luminous-green);
    box-shadow: var(--glow), inset 0 0 30px rgba(204, 255, 0, 0.05);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--luminous-green);
    color: var(--primary-green);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--mist-white);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.eco-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.eco-tags span {
    font-size: 0.7rem;
    color: var(--luminous-green);
    background: rgba(204, 255, 0, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.whatsapp-btn {
    margin-top: auto;
    background: var(--luminous-green);
    color: var(--primary-green);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.whatsapp-btn:hover {
    background: #ffffff;
    color: #25d366;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(204, 255, 0, 0.6);
}

.whatsapp-btn i {
    font-size: 1.2rem;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff3e3e;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(255, 62, 62, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
}

.modal-overlay.active { display: flex; }

.modal-card {
    background: #05140b;
    border: 1px solid var(--luminous-green);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 30px;
    position: relative;
    overflow-y: auto;
    padding: 3rem;
    box-shadow: 0 0 50px rgba(204, 255, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--luminous-green);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

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

.modal-header h2 {
    color: var(--luminous-green);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.modal-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(204, 255, 0, 0.1);
    padding: 1.5rem;
    border-radius: 20px;
}

.modal-section h4 {
    color: var(--luminous-green);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.modal-section ul {
    list-style: none;
}

.modal-section ul li {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    opacity: 0.8;
    display: flex;
    justify-content: space-between;
}

.price-tag {
    color: var(--luminous-green);
    font-weight: 700;
}

.view-details-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.8rem;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.view-details-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--luminous-green);
}
/* Profile Page High-Fidelity Styles */
.profile-container {
    min-height: 100vh;
    background: linear-gradient(rgba(5, 20, 11, 0.78), rgba(5, 20, 11, 0.78)), 
                url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 2rem;
}

.profile-hero {
    height: 70vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    transform: scale(1.1); /* Start slightly zoomed for Ken Burns */
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1); /* Zoom out slowly */
    z-index: 1;
}

.hero-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10% 5% 5% 5%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    z-index: 10;
    text-align: left;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.profile-section {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.menu-item {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.menu-img-container {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.menu-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

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

.food-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--luminous-green);
    color: var(--primary-green);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.food-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: var(--luminous-green);
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.pkg-list {
    list-style: none;
}

.pkg-list li {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pkg-list li .price {
    color: var(--luminous-green);
    font-weight: 800;
}

@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        order: -1;
    }
}

.meal-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.meal-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(204, 255, 0, 0.1);
    padding: 1.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.meal-card:hover {
    background: rgba(204, 255, 0, 0.05);
    border-color: var(--luminous-green);
    transform: translateY(-5px);
}

.meal-card h3 {
    font-size: 0.9rem;
    color: var(--luminous-green);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meal-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.7;
}

.meal-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.meal-header-main h3 { margin-bottom: 0 !important; }

.view-menu-btn {
    background: rgba(204, 255, 0, 0.1);
    border: 1px solid rgba(204, 255, 0, 0.3);
    color: var(--luminous-green);
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 800;
    transition: 0.3s;
}

.meal-card:hover .view-menu-btn {
    background: var(--luminous-green);
    color: var(--primary-green);
}

.expandable-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.expandable-menu.active {
    max-height: 500px;
}

.menu-expanded-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    padding-top: 1rem;
}

.menu-featured-img {
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.expandable-menu ul {
    list-style: none;
}

.expandable-menu li {
    font-size: 0.8rem;
    color: var(--mist-white);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.meal-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.meal-line-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(204, 255, 0, 0.05);
    padding: 2.5rem;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.meal-line-item:hover {
    background: rgba(204, 255, 0, 0.03);
    border-color: var(--luminous-green);
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.meal-separator {
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--luminous-green), transparent);
    margin: 1rem auto;
    opacity: 0.3;
}

.profile-main-full {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.service-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    background: rgba(204, 255, 0, 0.05);
    border-color: var(--luminous-green);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--luminous-green);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--mist-white);
}

.service-card p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.order-action-btn {
    background: var(--primary-green);
    color: var(--luminous-green);
    border: 1px solid var(--luminous-green);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.service-card:hover .order-action-btn {
    background: var(--luminous-green);
    color: var(--primary-green);
    box-shadow: var(--glow);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--luminous-green);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1rem;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--luminous-green);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.cuisine-card {
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
}

.cuisine-card:hover {
    transform: scale(1.03);
    border-color: var(--luminous-green);
    box-shadow: var(--glow);
}

.cuisine-card h4 {
    font-size: 0.9rem;
    color: var(--luminous-green);
    margin-bottom: 0.3rem;
}

.cuisine-card p {
    font-size: 0.7rem;
    color: white;
    opacity: 0.8;
}

/* --- Mobile Responsiveness Audit (Android & iOS) --- */
@media (max-width: 1024px) {
    section { padding: 80px 5%; }
    .hero-title h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Could add a hamburger menu here later */
    .hero-title h1 { font-size: 2.5rem; }
    .section-title h2 { font-size: 2rem; }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .discovery-grid {
        grid-template-columns: 1fr !important;
    }

    .modal-content {
        padding: 2rem;
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title h1 { font-size: 1.8rem; }
    .hero-title p { font-size: 0.9rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    
    section { padding: 60px 5%; }
    
    .card { padding: 1.5rem; }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* iOS Specific Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
}


/* --- Mobile Responsive & Speed Optimizations --- */
@media (max-width: 768px) {
    .wf-card-rect {
        min-width: 320px;
        height: 250px;
    }
    
    .waterfall-scroller {
        padding: 1rem 5%;
        gap: 1.5rem;
    }

    .wf-rect-overlay h3 {
        font-size: 1.4rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .wf-card-rect {
        min-width: 280px;
        height: 220px;
    }
}

/* Speed: Smooth scrolling for iOS */
.waterfall-scroller {
    -webkit-overflow-scrolling: touch;
}

/* --- Waterfall Horizontal Trail (Rectangle Style) --- */
.waterfall-section {
    padding: 80px 0;
    overflow: hidden;
}

.waterfall-scroller {
    display: flex;
    gap: 2rem;
    padding: 2rem 5%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.waterfall-scroller::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.wf-card-rect {
    min-width: 450px;
    height: 300px;
    background: rgba(5, 20, 11, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    flex-shrink: 0;
}

.wf-card-rect:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--luminous-green);
    box-shadow: var(--glow);
}

.wf-rect-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
}

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

.wf-rect-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 70%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.wf-rect-overlay h3 {
    color: var(--luminous-green);
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wf-rect-overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
    max-width: 90%;
}

.wf-rect-num {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--luminous-green);
    opacity: 0.5;
    z-index: 5;
}

