/*
  UGL Mobilya – Genel Stil Dosyası
  Bu dosya, site genelinde kullanılan tüm CSS kurallarını barındırır.
  Renk paleti, tipografi, düzen ve animasyonları tanımlar.
*/

/* Temel renk değişkenleri */
:root {
  --color-bg: #f9f8f6; /* sayfa arka planı için hafif krem tonları */
  --color-section: #ffffff; /* bölümler için beyaz arka plan */
  --color-accent: #a7855b; /* ahşap esintisi veren vurgu rengi */
  --color-accent-dark: #8c6c49; /* buton hover rengi */
  --color-text: #333333; /* ana metin rengi */
  --color-muted: #666666; /* alt metin rengi */
  --radius: 12px;
  --shadow-small: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

h1, h2, h3 {
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

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

/* Navigasyon Çubuğu */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-text);
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

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

.navbar .nav-links a {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  transition: color var(--transition-speed);
}

.navbar .nav-links a:hover {
  color: var(--color-accent);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-speed);
}

/* Section genel ayarlar */
section {
  padding: 5rem 2rem;
  background-color: var(--color-section);
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding-top: 5rem; /* navigasyon yüksekliği telafisi */
  background-color: var(--color-section);
}

.hero-content {
  flex: 1 1 45%;
  padding: 2rem 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content .tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-muted);
}

.hero-image {
  flex: 1 1 45%;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  max-width: 500px;
}

/* Buton stilleri */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  cursor: pointer;
}

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

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

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

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

/* Hakkımızda */
.section-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text,
.about-image {
  flex: 1 1 45%;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

/* Ürünler */
.products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background-color: var(--color-section);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.product-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

/* Tasarım & Proje */
.design-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.design-text {
  flex: 1 1 40%;
}

.design-images {
  flex: 1 1 55%;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.design-images img {
  width: calc(50% - 0.5rem);
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

/* İletişim */
.contact form {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(166, 133, 91, 0.2);
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  color: var(--color-accent);
  transition: color var(--transition-speed);
  display: inline-flex;
  align-items: center;
}

.social-link:hover {
  color: var(--color-accent-dark);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--color-section);
  font-size: 0.9rem;
  color: var(--color-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Fade-in animasyonu için başlangıç durumu */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive düzenlemeler */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content .tagline {
    font-size: 1.1rem;
  }
  .design-images img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .navbar .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-section);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    gap: 1rem;
    box-shadow: var(--shadow-small);
    transform: translateX(100%);
    transition: transform var(--transition-speed);
  }
  .navbar .nav-links.open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: flex;
  }
  .section-container,
  .design-container {
    flex-direction: column;
    text-align: center;
  }
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content,
  .hero-image {
    flex: 1 1 100%;
  }
  .hero-image img {
    max-width: 100%;
  }
  .design-images img {
    width: 100%;
    height: 200px;
  }
  .product-card img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .tagline {
    font-size: 1rem;
  }
  .products .product-grid {
    gap: 1.5rem;
  }
  .product-card {
    padding: 1rem;
  }
}