/* ============================================
   Becerikli Egitim - Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Poppins', Arial, sans-serif;
  color: #333;
  background: #2279fb;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: transparent;
  padding: 18px 40px 0;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.logo img {
  height: 80px;
  width: auto;
  pointer-events: auto;
}

.header-pill {
  flex: 1;
  background: #2279fb;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px 30px;
  gap: 20px;
}

.search-bar {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  height: 46px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 20px;
  font-size: 14px;
  color: #333;
  background: transparent;
  height: 100%;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: #999;
}

.search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #9ed50b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 3px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.search-btn:hover {
  background: #8bc40a;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  transition: opacity 0.2s;
}

.header-action:hover {
  opacity: 0.8;
}

.header-action img {
  height: 24px;
  width: auto;
  pointer-events: auto;
}

.header-action span {
  font-size: 10px;
  white-space: nowrap;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  background: #2279fb;
  padding: 0 40px;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

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

.nav-links a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 14px;
  display: block;
  transition: background 0.2s;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.15);
}

/* Dropdown menu */
.nav-links .has-dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1000;
}

.nav-links .has-dropdown:hover .dropdown-menu,
.nav-links .has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.nav-links .dropdown-menu li {
  list-style: none;
  margin: 0;
}

.nav-links .dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: #333;
  font-size: 14px;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-links .dropdown-menu a:hover {
  background: #f0f6ff;
  color: #2279fb;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.firsatlar-btn {
  background: #fd953c;
  color: #fff;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}

.firsatlar-btn:hover {
  background: #fd8737;
}

.takvim-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.takvim-link img {
  height: 22px;
  width: auto;
  pointer-events: auto;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, #6298fe 0%, #2959d8 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 40px 160px;
  min-height: 600px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background: url('../images/xd/Mask_Group_16.png') center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

/* Doodle decorations */
.doodle {
  position: absolute;
  color: #fff;
  opacity: 0.10;
  pointer-events: none;
  z-index: 1;
}

.doodle-1 { font-size: 80px; top: 8%; left: 5%; }
.doodle-2 { font-size: 50px; top: 15%; right: 35%; transform: rotate(20deg); }
.doodle-3 { font-size: 60px; bottom: 20%; left: 15%; }
.doodle-4 { font-size: 70px; top: 60%; left: 40%; }
.doodle-5 { font-size: 45px; top: 10%; left: 30%; }
.doodle-6 { font-size: 55px; bottom: 30%; right: 45%; }
.doodle-7 { font-size: 50px; bottom: 10%; left: 50%; }
.doodle-8 { font-size: 65px; top: 5%; left: 55%; }

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 20px;
}

.hero-text {
  flex: 1;
  min-width: 320px;
}

.hero-text h1 {
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-text .white-line {
  display: block;
  color: #fff;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
}

.hero-text .orange-line {
  display: block;
  color: #fd8737;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
}

.hero-text p {
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 28px;
  opacity: 0.95;
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ddfb8d, #9ed50b);
  color: #1a4d00;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(158, 213, 11, 0.4);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(158, 213, 11, 0.55);
}

.hero-illustration {
  flex: 0 0 auto;
  max-width: 680px;
  align-self: flex-end;
  margin-bottom: -180px;
}

.hero-illustration img {
  width: 100%;
}

.hero-services-panel {
  background: #fff;
  border-radius: 110px 0 0 110px;
  padding: 16px 12px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
  width: 160px;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  max-height: 92vh;
}

.panel-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid #999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 16px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.service-item img {
  width: 140px;
  height: auto;
  max-height: 20vh;
  object-fit: contain;
  pointer-events: auto;
  transform: scale(1.6);
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.categories {
  background: #2279fb;
  padding: 0 40px 80px;
  margin-top: -80px;
  position: relative;
  z-index: 1;
}

.categories-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: nowrap;
}

/* Tam kart görselleri (PNG olarak export edilmiş) */
.category-card-link {
  display: block;
  flex: 0 0 380px;
  transition: transform 0.3s;
  pointer-events: auto;
}

.category-card-link img {
  width: 100%;
  height: auto;
  pointer-events: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.category-card-link:hover {
  transform: rotate(0deg) scale(1.05) !important;
}

.category-card-link.rotate-left {
  transform: rotate(-4deg);
}

.category-card-link.rotate-none {
  transform: rotate(0deg);
}

.category-card-link.rotate-right {
  transform: rotate(4deg);
}

/* Eski card-arrow artık kullanılmıyor ama uyumluluk için bırak */
.card-arrow {
  position: absolute;
  bottom: -14px;
  left: 20px;
  width: 42px;
  height: 42px;
  background: #fd953c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(253, 149, 60, 0.4);
  transition: background 0.2s;
}

.card-arrow:hover {
  background: #fd8737;
}

/* ============================================
   MARQUEE BAND
   ============================================ */
.marquee-band {
  background: #9ed50b;
  padding: 18px 0;
  transform: rotate(2deg) scale(1.05);
  margin: -20px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0 30px;
  flex-shrink: 0;
}

.marquee-content span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.marquee-content span img {
  height: 30px;
  width: auto;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   BEST SELLERS
   ============================================ */
.bestsellers {
  background: #ade220;
  padding: 70px 40px 80px;
}

.bestsellers-card {
  max-width: 1300px;
  margin: 0 auto;
  background: #fff;
  border-radius: 50px;
  padding: 50px 50px 60px;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  color: #0d1b3e;
  text-align: center;
  margin-bottom: 40px;
}

.section-title i {
  color: #fd953c;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  border: 2px solid #cbcbcb;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
  background: #fff;
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.badge-price-drop {
  background: #2279fb;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.badge-price-drop .arrow-icon {
  margin-left: auto;
  font-size: 16px;
}

.product-img {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ade220;
  padding: 0;
  overflow: hidden;
}

.product-img img {
  height: 135%;
  width: auto;
  max-width: none;
  object-fit: contain;
  pointer-events: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
  transform: translateY(2%);
}

.product-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  color: #fff;
}

.tag-blue {
  background: #2279fb;
}

.tag-green {
  background: #9ed50b;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  color: #0d1b3e;
  margin-bottom: 10px;
  min-height: 38px;
  padding: 0 16px;
  text-align: left;
}

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 16px;
}

.price-current {
  font-size: 30px;
  font-weight: 700;
  color: #2279fb;
}

.price-old {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}

.btn-add-cart {
  background: #2279fb;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.btn-add-cart:hover {
  background: #1a6ae0;
}

/* ============================================
   BANNER
   ============================================ */
.banner-section {
  padding: 0;
  background: #fff;
}

.banner-img {
  width: 100%;
  display: block;
}

/* ============================================
   DARK SERVICES
   ============================================ */
.services-dark {
  background: linear-gradient(135deg, #2279fb, #1a5fd8);
  padding: 60px 40px 80px;
  position: relative;
  overflow: hidden;
}

.services-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 2px, transparent 2px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.services-dark-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px 40px;
  position: relative;
  z-index: 2;
}

.dark-service-card:nth-child(1) { grid-column: 1 / span 2; }
.dark-service-card:nth-child(2) { grid-column: 3 / span 2; }
.dark-service-card:nth-child(3) { grid-column: 5 / span 2; }
.dark-service-card:nth-child(4) { grid-column: 2 / span 2; }
.dark-service-card:nth-child(5) { grid-column: 4 / span 2; }

.dark-service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  transition: transform 0.2s;
  pointer-events: auto;
  flex: 0 0 auto;
}

.dark-service-card:hover {
  transform: translateY(-4px);
}

.service-blob {
  width: 130px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  background: url('../images/xd/Mask_Group_260.png') center/contain no-repeat;
}

.service-blob img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.dark-service-card span {
  white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, #3364df, #5c83ff);
  position: relative;
  overflow: hidden;
  padding: 60px 40px 0;
}

.footer-decor-left,
.footer-decor-right {
  position: absolute;
  pointer-events: none;
  opacity: 0.3;
}

.footer-decor-left {
  left: 0;
  bottom: 0;
}

.footer-decor-left img {
  width: 220px;
}

.footer-decor-right {
  right: 0;
  top: 0;
}

.footer-decor-right img {
  width: 200px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  position: relative;
  z-index: 2;
}

.footer-col h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}

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

