/* Genel Ayarlar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
}

body {
  background: #fff;
  color: #222;
  line-height: 1.6;
}

body.dark {
  background: #121212;
  color: #eee;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
}

h1, h2, h3 {
  margin-bottom: 20px;
  font-weight: 700;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 10px 30px;
  z-index: 999;
}

body.dark nav {
  background: #1f1f1f;
  border-bottom: 1px solid #333;
}

nav .logo img {
  height: 40px;
  width: auto;
}

nav a {
  font-weight: bold;
  color: #333;
  transition: color 0.3s;
}

nav a:hover {
  color: #e63946;
}

/* Dark Mode Button */
#darkModeToggle {
  margin-left: auto;
  padding: 8px 12px;
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.3s;
}

#darkModeToggle:hover {
  background: #d62828;
}

body.dark #darkModeToggle {
  background: #f1faee;
  color: #121212;
}

/* Hero */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f1faee, #ffffff);
  text-align: center;
}

body.dark #hero {
  background: linear-gradient(135deg, #1f1f1f, #121212);
}

.hero-logo {
  width: 150px;
  margin-bottom: 20px;
  display: block;
}

/* Typing Effect */
#typing {
  font-size: 1.2rem;
  margin-top: 10px;
  color: inherit;
  border-right: 2px solid #e63946;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #fafafa;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

body.dark .card {
  background: #1f1f1f;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* İletişim */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

input, textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #222;
  transition: background 0.3s, color 0.3s, border 0.3s;
}

body.dark input, 
body.dark textarea {
  background: #1f1f1f;
  border: 1px solid #444;
  color: #eee;
}

button {
  padding: 12px;
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #d62828;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

body.dark footer {
  background: #1f1f1f;
  border-top: 1px solid #333;
}

/* 🎬 Scroll Animations */
.fade-in, .slide-left, .slide-right {
  opacity: 0;
  transition: all 0.8s ease-out;
}

.fade-in {
  transform: translateY(30px);
}

.slide-left {
  transform: translateX(-50px);
}

.slide-right {
  transform: translateX(50px);
}

.show {
  opacity: 1;
  transform: translate(0,0);
}

/* 🎵 Music Button */
#musicToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  z-index: 1000;
  transition: background 0.3s;
}

#musicToggle:hover {
  background: #d62828;
}

body.dark #musicToggle {
  background: #f1faee;
  color: #121212;
}

/* 🔹 Loading Screen */
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: black;
  color: #e63946;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-family: 'Courier New', monospace;
  z-index: 2000;
}


.loading-text {
  text-shadow: 0 0 5px #e63946, 0 0 10px #ff6600, 0 0 20px #ff0000;
}

/* VHS flicker efekti */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.3;
  }
}
