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

body {
  background: #000;
  font-family: 'Barlow', sans-serif;
}

/* Hero Section Styles */
section.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: #000;
}

.hero-menu {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #000;
}

.hero-menu-item {
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-right: 1px solid rgb(255 255 255 / 65%);
  background: transparent;
  cursor: pointer;
  transition: background 0.45s ease;
  min-height: 120px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero-menu-item:last-child {
  border-right: none;
}

.hero-menu-item[data-active="true"] {
  background: rgba(0, 0, 0, 0.4);
}

.hero-menu-item:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Individual background images for each item */
.hero-menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  transition: all 0.6s ease;
  z-index: 1;
}

.hero-menu-item[data-bg="proje"]::before {
  background-image: url('../images/landing-proje.webp');
}

.hero-menu-item[data-bg="plaza"]::before {
  background-image: url('../images/landing-plaza.webp');
}

.hero-menu-item[data-bg="denetim"]::before {
  background-image: url('../images/landing-yapidenetim.webp');
}

.hero-menu-item:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

.hero-menu-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, background 0.3s ease;
  z-index: 2;
}

.hero-menu-item:hover::after,
.hero-menu-item[data-active="true"]::after {
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0) 100%);
}

.hero-menu-content {
  position: relative;
  z-index: 3;
}

.hero-menu-item h2 {
  font-size: 42px;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

img.hero-menu-logo {
  width: 280px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-menu-item .desc {
  margin-top: 20px;
  font-weight: 500;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.45s ease;
  height: 0;
  overflow: hidden;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-menu-item[data-active="true"] .desc {
  opacity: 1;
  transform: translateY(0);
  height: auto;
}

.hero-menu-item a {
  display: flex;
  align-items: center;
  margin-top: 30px;
  color: white;
  text-decoration: none;
  gap: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.45s ease;
  font-weight: 600;
  font-size: 16px;
}

.hero-menu-item[data-active="true"] a {
  opacity: 1;
  transform: translateY(0);
}

.icon-arrow {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

.hero-menu-item a:hover .icon-arrow {
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
}

.icon-arrow svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* Search Modal Styles */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.search-modal.active {
  display: flex;
}

.search-modal-content {
  background: rgba(37, 39, 45, 0.95);
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 20px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-modal-title {
  font-size: 20px;
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.search-modal form {
  position: relative;
}

.search-modal input {
  height: 60px;
  padding: 0 60px 0 20px;
  width: 100%;
  font-size: 16px;
  color: white;
  background: rgba(45, 48, 55, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-modal input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-modal input:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.search-modal input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  border-radius: 8px;
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
}

.search-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.bg-container.after-overlay {
  display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-menu {
    grid-template-columns: 1fr;
  }

  .hero-menu-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 200px;
    padding: 30px;
  }

  .hero-menu-item:last-child {
    border-bottom: none;
  }

  .hero-menu-item h2 {
    font-size: 32px;
  }

  img.hero-menu-logo {
    width: 220px;
  }

  .hero-menu-item .desc {
    font-size: 15px;
  }

  .icon-arrow {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  section.hero {
    min-height: 100vh;
  }

  .hero-menu-item {
    min-height: 180px;
    padding: 25px;
  }

  .hero-menu-item h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  img.hero-menu-logo {
    width: 180px;
    margin-bottom: 15px;
  }

  .hero-menu-item .desc {
    font-size: 14px;
    margin-top: 15px;
  }

  .hero-menu-item a {
    margin-top: 20px;
    font-size: 14px;
    gap: 12px;
  }

  .icon-arrow {
    width: 40px;
    height: 40px;
  }

  .search-modal-content {
    padding: 30px 20px;
  }
}
