:root {
  --bg-black: #0b0505;
  --bg-dark: #140a0a;
  --card-bg: rgba(25, 12, 12, 0.7);
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --text-main: #f5f5f5;
  --text-muted: #b0b0b0;
  --border-gold: rgba(212, 175, 55, 0.3);
}

body.pure-black-theme {
  --bg-black: #000000;
  --bg-dark: #0a0a0a;
  --card-bg: rgba(15, 15, 15, 0.85);
  --border-gold: rgba(212, 175, 55, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 5, 5, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
  z-index: 1000;
  padding: 15px 0;
  transition: background-color 0.3s ease;
}

body.pure-black-theme .header {
  background: rgba(0, 0, 0, 0.95);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--gold-primary);
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active-link {
  color: var(--gold-primary);
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-black);
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  background: var(--border-gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background-color: var(--gold-primary);
  transition: 0.3s;
}

/* Hero Bölümü */
.hero {
  padding: 180px 0 100px 0;
  text-align: center;
  background: radial-gradient(
    circle at center,
    rgba(30, 15, 15, 0.5) 0%,
    var(--bg-black) 80%
  );
}

.hero-logo-badge {
  width: 110px;
  height: 110px;
  margin: 0 auto 25px auto;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.hero-logo-badge img {
  width: 65px;
  height: auto;
}

.hero h1 {
  font-size: 42px;
  color: var(--gold-primary);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 35px auto;
  color: var(--text-muted);
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold-primary);
  color: var(--bg-black);
  border: 1px solid var(--gold-primary);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Bölümler ve Animasyon */
.section {
  padding: 90px 0;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.section.active {
  opacity: 1;
  transform: translateY(0);
}

.section.dark-bg {
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: var(--gold-primary);
  margin-bottom: 15px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px auto;
}

/* Tech Stack Rozetleri */
.tech-stack-container {
  margin-top: 40px;
  text-align: center;
}

.tech-stack-title {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.tech-badges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tech-badge {
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

/* Grid ve Kart Tasarımları */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 30px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
}

.card h3 {
  color: var(--gold-primary);
  font-size: 20px;
  margin-bottom: 15px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* İletişim Formu */
.contact-container {
  max-width: 700px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(20, 10, 10, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input option {
  background-color: #140a0a;
  color: var(--text-main);
}

#formSuccessMessage {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--border-gold);
  color: var(--text-muted);
  font-size: 14px;
}

/* Yukarı Çık Butonu */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: rgba(11, 5, 5, 0.9);
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: var(--gold-primary);
  color: var(--bg-black);
  transform: translateY(-3px);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-gold);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero h1 {
    font-size: 30px;
  }
}
/* Hero Logosu ve Lüks Çerçeve (2 Kat Büyütülmüş Hali) */
.hero-logo-badge {
  width: 320px;
  height: 320px;
  margin: 0 auto 40px auto;
  border: 3px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  overflow: hidden;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.3);
  animation: borderBreathe 3s ease-in-out infinite;
}

.hero-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sadece Çerçevenin ve Işığın Nefes Alma Animasyonu */
@keyframes borderBreathe {
  0% {
    box-shadow:
      0 0 20px rgba(212, 175, 55, 0.2),
      inset 0 0 15px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.6);
  }
  50% {
    box-shadow:
      0 0 50px rgba(212, 175, 55, 0.7),
      inset 0 0 30px rgba(212, 175, 55, 0.3);
    border-color: var(--gold-primary);
  }
  100% {
    box-shadow:
      0 0 20px rgba(212, 175, 55, 0.2),
      inset 0 0 15px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.6);
  }
}
