/* Temel reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --blue: #0f3d64;
  --blue-2: #155b8a;
  --gold: #d5b276;
  --sand: #f8f4ec;
  --light: #f9fafb;
  --dark: #0b1220;
  --muted: #5b6474;
  --card: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 61, 100, 0.12);
  --shadow-strong: 0 30px 80px rgba(15, 61, 100, 0.16);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: radial-gradient(circle at 20% 20%, rgba(21, 91, 138, 0.08), transparent 38%),
    radial-gradient(circle at 80% 0%, rgba(213, 178, 118, 0.12), transparent 30%),
    linear-gradient(180deg, #f7f8fb, #eef2f7 40%, #f7f4ec);
  transition: opacity 0.6s ease;
  opacity: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page.is-loaded {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Image lazy loading optimization */
img[loading="lazy"] {
  content-visibility: auto;
}

/* Optimize images */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page > main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-section {
  padding: 36px 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0;
  background: radial-gradient(circle at 20% 30%, rgba(213, 178, 118, 0.2), transparent 36%),
    radial-gradient(circle at 80% 20%, rgba(15, 61, 100, 0.2), transparent 40%),
    linear-gradient(120deg, #0f3d64, #155b8a);
  color: #f8fafc;
  box-shadow: var(--shadow-strong);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.page-hero h1 {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero p {
  margin: 0;
  max-width: 720px;
  color: #e5edff;
}

.content-card {
  background: #ffffff;
  border: 1px solid rgba(15, 61, 100, 0.08);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.feature-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--blue-2));
  flex-shrink: 0;
}

.stat-card {
  background: linear-gradient(135deg, #f9fafb, #f1f4f9);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 61, 100, 0.08);
  box-shadow: var(--shadow-soft);
}

.stat-card h3 {
  margin: 0;
}

.stat-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-control {
  display: grid;
  gap: 6px;
}

.form-control label {
  font-size: 13px;
  color: var(--dark);
}

.form-control input,
.form-control textarea,
.form-control select {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 61, 100, 0.12);
  background: #ffffff;
  font: inherit;
  color: var(--dark);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-control textarea {
  min-height: 120px;
  resize: vertical;
}

.form-control input:focus,
.form-control textarea:focus,
.form-control select:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(21, 91, 138, 0.12);
  outline: none;
}

.timeline {
  display: grid;
  gap: 14px;
  border-left: 2px solid rgba(15, 61, 100, 0.14);
  padding-left: 16px;
}

.timeline-item h4 {
  margin: 0 0 4px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

/* HEADER / NAV */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 61, 100, 0.06);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 12px 30px rgba(15, 61, 100, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-2);
  text-transform: uppercase;
  font-size: 15px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  padding: 4px 0;
  position: relative;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.nav-links .caret {
  display: inline-block;
  margin-left: 2px;
  font-size: 11px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.dropdown.is-open > a .caret {
  transform: rotate(180deg);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue-2));
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 28px;
  left: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 61, 100, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 10px 0;
  z-index: 40;
  backdrop-filter: blur(12px);
}

.dropdown .dropdown-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--dark);
}

.dropdown .dropdown-menu a:hover {
  background: #f3f4f6;
}

.dropdown.is-open .dropdown-menu {
  display: block;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 901px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

.lang-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.lang-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.lang-link:hover {
  color: var(--blue);
}

.lang-link.active {
  color: var(--blue);
  font-weight: 600;
}

.lang-separator {
  color: var(--muted);
  opacity: 0.5;
}

.mobile-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

/* HERO SLIDER */
.home-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  max-height: 680px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1f2937;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.99);
  transition: opacity 0.8s ease, transform 0.8s ease, background-image 0.3s ease;
  will-change: opacity, transform;
  contain: layout style paint;
}

.slide.bg-loaded {
  background-color: transparent;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 18, 32, 0.75), rgba(15, 61, 100, 0.65), rgba(15, 18, 32, 0.1));
}

.slide-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  padding-bottom: 40px;
  gap: 8px;
}

.slide-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.slide-text {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 18px;
  color: #e0e7ff;
}

/* Video slide */
.slide--video {
  background: #000;
}

.slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity;
}

.slide-video.loaded,
.slide-video.playing {
  opacity: 1;
}

.slide--video.is-active .slide-video {
  opacity: 1;
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-soft);
}

.slider-arrow--prev {
  left: 12px;
}

.slider-arrow--next {
  right: 12px;
}

/* Slider dots */
.slider-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.slider-dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, var(--gold), var(--blue-2));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #f3d9a0);
  color: #1f2937;
  box-shadow: 0 14px 28px rgba(213, 178, 118, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

.btn-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
}

.btn-cta {
  min-width: 150px;
}

.btn-soft {
  background: #ffffff;
  color: var(--blue);
  border: 1px solid rgba(15, 61, 100, 0.12);
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  opacity: 0.95;
}

