/* =========================================
   CSS Değişkenleri & Renk Paleti
   ========================================= */
:root {
    /* Renk Paleti */
    --primary-color: #0F3057;   /* Koyu Lacivert (Logodaki ana metin, %30) */
    --secondary-color: #008891; /* Canlı Turkuaz (Vurgular, %10) */
    --accent-color: #E7E0C9;    /* Açık Altın/Kahve (İkincil vurgu, %10) */
    --bg-color: #F9F7F1;        /* Krem/Kağıt Dokusu (Arka plan, %60) */
    --text-color: #1A202C;      /* Nötr Koyu (Genel Metin) */
    --card-bg: #FFFFFF;         /* Kart Arka Planı */

    /* Gölgeler & Geçişler */
    --box-shadow: 0 8px 24px rgba(0, 136, 145, 0.12); /* Hafif turkuaz kırılımlı gölge */
    --transition: all 0.3s ease-in-out;
}

/* =========================================
   Reset & Temel Ayarlar
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* =========================================
   Butonlar
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 136, 145, 0.3);
}

.btn-primary:hover {
    background-color: #006c74;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 145, 0.4);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(231, 224, 201, 0.4);
}

.btn-accent:hover {
    background-color: #d1c8a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 224, 201, 0.6);
}

/* =========================================
   Header & Navbar
   ========================================= */
.header {
    background-color: var(--bg-color);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header.scrolled {
    padding: 12px 0;
    background-color: rgba(249, 247, 241, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

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

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('assets/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 48, 87, 0.7); /* Lacivert kaplama */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--bg-color); /* F9F7F1 */
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e2dfd5;
}

.hero-btn {
    font-size: 1.1rem;
    padding: 15px 35px;
}

/* =========================================
   About Section
   ========================================= */
.about {
    background-color: var(--bg-color);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

/* =========================================
   Menu Categories
   ========================================= */
.bg-light {
    background-color: #FFFFFF; /* Biraz kontrast için tamamen beyaz */
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.category-card {
    background-color: var(--card-bg);
    padding: 0;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0, 136, 145, 0.2);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 20px;
}

.menu-cta-container {
    text-align: center;
}

/* =========================================
   Gallery Section
   ========================================= */
.gallery {
    background-color: var(--bg-color);
}

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

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    aspect-ratio: 4/3;
}

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

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

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.social-link {
    display: inline-block;
    color: var(--accent-color);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(231, 224, 201, 0.2);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

.copyright a {
    color: var(--secondary-color);
}

/* =========================================
   Animasyonlar
   ========================================= */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Mobil Uyumluluk (Responsive)
   ========================================= */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .navbar.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .menu-btn-header {
        display: none; /* Mobilde header'daki butonu gizle, menü içine veya footer'a alacağız */
    }

    /* Mobilde hamburger açıkken çarpı işareti yapma */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu-btn {
        width: 100%; /* Mobilde geniş buton */
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .section {
        padding: 50px 0;
    }
}
