/* ============================================================
   ACUNLAR İNŞAAT — Custom Styles
   ============================================================ */

:root {
  --ocean: #0077b6;
  --ocean-deep: #0c5776;
  --teal: #06d6a0;
  --aqua: #00b4d8;
  --aqua-light: #48cae4;
}

* { -webkit-font-smoothing: antialiased; }

::selection { background: var(--aqua); color: var(--ocean-deep); }

html { scroll-behavior: smooth; }

body {
  background: var(--ocean-deep);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(6,214,160,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(0,180,216,0.25) 0%, transparent 60%);
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header scroll state */
#site-header.scrolled {
  background: rgba(8,68,96,0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0,180,216,0.25);
}

/* Site logo – soft edge blend */
.site-logo {
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at center, #000 50%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 80% at center, #000 50%, transparent 100%);
  border-radius: 12px;
  transition: transform 0.5s ease;
}
.site-logo:hover { transform: scale(1.05); }

/* Footer logo – slightly larger fade */
.footer-logo {
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at center, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 75% at center, #000 45%, transparent 100%);
  border-radius: 8px;
}

/* HERO */
#hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,87,118,0.2) 0%, rgba(12,87,118,0.65) 80%, var(--ocean-deep) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(12,87,118,0.3) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }

/* Display titles */
.display-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

/* Aqua underline */
.aqua-rule {
  display: inline-block;
  width: 64px; height: 2px;
  background: var(--aqua);
  margin-bottom: 1.25rem;
}

/* Section eyebrow */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--aqua-light);
  font-weight: 500;
}

/* Project card */
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(72,202,228,0.15);
  background: rgba(8,68,96,0.5);
  transition: transform 0.7s cubic-bezier(.25,.46,.45,.94), border-color 0.4s;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(72,202,228,0.5); }
.project-card .card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.project-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.25,.46,.45,.94);
  filter: saturate(0.85) contrast(1.05);
}
.project-card:hover .card-img img { transform: scale(1.08); }
.project-card .card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,68,96,0.7), transparent 60%);
}
.project-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 14px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  background: rgba(8,68,96,0.75); backdrop-filter: blur(8px);
  border: 1px solid rgba(72,202,228,0.4);
  color: var(--aqua-light);
}

/* Stat counter */
.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--aqua-light);
  line-height: 1;
  font-weight: 600;
}

/* Form inputs */
.form-input {
  width: 100%;
  background: rgba(8,68,96,0.5);
  border: 1px solid rgba(72,202,228,0.2);
  border-radius: 4px;
  padding: 14px 18px;
  color: #fafaf9;
  font-size: 14px;
  transition: border-color 0.3s, background 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: var(--aqua);
  background: rgba(8,68,96,0.75);
}
.form-input::placeholder { color: rgba(245,245,244,0.5); }

textarea.form-input { resize: vertical; min-height: 140px; }

/* Buttons */
.btn-aqua {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 14px 32px;
  background: var(--aqua);
  color: #023e5a;
  font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; font-size: 12px;
  transition: all 0.4s;
  border: 1px solid var(--aqua);
  cursor: pointer;
}
.btn-aqua:hover {
  background: transparent;
  color: var(--aqua-light);
  letter-spacing: 0.1em;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 14px 32px;
  background: transparent;
  color: var(--aqua-light);
  border: 1px solid rgba(0,180,216,0.5);
  font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 12px;
  transition: all 0.4s;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--aqua);
  background: rgba(0,180,216,0.08);
}

/* Reveal animation init state */
.reveal { opacity: 0; transform: translateY(40px); }

/* ===== HERO SLIDER ===== */
.hero-slider {
  width: 100%;
}
.hero-slider .swiper-slide {
  position: relative;
  overflow: hidden;
}

/* Collage Backgrounds */
.collage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #d6e8f0; /* Very light blue to make images pop */
}
.collage-img {
  position: absolute;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  opacity: 0.6;
  transition: transform 10s ease-out, opacity 1s ease;
  filter: brightness(0.95);
  border: 4px solid #fff; /* White border for collage feel */
}
.swiper-slide-active .collage-img {
  opacity: 1;
}
/* Individual collage image positions */
.c-img-1 { width: 50%; height: 60%; top: -10%; left: -5%; transform: rotate(-5deg); }
.c-img-2 { width: 45%; height: 50%; top: 20%; right: -5%; transform: rotate(8deg); }
.c-img-3 { width: 40%; height: 55%; bottom: -10%; left: 20%; transform: rotate(-3deg); }
.swiper-slide-active .c-img-1 { transform: rotate(-5deg) scale(1.1); }
.swiper-slide-active .c-img-2 { transform: rotate(8deg) scale(1.05) translate(-20px, 10px); }
.swiper-slide-active .c-img-3 { transform: rotate(-3deg) scale(1.08) translate(10px, -15px); }

/* Slide Content Overlay */
.slider-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,87,118,0.9) 0%, rgba(12,87,118,0.4) 50%, transparent 100%);
  z-index: 1;
}
.slider-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}
.swiper-slide-active .slider-content {
  opacity: 1;
  transform: translateY(0);
}

.swiper-pagination-bullet {
  background: var(--aqua) !important;
  opacity: 0.5 !important;
}
.swiper-pagination-bullet-active {
  opacity: 1 !important;
  width: 24px !important;
  border-radius: 4px !important;
}

/* Section divider */
.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,180,216,0.3), transparent);
}

/* Vertical text */
.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.4em;
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(0,180,216,0.5);
}

/* Glightbox dark theme override */
.glightbox-clean .gslide-description { background: rgba(8,68,96,0.95) !important; }
.glightbox-clean .gdesc-inner { color: #fafaf9 !important; }

/* Admin */
.admin-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.admin-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
}
.admin-input:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(0,180,216,0.15); }

/* Wave divider */
.wave-divider {
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}
.wave-divider svg { width: 100%; height: 100%; }
.wave-divider path { fill: var(--ocean-deep); }