.footer-col ul a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: background 0.2s;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2279fb;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(34, 121, 251, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 999;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  background: #1a6ae0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .hero-services-panel {
    display: none !important;
  }

  .categories-inner {
    flex-wrap: wrap;
  }

  .hero-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .nav-inner {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 14px;
    padding: 8px 10px;
  }

  .hero {
    padding: 40px 20px 100px;
  }

  .hero-illustration {
    max-width: 260px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 16px 0;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-pill {
    flex-direction: column;
    border-radius: 24px;
    padding: 14px;
    gap: 12px;
    width: 100%;
  }

  .search-bar {
    max-width: 100%;
  }

  .main-nav {
    padding: 0 16px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 8px 8px;
  }

  .hero {
    padding: 30px 16px 80px;
  }

  .hero-text h1 .white-line,
  .hero-text h1 .orange-line {
    font-size: 36px;
  }

  .hero-illustration {
    max-width: 200px;
  }

  .categories {
    padding: 0 16px 60px;
  }

  .categories-inner {
    gap: 24px;
  }

  .category-card {
    width: 220px;
  }

  .category-card.rotate-left,
  .category-card.rotate-right {
    transform: rotate(0deg);
  }

  .bestsellers {
    padding: 50px 16px 60px;
  }

  .bestsellers-card {
    border-radius: 30px;
    padding: 30px 20px 40px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-dark {
    padding: 40px 16px;
  }

  .services-dark-inner {
    gap: 24px 30px;
  }

  .dark-service-card {
    font-size: 14px;
  }

  .service-blob {
    width: 100px;
    height: 85px;
  }

  .service-blob img {
    width: 65px;
    height: 65px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer {
    padding: 40px 16px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .price-current {
    font-size: 24px;
  }

  .takvim-link {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-actions {
    gap: 16px;
  }

  .hero-text h1 .white-line,
  .hero-text h1 .orange-line {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-illustration {
    max-width: 160px;
  }

  .marquee-content span {
    font-size: 18px;
  }

  .category-card {
    width: 180px;
  }
}

/* ===== Kurmay Brand - Footer Animated Color ===== */
.kurmay-brand {
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: kurmay-hue 5s ease-in-out infinite;
  color: #fd8737;
}
@keyframes kurmay-hue {
  0%   { color: #fd8737; }
  20%  { color: #ffb23c; }
  40%  { color: #9ed50b; }
  60%  { color: #2279fb; }
  80%  { color: #e43f8b; }
  100% { color: #fd8737; }
}
