@import url("https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Titillium Web", sans-serif;
}

body {
  background-image: url(img/bg-main.jpeg);
  background-size: cover;
  background-position: center;
}

.main_container {
  padding: 0 8%;
  min-height: 100vh;
}

.logo {
  max-width: 30px;
  max-height: 30px;
}

.navbar {
  height: 12%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar nav ul {
  list-style: none;
  display: flex;
  column-gap: 20px;
}

.navbar nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar nav ul li a:hover {
  color: #c4dd7e;
}

.fa-bars {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: #f5f5f5;
  padding: 10px;
  position: absolute;
  top: 60px;
  right: 10px;
  z-index: 10;
}

.mobile-nav.active {
  display: flex;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 0;
}

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

h1 {
  color: #fff;
  font-size: 48px;
}

.text-animation {
  font-size: 32px;
  color: whitesmoke;
  font-weight: 600;
  position: relative;
}

.text-animation::after {
  content: '|';
  color: whitesmoke;
  animation: blink 0.7s infinite;
  margin-left: 5px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.desc {
  color: #fff;
  font-size: 16px;
  margin-top: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  background-position: center;
  background-size: cover;
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
}

.card .card-head {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 6px;
  padding: 6px;
}

.card .card-bottom {
  margin-top: auto;
  padding-top: 15px;
}


.btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #fff;
  color: #000;
  border-radius: 20px;
  border: 1px solid red;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.btn:hover {
  background-color: #000;
  color: #fff;
  border-color: #fff;
}

.card.card-1 { background-image: url(img/ticaret-sekilleri.jpg); }
.card.card-2 { background-image: url(img/turizm-30-yil-geriye-gitt_08a0.jpg); }
.card.card-3 { background-image: url(img/thumb_851__featuredRotator.jpeg); }
.card.card-4 { background-image: url(img/Masalbanner1.jpg); }
/* FOOTER */
.contact {
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 40px 8%;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
  }
  
  .contact h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #f1f1f1;
  }
  
  .contact a {
    color: #ffdf6b;
    text-decoration: none;
  }
  
  .contact a:hover {
    text-decoration: underline;
  }
  
  @media screen and (max-width: 768px) {
    .contact {
      font-size: 13px;
      padding: 30px 5%;
      text-align: center;
    }
  
    .contact h2 {
      font-size: 20px;
    }
  }
  
/* RESPONSIVE */
@media screen and (max-width: 550px) {
  .navbar nav ul {
    display: none;
  }

  .fa-bars {
    display: block;
  }

  .row {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .col-1, .col-2 {
    width: 100%;
  }
}

@media screen and (min-width: 551px) and (max-width: 992px) {
  .row {
    flex-direction: column;
    align-items: center;
  }

  .col-1, .col-2 {
    width: 100%;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 993px) {
  .row {
    flex-direction: column;
    align-items: center;
  }

  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Modal navigasyon tuşları */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.modal.active {
  display: flex;
}

.modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
}

.modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.modal-btn:hover {
  color: #f0db4f;
}