/* CSS Style for Afandina Coffee Lounge */
:root {
    --bg-dark: #070707;
    --bg-darker: #000000;
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa8a29;
    --text-light: #f8f8f8;
    --text-muted: #aaaaaa;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    --font-heading: 'Aref Ruqaa', serif;
    --font-body: 'Tajawal', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-darker);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography Utilities */
.gold-text {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Three.js Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* Header & Nav */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: padding 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold-primary);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.nav-links a:hover::after {
    width: 100%;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
}

/* Section Padding Utility */
.section-padding {
    padding: 6rem 4rem;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    /* Optional gradient overlay */
    background: radial-gradient(circle at center, transparent 0%, var(--bg-darker) 100%);
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    animation: fadeIn 1.5s ease-out forwards;
}

.sub-headline {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--gold-light);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.main-headline {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gold-dark), var(--gold-primary));
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2) inset;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

/* Menu Section */
.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.menu-category {
    margin-bottom: 5rem;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 2rem;
    border-right: 4px solid var(--gold-primary);
    padding-right: 15px;
}

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

.menu-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 1.5rem;
    text-align: right;
}

.card-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.card-content .desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.price {
    display: inline-block;
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Menu Tabs */
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--glass-bg);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.tab-btn:hover {
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(45deg, var(--gold-dark), var(--gold-primary));
    color: #000;
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.tab-pane.active {
    display: block;
    animation: fadeUp 0.5s ease-out forwards;
}

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

/* Glass Panel for sections */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
}

/* About Section */
.about-section {
    position: relative;
    z-index: 10;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.floating-icons {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    font-size: 2rem;
}

.float-icon {
    animation: float 4s ease-in-out infinite;
}

.delay-1 { animation-delay: 0s; }
.delay-2 { animation-delay: 1.5s; }
.delay-3 { animation-delay: 3s; }

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

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.input-group input::placeholder {
    color: #777;
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 3rem 4rem;
    text-align: center;
    background: #050505;
    border-top: 1px solid var(--glass-border);
}

.footer-content h3 {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.copy {
    font-size: 0.9rem;
    color: #555 !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 2rem;
    }
    .nav-links {
        display: none; /* In a real app, we'd add a hamburger menu */
    }
    .main-headline {
        font-size: 3rem;
    }
    .section-padding {
        padding: 4rem 2rem;
    }
    .input-group {
        flex-direction: column;
    }
}

/* Professional White Header Theme */
.navbar.white-header {
    background-color: #ffffff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08); /* Soft elegant shadow */
    padding: 1.2rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: padding 0.4s ease, background-color 0.4s ease;
}

.navbar.white-header .nav-links.right-aligned {
    flex: 1;
    display: flex;
    justify-content: flex-start; /* Aligns strictly to right side in RTL */
    gap: 2.5rem;
}

.navbar.white-header .logo.center-aligned {
    flex: 1;
    text-align: center;
    font-size: 1.8rem;
}

.navbar.white-header .header-icons.left-aligned {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Aligns to left side in RTL */
    align-items: center;
    gap: 1.5rem;
}

.navbar.white-header .nav-links a {
    color: #2c3e50; /* Clean, modern dark text */
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    text-shadow: none;
    position: relative;
    letter-spacing: 0.5px;
}

.navbar.white-header .nav-links a:hover,
.navbar.white-header .nav-links a.active {
    color: var(--gold-primary);
}

.navbar.white-header .nav-links a::after {
    height: 3px;
    background: var(--gold-primary);
    bottom: -4px;
    border-radius: 2px;
}

.navbar.white-header .icon-btn {
    color: #2c3e50;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar.white-header .icon-btn:hover {
    color: var(--gold-primary);
    transform: scale(1.1) rotate(5deg);
}

.navbar.white-header .header-action-btn {
    padding: 0.6rem 1.8rem;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Adjust layout on smaller screens for white header */
@media (max-width: 992px) {
    .navbar.white-header {
        padding: 1rem 2rem;
    }
    .navbar.white-header .nav-links.right-aligned {
        display: none;
    }
    .navbar.white-header .header-action-btn {
        display: none;
    }
    .navbar.white-header .logo.center-aligned {
        text-align: right;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
}

.my-float {
  margin-top: 16px;
}

