/* =============================================
   SC EXPRESS - Custom Styles (Bootstrap 5 üzeri)
   ============================================= */

:root {
  --bs-primary: #1E3A5F;
  --bs-primary-rgb: 30, 58, 95;
  --bs-warning: #F59E0B;
  --bs-warning-rgb: 245, 158, 11;
  --bs-success: #16A34A;
  --bs-success-rgb: 22, 163, 74;
  --whatsapp: #25D366;
  --call-red: #DC2626;
  --hero-dark: #0F2440;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: #334155;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.display-4, .display-6,
.brand-text {
  font-family: var(--font-heading);
}

/* Mobil alt çubuk için padding */
@media (max-width: 767.98px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* ---- Navbar ---- */
#mainNavbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#mainNavbar.scrolled {
  background: rgba(15, 36, 64, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.navbar-brand .brand-text {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--bs-warning);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bs-warning);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
  left: 10%;
}

/* Mobil tam ekran menü */
@media (max-width: 991.98px) {
  #mainNavbar .navbar-collapse.show,
  #mainNavbar .navbar-collapse.collapsing {
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(15, 36, 64, 0.98);
    padding: 5.5rem 1.5rem 2rem;
    z-index: 1040;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  #mainNavbar .mobile-nav-list {
    width: 100%;
    text-align: center;
  }

  #mainNavbar .mobile-nav-list .nav-link {
    font-size: 1.35rem;
    padding: 0.85rem 0;
    color: #fff !important;
  }

  #mainNavbar .mobile-nav-list .nav-link::after {
    display: none;
  }

  #mainNavbar .navbar-toggler {
    z-index: 1051;
    position: relative;
  }
}

/* ---- Hero ---- */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--hero-dark) 0%, #1E3A5F 50%, #2D5A8E 100%);
  position: relative;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.06);
  animation: float 8s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--bs-warning);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-icon-wrap {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-ring 3s ease-in-out infinite;
}

.hero-icon-wrap i {
  font-size: 7rem;
  color: var(--bs-warning);
}

.hero-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(245, 158, 11, 0.3);
  max-width: 420px;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-image-mobile {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(245, 158, 11, 0.25);
  max-height: 280px;
  object-fit: cover;
}

/* Vurgu şeridi */
.hero-strip {
  background: linear-gradient(90deg, var(--bs-warning), #fbbf24);
  color: var(--hero-dark);
  padding: 0.85rem 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-strip .strip-phone {
  color: var(--hero-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hero-strip .strip-phone:hover {
  text-decoration: underline;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
}

/* Hero giriş animasyonu */
.hero-animate {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Section ---- */
.section-badge {
  display: inline-block;
  background: rgba(30, 58, 95, 0.08);
  color: var(--bs-primary);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-desc {
  max-width: 560px;
}

/* ---- Galeri ---- */
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-lg {
  aspect-ratio: 3 / 4;
}

/* ---- Service & Feature Cards ---- */
.service-card,
.feature-card {
  border-radius: 16px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.12) !important;
}

.service-icon,
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bs-primary), #2D5A8E);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon,
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* ---- Stats ---- */
.stats-section {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #2D5A8E 100%);
  color: #fff;
}

.stat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  font-size: 2rem;
  color: var(--bs-warning);
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.stat-value {
  line-height: 1;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--bs-warning);
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* ---- Yorumlar ---- */
.testimonial-card {
  border-radius: 16px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.1) !important;
}

.testimonial-stars {
  color: var(--bs-warning);
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-badge {
  font-size: 0.7rem;
  background: rgba(30, 58, 95, 0.08);
  color: var(--bs-primary);
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Contact ---- */
.contact-card {
  border-radius: 16px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.1) !important;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--bs-primary);
}

.contact-icon-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp);
}

.contact-link {
  color: var(--bs-primary);
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--bs-warning);
}

/* ---- Footer ---- */
.footer {
  background: var(--hero-dark);
}

/* ---- Buttons ---- */
.btn {
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-warning {
  color: #fff;
}

.btn-warning:hover {
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.3);
}

.btn-success:hover {
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.4);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #fff;
  border: none;
}

.btn-whatsapp:hover {
  background-color: #1fb855;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

/* ---- Mobil Sabit Alt Çubuk ---- */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.mobile-action-bar .btn {
  flex: 1 1 50%;
  border-radius: 14px !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 0.5rem !important;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-action-bar .btn:hover {
  transform: none;
}

.mobile-action-bar .btn:active {
  transform: scale(0.97);
}

.btn-call {
  background-color: var(--call-red);
  color: #fff;
  border: none;
  animation: pulse-call 2s ease-in-out infinite;
}

.btn-call:hover {
  background-color: #b91c1c;
  color: #fff;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5);
}

@keyframes pulse-call {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
}

.mobile-action-bar .btn-whatsapp:hover {
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
  }
}

@media (max-width: 575.98px) {
  .display-4 {
    font-size: 2rem;
  }

  .hero-features {
    gap: 0.5rem !important;
  }

  .hero-features .d-flex {
    font-size: 0.85rem;
  }

  .hero-strip {
    font-size: 0.8rem;
    padding: 0.75rem 0;
  }

  .hero-strip .strip-phone {
    display: block;
    margin-top: 0.25rem;
    margin-left: 0 !important;
  }
}
