/**
 * Apsimum - Main Stylesheet
 * 
 * This file contains:
 * - CSS Custom Properties (Variables)
 * - Typography styles
 * - Base element styles
 * - Utility classes
 * - Component styles
 * 
 * @author Apsimum Development Team
 * @version 1.0.0
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */

:root {
  /* Primary Colors - New Brand Palette */
  --primary-color: #221c46;        /* Master Renk */
  --primary-dark: #172448;         /* Renk 1 */
  --primary-medium: #172b54;       /* Renk 2 */
  --primary-light: #163260;        /* Renk 3 */

  /* Secondary Colors */
  --secondary-color: #40E0D0;      /* Renk 5 - Turkuaz (önceki değerler: #35d0b2, #44adb2) */
  --secondary-dark: #40b7bd;
  --secondary-light: #16cebb;

  /* Accent Colors */
  --accent-color: #40E0D0;         /* Same as secondary */
  --accent-dark: #359297;
  --accent-light: #5cbcc0;

  /* Action/Interactive Colors */
  --action-blue: #1b51dc;          /* Interactive blue - buttons, active states */
  --action-blue-light: #def3fb;    /* Light blue - hover backgrounds */

  /* Neutral Colors */
  --white: #ffffff;                /* Renk 4 */
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --gray: #6c757d;
  --dark-gray: #495057;
  --charcoal: #343a40;
  --black: #212529;

  /* Text Colors */
  --text-primary: #221c46;         /* Primary text color */
  --text-white: #ffffff;           /* White text for dark backgrounds */

  /* Semantic Colors */
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #44adb2;

  /* Typography */
  --font-primary: 'Exo 2', sans-serif;
  --font-secondary: 'Exo 2', sans-serif;
  --font-heading: 'Exo 2', sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-md: 1.125rem;   /* 18px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 2rem;      /* 32px */
  --font-size-3xl: 2.5rem;    /* 40px */
  --font-size-4xl: 3rem;      /* 48px */
  --font-size-5xl: 3.5rem;    /* 56px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Spacing */
  --spacing-xs: 0.25rem;      /* 4px */
  --spacing-sm: 0.5rem;       /* 8px */
  --spacing-md: 1rem;         /* 16px */
  --spacing-lg: 1.5rem;       /* 24px */
  --spacing-xl: 2rem;         /* 32px */
  --spacing-2xl: 3rem;        /* 48px */
  --spacing-3xl: 4rem;        /* 64px */
  --spacing-4xl: 6rem;        /* 96px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;       /* 4px */
  --radius-md: 0.5rem;        /* 8px */
  --radius-lg: 1rem;          /* 16px */
  --radius-xl: 1.5rem;        /* 24px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* Container Max Widths */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-xxl: 1320px;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: rgb(253, 241, 230);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-md);
}

p {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

strong, b {
  font-weight: var(--font-weight-bold);
}

small {
  font-size: var(--font-size-sm);
}

/* ==========================================================================
   IMAGES
   ========================================================================== */

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ==========================================================================
   LISTS
   ========================================================================== */

ul, ol {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
}

li {
  margin-bottom: var(--spacing-xs);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn:hover {
  text-decoration: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 28, 70, 0.25);
}

.btn:disabled {
  opacity: 0.65;
  pointer-events: none;
}

/* Primary Button */
.btn-primary {
  color: var(--white);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

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

/* Secondary Button */
.btn-secondary {
  color: var(--white);
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  color: var(--white);
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

/* Outline Primary Button */
.btn-outline-primary {
  color: var(--primary-color);
  background-color: transparent;
  border-color: var(--primary-color);
}

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

/* Outline Secondary Button */
.btn-outline-secondary {
  color: var(--secondary-color);
  background-color: transparent;
  border-color: var(--secondary-color);
}

.btn-outline-secondary:hover {
  color: var(--white);
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* White Button */
.btn-white {
  color: var(--primary-color);
  background-color: var(--white);
  border-color: var(--white);
}

.btn-white:hover {
  color: var(--primary-dark);
  background-color: var(--off-white);
  border-color: var(--off-white);
}

/* Button Sizes */
.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-body {
  flex: 1 1 auto;
  padding: var(--spacing-lg);
}

.card-title {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.card-text {
  color: var(--gray);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-md);
  background-color: var(--primary-color);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: var(--font-size-2xl);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
  padding: var(--spacing-4xl) 0;
}

.section-sm {
  padding: var(--spacing-2xl) 0;
}

.section-lg {
  padding: var(--spacing-4xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  margin-bottom: var(--spacing-sm);
}

.section-title p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--gray);
}

/* Section Backgrounds */
.section-light {
  background-color: var(--off-white);
}

.section-dark {
  background-color: var(--charcoal);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

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

.section-primary h2,
.section-primary h3,
.section-primary h4 {
  color: var(--white);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 40px auto 0 auto;
    width: 100%;
    margin-top: -20px;
}

/* Z-0: Hero Animation Background */
.hero-animation-bg {
    position: relative;
    z-index: -1;
    pointer-events: none;
    width: 100vw;
    min-height: 740px;
}

.hero-animation-bg object,
.hero-animation-bg img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Z-2: Hero Content */
.hero-content {
    display: flex;
    z-index: 2;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    position: absolute;
    margin-top: 150px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  line-height: 0.9;
  margin-bottom: 0;
}

/* Hero Title Animation */
.hero-title-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
}

.hero-title-fixed {
  display: block;
  font-size: 2rem;
  color: var(--accent-color);
}

.hero-title-rotate {
  display: block;
  position: relative;
  height: 3rem;
  text-align: center;
  transition: width 0.3s ease;
}

.hero-title-word {
  position: absolute;
  font-size: 3rem;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  white-space: nowrap;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Active word - currently visible */
.hero-title-word.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Exiting word - going up and out */
.hero-title-word.exit {
  opacity: 0;
  transform: translateX(-50%) translateY(-100%);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray);
  max-width: 600px;
}

/* CTA Button */
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
  height: 54px;
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  background-color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-slow);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(68, 173, 178, 0.3);
}

.btn-hero:hover {
  background-color: var(--secondary-light);
  border-color: var(--secondary-dark);
  color: var(--primary-dark);
  text-decoration: none;
}

/* Z-1: Bowl/Curve Shape */
/*.hero-curve {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  line-height: 0;
}

.hero-curve svg {
  width: 100%;
  height: 960px;
  display: block;
}*/

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: var(--charcoal);
  color: var(--white);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-brand {
  grid-column: span 1;
}

.footer-brand .logo-text {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.footer-brand p {
  color: var(--gray);
  font-size: var(--font-size-sm);
  font-style: italic;
}

.footer-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-lg);
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--gray);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  color: var(--gray);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
}

.footer-contact i {
  color: var(--secondary-color);
  margin-top: 3px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: var(--font-size-lg);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: var(--gray);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray); }

/* Background Colors */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--off-white); }
.bg-dark { background-color: var(--charcoal); }

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.py-1 { padding-top: var(--spacing-xs); padding-bottom: var(--spacing-xs); }
.py-2 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-3 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-4 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-5 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

/* Flex Utilities */
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.gap-5 { gap: var(--spacing-xl); }

/* Width Utilities */
.w-100 { width: 100%; }
.w-auto { width: auto; }

/* Position Utilities */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Border Radius */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
