/* --- Global Değişkenler --- */
:root {
    --primary-color: #d4af37; /* Altın Rengi */
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-light: #f5f5f5;
    --text-muted: #aaaaaa;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;
    /* Daha premium bir his için cubic-bezier geçişi */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

/* --- Hero Section & Actions --- */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-slider .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; z-index: 0;
}
.hero-slider .slide.active { opacity: 1; }
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
}

/* Logo Animasyonu Ayarı */
#main-hero-logo {
    width: 150px;
    margin-bottom: 20px;
    transform-origin: center center; 
    will-change: transform, opacity;
}

.hero-title {
    font-size: 3rem; margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* --- GÜNCELLENEN: Yumuşak Kenarlı Buton (Pill Shape) --- */
.cta-button {
    padding: 18px 50px;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Kenarları tam yuvarlak yapıyoruz */
    border-radius: 50px; 
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); /* Hafif altın gölge */
}

.cta-button:hover {
    background-color: #fff;
    transform: translateY(-3px) scale(1.02); /* Hafif yukarı kalkma */
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Hero Actions (Konum & Arama) */
.hero-actions {
    position: absolute;
    bottom: 40px; left: 40px;
    z-index: 5;
    display: flex; gap: 15px;
}

.action-btn {
    text-decoration: none;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex; align-items: center; gap: 8px;
    transition: var(--transition);
    font-weight: 600;
}

.action-btn:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* --- Header & Scroll --- */
#sticky-header {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--header-height);
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 20px;
    z-index: 100;
    display: flex; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-container {
    width: 100%; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

.mini-logo {
    opacity: 0; 
    transition: opacity 0.3s ease;
}
.mini-logo img { height: 40px; }
.mini-logo.visible { opacity: 1; }

.hamburger {
    cursor: pointer; width: 30px; height: 20px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.hamburger span {
    display: block; height: 3px; width: 100%;
    background-color: var(--primary-color); border-radius: 2px;
}

/* --- Sidebar --- */
#sidebar-menu {
    position: fixed; top: 0; left: 0; height: 100vh; width: 260px;
    background-color: var(--bg-card); z-index: 200;
    transform: translateX(-100%); 
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1); /* Sidebar açılışı da yumuşatıldı */
    padding: 50px 20px; 
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}
#sidebar-menu.open { transform: translateX(0); }
#close-sidebar {
    position: absolute; top: 20px; right: 20px; background: none;
    border: none; color: var(--text-light); font-size: 2.5rem; cursor: pointer;
}
#sidebar-menu ul { list-style: none; margin-top: 40px; }
#sidebar-menu li { margin-bottom: 25px; }
#sidebar-menu a {
    text-decoration: none; color: var(--text-light); font-size: 1.3rem;
    font-weight: 300;
    transition: var(--transition);
    display: block;
}
#sidebar-menu a:hover { color: var(--primary-color); transform: translateX(10px); }

/* --- GÜNCELLENEN: Hakkımızda "Rulo/Perde" Animasyonu --- */
#about { 
    padding: 120px 0; 
    background-color: var(--bg-dark); 
    overflow: hidden; 
}

.about-content {
    position: relative; /* Halı efekti için referans noktası */
    display: flex; 
    align-items: flex-start; 
    gap: 30px;
    visibility: hidden; /* Animasyon başlayana kadar gizli */
}

/* Ok işareti stili */
.arrow-icon { 
    font-size: 3rem; 
    color: var(--primary-color); 
    transform: rotate(180deg); 
}

/* JS 'reveal-active' sınıfını eklediğinde burası çalışır */
.about-content.reveal-active {
    visibility: visible;
}

/* Halı/Perde Efekti (Pseudo Element) */
.about-content.reveal-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color); /* Altın rengi blok */
    
    /* Animasyon Tanımları */
    transform-origin: right;
    animation: revealCurtain 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    z-index: 10; /* Yazının önünde olmalı */
}

