/* Full-screen Header */
.full-screen-header {
  position: relative;
  width: 100%;
  height: calc(100vh - 56px); /* Subtract navbar height */
  overflow: hidden;
  display: flex;
  align-items: flex-end; /* Align items to the bottom */
  justify-content: flex-start; /* Align items to the left */
}

/* Default Background Image for Large Screens */
.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('anasayfa.jpg'); /* Default image */
  background-size: cover; /* Cover the entire container by default */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat;
  z-index: -1;
}

/* Custom Button */
.custom-button {
  background: linear-gradient(135deg, #5fffcc9c, #5fffcc9c);
  color: #fff;
  border: 2px solid #fff;
  padding: 1em 2em;
  font-size: 1.25em;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.3);
  text-align: center;
  display: inline-block;
  position: absolute;
  bottom: 1em; /* Space from the bottom */
  left: 1em; /* Space from the left */
}

.custom-button:hover {
  background: linear-gradient(135deg, #ffffff, #ffffff);
  transform: scale(1.1);
  box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-bg {
    background-image: url('asıllogo.jpg'); /* Image for medium screens */
    background-size: cover; /* Adjust size to cover the container */
    background-position: center; /* Center the background image */
  }
}

@media (max-width: 480px) {
  .full-screen-header {
    height: calc(100vh - 52.8vh); /* Ensure full screen minus navbar height */
    
  }

  .custom-button {
    font-size: 0.9em;
    padding: 0.5em 1em;
    left: 0.5em; /* Adjust space from the left for smaller screens */
    bottom: 0.8em; /* Adjust space from the bottom for smaller screens */
  }

  .header-bg {
    background-image: url('asıllogo.jpg'); /* Image for small screens */
    background-size: contain; /* Ensure the background contains within the container */
    background-position: center; /* Center the background image */
  }
}

/* Team Section */
.team-member {
  max-width: 300px;
  margin: 0 auto;
}

.team-img-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.25em;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-img {
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .team-member {
    width: 100%;
  }
}

/* Work Container and Cards */
.work-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1em;
}

.work-content {
  display: flex;
  flex-wrap: wrap;
}

.work-text,
.work-cards {
  flex: 1;
  min-width: 280px;
  box-sizing: border-box;
}

.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.2);
  border-radius: 0.5em;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease;
  background-color: #ffffff;
  color: #000000;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.card-img {
  width: 100%;
  height: auto;
}

.card-container:hover {
  transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .work-container {
    flex-direction: column;
    align-items: center;
  }

  .work-text,
  .work-cards {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.25em;
  }
}

@media (max-width: 480px) {
  .card-container {
    max-width: 100%;
  }
}

/* Contact Section */
#contact {
  padding: 2em 1em;
}

.contact-info {
  margin-bottom: 1em;
}

.contact-info p i {
  margin-right: 0.5em;
}

.contact-form {
  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1);
  border-radius: 0.5em;
}

.w3-input {
  border: 1px solid #ccc;
  border-radius: 0.25em;
  padding: 0.5em;
}

.w3-button {
  margin-top: 1em;
}

@media (max-width: 600px) {
  .w3-col {
    width: 100%;
    margin-bottom: 1em;
  }

  .w3-col.m5 {
    margin-bottom: 0.5em;
  }

  .w3-col.m7 {
    margin-bottom: 0.5;
  }
}
/* Modal Positioning */
.modal-dialog {
  position: fixed;
  bottom: 20px; /* Adjust this value for vertical positioning */
  left: 20px; /* Adjust this value for horizontal positioning */
  margin: 0; /* Remove default margin */
  max-width: none; /* Allow custom width */
}

.modal-content {
  border-radius: 0.5em; /* Optional: for rounded corners */
}

@media (max-width: 768px) {
  .modal-dialog {
    width: 100%;
    bottom: 0; /* Move to the bottom of the screen on smaller screens */
    left: 0;
    margin: 0;
  }
}

