/* =====================================================
   Neel's Cafe — Landing Page Styling
   Premium Vanilla CSS utilizing main theme variables
   ===================================================== */

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary, #f8fafc);
    color: var(--text-primary, #334155);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-theme, #00a63f), var(--accent-theme-light, #16a34a));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Glass Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand img {
    height: 40px;
    border-radius: 8px;
}

.nav-brand span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading, #0f172a);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary, #334155);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-theme, #00a63f);
}

.btn-login {
    background: var(--accent-theme, #00a63f);
    color: white !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 166, 63, 0.2);
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 63, 0.3);
}

/* --- Hero Section Slider --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 20px;
    isolation: isolate;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 2px; /* Small gap for a clean split look */
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Logic to manage 2 images per slide with natural width adjustment */
.slide-img {
    flex: 1 1 auto; /* Grow and shrink based on natural aspect ratio */
    min-width: 30%; /* Ensure no image becomes too thin */
    height: 100%;
    width: 0; /* Let flex-grow handle it */
    object-fit: cover;
    filter: brightness(0.5);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.slide-img:last-child {
    border-right: none;
}

/* On hover, slightly expand the focused image */
.slide-img:hover {
    flex-grow: 1.25;
    filter: brightness(0.65);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 166, 63, 0.2));
    z-index: -1;
}

/* Dot Navigation */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot.active {
    width: 30px;
    border-radius: 20px;
    background: var(--accent-theme, #00a63f);
}

.hero-content {
    max-width: 900px;
    color: white;
    z-index: 1;
    position: relative;
    padding-bottom: 50px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-content p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.btn-primary {
    display: inline-block;
    background: white;
    color: var(--accent-theme, #00a63f);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 166, 63, 0.4);
    background: var(--accent-theme-light, #f0fdf4);
}

/* --- Menu Highlights --- */
.section-menu {
    padding: 100px 20px;
    background: var(--bg-primary, #f8fafc);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-heading, #0f172a);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary, #64748b);
    font-size: 1.1rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-card {
    background: white;
    border-radius: var(--radius-xl, 24px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(15, 23, 42, 0.06));
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    group: hover;
    border: 1px solid rgba(0, 166, 63, 0.05);
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 166, 63, 0.15);
    border-color: rgba(0, 166, 63, 0.2);
}

.menu-img-wrap {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

.menu-card:hover .menu-img-wrap img {
    transform: scale(1.08); /* slight zoom on hover */
}

.menu-content {
    padding: 24px;
}

.menu-content h3 {
    font-size: 1.4rem;
    color: var(--text-heading, #0f172a);
    margin-bottom: 8px;
}

.menu-content p {
    color: var(--text-secondary, #64748b);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Footer --- */
.landing-footer {
    background: #0f172a;
    color: white;
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-content p {
    color: #94a3b8;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-theme, #00a63f);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: #64748b;
    font-size: 0.85rem;
}

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


/* --- Mobile Toggle --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-heading, #0f172a);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        display: flex; /* Override desktop flex */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        font-weight: 700;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
        /* Staggered entrance */
        transition-delay: 0.2s;
    }

    .nav-links.active a:nth-child(2) { transition-delay: 0.3s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.4s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.5s; }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-menu {
        padding: 60px 20px;
    }
}

