/* ----------------------------------
   CSS VARIABLES & DESIGN SYSTEM
----------------------------------- */
:root {
  /* Colors */
  --bg-color: #f8fafc;
  --text-color: #1e293b;
  --text-muted: #64748b;
  
  --primary-color: #0f172a; /* Deep Slate Blue */
  --primary-light: #334155;
  --accent-color: #f97316; /* Vibrant Orange */
  --accent-hover: #ea580c;
  
  --card-bg: rgba(255, 255, 255, 0.7);
  --white: #ffffff;
  
  --border-radius: 12px;
  --transition-speed: 0.3s;
  
  /* Typography */
  --font-family-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-family-heading: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* ----------------------------------
   BASE STYLES
----------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-family-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  margin-top: 0;
  line-height: 1.2;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-color);
}

.text-center { text-align: center; }

/* ----------------------------------
   CONTAINER
----------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------------------------
   BUTTONS
----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-family-heading);
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-primary-sm {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.btn-primary-sm:hover {
  background-color: var(--accent-hover);
  color: var(--white);
}

/* ----------------------------------
   HEADER & NAVIGATION
----------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition-speed) ease;
  padding: 15px 0;
}

.main-header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.logo-accent {
  color: var(--accent-color);
}

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a:not(.btn-primary-sm) {
  font-weight: 500;
  color: var(--primary-light);
  position: relative;
}

.main-nav a:not(.btn-primary-sm)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.main-nav a:not(.btn-primary-sm):hover::after {
  width: 100%;
}

/* ----------------------------------
   HERO SECTION
----------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.hero-bg {
  position: absolute;
  top: -20%;
  right: 0;
  width: 55%;
  height: 140%;
  background: linear-gradient(to bottom left, rgba(249, 115, 22, 0.1), rgba(15, 23, 42, 0.05));
  filter: blur(80px);
  z-index: 0;
  border-radius: 50%;
  transform: rotate(-15deg);
  max-width: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary-color);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----------------------------------
   SERVICES SECTION
----------------------------------- */
.services {
  padding: 100px 0;
  background-color: var(--white);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.03) 0%, transparent 100%);
  transition: height 0.4s ease;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  border-color: rgba(249, 115, 22, 0.2);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--accent-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ----------------------------------
   ABOUT SECTION
----------------------------------- */
.about {
  padding: 100px 0;
  background-color: #f1f5f9;
}

.dual-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 500;
}

.feature-list svg {
  width: 24px;
  height: 24px;
  color: var(--accent-color);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-box {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-bottom: 3px solid var(--accent-color);
}

.stat-number {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* ----------------------------------
   CTA SECTION
----------------------------------- */
.cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* ----------------------------------
   FOOTER
----------------------------------- */
.main-footer {
  background-color: #020617;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-family: var(--font-family-heading);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 24px;
  font-family: var(--font-family-heading);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: var(--accent-color);
}

.footer-col p {
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
}

/* ----------------------------------
   ANIMATIONS
----------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ----------------------------------
   RESPONSIVE
----------------------------------- */
@media (max-width: 768px) {
  /* Genel taşma engelleyici */
  section, .container, .card, .service-card {
    max-width: 100%;
    overflow-x: hidden;
    word-break: break-word;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1rem);
  }

  .section-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .dual-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .container {
    padding: 0 16px;
  }

  /* Mobil nav artık layout/default.php içindeki CSS + JS ile yönetiliyor */
}
