/*
  ========================================
  STYLE.CSS
  ----------------------------------------
  - 1. CSS Variables
  - 2. Global Styles
  - 3. Utility Classes
  - 4. Header & Navigation
  - 5. Hero Section
  - 6. General Section & Component Styles
    - Section Titles
    - Cards (General, Testimonial, Carousel)
    - Forms
    - Buttons
  - 7. Specific Section Styles
    - About Us
    - History (Carousel)
    - Press
    - Research
  - 8. Footer
  - 9. Other Pages (Success, Privacy, Terms)
  - 10. Animations & Transitions
  - 11. Responsive Design (Media Queries)
  ========================================
*/

/* 1. CSS Variables
--------------------------------------------- */
:root {
  /* Tetradic Color Scheme */
  --primary-color: #2A9D8F; /* Persian Green - Buttons, Links */
  --secondary-color: #E9C46A; /* Saffron - Accents */
  --accent-color: #F4A261; /* Sandy Brown - Borders, Highlights */
  --dark-color: #264653; /* Charcoal - Footer, Dark Text */

  /* Neutral & Text Colors */
  --background-light: #F8F9FA;
  --background-dark: var(--dark-color);
  --text-primary: #333333;
  --text-light: #FFFFFF;
  --border-color: #222222;

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;

  /* Spacing */
  --section-padding: 6rem 0;
}

/* 2. Global Styles
--------------------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--background-light);
  line-height: 1.7;
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.1rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--dark-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h1 { font-size: clamp(2.8rem, 5vw + 1rem, 5rem); }
h2 { font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw + 1rem, 2rem); }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

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

p {
  margin-bottom: 1rem;
}

/* 3. Utility Classes
--------------------------------------------- */
.section-bg-light {
  background-color: var(--background-light);
}

.brutalist-shadow {
  border: 3px solid var(--border-color);
  box-shadow: 8px 8px 0 var(--border-color);
  transition: all 0.2s ease-out;
}

/* 4. Header & Navigation
--------------------------------------------- */
.header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--dark-color) !important;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--dark-color) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.navbar-toggler {
  border: 2px solid var(--dark-color);
  border-radius: 0;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2838, 70, 83, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* 5. Hero Section
--------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 90vh;
  padding: var(--section-padding);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax Effect */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.hero-section .container {
  z-index: 2;
}

.hero-title {
  color: var(--text-light);
  font-weight: 900;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  color: var(--text-light);
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.4rem);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 6. General Section & Component Styles
--------------------------------------------- */
section {
  padding: var(--section-padding);
  overflow: hidden;
}

.section-title {
  font-weight: 900;
  color: var(--dark-color);
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Buttons (GLOBAL) --- */
.btn, button, input[type='submit'] {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 0;
  border: 3px solid var(--border-color);
  transition: all 0.2s ease-out;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--border-color);
}

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

.btn:hover, button:hover, input[type='submit']:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--border-color);
}

.btn:active, button:active, input[type='submit']:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--border-color);
}

/* --- Cards --- */
.card {
  border: 3px solid var(--border-color);
  border-radius: 0;
  background-color: #fff;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.card-body, .card-footer {
    padding: 1.5rem;
}

.image-container {
    width: 100%;
    overflow: hidden;
    height: 250px;
    margin-bottom: 1rem;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .image-container img {
    transform: scale(1.05);
}

.testimonial-card {
  background-color: var(--background-light);
  box-shadow: 6px 6px 0px var(--accent-color);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: cover;
}

/* --- Forms --- */
.contact-form .form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.contact-form .form-control {
  border-radius: 0;
  border: 3px solid var(--border-color);
  padding: 1rem;
  font-size: 1.1rem;
  background-color: var(--background-light);
  transition: all 0.2s ease-in-out;
}

.contact-form .form-control:focus {
  background-color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.25);
}

/* 7. Specific Section Styles
--------------------------------------------- */
/* --- About Us --- */
#hakkimizda .about-us-subtitle {
  color: var(--primary-color);
  font-weight: 700;
}
#hakkimizda .image-container img {
  border-radius: 0;
}

/* --- History (Carousel) --- */
#historyCarousel .carousel-item {
  height: 500px;
}
#historyCarousel .card-carousel {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--text-light);
}
#historyCarousel .card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
}
#historyCarousel .carousel-caption {
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px #000;
}

/* --- Press --- */
.press-logo {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}
.press-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* --- Research --- */
.resource-card {
  padding: 1.5rem;
  background-color: #fff;
  border-left: 5px solid var(--secondary-color);
  border-top: 2px solid var(--border-color);
  border-right: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  transition: all 0.3s ease;
}
.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.resource-card h5 {
  font-size: 1.2rem;
  font-weight: 700;
}
.resource-card p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* 8. Footer
--------------------------------------------- */
.footer {
  background-color: var(--background-dark);
  color: rgba(255, 255, 255, 0.8);
}
.footer .footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}
.footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* 9. Other Pages (Success, Privacy, Terms)
--------------------------------------------- */
.fullscreen-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}
.fullscreen-page .icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.fullscreen-page h1 {
    color: var(--dark-color);
}
.static-page-content {
    padding-top: 120px;
    padding-bottom: 60px;
}
.static-page-content h1 {
    margin-bottom: 2rem;
}
.static-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 10. Animations & Transitions
--------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for list items */
.animate-on-scroll.is-visible .col,
.animate-on-scroll.is-visible .col-md-6,
.animate-on-scroll.is-visible .col-lg-4 {
    transition-delay: calc(0.1s * var(--i));
}

/* 11. Responsive Design
--------------------------------------------- */
@media (max-width: 991.98px) {
  section {
    padding: 4rem 0;
  }
  .header {
    background-color: #fff;
  }
  .navbar-nav {
      padding: 1rem 0;
      text-align: center;
  }
  .nav-link {
      margin: 0.5rem 0;
  }
  .hero-section {
    min-height: 70vh;
  }
  #historyCarousel .carousel-item {
    height: 400px;
  }
}

@media (max-width: 767.98px) {
  .brutalist-shadow {
    box-shadow: 6px 6px 0 var(--border-color);
  }
  .btn:hover, button:hover, input[type='submit']:hover {
    transform: none;
    box-shadow: 6px 6px 0 var(--border-color);
  }
  .footer {
    text-align: center;
  }
}