/* 
   Dr. Av. Ferhat Küçük Hukuk & Danışmanlık Ofisi - Style Sheet
   Inspired by Kulaçoğlu Hukuk Bürosu Visual Identity
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- Custom Properties / Design Tokens --- */
:root {
  --primary-font: 'Inter', sans-serif;
  --header-font: 'Playfair Display', serif;
  
  --color-white: #ffffff;
  --color-light-bg: #fcfaf7; /* Sıcak entelektüel fildişi/kitap kağıdı arka planı */
  --color-dark-bg: #0d1520; /* Derin ufuk laciverti arka planı */
  --color-card-bg: #141f2e; /* Kart laciverti */
  --color-card-border: #1e2e42; /* Kart çerçeve rengi */
  
  --color-text-dark: #232629; /* Uzun okumalar için gözü yormayan yumuşak antrasit */
  --color-text-light: #e5e5e5;
  --color-text-muted: #8e8e93;
  --color-text-dark-muted: #5a5f66; /* Daha yumuşak koyu gri */
  
  --color-red: #c02026; /* Alla Turca Crimson Red (Brand Authority) */
  --color-red-hover: #9e161b;
  --color-orange: #eb7a24; /* Alla Turca Vibrant Orange (Ideas & Horizons) */
  --color-orange-hover: #d5691a;
  
  --border-radius: 4px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(13, 21, 32, 0.08);
}

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

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

body {
  font-family: var(--primary-font);
  background-color: var(--color-white);
  color: var(--color-text-dark);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--primary-font);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
}

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

.section {
  padding: 80px 0;
}

/* --- Premium Header & Navigation --- */
.header {
  position: sticky;
  top: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid #e5e5ea;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

/* Header transparent layout on homepage — full glassmorphism */
.header.header-transparent {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

.header.header-transparent .logo-main {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.header.header-transparent .logo-sub {
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.header.header-transparent .nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.header.header-transparent .nav-link:hover,
.header.header-transparent .nav-link.active {
  color: #ffffff;
}

.header.header-transparent .nav-link::after {
  background-color: #ffffff;
}

.header.header-transparent .mobile-toggle span {
  background-color: #ffffff;
}

/* Header scrolled — frosted glass, stays dark/premium */
.header.header-transparent.scrolled {
  position: fixed;
  background-color: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.header.header-transparent.scrolled .logo-main {
  color: #ffffff;
  text-shadow: none;
}

.header.header-transparent.scrolled .logo-sub {
  color: rgba(255,255,255,0.65);
}

.header.header-transparent.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: none;
}

.header.header-transparent.scrolled .nav-link:hover,
.header.header-transparent.scrolled .nav-link.active {
  color: #ffffff;
}

.header.header-transparent.scrolled .nav-link::after {
  background-color: var(--color-red);
}

.header.header-transparent.scrolled .mobile-toggle span {
  background-color: #ffffff;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--primary-font);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--color-text-dark);
  line-height: 1.1;
  transition: color 0.4s ease;
}

.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red);
  font-weight: 600;
  margin-top: 2px;
  transition: color 0.4s ease;
}

/* Seljuk Star CSS Logo Emblem */
.seljuk-star {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 2px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .seljuk-star {
  transform: rotate(180deg);
}

.star-square {
  position: absolute;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-orange) 100%);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(192, 32, 38, 0.25);
  transition: box-shadow 0.3s ease;
}

html.dark-theme .star-square {
  box-shadow: 0 2px 10px rgba(235, 122, 36, 0.25);
}

.star-square.rot-sq {
  transform: rotate(45deg);
}

.star-content {
  position: relative;
  z-index: 2;
  font-family: var(--header-font);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  line-height: 1;
  margin-top: -1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #333333;
  letter-spacing: 0.5px;
  padding: 10px 0;
  position: relative;
  transition: color 0.4s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 28px;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: var(--transition);
}

/* --- Hero Banner Section --- */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
  overflow: hidden;
}

