@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root{
    --main-color:#958f8d;
    --black-color:#8c8377;
    --border: 0.1rem  solid rgba(255,255,255,0.4);
}

* {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  transition: 0.2s ease;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}

/* Scroll özellikleri */
html::-webkit-scrollbar{
  width: 0.8rem;
  background-color: white;
}

html::-webkit-scrollbar-track{
  background-color: transparent;
}

html::-webkit-scrollbar-thumb{
  border-radius: 3rem;
  background-color: var(--black-color);
}

body{
  background-color: var(--main-color);
  position: relative;
}

section{
  padding: 3.5rem 7%;
}

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

.btn{
  margin-top: 1rem;
  display: inline-block;
  padding: 2rem 3.75rem;
  border-radius: 20rem;
  font-size: 1.7rem;
  color: #fff;
  background-color: var(--black-color);
  cursor: pointer;
  text-align: center;
  line-height: 1;
}

.btn:hover{
  opacity: 0.9;
}

.heading{
  color: #fff;
  text-transform:uppercase ;
  font-size: 4rem;
  margin-bottom: 3.5rem;
  border-bottom: 0.1rem solid #fff;
}

/* Header Start */
.header {
  background-color: #e2e2e2;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7%;
  margin: 2rem 7%;
  border-radius: 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: hidden;
}

.header .logo img {
  height: 10rem;
}

/* Desktop - navbar sağda */
.header .navbar {
  display: flex;
  margin-left: auto;
}

.header .navbar a{
  margin: 0 1rem;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--black-color);
  border-bottom: 0.1rem solid transparent;
}

.header .navbar .active,
.header .navbar a:hover{
  border-color: var(--main-color);
  padding-bottom: 0.5rem;
}

.header .buttons button{
  cursor: pointer;
  font-size: 2.5rem;
  margin-left: 1rem;
  background-color: transparent;
  color: var(--black-color);
}

/* Hamburger menü butonu - varsayılan olarak gizli */
#menu-btn {
  display: none;
}

/* Home Section */
.home{
  min-height: 100vh;
  background: url(../görseller/kapak3.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: -14.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.home .content{
  max-width: 60rem;
  text-align: right;
  margin-right: 5rem;
}

.home .content h3{
  font-size: 6rem;
  color: white;
  margin-bottom: 1.5rem;
  text-align: right;
}

.home .content p{
  font-size: 2rem;
  font-weight: 300;
  line-height: 0.9;
  padding: 1rem 0;
  color: #000;
}

/* Menu Section */
.menu .box-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.5rem;
}

.menu .box-container .box{
  padding: 3rem;
  border-radius: 3rem;
  background-color: hsla(39, 77%, 83%, 0.5);
  min-height: 60rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
}

.menu .box-container .box img{
  width: 100%;
  object-fit: cover;
  height: 25rem;
  border-radius: 1.5rem;
}

.menu .box-container .box .menu-category{
  font-size: 1.2rem;
  text-transform: none;
}

.menu .box-container .box h3{
  font-size: 3rem;
  padding: 1rem 0;
  text-transform: none;
  min-height: 8rem;
}

/* Modal Stilleri */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: #B0A695;
  font-size: 1.5rem;
  line-height: 2.5rem;
  text-align: justify;
  padding: 3rem;
  border-radius: 1.5rem;
  max-width: 60rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease 0.1s;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  color: #555;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #000;
}

.modal-content .btn {
  margin-top: 1.5rem;
}

/* About Section */
.about .row{
  display: flex;
  flex-wrap: wrap;
  column-gap: 2rem;
  align-items: center;
}

.about .row .image{
  flex: 1 1 40rem;
  max-width: 40%;
  order: 1;
}

.about .row img{
  width: 100%;
  height: auto;
}

.about .row .content{
  flex: 1 1 40rem;
}

