body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
}

.navbar {
  background-color: rgba(0, 0, 0, 0.9);
  height: 130px;
  width: auto;
  display: inline-flex;
  white-space: nowrap;
  margin: 0;
  border-radius: 26px;
  padding: 0.5rem;
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1050;
  overflow: hidden;
  overflow: visible !important; /* Kritik Ã¶neme sahip */
  transform: translateZ(100px); /* GPU katmanÄ± oluÅŸtur */
  will-change: transform; /* Performans optimizasyonu */
}




.dropdown-menu {
  z-index: 2147483647;
  position: absolute;
  top: 100% !important; /* ÃœrÃ¼nler butonunun tam altÄ±nda */
  left: 0;
  opacity: 0;
  visibility: hidden;
  display: block !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  width: 100%; /* GeniÅŸlik ayarÄ± */
  min-width: 200px; /* Minimum geniÅŸlik */
}
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
}

.dropdown-item {
  color: #d7d7d9;
  padding: 0.5rem 1.5rem;
  font-size: 1.1rem;
  transition: all 0.3s;
  z-index: 9999;
  white-space: normal !important; /* Metin kaymasÄ±nÄ± engelleme */
  padding: 0.75rem 1.25rem !important; /* Daha dengeli padding */
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #fff;
  background-color: #48657b;
}

/* Mobile dropdown ayarlarÄ± */
@media (max-width: 991px) {
  .dropdown .dropdown-menu {
    display: none;
    position: absolute !important;
    top: 100%;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    padding: 10px 15px;
  }

  .dropdown:has(.dropdown-toggle:focus) .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-nav {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
  }
  .dropdown-item {
    font-size: 1.4rem !important;
    padding: 0.8rem 2rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-item {
      width: 100%;
  }
}
@media (max-width: 991px) {
  .offcanvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background-color: #000 !important;
      z-index: 9999 !important;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      visibility: hidden;
      opacity: 0;
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  .offcanvas.show {
      visibility: visible;
      opacity: 1;
      transform: translateX(0);
  }

  .offcanvas ul {
      width: 100%;
      list-style: none;
      text-align: center;
      padding: 0;
  }

  /* Ana baÅŸlÄ±klar */
  .offcanvas ul > li > a {
      color: white;
      text-decoration: none;
      font-size: 3rem; /* BÃ¼yÃ¼k baÅŸlÄ±k */
      font-weight: bold;
      display: block;
      padding: 20px;
      transition: color 0.3s ease-in-out;
  }

  .offcanvas ul > li > a:hover {
      color: #000000;
  }

  /* Dropdown MenÃ¼sÃ¼ (ÃœrÃ¼nler Ä°Ã§eriÄŸi) */
  .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .dropdown:has(.dropdown-toggle:focus) .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }


  .dropdown li {
      list-style: none;
  }

  .dropdown li a {
      font-size: 100px; /* KÃ¼Ã§Ã¼k yazÄ± */
      color: white;
      text-decoration: none;
      display: block;
      padding: 10px;
  }

  .dropdown li a:hover {
      color: #000000;
  }

  /* Dropdown AÃ§/Kapat Butonu */
  .dropdown-toggle {
      cursor: pointer;
      font-size: 3rem;
      font-weight: bold;
      color: white;
      text-decoration: none;
      display: block;
      padding: 20px;
  }

  .dropdown-toggle:hover {
      color: #000000;
  }
  .navbar-toggler {
      background: none;
      border: none;
      font-size: 2rem;
      color: white;
      cursor: pointer;
  }
  
.offcanvas-body {
  padding: 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 90%;
  height: 100%;
}

.offcanvas-body .navbar-nav {
  width: 100% !important;
  gap: 0.5rem !important;
}

.offcanvas-body .nav-item {
  width: 100% !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 2rem !important;
  color: #d7d7d9;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  width: 90%; /* GeniÅŸlik ayarÄ± */
  min-width: 200px; /* Minimum geniÅŸlik */
}

.offcanvas-body .nav-link {
  font-size: 2rem !important;
  padding: 0.75rem 1rem !important;
  color: #d7d7d9 !important;
  display: block !important;
  background-color: black !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
  border-radius: 0.5rem !important;
  margin: 0.5rem 0 !important;
}


}
@media (max-width: 991px) {
  .navbar {
    margin: 10px auto !important; /* Otomatik margin ile ortala */
    top: 0;
    left: 0;
    right: 0;
    width: calc(100% - 20px); /* Ekran geniÅŸliÄŸine gÃ¶re ayarla (margin dahil) */
    display: flex;
    justify-content: center; /* Ä°Ã§eriÄŸi ortala */
    height: 115px !important; /* Daha küçük yükseklik */
  }

  /* Navbar iÃ§eriÄŸini ortalamak iÃ§in */
  .navbar > .container-fluid {
    justify-content: center !important;
  }

  /* Navbar toggler'Ä± sola yaslamak istemiyorsanÄ±z */
  .navbar-toggler {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (min-width: 1300px) {
  .navbar {
    width: 95% !important; /* Daha dar bir geniÅŸlik */
    margin: 10px auto !important;
  }
}
@media (max-width: 768px) {
  .nav-link {
    font-size: 1.5rem; /* KÃ¼Ã§Ã¼k ekranlarda biraz kÃ¼Ã§Ã¼lt */
    background-color: rgba(0, 0, 0, 0.9);
    display: block !important;
    flex-direction: column !important;
    align-items: start !important;
    padding: 1rem !important;
    z-index: 9999 !important;
    visibility: visible !important;

  }
}

a {
  color: white;
  transition: 0.3s;
}

a:hover {
  color: #48657b;
}



.navbar-toggler {
  border: none;
  font-size: 1.75rem;
}

.navbar-toggler:focus,
.btn-close:focus {
  box-shadow: none;
  outline: none;
}

.nav-link {
  color: #d7d7d9;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1.75rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #a09fa4;
}

@media (min-width: 991px) {
  .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #000000;
    visibility: visible;
    transition: 0.3s ease-in-out;
  }

  .nav-link:hover::before,
  .nav-link.active::before {
    width: 100%;
    visibility: visible;
  }
  
}


.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: #a09fa4;
}



