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

html {
  scroll-behavior: smooth;
}

.nav-links .nav-icon {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links .nav-icon svg {
  display: block;
  width: 32px;
  height: 32px;
  margin-top: -0.3rem;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #222;
}
p {
  text-wrap: balance;
}
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
}
.hero p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}
.btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}
section {
  padding: 4rem 1rem;
}
.container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #ffffff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}
.project {
  background: #ffffff; /* pure white for better contrast */
  padding: 1rem;
  border-radius: 10px;
}
.project img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
footer {
  text-align: center;
  padding: 3rem;
  background: #eee;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* Navbar Styles */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  /* color: #0077cc; */
}
.logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}
.logo img {
  height: 32px;
  margin-right: 0.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #0077cc;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  display: block;
}

.call-button {
  display: none;
}

.instagram-mobile-icon {
  display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scaleY(0);
    transform-origin: top;
    pointer-events: none;
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: scaleY(1);
    pointer-events: auto;
  }
  .mobile-navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .instagram-mobile-icon {
    display: block;
    width: 24px;
    height: 24px;
    fill: #000000;
    margin-top: -1rem;
    margin-right: 0.8rem;
  }

  .menu-toggle {
    display: flex;
  }

  .instagram-navbar-icon {
    display: none;
  }

  /* Mobile Menu Call Button Styles */
  .call-button {
    display: block;
    text-align: center;
    margin: auto;
  }
  .call-button a {
    display: block;
    padding: 0.75rem 6rem;
    background-color: #3b82f6; /* tailwind blue-500 */
    color: #ffffff !important;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
  }

  .call-button a:hover {
    background-color: #2563eb; /* tailwind blue-600 */
  }
}

.card-icon {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.card-icon svg {
  width: 60px;
  height: 60px;
}

#services,
#instagram {
  background-color: #f3f4f6; /* Tailwind gray-200 */
}

.instagram iframe {
  width: 100%;
  max-width: 1000px;
  height: 600px;
  padding: 1rem;
  background-color: white;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  margin-top: 1.5rem;
  padding: 2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .instagram,
  .instagram iframe {
    width: 100%;
    max-width: 1000px;
    margin: 1.5rem 0 -2rem 0;
    padding: 0.5rem;
    box-shadow: none;
    border-radius: 0;
    background-color: transparent;
  }
  .instagram {
    background-color: white !important;
  }
}

#about p {
  text-align: left;
  border-left: 3px solid #d1d5db; /* Tailwind gray-300 */
  padding-left: 1rem;
}

/* Contact section grid layout and map responsiveness */
.contact-grid {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  /* Removed unnecessary gap property for balanced spacing */
  max-width: 1000px;
  margin: auto;
}

.contact-details {
  width: 50%;
  min-height: 400px;
  padding: 1.5rem;
  padding-left: 0;
}

.map {
  width: 50%;
  min-height: 400px;
  padding-right: 1.5rem;
  position: relative;
}

.map a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.2); /* Tailwind gray-300 */
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column-reverse;
    margin-left: 0;
    width: 100%;
  }

  .contact-details,
  .map {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .map {
    margin-top: 2rem;
  }
  .map iframe {
    height: 300px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    margin-right: 0;
    padding-right: 0;
    width: 100%;
    height: 60vh;
  }

  .contact-buttons {
    margin: 0 auto;
    margin-bottom: 1.5rem;
    justify-content: center;
  }
  .contact-call-text {
    text-align: center;
    font-size: 1.2rem;
    color: #374151; /* Tailwind gray-700 */
  }
}

/* Improved Contact Details and Form Styles */
.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  background-color: #ffffff;
}

.contact-details p {
  font-size: 1rem;
  line-height: 1.6;
}

.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-details a {
  color: #0077cc;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Form styling */
.contact-form {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.contact-form button {
  padding: 0.75rem 1.5rem;
  background-color: #3b82f6;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #2563eb;
}

/* Map hover overlay styles */
.map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  font-size: 1.2rem;
  border-radius: 12px;
  pointer-events: none;
  cursor: pointer;
  text-decoration: none;
}

.map-wrapper:hover .map-overlay {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0rem 0.75rem;
  align-items: flex-start;
}

.contact-buttons .btn {
  display: inline-flex;
  align-items: center;
  background-color: #3b82f6; /* Tailwind blue-500 */
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  width: fit-content;
}

.contact-buttons .btn:hover {
  background-color: #2563eb; /* Tailwind blue-600 */
  text-decoration: none;
}

.contact-buttons .btn svg {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-buttons .btn-whatsapp {
  background-color: #25d366 !important; /* WhatsApp green */
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  width: fit-content;
}

.contact-info-item strong {
  color: #374151; /* Tailwind gray-700 */
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-info-item a {
  color: #0077cc;
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

/* Referans Projeler - Projects Grid Styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.2s ease;
}

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

.project-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f3f4f6; /* Tailwind gray-200 fallback */
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-text {
  padding: 1rem;
}

.project-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-text p {
  font-size: 0.9rem;
  color: #4b5563; /* Tailwind gray-700 */
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
  hyphens: auto;
}

.project-image-wrapper.multi {
  display: flex;
  gap: 0.5rem;
  height: 200px;
  aspect-ratio: unset;
}

.project-image-wrapper.multi img {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.project-image-wrapper.slider {
  overflow: hidden;
  width: 100%;
  height: 200px;
  position: relative;
}

.project-image-wrapper.slider .slide-track {
  display: flex;
  width: 200%;
  animation: slide 8s infinite ease-in-out;
}

.project-image-wrapper.slider .slide-track a {
  width: 50%;
  height: 200px;
  display: block;
}

.project-image-wrapper.slider .slide-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slide {
  0%,
  40% {
    transform: translateX(0%);
  }
  50%,
  90% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* JS-based image slider for the 4th project card */
.project-image-wrapper.js-slider {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image-wrapper.js-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.project-image-wrapper.js-slider img:first-child {
  opacity: 1;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
  padding: 2rem;
  box-sizing: border-box;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
