/* Genel Reset ve Temel Ayarlar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #8dc140;
  --secondary: #1e8449;
  --text-color: #e0e0e0;
  --bg-color: #1a1a1a;
  --header-bg: #262626;
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --transition-speed: 0.3s;
  --font-family: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-family);
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* HEADER & NAVIGATION */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent !important; /* Başlangıçta şeffaf */
  box-shadow: none !important;
  z-index: 1000;
  transition: background var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
header.scrolled {
  background: var(--header-bg) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.7) !important;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*   YÜKLENME ANİMASYONU  BAŞLANGIÇ */

/* Preloader Genel Stili */
#preloader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #000; /* Siyah arka plan */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Dönen Logo */
.loader-logo {
  width: 50px; /* Logonun boyutunu ayarlayabilirsin */
  height: 50px;
  animation: spin 1.5s linear infinite;
}

/* Döndürme Animasyonu */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}



/* YÜKLENME ANİMASYONU SON */

.logo {
  text-decoration: none;
}

.logo-img {
  max-height: 70px;
  width: auto;
  display: block;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-link {
  text-decoration: none;
  font-size: 1rem;
  color: var(--text-color);
  padding: 5px 0;
  transition: color var(--transition-speed) ease, border-bottom var(--transition-speed) ease;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link.active,
.nav-link.active:hover {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}
.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: all var(--transition-speed) ease;
}
.hamburger.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  background: var(--overlay-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 1050;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--header-bg);
  box-shadow: -4px 0 20px rgba(0,0,0,0.7);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  z-index: 1100;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav.open ~ .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}
.mobile-nav-close {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.3s ease;
}
.mobile-nav-close:hover {
  color: var(--primary);
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}
.mobile-nav-links .nav-link {
  font-size: 1.2rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}
.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
  color: var(--primary);
}

/* Mobile Navigation Contact & Social */
.mobile-nav-contact {
  margin-top: auto;
  border-top: 1px solid #444;
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--text-color);
}
.mobile-nav-contact .contact-item {
  margin-bottom: 15px;
}
.mobile-nav-contact .contact-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--primary);
}
.mobile-nav-contact .contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-nav-contact .contact-info i {
  font-size: 1.2rem;
}
.mobile-nav-contact .contact-info a,
.mobile-nav-contact .contact-info span {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.mobile-nav-contact .contact-info a:hover {
  color: var(--primary);
}
.mobile-nav-social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}
.mobile-nav-social a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}
.mobile-nav-social a:hover {
  color: var(--primary);
}

/* HERO */
.hero {
  position: relative;
  height: 100vh; /* Tam ekran */
  margin-top: 0 !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}


.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  color: var(--text-color);
  animation: fadeInUp 1.5s ease forwards;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-btn {
  background: var(--primary);
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-speed);
}

.cta-btn:hover {
  background: var(--secondary);
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--text-color);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PRODUCTS */
.products {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a, #242424);
}

.section-title {
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.section-title p {
  font-size: 1.2rem;
  color: #ccc;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-card {
  background: #262626;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  color: var(--text-color);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 15px;
  object-fit: cover;
  height: 180px;
}

.product-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.product-card p {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.more-btn-container {
  margin-top: 40px;
  text-align: center;
}

.more-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--text-color);
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-speed);
}

.more-btn:hover {
  background: var(--secondary);
}

/* ABOUT */
.about {
  padding: 80px 20px;
  background: var(--bg-color);
  color: var(--text-color);
}

.about-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
  flex-wrap: wrap;
  animation: fadeIn 1s ease forwards;
}

.about-hero-content {
  flex: 1 1 500px;
}

.about-hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.about-hero-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--text-color);
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  transition: background var(--transition-speed);
}

.about-btn:hover {
  background: var(--secondary);
}

.about-hero-image {
  flex: 1 1 500px;
  text-align: center;
}

.about-hero-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  object-fit: cover;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.3s;
}

.detail-item {
  background: #262626;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.detail-item:hover {
  transform: translateY(-5px);
}

.detail-item i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.detail-item h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.detail-item p {
  font-size: 1rem;
  line-height: 1.5;
}




/*************** BURA  ******************/


