/* 
  Ertemtech Modern LIGHT Design System
  Primary: #eb8c07 (Orange)
  Secondary: #f8f9fa (Light Gray)
  Foreground: #1a1e2a (Dark Navy)
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --primary: #eb8c07;
  --primary-glow: rgba(235, 140, 7, 0.2);
  --bg-light: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-card: #ffffff;
  --text-main: #1a1e2a;
  --text-muted: #6c757d;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Updated Glassmorphism to Soft Neumorphism/Light Cards */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.glass-hover:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(235, 140, 7, 0.15);
}

/* Top Bar */
.top-bar {
  background: var(--text-main);
  color: #fff;
  padding: 10px 0;
  font-size: 0.85rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exchange-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-icons-top a {
  color: #fff;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons-top a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.social-icons-top i {
  font-size: 0.95rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* Header & Nav */
header {
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 40px;
  /* Adjusted for Top Bar */
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: 'Orbitron';
  color: #fff;
}

/* main-nav alignment handled by container gap and logo margin */

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 5px;
  z-index: 1002;
}

.mobile-only-action {
  display: none;
}

.desktop-only {
  display: block;
}

/* Body lock and Header priority when menu is open */
body.menu-open {
  overflow: hidden;
}

body.menu-open header {
  z-index: 9999 !important;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9998 !important;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 992px) {
  .header-right {
    gap: 10px;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .mobile-menu-toggle {
    display: block;
    z-index: 10001 !important;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff !important;
    z-index: 10000 !important;
    padding: 100px 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    display: block !important;
    margin: 0 !important;
    /* Reset desktop margins */
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links a {
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .desktop-only {
    display: none;
  }

  .mobile-only-action {
    display: block;
  }

  .top-bar-divider {
    display: inline;
    margin: 0 5px;
  }
  
  .online-status-dot,
  .online-status-count {
    display: inline-block;
  }

  .online-status-text {
    display: none;
  }

  .exchange-rate {
    gap: 5px;
  }
}

/* Button */
.btn {
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-block;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.8rem;
}

/* Hero Slider Section */
.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-top: 100px;
  /* Top Bar + Header height buffer */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(26, 30, 42, 0.7), rgba(26, 30, 42, 0.3));
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
}

.slide-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease-out 0.5s;
}

.slide-content h1 span {
  color: var(--primary);
}

.slide-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease-out 0.7s;
}

.slide.active .slide-content h1,
.slide.active .slide-content p {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-slider {
    height: 450px;
  }

  .slide-content h1 {
    font-size: 2.5rem;
  }

  .slide-content p {
    font-size: 1rem;
  }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  padding: 25px;
  text-align: center;
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.price .usd {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1px;
}

/* Footer */
footer {
  background: #f1f3f5;
  padding: 80px 0 40px;
  color: var(--text-main);
  margin-top: 100px;
  border-top: 1px solid var(--border);
}

footer h3,
footer .logo-text {
  color: var(--text-main);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-title {
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-me {
  opacity: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(235, 140, 7, 0.1);
}

/* Product Slider */
.product-slider-container {
  position: relative;
  overflow: hidden;
  margin: 40px -10px 0;
  padding: 10px;
}

.product-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 20px;
  align-items: stretch; /* En uzun karta göre tüm kartları uzatır */
}

.product-slider-item {
  flex: 0 0 calc(33.333% - 13.333px);
  /* 3 products on desktop */
  min-width: 0;
  display: flex;
  flex-direction: column;
}

@media (max-width: 992px) {
  .product-slider-item {
    flex: 0 0 calc(50% - 10px);
    /* 2 products on tablets */
  }
}

@media (max-width: 576px) {
  .product-slider-item {
    flex: 0 0 100%;
    /* 1 product on mobile */
  }
}

.slider-nav {
  display: flex;
  gap: 15px;
  position: absolute;
  top: -65px;
  right: 0;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.slider-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.product-card.slider-card {
  height: 100%;
  margin: 0;
}

/* Service Tracking Tool */
.tracking-box {
  max-width: 600px;
  margin: 60px auto;
  padding: 40px;
  text-align: center;
}

/* Newsletter Section */
.newsletter-box {
  margin-top: 30px;
  background: var(--bg-alt);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.newsletter-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 5px 20px rgba(235, 140, 7, 0.1);
}

.newsletter-box h4 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.newsletter-box h4 i {
  color: var(--primary);
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.newsletter-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-btn:hover {
  background: #e66000;
  transform: translateY(-2px);
}

.newsletter-msg {
  font-size: 0.8rem;
  margin-top: 10px;
  display: none;
}

.newsletter-msg.success {
  color: #28a745;
  display: block;
}

.newsletter-msg.error {
  color: #dc3545;
  display: block;
}

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-btn {
    padding: 12px;
  }
}