/* ============================================
   Ferhatlar Kurban — Nature-Focused Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;900&family=Amiri:wght@400;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Brand greens */
  --primary: #3a9b3e;
  --primary-light: #4fc153;
  --primary-dark: #2a7a2e;
  --primary-darker: #1a5a1e;
  --primary-rgb: 58, 155, 62;

  /* Gold accents */
  --accent: #c8a951;
  --accent-light: #dfc278;
  --accent-warm: #c8a951;
  --accent-rgb: 200, 169, 81;

  /* Natural light backgrounds */
  --bg-main: #FAFAF6;
  --bg-section: #F3EFE5;
  --bg-section-alt: #EDE8DC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F6F0;
  --bg-dark: #1A2E1A;
  --bg-dark-light: #243524;
  --bg-footer: #0F1F0F;

  /* Text — dark on light */
  --text-dark: #1A2E1A;
  --text-body: #3D4E3A;
  --text-muted: #6B7D68;
  --text-light: #8E9E8B;
  --text-white: #FFFFFF;
  --text-heading: #122012;

  /* Status */
  --success: #3a9b3e;
  --success-bg: rgba(58, 155, 62, 0.1);
  --warning: #c8a951;
  --warning-bg: rgba(200, 169, 81, 0.1);
  --info: #4a90d9;
  --info-bg: rgba(74, 144, 217, 0.1);
  --danger: #e05252;
  --danger-bg: rgba(224, 82, 82, 0.1);

  /* Borders */
  --border-color: rgba(50, 90, 50, 0.10);
  --border-light: rgba(0, 0, 0, 0.05);
  --border-accent: rgba(200, 169, 81, 0.25);
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 50%;

  /* Shadows — soft & natural */
  --shadow-xs: 0 1px 3px rgba(30, 60, 30, 0.06);
  --shadow-sm: 0 2px 8px rgba(30, 60, 30, 0.08);
  --shadow: 0 4px 16px rgba(30, 60, 30, 0.10);
  --shadow-md: 0 8px 28px rgba(30, 60, 30, 0.12);
  --shadow-lg: 0 16px 48px rgba(30, 60, 30, 0.14);
  --shadow-xl: 0 24px 72px rgba(30, 60, 30, 0.16);
  --shadow-green: 0 8px 24px rgba(46, 125, 50, 0.18);
  --shadow-warm: 0 8px 24px rgba(141, 110, 55, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Dimensions */
  --navbar-height: 72px;
  --container-width: 1200px;
  --container-padding: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

/* ---------- Islamic Geometric Pattern Background (SVG) ---------- */
.islamic-pattern-bg {
  position: relative;
}

.islamic-pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232E7D32' stroke-width='0.5' opacity='0.04'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Cpath d='M40 10 L70 40 L40 70 L10 40 Z'/%3E%3Cpath d='M40 20 L60 40 L40 60 L20 40 Z'/%3E%3Ccircle cx='40' cy='40' r='15'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Helper Classes ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(58, 155, 62, 0.08);
  color: var(--primary-light);
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(58, 155, 62, 0.18);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}

.section-title h2 .accent {
  color: var(--primary);
}


.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

/* ---------- Page Transitions ---------- */
.page {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger animation delay for children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* ---------- Section Divider (Grass / Nature) ---------- */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
  border-radius: 2px;
  margin: 0 auto 24px;
}

/* ---------- Responsive Grid ---------- */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 72px 0;
  }
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --navbar-height: 64px;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 56px 0;
  }
  .section-title h2 {
    font-size: 1.65rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }
  .section-badge {
    font-size: 0.72rem;
    padding: 5px 14px;
  }
}

@media (max-width: 400px) {
  :root {
    --container-padding: 12px;
  }
  .section {
    padding: 44px 0;
  }
  .section-title h2 {
    font-size: 1.4rem;
  }
  .section-subtitle {
    font-size: 0.88rem;
    margin-bottom: 28px;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-section);
}
::-webkit-scrollbar-thumb {
  background: #C8DABA;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(46, 125, 50, 0.15);
  color: var(--primary-dark);
}
