/* 
   Elixir Cafe - Premium Aesthetic CSS
*/

:root {
    /* Color Palette */
    --bg-dark: #0F0C09;      /* Espresso Black */
    --bg-paper: #1A1614;     /* Dark Roast */
    --copper: #C88E5E;       /* Warm Copper / Caramel */
    --copper-light: #E0AB82;
    --copper-dark: #A36B41;
    --text-light: #F4F1EA;   /* Cream White */
    --text-muted: #A8A29E;   /* Warm Gray */
    --border-color: rgba(200, 142, 94, 0.15);
    
    /* Variables */
    --font-main: 'Tajawal', sans-serif;
    --font-serif: 'Lora', serif;
    --transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

.italic-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
}

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

.text-center {
    text-align: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #3d322c; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

::selection { background: var(--copper); color: var(--bg-dark); }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container-fluid {
    width: 95%;
    margin: 0 auto;
}

/* Typography & Titles */
.section-subtitle {
    display: block;
    color: var(--copper);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-copper {
    background: var(--copper);
    color: var(--bg-dark);
    box-shadow: 0 10px 20px -5px rgba(200, 142, 94, 0.4);
}

.btn-copper:hover {
    background: var(--copper-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(200, 142, 94, 0.5);
}

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

.btn-outline-copper:hover {
    background: var(--copper);
    color: var(--bg-dark);
}

.full-width {
    width: 100%;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-size: 4rem;
    color: var(--copper);
    animation: steam 2s infinite ease-in-out;
}

.loader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

@keyframes steam {
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-10px) scale(1.05); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 0.8; }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(15, 12, 9, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--copper);
    font-size: 1.8rem;
    margin-right: 5px;
    font-style: italic;
}

.desktop-nav {
    display: flex;
    gap: 40px;
}

.desktop-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--copper);
    opacity: 0;
    transition: var(--transition);
}

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

.desktop-nav a:hover::after {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,12,9,0.9) 0%, rgba(15,12,9,0.6) 50%, rgba(15,12,9,0.2) 100%);
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-content h1 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-light);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-weight: 600;
}

.hero-contact i {
    color: var(--copper);
    font-size: 1.5rem;
}

/* Scroll Down Mouse */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.scroll-down:hover { color: var(--copper); }

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 15px;
    position: relative;
}

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

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

.scroll-text {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Marquee Section */
.marquee-section {
    background: var(--copper);
    color: var(--bg-dark);
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.marquee-inner {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); } /* 100% to right because RTL */
}

/* Story Section */
.story-section {
    padding: 120px 0;
    background: var(--bg-dark);
    position: relative;
}

.story-section::before {
    content: 'EST. 2014';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255,255,255,0.02);
    font-family: var(--font-serif);
    pointer-events: none;
}

.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image-wrap {
    position: relative;
}

.story-img-main {
    width: 90%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.story-img-small {
    position: absolute;
    bottom: -40px;
    left: 0; /* RTL reversed */
    width: 50%;
    border-radius: var(--border-radius);
    border: 10px solid var(--bg-dark);
    overflow: hidden;
}

.story-img-small img {
    width: 100%;
    display: block;
}

.experience-badge {
    position: absolute;
    top: 40px;
    right: -30px;
    background: var(--copper);
    color: var(--bg-dark);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(200, 142, 94, 0.3);
    animation: spin 15s linear infinite;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.story-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.features-list i {
    color: var(--copper);
    font-size: 1.2rem;
    background: rgba(200, 142, 94, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.signature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.signature span {
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-style: italic;
}

/* Menu Section */
.menu-section {
    padding: 120px 0;
    background: var(--bg-paper);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.menu-item {
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition);
}

.menu-item:hover {
    transform: translateY(-10px);
    border-color: var(--copper);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.menu-item-img {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.price-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(15, 12, 9, 0.8);
    backdrop-filter: blur(5px);
    color: var(--copper);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    border: 1px solid rgba(200, 142, 94, 0.3);
}

.menu-item-info h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-family: var(--font-serif);
}

.menu-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(200, 142, 94, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--bg-dark);
    transform: scale(0.5);
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }

.follow-us {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-dark);
    padding: 30px 50px;
    text-align: center;
    border: 2px solid var(--copper);
    z-index: 10;
    pointer-events: none;
}

.follow-us span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.follow-us h3 {
    font-size: 2rem;
    color: var(--text-light);
    font-family: var(--font-serif);
    font-style: italic;
}

/* Reservation Section */
.reservation-section {
    padding: 120px 0;
    background: var(--bg-paper);
    background-image: linear-gradient(rgba(26, 22, 20, 0.9), rgba(26, 22, 20, 0.9)), url('https://www.transparenttextures.com/patterns/cubes.png');
}

.reservation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.reservation-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-box i {
    font-size: 1.5rem;
    color: var(--copper);
    margin-top: 5px;
}

.detail-box h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.detail-box p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.reservation-form-box form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input, .form-group select {
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--copper);
    background: rgba(200, 142, 94, 0.05);
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text-light);
}

/* Footer */
footer {
    background: #0A0806;
    padding: 80px 0 30px;
    border-top: 2px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--copper);
    padding-right: 8px; /* RTL shift */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--copper);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 4.5rem; }
    .story-container { gap: 40px; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.large { grid-column: span 1; grid-row: span 1; }
    .gallery-item.wide { grid-column: span 1; }
    .gallery-item.tall { grid-row: span 1; }
    .follow-us { padding: 20px 30px; }
    .follow-us h3 { font-size: 1.5rem; }
}

@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .nav-container .btn { display: none; }
    .mobile-menu-btn { display: block; }
    
    .story-container { grid-template-columns: 1fr; }
    .story-img-small { width: 40%; }
    .experience-badge { top: 20px; right: -10px; width: 100px; height: 100px; }
    .experience-badge .number { font-size: 2rem; }
    
    .reservation-wrapper { grid-template-columns: 1fr; padding: 40px; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-content { padding-top: 0; }
    
    .menu-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .follow-us { display: none; } /* Hide on mobile to show images clearly */
    
    .form-row { grid-template-columns: 1fr; }
    .reservation-wrapper { padding: 30px 20px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* ==========================================================================
   Demo Modal Styles
   ========================================================================== */
.demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.demo-modal.show {
    opacity: 1;
    visibility: visible;
}

.demo-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 650px;
    width: 90%;
    text-align: center;
    transform: translateY(50px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.modal-icon {
    font-size: 3rem;
    color: #2e5c3e;
    margin-bottom: 20px;
}

.demo-modal-content h3 {
    color: #1a1a1a;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.demo-modal-content p {
    color: #4a4a4a;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

.demo-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.demo-modal-actions .btn-modal {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-size: 1.05rem;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-modal {
    background: transparent;
    border: 2px solid #e0e0e0 !important;
    color: #555 !important;
}

.btn-outline-modal:hover {
    background: #f5f5f5;
    color: #1a1a1a !important;
    border-color: #d0d0d0 !important;
}

.btn-primary-modal {
    background: #0077b5;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.btn-primary-modal:hover {
    background: #006097;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}