/* Metinlerin Görünür Olması */
.about-content.reveal-active .text-wrapper,
.about-content.reveal-active .arrow-icon {
    opacity: 0;
    animation: revealText 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Perde Hareketi: Sağdan büyür, sonra sola küçülür */
@keyframes revealCurtain {
    0% {
        transform: scaleX(0); 
        transform-origin: right;
    }
    45% {
        transform: scaleX(1); /* Tam kapla */
        transform-origin: right;
    }
    55% {
        transform-origin: left; /* Referansı sola al */
    }
    100% {
        transform: scaleX(0); /* Sola doğru yok ol */
        transform-origin: left;
    }
}

/* Metin Opaklığı */
@keyframes revealText {
    0% { opacity: 0; }
    50% { opacity: 0; } /* Perde kapalıyken görünme */
    51% { opacity: 1; } /* Perde çekilmeye başlayınca görün */
    100% { opacity: 1; }
}

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.info-item h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.1rem; }

/* --- Menu Grid --- */
#menu { padding: 100px 0; background-color: #1a1a1a; }
.section-title {
    text-align: center; font-size: 3rem; margin-bottom: 60px;
    color: var(--primary-color);
}
.menu-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.menu-card {
    background-color: var(--bg-card); 
    border-radius: 15px; /* Köşeler yumuşatıldı */
    overflow: hidden;
    transition: var(--transition); 
    border: 1px solid rgba(255,255,255,0.05);
}
.menu-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
.menu-img { width: 100%; height: 220px; object-fit: cover; }
.menu-info { padding: 25px; }
.menu-name { font-size: 1.4rem; margin-bottom: 10px; }
.menu-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; min-height: 45px; line-height: 1.5; }
.menu-footer { display: flex; justify-content: space-between; align-items: center; }
.menu-price { font-size: 1.3rem; font-weight: bold; color: var(--primary-color); }
.add-btn {
    background-color: transparent; border: 1px solid var(--primary-color);
    color: var(--primary-color); padding: 10px 20px; cursor: pointer;
    transition: var(--transition); border-radius: 30px; font-weight: 600;
}
.add-btn:hover { background-color: var(--primary-color); color: #000; }

/* --- Cart & Modal --- */
#floating-cart {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--primary-color); color: #000;
    padding: 15px 30px; border-radius: 50px;
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    z-index: 101; transition: var(--transition);
}
#floating-cart.hidden { 
    transform: scale(0); 
    opacity: 0; 
    pointer-events: none;
}
#floating-cart:hover { transform: scale(1.05); }
#cart-count {
    background-color: #000; color: #fff; border-radius: 50%;
    width: 24px; height: 24px; display: flex; align-items: center;
    justify-content: center; font-size: 0.8rem;
}

.modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.85); /* Arka plan biraz daha koyu */
    z-index: 300; align-items: center; justify-content: center;
    backdrop-filter: blur(5px); /* Modal arkası flulaştırma */
}
.modal-content {
    background-color: var(--bg-card); width: 95%; max-width: 500px;
    border-radius: 15px; padding: 25px; position: relative;
    max-height: 85vh; display: flex; flex-direction: column;
    border: 1px solid rgba(255,255,255,0.1);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 15px;
}
.close-modal { font-size: 2rem; cursor: pointer; transition: 0.3s; color: var(--text-muted); }
.close-modal:hover { color: #fff; }

.cart-items-list { overflow-y: auto; flex-grow: 1; margin-bottom: 20px; }

/* Sepet İçi Ürün Tasarımı */
.cart-item {
    display: flex; align-items: center; gap: 15px;
    padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-thumb {
    width: 60px; height: 60px; object-fit: cover; border-radius: 8px;
}
.cart-item-details { flex-grow: 1; }
.delete-item-btn {
    background: rgba(255, 77, 77, 0.2); 
    color: #ff4d4d; border: none;
    width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.delete-item-btn:hover { background: #ff4d4d; color: #fff; }

.cart-summary {
    display: flex; justify-content: space-between;
    font-size: 1.3rem; font-weight: bold;
    color: var(--primary-color); margin-bottom: 15px;
    padding-top: 15px; border-top: 2px solid rgba(255,255,255,0.1);
}
.checkout-btn {
    width: 100%; padding: 18px; 
    background-color: var(--primary-color);
    border: none; font-size: 1.1rem; font-weight: bold; cursor: pointer;
    border-radius: 10px; transition: var(--transition);
}
.checkout-btn:hover { background-color: #fff; color: #000; }

footer { text-align: center; padding: 30px; background-color: #080808; font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .about-content { flex-direction: column; }
    .arrow-icon { transform: rotate(90deg); align-self: center; margin-bottom: 15px; }
}