.about .row .content p{
  font-size: 1.6rem;
  color: #FFF;
  padding: 1rem 0;
  line-height: 1.8rem;
  text-align: justify;
  line-height: 2.5rem;
}

/* Contact Section */
.contact .row{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact .row .map{
  flex: 1 1 40rem;
  width: 100%;
  object-fit: cover;
  height: 40rem;
  border-radius: 1rem;
}

.contact .row form{
  flex: 1 1 40rem;
  padding: 5rem 2rem;
  text-align: center;
}

.contact .row form h3{
  text-transform: none;
  font-size: 3.5rem;
  color: #fff;
}

.contact .row p{
  text-transform: none;
  font-size: 2.1rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  font-weight: 200;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  background-color: #776B5D;
  color: #f5f5f5;
  text-align: center;
  padding: 2rem 0;
  font-size: 1.2rem;
}

/* Background Colors */
#menu {
  background-color: #B0A695;
}

#about {
  background-color: #A89A87;
}

#contact {
  background-color: #776B5D;
}

/* MOBİL STİLLER - 768px ve altı */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Hamburger menü butonu - MOBİLDE GÖRÜNSÜN */
  #menu-btn {
    display: inline-block !important;
    z-index: 1002;
    position: relative;
  }

  .header {
    margin: 1rem 5%;
    padding: 0 5%;
    position: relative;
    overflow: visible;
  }

  .header .logo img {
    height: 7rem;
  }

  /* Navbar - MOBİL */
 /* Navbar - MOBİL */
.header .navbar {
  position: absolute;   /* 'fixed' yerine 'absolute' (header'a göre hizalanacak) */
  top: 100%;          /* Header'ın tam altına konumlandır */
  left: 0;
  width: 100%;        /* Tam genişlik */
  max-width: 100%;    /* Limiti kaldır */
  height: auto;         /* '100vh' yerine içerik kadar */
  background-color: #e2e2e2;
  flex-direction: column;
  padding: 0;           /* Padding'i sıfırlıyoruz, linkler kendi padding'ini alacak */
  z-index: 1001;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1); /* Gölgeyi alta ver */
  border-radius: 2rem;
  margin-left: 0;
  margin-top: 1rem;
  /* Animasyon için 'right' yerine 'transform' ve 'opacity' kullanıyoruz */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px); /* Başlangıçta hafif yukarıda ve görünmez */
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.header .navbar.active {
  /* 'right: 0' yerine animasyonu tetikliyoruz */
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* Normal pozisyonuna (aşağı inmiş) haline getir */
}

.header .navbar a {
  margin: 0; /* Üst/alt marjı kaldır (daha bitişik bir menü için) */
  font-size: 1.8rem;
  display: block;
  text-align: center;
  padding: 1.5rem;
  width: 100%;
}

/* (Opsiyonel Estetik Düzeltme) Son linkin altındaki çizgiyi kaldır */
.header .navbar a:last-child {
  border-bottom: none;
}

  .header .buttons {
    display: flex;
    align-items: center;
  }

  body.navbar-open {
    overflow: hidden;
  }

  /* Diğer mobil ayarlamalar */
  section {
    padding: 2rem;
  }

  .home {
    margin-top: -10rem;
    justify-content: center;
  }

  .home .content {
    text-align: center;
    margin-right: 0;
    max-width: 90%;
  }

  .home .content h3 {
    font-size: 4rem;
    text-align: center;
  }

  .about .row .image {
    max-width: 100%;
    flex-basis: 100%;
    order: 2;
    margin-top: 2rem;
  }

  .about .row .content {
    order: 1;
  }

  .heading {
    font-size: 3rem;
  }
}

/* Küçük ekranlar için ek ayarlamalar */
@media (max-width: 480px) {
  html {
    font-size: 50%;
  }

  .header {
    margin: 1rem 3%;
    padding: 0 3%;
  }

  .menu .box-container {
    grid-template-columns: 1fr;
  }

  .home .content h3 {
    font-size: 3rem;
  }
}