/* Hero Bölümü */
.entrance-hero {
  position: relative;
  width: 100%;
  height: 50vh; /* Yükseklik ihtiyaca göre */
  overflow: hidden;
  margin-bottom: 40px; /* İçerikle biraz boşluk bırak */
}
.entrance-hero .entrance-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.entrance-hero .entrance-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-color);
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}
.entrance-hero .entrance-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.entrance-hero .entrance-content p {
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .entrance-hero {
    height: 40vh;
  }
  .entrance-hero .entrance-content h1 {
    font-size: 2rem;
  }
  .entrance-hero .entrance-content p {
    font-size: 1rem;
  }
  .entrance-bolgeleri-title {
    text-align: center;
  }
  .entrance-bolgeleri-desc {
    text-align: center;
  }
}

/******************************************************/

/* CONTACT SECTION */
.contact-section {
  background: linear-gradient(135deg, #1a1a1a, #242424);
  padding: 80px 20px;
  color: var(--text-color);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-left {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.contact-title {
  font-size: 3rem;
  color: var(--primary);
}

.contact-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #ccc;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.contact-detail-item i {
  color: var(--primary);
  font-size: 1.4rem;
}

.contact-detail-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-detail-item a:hover {
  color: var(--primary);
}

.contact-social {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.contact-social a {
  color: var(--text-color);
  font-size: 1.8rem;
  transition: color 0.3s;
}

.contact-social a:hover {
  color: var(--primary);
}

.contact-right {
  flex: 1 1 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.form-card h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #1a1a1a;
  border: none;
  border-radius: 4px;
  padding: 15px;
  color: var(--text-color);
  font-size: 1rem;
  outline: none;
  transition: background 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

.form-group input:focus,
.form-group textarea:focus {
  background: #2a2a2a;
}

.form-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.form-btn:hover {
  background: var(--secondary);
}

/* FOOTER */
.footer {
  background: #0d0d0d;
  color: #ccc;
  font-size: 0.95rem;
}

.footer-top {
  padding: 60px 20px;
  border-bottom: 1px solid #333;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 250px;
}

.footer-logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 50px;
  width: auto;
}

.footer-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 10px;
}

.footer-links ul li a,
.footer-contact ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
  color: var(--primary);
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.footer-contact i {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #ccc;
  font-size: 1.4rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  background: #0a0a0a;
  font-size: 0.85rem;
  color: #666;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom p a:hover {
  color: var(--text-color);
}

/* RESPONSIVE CSS */

/* 1200px ve altı */
@media (max-width: 1200px) {
  .header-container {
    max-width: 90%;
  }
}

/* 992px ve altı */
@media (max-width: 992px) {
  .header-container {
    padding: 20px;
  }
  .nav-link {
    font-size: 0.95rem;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .cta-btn {
    padding: 12px 30px;
    font-size: 0.95rem;
  }
}

/* 768px ve altı */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .logo-img{
    max-height: 55px;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .cta-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  .about-hero {
    flex-direction: column;
    text-align: center;
  }
  .about-hero-content h2 {
    font-size: 2.5rem;
  }
  .about-hero-content p {
    font-size: 1rem;
  }
}

/* 576px ve altı */
@media (max-width: 576px) {
  .header-container {
    padding: 15px 20px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 0.95rem;
  }
  .cta-btn {
    padding: 14px 26px;
    font-size: 1.1rem;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }
  .product-card h3 {
    font-size: 1.2rem;
  }
  .product-card p {
    font-size: 0.9rem;
  }
  .more-btn {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
  .about-hero-content h2 {
    font-size: 2rem;
  }
  .about-hero-content p {
    font-size: 0.95rem;
  }
  .about-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  .about-hero-image {
    flex: 1 1 264px;
  }
  .detail-item h3 {
    font-size: 1.4rem;
  }
  .detail-item p {
    font-size: 0.9rem;
  }
  .contact-title {
    font-size: 2.2rem;
  }
  .form-card h3 {
    font-size: 1.8rem;
  }
}

/* Back to Top Butonu Stilleri */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 999;
}

.back-to-top:hover {
  background-color: var(--secondary);
}

/* Görünür olduğunda */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Mobil görünümde boyutu küçültelim */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}
