/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  font-family: 'Outfit', sans-serif;
  color: #1a1a2e;
  background: #fff;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== TOPBAR ===== */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
  background: transparent;
}

#topbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  transition: color 0.4s;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#topbar.scrolled .nav-logo { color: #1a1a2e; }

/* Desktop nav links - split left/right of logo */
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links-left {
  position: absolute;
  left: 24px;
}

.nav-links-right {
  position: absolute;
  right: 24px;
}

.nav-links li { list-style: none; }

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #c9a96e;
  transition: width 0.3s;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

#topbar.scrolled .nav-links a { color: #777; }
#topbar.scrolled .nav-links a:hover { color: #1a1a2e; }

/* Mobile nav - hidden on desktop */
.nav-links-mobile {
  display: none;
  list-style: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
  border-radius: 2px;
}

#topbar.scrolled .hamburger span { background: #1a1a2e; }


/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 2s ease-in-out;
}

.hero-bg-img.fade-out {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,30,0.82) 0%, rgba(10,10,30,0.55) 50%, rgba(10,10,30,0.45) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 520px;
}

.hero-label {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 16px;
  padding-left: 2px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 300;
}

/* Shared animation styles */
.hero-info {
  border-radius: 30px;
  padding: 2px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-flex;
  z-index: 3;
}

/* Desktop: #hero'nun direkt çocuğu, #hero'ya göre absolute */
.hero-info--top {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
}

/* Mobile: flow'da, butonun altında */
.hero-info--inline {
  display: none;
  position: relative; /* ::before'u overflow:hidden içinde tutar */
  margin-top: 20px;
  align-self: center;
}

.hero-info::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(255,255,255,0.6) 18%,
    transparent 38%
  );
  animation: borderSpin 2.8s linear infinite;
}

.hero-info span {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-radius: 28px;
  padding: 12px 32px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  white-space: nowrap;
}

@keyframes borderSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: #c9a96e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 6px;
  border: none;
  transition: all 0.4s;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
}

.hero-btn:hover {
  background: #b8944f;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,169,110,0.4);
  gap: 14px;
}

/* Hero Slider - Crossfade */
.hero-slider {
  flex: 0 0 500px;
  height: 340px;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 3s ease-in-out;
}

.hero-slider img.active {
  opacity: 1;
}

/* Hero Scroll Arrow */
.hero-scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  transition: all 0.3s;
  animation: bounceArrow 2.5s ease-in-out infinite;
}

.hero-scroll-arrow:hover {
  border-color: #c9a96e;
  color: #c9a96e;
  background: rgba(255,255,255,0.05);
}

@keyframes bounceArrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTIONS COMMON ===== */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}

/* ===== PROJECTS GRID ===== */
#projeler {
  background: #f8f7f4;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.project-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card-img img {
  transform: scale(1.06);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,30,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid rgba(255,255,255,0.8);
  border-radius: 28px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.08);
}

.project-card:hover .project-card-btn {
  background: rgba(255,255,255,0.15);
}

.project-card-info {
  padding: 22px 26px;
}

.project-card-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}

.project-card-info p {
  font-size: 0.85rem;
  color: #999;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ===== ABOUT ===== */
#hakkimizda {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  margin-top: 20px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #c9a96e;
}

