:root {
  --primary: #0d1b2a;
  --secondary: #1b263b;
  --accent: #fca311;
  --light: #e0e0e0;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f0f0;
}

/* Loader */
#loader {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: white;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:2000;
  transition: opacity 0.5s ease, background 0.5s ease;
}
body.dark-mode #loader { background:#121212; }

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #fca311;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }
#loader.fade-out { opacity:0; pointer-events:none; }

/* Header */
.header {
  background: rgba(13,27,42,0.7);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
  transition: background 0.3s;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.logo:hover { background: rgba(13,27,42,0.5); transform: scale(1.05); box-shadow:0 0 15px rgba(252,163,17,0.7); }

.nav {
  display: flex;
  gap: 15px;
}
.nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s;
}
.nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s;
}
.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.theme-toggle {
  cursor: pointer;
  font-size: 24px;
  margin-left: 15px;
  transition: transform 0.3s;
}
.theme-toggle:hover { transform: scale(1.2); }

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background: rgba(13,27,42,0.9);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 10px;
    border-radius: 5px;
  }
  .nav.active { display: flex; }
  .menu-toggle { display: block; }
}

/* Hero Video */
.hero { position: relative; width: 100%; height: 60vh; overflow: hidden; }
.hero-video { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; transform: translateZ(0); will-change: transform; }
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.3); pointer-events:none; }
.hero-text { position:absolute; top:50%; left:50%; transform: translate(-50%, -50%); color:white; text-align:center; text-shadow:2px 2px 8px black; }
.hero-text h1 { font-size:48px; }
.hero-text p { font-size:20px; }

/* İçerik */
.content { margin: 20px; }
h2 { color: var(--primary); text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }

.contact-form { display:flex; flex-direction:column; max-width:400px; }
.contact-form input, .contact-form textarea { margin-bottom:10px; padding:8px; border:1px solid #ccc; border-radius:5px; }
.contact-form button {
  background: var(--primary); color:white; padding:10px; border:none; cursor:pointer; border-radius:5px;
  transition: all 0.3s ease; 
}
.contact-form button:hover {
  background: var(--accent); 
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(252,163,17,0.7), 0 0 30px rgba(252,163,17,0.5);
}
@keyframes pulse { 0% {transform:scale(1);} 50% {transform:scale(1.05);} 100% {transform:scale(1);} }
.contact-form button:hover { animation: pulse 0.6s ease-in-out; }

/* Kartlar */
.cards { text-align:center; margin:40px 20px; }
.card-container { display:flex; gap:20px; flex-wrap:wrap; justify-content:center; }
.card {
  background: var(--secondary); color:white; padding:20px;
  border-radius:10px; width:250px;
  box-shadow:0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow:0 8px 15px rgba(0,0,0,0.3), 0 0 15px rgba(252,163,17,0.5), 0 0 30px rgba(252,163,17,0.3);
  background: var(--primary);
}

.counter { margin-top:20px; font-weight:bold; }

/* Scroll to Top */
#scrollTopBtn {
  display:none; position:fixed; bottom:30px; right:30px; z-index:100;
  background: var(--accent); color:white; border:none; outline:none;
  width:50px; height:50px; border-radius:50%; font-size:24px; cursor:pointer;
  box-shadow:0 4px 6px rgba(0,0,0,0.3); transition: background 0.3s, transform 0.3s;
}
#scrollTopBtn:hover { background: var(--primary); transform: scale(1.1); }

/* Sosyal Medya */
.social-icons { display:flex; justify-content:center; gap:20px; margin:15px 0; }
.social-icon { font-size:28px; color: var(--accent); text-decoration:none; transition: transform 0.3s, color 0.3s, text-shadow 0.3s; }
.social-icon:hover { transform: scale(1.4) rotate(15deg); text-shadow:0 0 10px rgba(252,163,17,0.7); color: var(--primary); }

/* Footer */
.footer { background:black; color:white; text-align:center; padding:15px; margin-top:20px; }

/* Fade-in animasyonu */
.fade-in { opacity:0; transform: translateY(20px); transition: opacity 1s ease-out, transform 1s ease-out; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* Dark Mode */
body.dark-mode { background:#121212; color:#f0f0f0; }
body.dark-mode .header { background: rgba(0,0,0,0.8); }
body.dark-mode .hero-overlay { background: rgba(0,0,0,0.6); }
body.dark-mode .card { background:#1e1e1e; }
body.dark-mode .card:hover { background:#333; }
body.dark-mode .contact-form button { background:#333; }
body.dark-mode .contact-form button:hover { background: #fca311; }
body.dark-mode .social-icon { color: #fca311; }
body.dark-mode h2, body.dark-mode h1, body.dark-mode p { color:#f0f0f0; }

/* Responsive */
@media(max-width:768px){
  .hero{height:40vh;}
  .hero-text h1{font-size:32px;}
  .hero-text p{font-size:16px;}
  .card-container{flex-direction:column; gap:15px; align-items:center;}
  .card{width:90%;}
  .content{margin:15px;}
  h2{font-size:24px;}
  .contact-form input,.contact-form textarea{padding:6px;}
  .contact-form button{padding:8px;}
}

/* Sosyal Medya */
.social-icons { display:flex; justify-content:center; gap:20px; margin:15px 0; }
.social-icon i {
  font-size:28px;
  color: var(--accent);
  transition: transform 0.3s, color 0.3s, text-shadow 0.3s;
}
.social-icon i:hover { 
  transform: scale(1.4) rotate(15deg); 
  text-shadow:0 0 10px rgba(252,163,17,0.7);
  color: var(--primary); 
}
.nav a.active {
  color: var(--accent);
}
.nav a.active::after {
  width: 100%;
}