@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Helvetica, sans-serif;
  --color-primary: #111111; /* Siyah/Koyu Gri */
  --color-accent: #666666; /* Gri vurgular */
  --color-text: #222222;
  --color-light: #f4f4f4;
  --color-white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
}

/* Header */
.site-header {
  background-color: var(--color-white);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--color-accent);
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
}

/* Sayfaların üst bilgi banner'ı */
.page-banner {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 6rem 5%;
  text-align: center;
}

.page-banner h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-banner p {
  font-size: 1.1rem;
  color: #cccccc;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #333333;
}

/* Sections */
.section {
  padding: 5rem 5%;
}

.section-bg-white {
  background-color: var(--color-white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title.left {
  text-align: left;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 1rem auto 0;
}

.section-title.left::after {
  margin: 1rem 0 0 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--color-white);
  padding: 2.5rem;
  border: 1px solid #e0e0e0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.95rem;
  color: #666;
}

/* Alt Sayfa İçerik Alanı */
.content-area {
  max-width: 1000px;
  margin: 0 auto;
}

.content-area p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* --- BRANDS MARQUEE --- */
.brands-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--color-light);
  padding: 3.5rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.brands-track {
  display: flex;
  width: calc(250px * 10); /* 5 unique + 5 clones = 10 items, 250px per item */
  animation: scrollBrands 15s linear infinite;
  align-items: center;
}

.brands-track img {
  width: 150px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  margin: 0 50px;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.3s, opacity 0.3s;
}

.brands-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 5)); }
}

/* --- PROJECT GALLERY SLIDER --- */
.gallery-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.gallery-slide {
  display: none;
}
.gallery-slide.active {
  display: block;
  animation: fadeSlide 0.4s ease;
}
@keyframes fadeSlide {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  z-index: 5;
  transition: background 0.3s;
}
.slider-arrow:hover { background: rgba(0,0,0,0.8); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 5;
}

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.4;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--color-primary);
}
.gallery-thumb:hover { opacity: 0.8; }

/* --- LIGHTBOX FULLSCREEN --- */
#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  animation: fadeSlide 0.3s ease;
}
.lb-close {
  position: absolute;
  top: 15px; right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s;
}
.lb-close:hover { color: #ccc; }
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.3s;
}
.lb-arrow:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-counter {
  position: absolute;
  bottom: 25px;
  color: #aaa;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .gallery-slide img, .gallery-viewport img { height: 250px !important; }
  .gallery-thumb { width: 50px; height: 35px; }
  .slider-arrow { width: 34px; height: 34px; font-size: 1rem; }
  .lb-arrow { width: 40px; height: 40px; }
  #lightbox-img { max-width: 95%; max-height: 75vh; }
}

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.footer-col p, .footer-col a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  display: block;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #999999;
}

/* ======================================================
   RESPONSIVE DESIGN - 3 BREAKPOINT SİSTEMİ
   Mobile: 0-480px | Tablet: 481-1024px | Desktop: 1025px+
   ====================================================== */

/* --- Hamburger Menü Butonu (Mobil/Tablet) --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- TABLET (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .hamburger { display: block; }

  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }
  .main-nav.open { display: flex; }

  .main-nav a {
    font-size: 1.2rem;
  }

  .lang-switch-btn {
    margin-left: 0;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }

  .hero { height: 65vh; min-height: 400px; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1rem; }

  .page-banner { padding: 4rem 5%; }
  .page-banner h1 { font-size: 2.2rem; }

  .section { padding: 3.5rem 5%; }
  .section-title { font-size: 2rem; margin-bottom: 2rem; }

  .grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Contact sayfası flex layout */
  .content-area {
    flex-direction: column !important;
  }

  /* Brands marquee daha yavaş ve küçük */
  .brands-track img {
    width: 120px;
    max-height: 60px;
    margin: 0 35px;
  }
}

/* --- MOBİL (max-width: 600px) --- */
@media (max-width: 600px) {
  .site-header { padding: 1rem 4%; }
  .logo { font-size: 1.4rem; }

  .hero { height: 55vh; min-height: 350px; }
  .hero-content { padding: 0 1rem; }
  .hero-content h1 { font-size: 1.7rem; line-height: 1.3; }
  .hero-content p { font-size: 0.9rem; margin-bottom: 1.5rem; }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

  .page-banner { padding: 3rem 5%; }
  .page-banner h1 { font-size: 1.6rem; }
  .page-banner p { font-size: 0.9rem; }

  .section { padding: 2.5rem 4%; }
  .section-title { font-size: 1.5rem; margin-bottom: 1.5rem; }

  .grid-3 { grid-template-columns: 1fr; gap: 1.2rem; }

  .card { padding: 1.5rem; }
  .card h3 { font-size: 1.2rem; }
  .card p { font-size: 0.85rem; }

  .content-area p { font-size: 0.95rem; }

  /* Form — tek sütuna düş */
  .grid-2 {
    grid-template-columns: 1fr !important;
  }
  .form-control { font-size: 16px; /* iOS zoom engel */ }

  /* Footer — tek sütun */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer { padding: 2.5rem 4% 1.5rem; }
  .footer-col h4 { font-size: 1rem; }

  /* Brands — daha küçük logolar */
  .brands-marquee { padding: 2rem 0; }
  .brands-track img {
    width: 90px;
    max-height: 45px;
    margin: 0 20px;
  }
  .brands-track {
    width: calc(160px * 10);
    animation-duration: 12s;
  }

  /* Detay sayfası flex layout (mobilde üst-alt) */
  #project-detail-container > div {
    flex-direction: column !important;
    gap: 2rem !important;
  }
}

/* --- ANIMATIONS & INTERACTIONS --- */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

.hero-content {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

.hero-bg {
  opacity: 0;
  animation: fadeInScale 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover img {
  transform: scale(1.03);
}

.btn {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background-color: #333333;
}

/* --- DUAL LANGUAGE (i18n) LOGIC --- */
.lang-tr, .lang-en { 
  display: none !important; 
}

html[lang="tr"] .lang-tr { display: inline-block !important; }
html[lang="en"] .lang-en { display: inline-block !important; }

html[lang="tr"] p.lang-tr, html[lang="tr"] div.lang-tr, html[lang="tr"] h1.lang-tr, html[lang="tr"] h2.lang-tr, html[lang="tr"] h3.lang-tr, html[lang="tr"] h4.lang-tr, html[lang="tr"] li.lang-tr { 
  display: block !important; 
}

html[lang="en"] p.lang-en, html[lang="en"] div.lang-en, html[lang="en"] h1.lang-en, html[lang="en"] h2.lang-en, html[lang="en"] h3.lang-en, html[lang="en"] h4.lang-en, html[lang="en"] li.lang-en { 
  display: block !important; 
}

.lang-switch-btn {
  background: none;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 1rem;
}
.lang-switch-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