/* Generic cards for inner pages */
main.container {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(15, 61, 100, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 48px 32px !important;
  margin: 46px auto 50px;
}

/* SUMMARY CARDS */
.home-summary {
  background: #ffffff;
  padding: 48px 0;
  border-bottom: 1px solid rgba(15, 61, 100, 0.06);
  position: relative;
  overflow: hidden;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.summary-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  color: #ffffff;
  overflow: hidden;
  min-height: 240px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, filter 0.25s ease, background-image 0.3s ease;
  will-change: transform;
  contain: layout style paint;
  content-visibility: auto;
}

.summary-card.bg-loaded {
  background-color: transparent;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(15, 18, 32, 0.65));
}

.summary-card .summary-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.summary-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.summary-card p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #e5e7eb;
}

.summary-link {
  font-size: 13px;
  color: #f8fafc;
  font-weight: 600;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.summary-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(255, 255, 255, 0.6);
  filter: brightness(1.05);
}

.summary-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ABOUT */
.home-about {
  background: #f8f4ec;
  padding: 48px 0;
  border-bottom: 1px solid rgba(15, 61, 100, 0.06);
  position: relative;
  overflow: hidden;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.about-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 61, 100, 0.08);
}

.about-text h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.about-text p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* PROJECTS */
.home-projects {
  padding: 48px 0;
  background: #f9fafb;
  position: relative;
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-link {
  font-size: 13px;
  color: var(--blue);
}

.projects-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-item {
  background: #ffffff;
  border: 1px solid rgba(15, 61, 100, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  will-change: transform;
  contain: layout style paint;
  content-visibility: auto;
  transition: background-image 0.3s ease;
}

.project-thumb.bg-loaded {
  background-color: transparent;
}

.project-meta {
  padding: 12px 14px;
}

.project-meta h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.project-meta p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.project-item:hover,
.news-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(15, 61, 100, 0.16);
}

/* Performance optimizations */
.project-item,
.news-item,
.summary-card {
  will-change: transform;
  contain: layout style paint;
}

/* Reduce repaints */
.gallery-nav,
.gallery-thumbs-nav {
  will-change: transform;
  backface-visibility: hidden;
}

/* PARTNERS - marquee */
.home-partners {
  background: #ffffff;
  padding: 32px 0 38px;
  border-top: 1px solid rgba(15, 61, 100, 0.06);
  border-bottom: 1px solid rgba(15, 61, 100, 0.06);
  overflow: hidden;
  position: relative;
}

.partner-track {
  display: flex;
  gap: 18px;
  animation: scroll-left 22s linear infinite;
  width: max-content;
}

.partners-viewport {
  overflow: hidden;
}

.partner-item {
  flex: 0 0 190px;
  height: 100px;
  border: 1px solid rgba(15, 61, 100, 0.08);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f3f6fb);
  display: grid;
  place-items: center;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.partner-item img {
  max-height: 70px;
  object-fit: contain;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* NEWS */
.home-news {
  padding: 44px 0 38px;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 61, 100, 0.06);
  position: relative;
  overflow: hidden;
}

.news-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-item {
  border: 1px solid rgba(15, 61, 100, 0.08);
  padding: 16px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.news-item p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.news-more {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

/* MAP */
.home-map {
  background: #f9fafb;
  padding: 46px 0 50px;
  position: relative;
  overflow: hidden;
}

.map-frame {
  position: relative;
  width: 100%;
  height: 400px;
  border: 1px solid rgba(15, 61, 100, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

#map {
  width: 100%;
  height: 100%;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(15, 61, 100, 0.08);
  background: linear-gradient(180deg, #f9fafb, #eef2f7);
  padding: 32px 0 36px;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 18px;
}

.footer-grid h4 {
  margin: 0 0 8px;
  color: var(--dark);
}

.footer-links {
  display: grid;
  gap: 6px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 61, 100, 0.08);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.footer-bottom {
  margin-top: 12px;
}

/* EFFECT OVERLAYS */
.home-summary::after,
.home-about::after,
.home-projects::after,
.home-partners::after,
.home-news::after,
.home-map::after,
.site-footer::after,
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(15, 61, 100, 0.08), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(213, 178, 118, 0.12), transparent 36%);
  pointer-events: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .home-hero {
    height: 60vh;
  }

  .nav-links > li {
    width: 100%;
  }

  .summary-grid,
  .projects-row,
  .news-row,
  .footer-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 420px;
    margin: 0 auto;
  }

  .nav {
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 10px 16px 12px;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid #e5e7eb;
  }

  .nav-links a {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links.is-open {
    display: flex;
  }

  .dropdown .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding: 0 0 6px;
  }

  .dropdown.is-open .dropdown-menu {
    display: block;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .home-hero {
    height: 50vh;
    min-height: 320px;
  }

  .slide-title {
    font-size: 22px;
  }

  .slide-text {
    font-size: 13px;
  }
}

/* PROJECT DETAIL PAGE */
.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}

.project-gallery {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.gallery-main {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 61, 100, 0.08);
  background: #f3f4f6;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  will-change: opacity;
  content-visibility: auto;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(15, 61, 100, 0.25);
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.gallery-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(15, 61, 100, 0.35);
}

.gallery-nav-prev {
  left: 16px;
}

.gallery-nav-next {
  right: 16px;
}

.gallery-thumbs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 61, 100, 0.3) transparent;
  flex: 1;
  padding: 4px 0;
  min-width: 0;
  width: 100%;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(15, 61, 100, 0.3);
  border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 61, 100, 0.5);
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.gallery-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--blue-2);
  opacity: 0.9;
}