.hero-slider-container {
  width: 100%;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  /* Brighten, sharpen and vivify each slide photo */
  filter: brightness(1.18) contrast(1.08) saturate(1.22);
  image-rendering: -webkit-optimize-contrast;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* The hero-content needs filter reset so text isn't affected */
.slide .hero-content {
  filter: brightness(1) contrast(1) saturate(1);
}

.slide-subtitle {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-red);
  letter-spacing: 3px;
  margin-bottom: 15px;
  animation: fadeInUp 0.8s ease both;
}

.slide.active .hero-title {
  animation: fadeInUp 1s 0.2s ease both;
}

.slide.active .hero-btn {
  animation: fadeInUp 1s 0.4s ease both;
}

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

.hero-title {
  font-family: var(--header-font);
  font-style: italic;
  font-weight: 400;
  font-size: 2.8rem;
  line-height: 1.3;
  margin-bottom: 0;
  color: #ffffff;
  text-transform: none;
}

.hero-btn {
  display: inline-block;
  background-color: var(--color-red);
  color: #ffffff;
  padding: 14px 35px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  margin-top: 20px;
}

.hero-btn:hover {
  background-color: var(--color-red-hover);
  transform: translateY(-2px);
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.slider-arrow:hover {
  background-color: var(--color-red);
  border-color: var(--color-red);
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow.prev {
  left: 30px;
}

.slider-arrow.next {
  right: 30px;
}

.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots .dot:hover,
.slider-dots .dot.active {
  background-color: var(--color-red);
  transform: scale(1.2);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
  color: #ffffff;
  z-index: 10;
}

/* --- Section Title Utility --- */
.section-header-centered {
  text-align: center;
  margin-bottom: 50px;
}

.category-tag-red {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.category-tag-red::before, .category-tag-red::after {
  content: '';
  width: 40px;
  height: 1px;
  background-color: var(--color-red);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

/* --- Section: Home Intro (Kulaçoğlu Style) --- */
.home-intro {
  text-align: center;
  background-color: var(--color-light-bg);
}

.home-intro-text {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: var(--color-text-dark-muted);
  line-height: 1.8;
}

.home-intro-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-outline-grey {
  border: 1px solid #ccc;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-dark);
}

.btn-outline-grey:hover {
  border-color: var(--color-red);
  background-color: var(--color-red);
  color: #ffffff;
}

/* --- Section: Çalışma Alanlarımız Dark Grid (Birebir Kulaçoğlu) --- */
.dark-section {
  background-color: var(--color-light-bg);
  color: var(--color-text-dark);
  transition: background-color 0.4s ease, color 0.4s ease;
}

.dark-section h2, .dark-section h3, .dark-section h4 {
  color: var(--color-text-dark);
  transition: color 0.4s ease;
}

.services-layout {
  display: flex;
  gap: 60px;
  margin-top: 40px;
}

.services-sidebar {
  flex: 0 0 350px;
}

.services-sidebar-tag {
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.services-sidebar-title {
  font-size: 2.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
}

.services-sidebar-desc {
  color: var(--color-text-dark-muted);
  font-size: 0.95rem;
  margin-bottom: 35px;
  line-height: 1.7;
}

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

/* Centered Services Section (Header centered + 5 columns grid) */
.services-header-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.services-header-centered .services-sidebar-tag {
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.services-header-centered .services-sidebar-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--color-text-dark);
  transition: color 0.4s ease;
}

.services-header-centered .services-sidebar-desc {
  color: var(--color-text-dark-muted);
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.7;
  transition: color 0.4s ease;
}

.services-grid-centered {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.services-grid-centered .service-card {
  background-color: var(--color-white); /* White background in light mode */
  border: 1px solid #e5e5ea;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services-grid-centered .service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-red);
  box-shadow: 0 10px 30px rgba(192, 32, 38, 0.08);
}

.services-grid-centered .service-icon {
  margin-bottom: 20px;
  color: var(--color-red);
}

.services-grid-centered .service-icon svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: var(--color-red);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-grid-centered .service-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-dark);
  transition: color 0.4s ease;
}

.services-grid-centered .service-card-desc {
  color: var(--color-text-dark-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  transition: color 0.4s ease;
}

/* Responsive Rules for Centered Grid */
@media (max-width: 1200px) {
  .services-grid-centered {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid-centered {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .services-grid-centered {
    grid-template-columns: 1fr;
  }
}

/* Standard cards definition (fallback/general) */
.service-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  padding: 40px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-red);
  box-shadow: 0 10px 30px rgba(192, 32, 38, 0.15);
}

.service-icon {
  margin-bottom: 25px;
  color: var(--color-white);
}

.service-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--color-red);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.service-card-desc {
  color: var(--color-text-dark-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --- Section: Ekibimiz / Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-top: 50px;
}

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

.team-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
}

.team-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--color-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-card-bio-trigger {
  display: inline-block;
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--color-text-dark);
  border-bottom: 1px solid var(--color-red);
  font-weight: 600;
}

/* --- Section: Kitaplar --- */
.book-layout {
  display: flex;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.book-layout:nth-child(even) {
  flex-direction: row-reverse;
}

.book-img {
  flex: 0 0 300px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.book-img img {
  width: 100%;
  height: auto;
}

.book-info {
  flex: 1;
}

.book-info-tag {
  color: var(--color-red);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.book-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.book-desc {
  color: var(--color-text-dark-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.book-desc p {
  margin-bottom: 15px;
}

/* --- Section: Blog --- */
.blog-filters {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-btn {
  background: none;
  border: 1px solid #ccc;
  padding: 8px 25px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 20px;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
  color: #ffffff;
}

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

.blog-card {
  background-color: var(--color-white);
  border: 1px solid #e5e5ea;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #eee;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.03);
}

.blog-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--color-text-dark);
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--color-orange);
}

.blog-card-excerpt {
  color: var(--color-text-dark-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-link {
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-card-link:hover {
  color: var(--color-orange);
}

/* --- Section: Blog Detail Reading View --- */
.blog-detail-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
}

.blog-detail-meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.blog-detail-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
}

.blog-detail-banner {
  margin-bottom: 40px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-detail-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2c2c2e;
}

.blog-detail-body p {
  margin-bottom: 25px;
}

.blog-detail-body h3 {
  margin: 40px 0 20px;
  font-size: 1.6rem;
}

.blog-detail-body ul, .blog-detail-body ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

.blog-detail-body li {
  margin-bottom: 10px;
}

/* --- Section: Bize Ulaşın / Contact --- */
.contact-layout {
  display: flex;
  gap: 50px;
  margin-top: 40px;
}

.contact-info-column {
  flex: 0 0 400px;
}

.contact-item {
  margin-bottom: 35px;
}

.contact-item h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-red);
  margin-bottom: 8px;
}

.contact-item p, .contact-item a {
  font-size: 1.05rem;
  color: var(--color-text-dark);
  font-weight: 500;
}

.contact-socials {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid #e5e5ea;
  border-radius: 50%;
  color: var(--color-text-dark);
}

.contact-social-btn:hover {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.contact-form-column {
  flex: 1;
}

.contact-form {
  background-color: var(--color-light-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid #e5e5ea;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: var(--primary-font);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(192, 32, 38, 0.15);
}

textarea.form-control {
  resize: vertical;
  height: 150px;
}

.btn-submit {
  background-color: var(--color-red);
  color: #ffffff;
  border: none;
  padding: 14px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: var(--border-radius);
  width: 100%;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--color-red-hover);
}

.map-container {
  margin-top: 60px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid #e5e5ea;
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Premium Footer --- */
.footer {
  background-color: var(--color-dark-bg);
  color: #a0a0a5;
  padding: 60px 0 100px; /* Leave space at bottom for sticky CTA bar */
  font-size: 0.85rem;
  border-top: 1px solid var(--color-card-border);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a:hover {
  color: #ffffff;
}

/* --- Fixed Bottom Sticky Action Bar (CTA Tabs - Birebir Kulaçoğlu) --- */
.sticky-cta-bar {
  position: fixed;
  bottom: 24px;
  left: 20px;
  right: 20px;
  background-color: rgba(60, 60, 60, 0.72); /* Elegant semi-transparent gray */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  height: 54px;
  z-index: 999;
  border: 1px solid rgba(255, 255, 255, 0.16); /* Subtle light border */
  border-radius: 6px; /* Harder corners as requested */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28); /* Drop shadow to float */
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
  
  /* Initial hidden state */
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.sticky-cta-bar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* On screens larger than mobile, position correctly via translateX and support animation */
@media (min-width: 768px) {
  .sticky-cta-bar {
    left: 50%;
    right: auto;
    transform: translate(-50%, 30px); /* Initially hidden with translateX */
    width: calc(100% - 40px);
  }
  .sticky-cta-bar.visible {
    transform: translate(-50%, 0);
  }
}

.cta-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem; /* Slightly more compact for pill layout */
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: var(--transition);
  border-right: 1px solid rgba(255, 255, 255, 0.16); /* Light divider */
  font-family: var(--primary-font);
}

.cta-tab:last-child {
  border-right: none;
}

.cta-tab:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Light hover overlay on dark transparent background */
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .services-layout {
    flex-direction: column;
    gap: 40px;
  }
  .services-sidebar {
    flex: none;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout {
    flex-direction: column;
  }
  .contact-info-column {
    flex: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-white);
    flex-direction: column;
    padding: 50px 20px;
    gap: 25px;
    transition: var(--transition);
    border-top: 1px solid #e5e5ea;
  }
  .nav-menu.active {
    left: 0;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .book-layout, .book-layout:nth-child(even) {
    flex-direction: column;
    gap: 30px;
  }
  .book-img {
    flex: none;
    max-width: 250px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-detail-title {
    font-size: 2rem;
  }
  .footer-layout {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* --- Section: Featured Blog Posts (Kulaçoğlu Blog Style) --- */
.featured-posts {
  background-color: var(--color-white);
  padding: 80px 0;
  border-top: 1px solid #e5e5ea;
}

.featured-header {
  margin-bottom: 40px;
}

.featured-tag {
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.featured-tag::after {
  content: '';
  width: 50px;
  height: 1.5px;
  background-color: var(--color-red);
  display: inline-block;
}

.featured-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-top: 5px;
}

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

.featured-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.featured-img-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.featured-img-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  aspect-ratio: 1.5; /* Premium 3:2 layout */
}

.featured-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-card:hover .featured-img-inner img {
  transform: scale(1.06);
}

/* Date badge styling matching Kulaçoğlu blog */
.date-badge {
  position: absolute;
  top: -10px;
  left: 15px;
  background-color: var(--color-red);
  color: #ffffff;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  box-shadow: 0 4px 12px rgba(192, 32, 38, 0.25);
  z-index: 2;
  border-radius: 2px;
}

.date-day {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
}

.date-month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* Meta / Category styling with red prefix line */
.featured-meta {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.featured-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.featured-category::before {
  content: '';
  width: 15px;
  height: 1.5px;
  background-color: var(--color-orange);
  display: inline-block;
}

/* Title styling */
.featured-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.45;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card:hover .featured-card-title {
  color: var(--color-orange);
}

/* Responsive adjustments for featured posts grid */
@media (max-width: 992px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 25px;
  }
  .featured-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Dark/Light Mode Theme Toggle Button --- */
.theme-toggle {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 20px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  outline: none;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-orange);
  transform: scale(1.05);
}

.header.header-transparent .theme-toggle {
  color: rgba(255, 255, 255, 0.85);
}

.header.header-transparent .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.header.header-transparent.scrolled .theme-toggle {
  color: #333333;
}

.header.header-transparent.scrolled .theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-orange);
}

/* --- New Blog Detail Meta & Category Styles --- */
.blog-detail-category-wrapper {
  margin-bottom: 15px;
}

.blog-detail-category {
  color: var(--color-orange);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.blog-detail-category::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: var(--color-orange);
  border-radius: 2px;
}

.blog-detail-meta-new {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--color-text-dark-muted);
  font-size: 0.9rem;
  margin-bottom: 35px;
}

.blog-detail-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-card-border);
}

.author-name {
  font-weight: 600;
}

.meta-separator {
  color: #ccc;
  font-weight: 300;
}

html.dark-theme .meta-separator {
  color: var(--color-card-border);
}

.meta-dot {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  line-height: 1;
}

.blog-detail-date,
.blog-detail-read-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-icon {
  stroke: var(--color-text-muted);
  flex-shrink: 0;
}

/* Override title margin for spacing */
.blog-detail-title {
  margin-bottom: 20px;
}

/* --- Dark Theme Variable Overrides --- */
html.dark-theme {
  --color-white: #121c2a; /* Card background in dark mode */
  --color-light-bg: #090f19; /* Root dark background */
  --color-dark-bg: #050a11; /* Very dark sections background */
  --color-card-bg: #192536; /* Slightly lighter navy for inner elements */
  --color-card-border: #23344b; /* Border for dark theme */
  
  --color-text-dark: #f1f5f9; /* Soft off-white text for headers (softer on the eyes) */
  --color-text-dark-muted: #e2e8f0; /* Brighter body text for improved dark mode readability */
  --color-text-muted: #cbd5e1; /* Brighter muted text for better hierarchy */
  
  --shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

/* Dark mode structural overrides */
html.dark-theme body {
  background-color: var(--color-light-bg);
  color: var(--color-text-dark);
}

/* Scroll Header Dark Theme — exclude transparent variant */
html.dark-theme .header:not(.header-transparent) {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-card-border);
}

/* Dark theme transparent header: stay fully transparent until scrolled */
html.dark-theme .header.header-transparent {
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

html.dark-theme .header.header-transparent.scrolled {
  background-color: rgba(8, 8, 12, 0.80);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

html.dark-theme .header.header-transparent.scrolled .logo-main {
  color: #ffffff;
}

html.dark-theme .header.header-transparent.scrolled .logo-sub {
  color: var(--color-orange);
}

html.dark-theme .header.header-transparent.scrolled .nav-link {
  color: #e5e5e5;
}

html.dark-theme .header.header-transparent.scrolled .nav-link:hover,
html.dark-theme .header.header-transparent.scrolled .nav-link.active {
  color: var(--color-red);
}

html.dark-theme .header.header-transparent.scrolled .nav-link::after {
  background-color: var(--color-red);
}

html.dark-theme .header.header-transparent.scrolled .mobile-toggle span {
  background-color: #ffffff;
}

/* Dark theme nav-menu: background only on mobile dropdown, transparent on desktop */
@media (max-width: 768px) {
  html.dark-theme .nav-menu {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-card-border);
  }
  html.dark-theme .nav-link {
    color: #e5e5e5;
  }
}

html.dark-theme .btn-outline-grey {
  border-color: var(--color-card-border);
  color: #e5e5e5;
}

html.dark-theme .btn-outline-grey:hover {
  border-color: var(--color-orange);
  background-color: var(--color-orange);
  color: #ffffff;
}

html.dark-theme .blog-card {
  background-color: var(--color-white);
  border-color: var(--color-card-border);
}

html.dark-theme .contact-form {
  background-color: var(--color-white);
  border-color: var(--color-card-border);
}

html.dark-theme .form-control {
  background-color: var(--color-dark-bg);
  border-color: var(--color-card-border);
  color: var(--color-text-dark);
}

html.dark-theme .form-control:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(235, 122, 36, 0.15);
}

html.dark-theme .filter-btn {
  border-color: var(--color-card-border);
  color: #e5e5e5;
}

/* Modal details in dark mode */
html.dark-theme .bio-modal-content {
  background-color: var(--color-white);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

html.dark-theme .bio-close-btn {
  color: var(--color-text-dark);
}

html.dark-theme .bio-close-btn:hover {
  color: var(--color-orange);
}

/* Specific overrides for services page elements in dark mode */
html.dark-theme .services-nav-sidebar {
  border-color: var(--color-card-border);
}

html.dark-theme .service-detail-card {
  border-color: var(--color-card-border);
}

html.dark-theme .blog-detail-body {
  color: var(--color-text-dark-muted);
}

/* Unique orange hover/active style only for the Blog nav menu link */
.nav-link[href*="blog"]:hover,
.nav-link[href*="blog"].active {
  color: var(--color-orange) !important;
}

.nav-link[href*="blog"]::after {
  background-color: var(--color-orange) !important;
}

/* --- Scroll Progress Bar at the top of the viewport --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--color-orange); /* Orange progress bar matching the brand */
  z-index: 2001; /* Set above sticky navigation bar (z-index 1000) */
}