.hero-section {
  background: url(./images/home-background.jpg) no-repeat center;
  background-attachment: fixed;
  background-size: cover;
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: -1;
}

.hero-section svg {
  fill: white;
  transition: transform 0.3s ease;
}

.hero-section a:hover svg {
  transform: translateY(5px); /* Add hover effect */
}

.hero-section::before {
  background-color: rgba(0, 0, 0, 0.6);
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: -1;
}

.hero-section .container-fluid {
  height: 90vh;
  z-index: 1;
  position: relative;
}

.nav-item .dropdown {
  transition: 0.3s;
}

.hero-section h1 {
  font-size: 6rem;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  color: white;
  padding-top: 25vh;
}
.container p, .offcanvas-body p {
  color: white !important;
}

@media screen and (max-width: 1200px) {
  #slogan {
    font-size: 5rem;
    font-weight: 700;
  }
}

@media screen and (max-width: 890px) {
  #slogan {
    font-size: 4rem;
    font-weight: 700;
  }
}

@media screen and (max-width: 450px) {
  .hero-section h1 {
    padding-top: 25vh;
  }

  #slogan {
    font-size: 3rem;
    font-weight: 900;
    line-height: 5rem;
  }
}

/* Carousel Container */
.carousel {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.carousel-item {
  width: 100%;
  height: auto;
  min-height: 300px;
  text-align: center;
  background: #000; /* Black background for letterboxing */
}


.carousel-indicators-wrapper button {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  border: none;
  background-color: #999;
  opacity: 0.6;
  transition: 0.3s;
}

.carousel-indicators-wrapper button.active,
.carousel-indicators-wrapper button:hover {
  background-color: #333;
  opacity: 1;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Resmin bulunduğu alanın yüksekliğine göre alt elemanları ayarla */
.carousel-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain; /* Show entire image */
}


/* Indicators'ı resmin altına hizala */
.carousel-indicators {
  position: absolute;
  bottom: 10px; /* Görselin içinde kalır */
  z-index: 2;
}

/* Küçük ekranlarda aspect-ratio bozulmasın */
@media (max-width: 768px) {
  .carousel-inner {
    aspect-ratio: unset;
    height: auto;
    max-height: none;
  }
}


/* Carousel item'lar için sabit yükseklik */
.c-item {
  height: 500px; /* İhtiyacınıza göre bu değeri ayarlayın */
}

/* Görsellerin orantılı şekilde sığmasını sağla */
.c-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* veya 'cover' tercihinize göre */
  object-position: center;
}
/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16/9) {
  .carousel-item {
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16*100) */
    position: relative;
  }
  .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .carousel {
    max-height: none; /* Remove max-height on mobile */
  }
  .carousel-item {
    min-height: 300px; /* Smaller height for mobile */
  }
}

@media (max-width: 768px) {
  .carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    padding-bottom: 1rem;
  }
}


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

.portfolio-menu ul li {
  display: inline-block;
  margin: 0;
  list-style: none;
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.portfolio-item .item {
  float: left;
  margin-bottom: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1060;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-content {
  background-color: #000000;
  padding: 2rem;
  border-radius: 12px;
  width: 600px;
  max-width: 100%;
  color: #E0E0E0;
}

.modal-content form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-content form textarea {
  grid-column: span 2;
  resize: vertical;
}

.modal-content form button {
  grid-column: span 2;
  width: 100%;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #555;
  border-radius: 6px;
  background-color: #3A3A3A;
  color: #E0E0E0;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
  color: #B0B0B0;
}

.modal-content button {
  padding: 0.75rem;
  background-color: #FF5733;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #C70000;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: #E0E0E0;
  cursor: pointer;
}

@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-content form {
    grid-template-columns: 1fr;
  }

  .modal-content form button,
  .modal-content form textarea {
    grid-column: span 1;
  }
}

@media (max-width: 991px) {
  .navbar-brand {
    margin-left: 0 !important;
    flex-grow: 0; /* Doğal genişlikte kal */
    text-align: left; /* Logoyu sola yasla */
    order: 1; /* İlk sırada göster */
  }

  .navbar-brand img {
    height: 90px !important;
    width: auto !important;
    max-width: 180px !important;
    margin: 0 !important; /* Otomatik margin'i kaldır */
    display: inline-block; /* Yanında diğer elementler olabilir */
  }

  .navbar-toggler {
    position: absolute;
    right: 15px; /* Sağ kenara sabitle */
    top: 50%;
    transform: translateY(-50%); /* Dikeyde ortala */
  }
}