.gallery-thumb.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(213, 178, 118, 0.2);
}

.gallery-thumbs-nav {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 12px rgba(15, 61, 100, 0.2);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.gallery-thumbs-nav:hover {
  background: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 4px 18px rgba(15, 61, 100, 0.3);
}

.gallery-thumbs-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.project-video {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 61, 100, 0.08);
  background: #000;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* YERINDE DÖNÜŞÜM LAYOUT - Sol görseller, sağ içerik */
.transformation-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.transformation-gallery {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
  position: sticky;
  top: 100px;
}

.transformation-content {
  min-width: 0;
  width: 100%;
}

.transformation-content .content-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  color: var(--blue);
}

.transformation-content .content-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--blue);
}

.transformation-content .content-card p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--dark);
}

.transformation-content .content-card a {
  color: var(--blue);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.transformation-content .content-card a:hover {
  color: var(--blue-2);
}

@media (max-width: 900px) {
  .transformation-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .transformation-gallery {
    position: static;
  }
  
  .transformation-content .content-card h2 {
    font-size: 20px;
  }
  
  .transformation-content .content-card h3 {
    font-size: 16px;
  }
}

/* PROJECT DETAIL PAGE 2 - Sadece galeri, video yok */
.project-detail-layout-2 {
  display: block;
  margin-bottom: 24px;
}

.project-detail-layout-2 .project-gallery {
  width: 100%;
  max-width: 100%;
}

.project-content {
  width: 100%;
  grid-column: 1 / -1;
}

.project-content .content-card {
  display: grid;
  gap: 16px;
}

.project-content .content-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--dark);
}

.project-content .content-card p strong {
  color: var(--blue);
}

@media (max-width: 900px) {
  .project-detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-detail-layout-2 .project-gallery {
    width: 100%;
  }

  .gallery-nav {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .gallery-nav-prev {
    left: 12px;
  }

  .gallery-nav-next {
    right: 12px;
  }

  .gallery-thumb {
    width: 100px;
    height: 75px;
  }

  .gallery-thumbs-nav {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .gallery-nav-prev {
    left: 8px;
  }

  .gallery-nav-next {
    right: 8px;
  }

  .gallery-thumb {
    width: 80px;
    height: 60px;
  }

  .gallery-thumbs-nav {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* Additional Performance Optimizations */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPU acceleration for transforms */
.slider,
.gallery-main,
.project-item,
.news-item {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Optimize scrolling */
.page-main {
  contain: layout style paint;
}

/* Font loading optimization - Inter is system font, no @font-face needed */

/* Application Form Styles */
.application-form {
  display: grid;
  gap: 32px;
}

.form-section {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(15, 61, 100, 0.08);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.required {
  color: #e53e3e;
  font-weight: 600;
}

.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.error-message {
  display: none;
  margin-top: 4px;
  font-size: 12px;
  color: #e53e3e;
}

.form-control input:invalid:not(:placeholder-shown) + .error-message,
.form-control select:invalid + .error-message,
.form-control textarea:invalid:not(:placeholder-shown) + .error-message {
  display: block;
}

.form-control input:invalid:not(:placeholder-shown),
.form-control select:invalid,
.form-control textarea:invalid:not(:placeholder-shown) {
  border-color: #e53e3e;
}

.form-control input:valid:not(:placeholder-shown),
.form-control select:valid,
.form-control textarea:valid:not(:placeholder-shown) {
  border-color: #38a169;
}

/* File Upload Styles */
.file-upload-wrapper {
  position: relative;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px dashed rgba(15, 61, 100, 0.2);
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload-label:hover {
  border-color: var(--blue-2);
  background: #f0f4f8;
}

.file-upload-text {
  color: var(--muted);
  font-size: 14px;
}

.file-upload-btn {
  padding: 6px 16px;
  background: var(--blue);
  color: #ffffff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.file-upload-label:hover .file-upload-btn {
  background: var(--blue-2);
}

.file-name {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
}

.file-upload-wrapper input[type="file"]:focus + .file-upload-label {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(21, 91, 138, 0.12);
}

/* Checkbox Styles */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.checkbox-label a {
  color: var(--blue);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.checkbox-label a:hover {
  color: var(--blue-2);
}

/* Form Actions */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
}

.form-actions .btn {
  min-width: 200px;
}

.form-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Form Loading State */
.btn-loader {
  display: inline-block;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

  .form-section {
    padding-bottom: 20px;
  }

  .form-section-title {
    font-size: 16px;
  }

  .file-upload-label {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .file-upload-btn {
    text-align: center;
  }

  .form-actions .btn {
    width: 100%;
    min-width: auto;
  }
}