* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #4338ca;
  --secondary: #ec4899;
  --accent: #f97316;
  --dark: #0f172a;
  --text: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.topbar {
  background: var(--dark);
  color: var(--white);
  font-size: 0.9rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-left {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.whatsapp-link,
.admin-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.nav-wrapper {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

/* Logo Styles */
.logo,
.navbar-brand {
  display: inline-block;
  line-height: 1;
}

.logo img,
.navbar-brand img {
  height: auto;
  max-height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.logo a,
.navbar-brand {
  display: inline-block;
  text-decoration: none;
}

.logo a:hover img,
.navbar-brand:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* StartP Logo Styles */
.startp-nav .navbar-brand,
.startp-responsive-nav .logo {
  padding: 0;
  margin: 0;
}

.startp-nav .navbar-brand img {
  max-height: 45px;
  max-width: 160px;
}

.startp-responsive-nav .logo img {
  max-height: 40px;
  max-width: 140px;
}

/* Black/White Logo Toggle */
.black-logo {
  display: block;
}

.white-logo {
  display: none;
}

.startp-nav.is-sticky .black-logo,
.startp-nav.is-sticky .white-logo {
  display: none;
}

.startp-nav.is-sticky .white-logo {
  display: block;
}

/* Responsive Logo */
@media (max-width: 991px) {
  .logo img,
  .navbar-brand img {
    max-height: 40px;
    max-width: 140px;
  }
  
  .startp-nav .navbar-brand img {
    max-height: 38px;
    max-width: 130px;
  }
}

@media (max-width: 767px) {
  .logo img,
  .navbar-brand img {
    max-height: 35px;
    max-width: 120px;
  }
  
  .startp-responsive-nav .logo img {
    max-height: 32px;
    max-width: 110px;
  }
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding-bottom: 0.25rem;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.cta-button {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(67, 56, 202, 0.2);
}

.hero {
  position: relative;
  background: #0f172a;
  color: var(--white);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3), transparent 60%);
  filter: blur(20px);
}

.hero::before {
  top: -100px;
  left: -150px;
}

.hero::after {
  bottom: -150px;
  right: -50px;
}

.hero-content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  width: 100%;
  padding: 3rem 0;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-buttons a,
.hero-buttons button {
  border: none;
  cursor: pointer;
  padding: 1rem 1.75rem;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.hero-slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.4);
}

.hero-slide {
  display: none;
  padding: 2rem;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.3));
}

.hero-slide > * {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.slider-dots button {
  width: 28px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--white);
}

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card .muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  border-radius: 18px;
  padding: 1.5rem;
  background: #f1f5f9;
  border: 1px solid transparent;
  transition: transform 0.3s ease, border 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.cta-section {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 32px;
  padding: 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cta-actions {
    flex-direction: row;
  }
}

.site-footer {
  margin-top: auto;
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-grid h4,
.footer-grid h5 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-grid a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.footer-cta {
  display: inline-block;
  color: var(--white);
  margin-top: 1rem;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  color: var(--muted);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--text);
  gap: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font: inherit;
  background: #f8fafc;
}

.contact-form .error {
  color: #b91c1c;
  font-size: 0.85rem;
}

.services-details-hero-image {
  position: relative;
  background: radial-gradient(circle at top right, rgba(67, 56, 202, 0.15), transparent 55%), #ffffff;
  border-radius: 32px;
  padding: 40px 30px;
  margin-bottom: 40px;
  border: 1px solid #edf2f7;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.services-details-hero-image::before,
.services-details-hero-image::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.15);
  filter: blur(4px);
}

.services-details-hero-image::before {
  top: -60px;
  right: -40px;
}

.services-details-hero-image::after {
  bottom: -50px;
  left: -30px;
  background: rgba(67, 56, 202, 0.12);
}

.services-details-hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(15, 23, 42, 0.18));
}

/* Hizmetlerimiz Sayfası - Sabit Kart ve Resim Boyutları */
.single-ml-services-box {
  height: 95%;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  margin-bottom: 30px !important;
}

.single-ml-services-box .image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border-radius: 8px;
  margin-bottom: 25px;
}

.single-ml-services-box .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.single-ml-services-box:hover .image img {
  transform: scale(1.05);
}

.single-ml-services-box h3 {
  min-height: 50px;
  display: flex;
  align-items: center;
}

.single-ml-services-box p {
  flex-grow: 1;
  min-height: 60px;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .services-details-hero-image {
    padding: 28px 20px;
  }
  
  .single-ml-services-box {
    min-height: 350px;
  }
  
  .single-ml-services-box .image {
    height: 180px;
  }
}

/* Ana Sayfa Hizmetler Bölümü - Sabit Kart ve Resim Boyutları */
.single-iot-services {
  height: 95%;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  margin-bottom: 30px !important;
}

.single-iot-services > div:first-child {
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border-radius: 12px;
  margin-bottom: 20px;
}

.single-iot-services > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.single-iot-services:hover > div:first-child img {
  transform: scale(1.05);
}

.single-iot-services h3 {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-iot-services p {
  flex-grow: 1;
  min-height: 60px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .single-iot-services {
    min-height: 370px;
  }
  
  .single-iot-services > div:first-child {
    height: 180px;
  }
}

