:root {
  --primary-color: #00583d;
  --secondary-color: #076c4d;
  --accent-color: #2d2321;
  --bg-color: #fcfcfc;
  --text-dark: #1a1a1a;
  --text-light: #f4f4f4;
  --input-border: #ccd6d4;

  --font-heading: serif;
  --font-body: "Montserrat", sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.section-title .line {
  height: 2px;
  width: 60px;
  background-color: var(--accent-color);
}

.section-title.centered {
  flex-direction: column;
  text-align: center;
  gap: 10px;
}
.section-title.centered .line-center {
  height: 2px;
  width: 60px;
  background-color: var(--accent-color);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: linear-gradient(180deg, #00000063, transparent);
}

.header.scrolled {
  background: rgba(43, 58, 55, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.logo-text img {
  width: 280px;
}

.header.scrolled .logo-text {
  color: #fff;
}

.logo-year {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
}

.logo-text h1 {
  font-size: 1.6rem;
  line-height: 1;
  margin: 4px 0;
  letter-spacing: 2px;
}

.logo-sub {
  font-size: 0.8rem;
  letter-spacing: 3px;
  opacity: 0.8;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 5px;
}

.header.scrolled .nav-link {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-talep-item {
  display: flex;
  align-items: center;
}

.nav-talep-btn {
  padding: 10px 25px !important;
  font-size: 0.85rem !important;
  border-radius: 30px !important;
  margin-left: 10px;
  background-color: var(--primary-color) !important;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}
.hamburger span {
  width: 30px;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-smooth);
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(43, 58, 55, 0.4) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--text-light);
  max-width: 1000px;
  margin-top: 50px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 30px;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #00583d;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-info a {
  font-size: 1.1rem;
  font-weight: 600;
}
.contact-info a:hover {
  color: var(--primary-color);
}

.form-section {
  padding: 80px 0;
  background-color: var(--bg-color);
  position: relative;
}

/* Modal and overridden form-wrapper */
.talep-form-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.talep-form-modal.active {
  display: flex;
}

.talep-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: auto;
  max-height: 90vh;
}

.talep-close-btn {
  position: absolute;
  top: 5px;
  right: 15px;
  color: #666;
  font-size: 35px;
  cursor: pointer;
  z-index: 4000;
  transition: var(--transition-smooth);
}
.talep-close-btn:hover {
  color: var(--primary-color);
}

.form-wrapper {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 50px;
  padding-top: 60px;
  position: relative;
  border-top: 5px solid var(--accent-color);
  max-height: 90vh;
  overflow-y: auto;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}
.form-header h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
}
.form-header p {
  color: #666;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(81, 107, 103, 0.1);
}

.checkbox-group-wrapper {
  margin: 10px 0;
}

.group-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--primary-color);
}

.checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  position: relative;
  padding-left: 30px;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: #eee;
  border: 1px solid var(--input-border);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.kvkk-box {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #666;
}

.btn.w-100 {
  width: 100%;
}

.form-status {
  text-align: center;
  font-weight: 600;
  margin-top: 10px;
}
.form-status.success {
  color: green;
}
.form-status.error {
  color: red;
}

.about-section {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.about-content {
  column-count: 2;
  column-gap: 50px;
}

.about-content .lead {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1.8;
}

.floorplans-section {
  padding: 100px 0;
  background-color: #eff3f2;
}

.tab-headers {
  display: flex;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--primary-color);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.tab-btn:hover,
.tab-btn.active {
  background-color: var(--secondary-color);
  color: #fff;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.plan-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.plan-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition-smooth);
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.plan-card img {
  border-radius: 4px;
  margin-bottom: 15px;
}

.plan-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--primary-color);
}

.masterplan-section {
  padding: 100px 0;
  background-color: var(--bg-color);
}
.masterplan-img-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.masterplan-img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.masterplan-img:hover {
  transform: scale(1.02);
}

.gallery-section {
  padding: 100px 0;
  background-color: #1a1a1a;
  color: #fff;
}
.gallery-section .section-title h2 {
  color: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 15px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item.item-large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item.item-wide {
  grid-column: span 2;
}

.location-section {
  padding: 100px 0;
  background-color: var(--bg-color);
}
.location-text {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  color: #555;
}
.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 30px 0 30px;
  text-align: center;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}
.footer-links a {
  color: #ccc;
  margin: 0 10px;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--accent-color);
}
.footer-social a {
  color: #fff;
  opacity: 0.8;
}
.footer-social a:hover {
  opacity: 1;
  color: var(--accent-color);
}
.footer-copy {
  font-size: 0.8rem;
  color: #fff;
  width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeIn 1s forwards;
}
.delay-1 {
  animation-delay: 0.3s;
}
.delay-2 {
  animation-delay: 0.6s;
}

@media screen and (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-content {
    column-count: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .hero-title {
    font-size: 3rem;
  }
}

@media screen and (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
  }
  .nav-list.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-wrapper {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .gallery-grid {
    display: flex;
    flex-direction: column;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

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

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-content {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--accent-color);
  text-decoration: none;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  z-index: 2001;
}

.lightbox-next {
  right: 20px;
  border-radius: 3px 0 0 3px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--accent-color);
}

.zoomable {
  cursor: zoom-in;
}

.kvkk-text a {
  color: var(--secondary-color);
  text-decoration: underline;
}
