/* Erdem Pide Website - Design System */
:root {
    --primary: #1a4d2e;
    /* Bursa Green (Deep/Premium) */
    --secondary: #d4af37;
    /* Gold for Ottoman flair */
    --accent: #ff9f1c;
    /* Toasty crust color */
    --bg-light: #faf9f6;
    /* Off-white/Cream */
    --bg-dark: #0a1f14;
    /* Very dark green for modern feel */
    --text-main: #2d3436;
    --text-light: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Cormorant Garamond', serif;
}

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

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 31, 20, 0.85);
    backdrop-filter: blur(15px);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

header.scrolled .logo-img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

nav a:hover {
    color: var(--secondary);
}

/* Hero Section with Parallax Effect */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('assets/images/erdempide-100.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-style: italic;
    animation: fadeInUp 1.2s ease-out;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--secondary);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: white;
    transform: scale(1.05);
}

/* Menu Section */
.menu-section {
    padding: 100px 5%;
    background: var(--bg-light);
}

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

.section-title h2 {
    font-size: 3rem;
    color: var(--primary);
}

/* Category Tabs */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: sticky;
    top: 100px;
    z-index: 10;
    padding: 10px;
    background: rgba(250, 249, 246, 0.8);
    backdrop-filter: blur(10px);
}

.tab-btn {
    padding: 12px 25px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--text-light);
}

.tab-btn:hover {
    background: var(--primary);
    color: var(--text-light);
}

/* Optimized Menu Grid */
.menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    min-height: 400px;
}

.menu-item {
    flex: 0 1 320px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.menu-item.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.menu-item.fade-in {
    opacity: 1;
    transform: scale(1);
}

.menu-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.menu-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-header h3 {
    font-size: 1.2rem;
}

.menu-item p {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Contact Section & Heritage adjustments omitted for brevity as they are handled in original CSS */

/* Heritage Section */
.heritage {
    padding: 120px 5%;
    background: var(--bg-dark);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separation */
}

.heritage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: brightness(0.5);
}

.heritage-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.heritage-content h2 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

/* Refined Contact Section */
.contact-container {
    padding: 100px 5%;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.contact-details h3,
.contact-form-side h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.contact-item-text p {
    font-size: 0.9rem;
    color: #666;
}

/* Form Styling */
.contact-form-side {
    background: var(--bg-light);
    padding: 50px;
    border-radius: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--secondary);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Map Upgrade */
.map-container {
    width: 100%;
    height: 450px;
    background: #e5e3df;
    /* Map placeholder color */
    margin-top: 80px;
    border-radius: 30px;
    overflow: hidden;
    filter: grayscale(0.2) contrast(1.1);
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Redesigned Features Section */
.features-section {
    padding: 120px 5%;
    background: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    /* Extremely soft shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 30px;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.feature-card h3 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 5%;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    opacity: 0;
    transition: var(--transition);
}

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

/* Testimonial Section - Infinite Marquee */
.testimonials {
    padding: 100px 0;
    background: var(--bg-dark);
    color: white;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.testimonial-container {
    max-width: 100%;
    margin-top: 60px;
}

/* Edge Fade Effect */
.testimonials::before,
.testimonials::after {
    content: '';
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.testimonials::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.testimonial-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll-left 50s linear infinite;
    padding: 20px 0;
}

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

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Halfway because it's duplicated */
}

.testimonial-pill {
    background: var(--glass);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    width: 450px;
    min-width: 450px;
    text-align: left;
    transition: var(--transition);
}

.testimonial-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
}

.testimonial-author {
    color: var(--secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-author::before {
    content: "—";
}

/* Footer & Schedule */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 50px;
}

.schedule-list {
    list-style: none;
    margin-top: 20px;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 5% 40px;
}

/* --- RESPONSIVE DESIGN --- */

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

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* Header & Nav */
    .menu-toggle {
        display: flex;
    }

    nav#navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 31, 20, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }

    nav#navbar.active {
        right: 0;
    }

    nav#navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    nav#navbar a {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 20px;
    }

    /* Padding adjustments */
    .menu-section, .contact-container, .gallery-section, .heritage, .features-section {
        padding: 60px 5%;
    }

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

    /* Menu Grid */
    .menu-grid {
        gap: 15px;
    }
    
    .menu-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Tabs */
    .category-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .category-nav::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 8px 16px;
    }

    /* Testimonials */
    .testimonial-pill {
        width: 320px;
        min-width: 320px;
        padding: 30px;
    }

    /* Footer */
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .logo-img {
        height: 40px;
    }

    header.scrolled .logo-img {
        height: 35px;
    }
    
    .call-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
    }
}