.stat-label {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
  margin-top: 4px;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== FOOTER ===== */
#footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.6);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}

.footer-copy {
  font-size: 0.75rem;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.footer-right a:hover { color: #c9a96e; }

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Sidebar elements (hidden on desktop) */
.sidebar-header,
.sidebar-close,
.sidebar-logo,
.sidebar-divider,
.sidebar-nav {
  display: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-container { height: 48px; }

  .nav-logo {
    position: static;
    transform: none;
    font-size: 1.3rem;
  }

  .nav-links-left,
  .nav-links-right { display: none; }

  .hamburger {
    display: flex;
    position: absolute;
    right: 24px;
  }

  .nav-links-mobile {
    display: block;
    position: fixed;
    top: 0; right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    padding: 0;
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
  }

  .nav-links-mobile.open { right: 0; }

  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 28px 20px;
  }

  .sidebar-logo {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1a1a2e;
  }

  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid #e0ddd8;
    border-radius: 50%;
    cursor: pointer;
    color: #999;
    font-size: 1.3rem;
    transition: all 0.3s;
    flex-shrink: 0;
  }

  .sidebar-close:hover {
    border-color: #c9a96e;
    color: #c9a96e;
  }

  .sidebar-divider {
    display: block;
    height: 1px;
    background: #e8e6e1;
    margin: 0 28px 24px;
  }

  .sidebar-nav {
    display: block;
    list-style: none;
    padding: 0 28px;
  }

  .sidebar-nav li {
    margin-bottom: 4px;
  }

  .sidebar-nav a {
    display: block;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 14px 0;
    transition: all 0.25s;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
  }

  .sidebar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a96e;
    transition: width 0.3s;
  }

  .sidebar-nav a:hover {
    color: #c9a96e;
  }

  .sidebar-nav a:hover::after {
    width: 40px;
  }

  #hero {
    height: 70vh;
    min-height: 480px;
  }

  .hero-content {
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    padding-top: 72px;
  }

  .hero-text { max-width: 100%; }

  .hero-slider { display: none; }

  .hero-scroll-arrow { display: none; }

  .hero-info--top    { display: none; }
  .hero-info--inline { display: inline-flex; }

  .hero-info--inline span {
    font-size: 0.72rem;
    padding: 8px 18px;
    letter-spacing: 1.5px;
  }

  .section-header { margin-bottom: 24px; }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card-img { aspect-ratio: 16/9; }

  .project-card-info {
    padding: 16px 20px;
  }

  .project-card-info h3 {
    font-size: 1.3rem;
  }

  .hero-label { font-size: 0.8rem; letter-spacing: 2px; }
  .hero-desc { font-size: 0.95rem; }

  .section-container { padding: 48px 16px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-stats { gap: 24px; }

  .stat-number { font-size: 1.8rem; }

  .footer-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px 24px;
  }

  .footer-left {
    flex-direction: column;
    gap: 4px;
  }

  .footer-right { gap: 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-btn { padding: 12px 24px; font-size: 0.85rem; }
}


/* ===== PROJECT DETAIL PAGE ===== */
.detail-hero {
  position: relative;
  height: 65vh;
  min-height: 450px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,30,0.8) 0%, rgba(10,10,30,0.1) 60%);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

.detail-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  font-weight: 700;
}

.detail-hero-content p {
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  font-size: 1rem;
}

/* Detail Gallery */
.detail-gallery {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

.detail-gallery h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: #1a1a2e;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.gallery-item {
  flex: 0 0 calc(33.333% - 11px);
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Detail Info */
.detail-info {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.detail-info h2 {
  font-family: 'Cormorant Garamond', serif;
}

.detail-about-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Detail Map */
.detail-map {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.detail-map-header {
  text-align: center;
  margin-bottom: 28px;
}

.detail-map-header .section-subtitle {
  margin-bottom: 8px;
}

.detail-map-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #1a1a2e;
  font-weight: 700;
}

.detail-map-frame {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.detail-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 24px;
  background: #c9a96e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s;
  font-family: 'Outfit', sans-serif;
}

.detail-map-link:hover {
  background: #b8944f;
  transform: translateY(-2px);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
  .detail-hero { height: 40vh; min-height: 280px; }
  .gallery-grid { gap: 8px; }
  .gallery-item { flex: 0 0 calc(50% - 4px); }
  .detail-gallery { padding: 32px 16px; }
  .detail-info { padding: 0 16px 32px; }
  .detail-map { padding: 0 16px 32px; }
  .detail-map-frame { height: 280px; }
}

@media (max-width: 480px) {
  .gallery-grid { gap: 8px; }
  .gallery-item { flex: 0 0 calc(50% - 4px); }
}
