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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #5D4037;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #8D6E63;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    background-color: #8D6E63;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #8D6E63;
}

.btn:hover {
    background-color: transparent;
    color: #8D6E63;
}

img {
    max-width: 100%;
    border-radius: 8px;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    max-width: 200px;
}

.logo img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #5D4037;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a,
.blog a {
    text-decoration: none;
    color: #5D4037;
    font-weight: 600;
    transition: all 0.3s ease;
}
.blog{
    border:1px solid #ddd;padding:15px;margin-bottom:15px;
}

nav ul li a i {
    font-size: 1.3rem;
}

nav ul li a:hover {
    color: #8D6E63;
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 800px;
    position: relative;
    overflow: hidden;
    color: white;
    padding-top: 80px;
    margin-bottom: 0;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -2px; /* Aradaki boşluğu tamamen ortadan kaldırmak için */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    z-index: 1;
    width: 100%;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 2;
    transform: translateY(-50%);
}

.slider-nav button {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

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

.dot.active {
    background: white;
}

/* About Section */
.about {
    background-color: #FAF3E0;
    padding: 100px 0 80px;
    margin-top: 0;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #5D4037;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Coffee Section - Artık kullanılmıyor */
/* Bu kısım kaldırıldı ve yerine gallery geldi */

/* Contact Section */
.contact {
    background-color: #FAF3E0;
    padding: 80px 0;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.map {
    flex: 1;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: #8D6E63;
    margin-right: 15px;
    width: 30px;
}

.social-media {
    margin-top: 30px;
}

.social-icon {
    display: inline-block;
    color: #8D6E63;
    background-color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #8D6E63;
    color: white;
}

/* Footer */
footer {
    background-color: #5D4037;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Gallery Section */
.gallery {
    background-color: #fff;
    padding: 80px 0;
}

/* Container genişliğini sınırla ve ortala */
.gallery .container {
    max-width: 1400px; /* Daha geniş container */
    width: 92%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transition: opacity 0.5s ease;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden; /* Taşmaları engelle */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 300px; /* Standart yükseklik */
    transition: all 0.5s ease;
    width: 100%; /* Genişlik tam çerçeveye sığacak şekilde */
    aspect-ratio: 1 / 1; /* Kare görünüm */
}

/* Öne çıkan galeri öğeleri */
.gallery-item.featured {
    grid-column: span 2;
    height: 300px; /* Featured öğeleri de aynı yükseklikte */
    width: 100%; /* Genişlik tam çerçeveye sığacak şekilde */
    aspect-ratio: 2 / 1; /* İki karelik genişlikte görünüm */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    object-position: center center; /* Görüntüyü merkeze hizala */
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.gallery-overlay p {
    font-size: 1rem;
    margin-bottom: 0;
}

.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content, .contact-content {
        flex-direction: column;
    }
    
    .hero {
        min-height: 650px;
        height: 85vh;
        margin-bottom: 0;
    }
    
    .about {
        padding-top: 80px;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .slide-content {
        padding-bottom: 40px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto; /* Mobil menüde kaydırma için */
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 12px;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(141, 110, 99, 0.1);
    }
    
    nav ul li:last-child a {
        border-bottom: none;
    }
    
    /* Instagram icon için özel stil */
    nav ul li:last-child {
        margin-top: 20px;
    }
    
    nav ul li:last-child a {
        font-size: 1.8rem;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        border: 1px solid rgba(141, 110, 99, 0.2);
        border-radius: 50%;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .slide-bg {
        background-size: cover;
        background-position: center center !important;
        height: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        min-height: 600px;
        height: 80vh;
        margin-bottom: 0;
    }
    
    .about {
        padding-top: 70px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .slide-content {
        padding-bottom: 30px;
    }
    
    .slider-nav button {
        width: 40px;
        height: 40px;
    }
    
    .slide-bg {
        background-size: cover;
        background-position: center center !important;
    }
}

@media (min-width: 1200px) {
    .hero {
        min-height: 900px;
    }
}

@media (min-width: 1600px) {
    .hero {
        min-height: 1000px;
    }
    
    .slide-bg {
        background-size: cover;
        background-position: center center;
    }
}

/* Büyük ekranlar için daha fazla sütun */
@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1800px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Medium ekranlar için düzenleme */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .gallery-item {
        height: 280px; /* Medium ekranlar için tüm öğeler aynı yükseklikte */
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    
    .gallery-item.featured {
        grid-column: span 3; /* Tam genişlik */
        height: 280px;
        width: 100%;
        aspect-ratio: 3 / 1; /* Üç karelik genişlikte görünüm */
    }
    
    .gallery .container {
        width: 90%;
    }
}

/* Tablet görünümü */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-item.featured {
        grid-column: span 2; /* Tam genişlik */
        height: 250px;
        width: 100%;
        aspect-ratio: 2 / 1; /* İki karelik genişlikte görünüm */
    }
    
    .gallery-item {
        height: 250px; /* Tablet için standart yükseklik */
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    
    .gallery-overlay {
        opacity: 0.3; /* Mobilde hafif görünür overlay */
    }
    
    .gallery .container {
        width: 95%;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item.featured {
        grid-column: span 1; /* Tek sütunlu görünüm */
        height: 230px;
        width: 100%;
        aspect-ratio: 1 / 1; /* Mobile'da tüm öğeler kare */
    }
    
    .gallery-item {
        height: 230px; /* Mobil için standart yükseklik */
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    
    .gallery .container {
        width: 90%;
        padding: 0 10px;
    }
}

@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .gallery-item, 
    .gallery-item:nth-child(3n+1),
    .gallery-item:nth-child(4n),
    .gallery-item:nth-child(5n),
    .gallery-item:nth-child(8n) {
        height: 220px;
    }
}

/* Overlay for mobile menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s, height 0s 0.3s;
    pointer-events: none;
}

body.menu-open .menu-overlay {
    height: 100%;
    opacity: 0.5;
    transition: opacity 0.3s, height 0s 0s;
    pointer-events: all;
}