/* --- Global Variables & Reset --- */
:root {
  --bg-main: #FFFFFF;
  --bg-section: #FBFBFD;
  --bg-card: #FFFFFF;
  --primary-color: #0D1F2D; /* Derin Gece Mavisi - Bilim ve Güven */
  --accent-color: #D4AF37; /* Metalik Altın - Premium ve Lüks */
  --accent-muted: rgba(212, 175, 55, 0.1);
  --text-dark: #1A1A1A;
  --text-muted: #86868B; /* Apple-style muted grey */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(0,0,0,0.02);
  --shadow-hover: 0 15px 35px rgba(0,0,0,0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--primary-color);
}

.text-center { text-align: center; }

/* --- Buttons & Badges --- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: scale(1.03);
}

.btn-link {
  background-color: transparent;
  color: var(--accent-color);
  font-weight: 500;
}

.btn-link:hover {
  color: var(--primary-color);
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 1rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.badge {
  background-color: var(--accent-muted);
  color: var(--accent-color);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* --- Header / Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0); /* Başlangıçta şeffaf */
  backdrop-filter: blur(0px); /* Başlangıçta bulanıklık yok */
  z-index: 1000;
  padding: 25px 0;
  transition: var(--transition);
}

/* JavaScript ile eklenecek aktif sınıf */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  gap: 35px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-btn {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.cta-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

/* --- Hero Section --- */
.hero {
  padding: 180px 0 100px;
  background-color: var(--bg-section);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin: 20px 0;
  color: var(--primary-color);
}

.hero-text h1 span {
  font-style: italic;
  font-weight: 300;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hero-media {
  position: relative;
  text-align: center;
}

.hero-img-wrapper {
  overflow: hidden;
  border-radius: 20px;
}

.hero-img-wrapper img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  transition: var(--transition);
}

/* --- Products Section --- */
.collection {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 80px;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-muted);
  font-weight: 300;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.product-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.01);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-info {
  padding: 25px;
}

.card-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.card-info .variant {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-info p.description {
  color: #666;
  font-size: 0.9rem;
  margin: 15px 0 20px;
  height: 60px; /* Sabit yükseklik, daha iyi uyum için */
  overflow: hidden;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.03);
  padding-top: 20px;
}

.price {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.btn-add-cart {
  background-color: var(--bg-section);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.85rem;
}

.btn-add-cart:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/* --- About Section --- */
.about {
  padding: 100px 0;
  background-color: var(--bg-section);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 25px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 300;
}

/* --- Footer --- */
.footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 100px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 70px;
}

.footer .logo {
  color: #fff;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 300;
}

.footer-links h4, .footer-newsletter h4 {
  margin-bottom: 25px;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.9);
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(3px);
}

.footer-newsletter p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 300;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  background: rgba(255,255,255,0.05);
  padding: 5px;
  border-radius: 30px;
}

.newsletter-form input {
  padding: 10px 18px;
  border-radius: 30px;
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  color: #fff;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.btn-submit {
  background: var(--accent-color);
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.btn-submit:hover {
  background: #fff;
  color: var(--accent-color);
  transform: scale(1.05);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* --- JavaScript Scroll Animations --- */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.animate-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
  .hero-container, .collection-grid, .about-container, .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nav-menu {
    display: none; /* Mobil menü JS ile entegre edilebilir */
  }
  .hero-text h1, .section-title h2, .about-text h2 {
    font-size: 2.8rem;
  }
  .nav-actions {
    display: none;
  }
  .hero-buttons {
    justify-content: center;
  }
}

.logo-flipper {
  width: 250px; /* Logonuza uygun genişlik */
  height: 60px; /* Logonuza uygun yükseklik */
  perspective: 1000px; /* 3D derinlik algısı */
}

.logo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: flipAnimation 4s infinite ease-in-out;
}

.logo-front,
.logo-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Dönen yüzün arkasını gizler */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-front img,
.logo-back img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* İkinci logoyu varsayılan olarak arkaya çeviriyoruz */
.logo-back {
  transform: rotateY(180deg);
}

/* 2 saniye ilk logo, 2 saniye ikinci logo için animasyon döngüsü (Toplam 4s) */
@keyframes flipAnimation {
  0%, 40% {
    transform: rotateY(0deg);
  }
  50%, 90% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}