/* ==========================================================================
   FT DİJİTAL - DESIGN SYSTEM & STYLES
   ========================================================================== */

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

:root {
  /* Colors */
  --primary: #FF5A1F;         /* Logo Yazılım Orange */
  --primary-hover: #E04810;
  --secondary: #0A2540;       /* Tech Deep Navy Blue */
  --secondary-light: #1E3A8A;
  --bg-main: #FFFFFF;
  --bg-alt: #F8FAFC;          /* Clean light gray background */
  --bg-card: #FFFFFF;
  --neutral-dark: #0F172A;
  --gray-text: #475569;
  --gray-light: #E2E8F0;
  --gray-border: #E2E8F0;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 10px 30px rgba(10, 37, 64, 0.05);
  --shadow-lg: 0 20px 40px rgba(10, 37, 64, 0.08);
  --shadow-primary: 0 8px 20px rgba(255, 90, 31, 0.2);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --header-height: 80px;
  --max-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ==========================================================================
   1. Resets & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--neutral-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* Common Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

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

.section-header {
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
}

.section-header p {
  color: var(--gray-text);
  font-size: 1.125rem;
}

/* ==========================================================================
   2. Components & Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  gap: 8px;
  transition: var(--transition-normal);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 90, 31, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 37, 64, 0.15);
}

.btn-outline {
  border: 2px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  background-color: var(--white);
  color: var(--secondary);
  border: 1px solid var(--gray-border);
}

.btn-light:hover {
  background-color: var(--bg-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Form Controls */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--neutral-dark);
  background-color: var(--white);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(255, 90, 31, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 37, 64, 0.05);
  z-index: 1000;
  transition: var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--secondary);
  gap: 8px;
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary);
  position: relative;
  padding: 8px 0;
}

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

.nav-link:hover {
  color: var(--primary);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Selector */
.lang-selector {
  display: flex;
  background-color: var(--bg-alt);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-border);
}

.lang-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  color: var(--gray-text);
}

.lang-btn.active {
  background-color: var(--white);
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
  background: radial-gradient(circle at 90% 10%, rgba(255, 90, 31, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(10, 37, 64, 0.03) 0%, transparent 40%),
              var(--bg-main);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--secondary);
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--secondary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--gray-text);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
}

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

/* Hero Visual Vibe */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-shape-bg {
  position: absolute;
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.05) 0%, rgba(255, 90, 31, 0.05) 100%);
  border-radius: 40% 60% 60% 40% / 50% 30% 70% 50%;
  animation: morphing 15s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes morphing {
  0% { border-radius: 40% 60% 60% 40% / 50% 30% 70% 50%; }
  100% { border-radius: 60% 40% 40% 60% / 30% 60% 40% 70%; }
}

.hero-card {
  position: relative;
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-border);
  z-index: 2;
  width: 100%;
  max-width: 400px;
  transform: rotate(-1deg);
  transition: var(--transition-normal);
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-5px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 90, 31, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
}

.hero-card-body p {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 16px;
}

.hero-card-metric {
  font-size: 1.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
}

/* ==========================================================================
   5. Stats Showcase
   ========================================================================== */
.stats {
  padding: 40px 0;
  background-color: var(--secondary);
  color: var(--white);
  position: relative;
  z-index: 10;
}

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

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.stat-item p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ==========================================================================
   6. Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 90, 31, 0.2);
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-fast);
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--primary);
  color: var(--white) !important;
}

.service-card:hover .service-icon-wrapper svg {
  color: var(--white) !important;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--gray-text);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-items {
  margin-bottom: 24px;
}

.service-items li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 8px;
}

.service-items li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  font-family: var(--font-heading);
}

.service-link:hover {
  gap: 10px;
}

/* ==========================================================================
   7. Sustainability Carbon Tool
   ========================================================================== */
.sustainability-showcase {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-alt) 100%);
}

.calculator-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.calc-panel {
  padding: 40px;
}

.calc-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Slider Custom Styling */
.range-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.range-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  height: 6px;
  background: var(--gray-light);
  border-radius: 5px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-val {
  min-width: 90px;
  text-align: right;
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-heading);
}

.result-panel {
  background-color: var(--secondary);
  color: var(--white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
}

.result-panel h3 {
  color: var(--white);
}

.results-display {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-metric-box {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.metric-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-val {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--white);
}

.metric-val span {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 4px;
}

.result-metric-box.total {
  border-bottom: none;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 90, 31, 0.3);
}

.result-metric-box.total .metric-val {
  font-size: 2.25rem;
  color: var(--primary);
  font-weight: 800;
}

.result-panel p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  margin-bottom: 24px;
}

/* ==========================================================================
   8. AI Solution Showcase
   ========================================================================== */
.ai-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: center;
}

.ai-content {
  text-align: left;
}

.ai-simulator {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  height: 520px;
  display: flex;
  flex-direction: column;
}

.sim-header {
  background-color: var(--secondary);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10B981; /* green active */
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sim-header-title {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.sim-chat-area {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--bg-alt);
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: bubble-fade 0.3s ease-out forwards;
}

@keyframes bubble-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble.ai {
  background-color: var(--white);
  color: var(--neutral-dark);
  align-self: flex-start;
  border-top-left-radius: 2px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--primary);
  white-space: pre-line;
}

.chat-bubble.user {
  background-color: var(--secondary);
  color: var(--white);
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.chat-bubble.system {
  background-color: rgba(10, 37, 64, 0.05);
  color: var(--gray-text);
  font-size: 0.8rem;
  text-align: center;
  align-self: center;
  border-radius: 20px;
  max-width: 100%;
}

.sim-loading {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
}

.sim-loading span {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: chat-loading 1.4s infinite both;
}

.sim-loading span:nth-child(2) { animation-delay: 0.2s; }
.sim-loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chat-loading {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.sim-upload-zone {
  border: 2px dashed var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 30px 20px;
  text-align: center;
  background-color: var(--white);
  margin: 10px;
  transition: var(--transition-fast);
}

.sim-upload-zone:hover,
.sim-upload-zone.dragover {
  border-color: var(--primary);
  background-color: rgba(255, 90, 31, 0.05);
}

.sim-upload-zone.dragover {
  transform: scale(1.02);
}

.sim-upload-icon {
  margin: 0 auto 12px auto;
  color: var(--gray-text);
}

.sim-upload-btn {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
}

.sim-footer {
  padding: 16px;
  background-color: var(--white);
  border-top: 1px solid var(--gray-border);
}

.sim-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-question-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary);
  text-align: left;
  background-color: var(--bg-alt);
}

.sim-question-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background-color: rgba(255, 90, 31, 0.05);
}

.sim-question-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   9. Corporate & References
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.about-feature-box {
  background-color: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
}

.about-feature-box h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--secondary);
}

.about-feature-box p {
  font-size: 0.875rem;
  color: var(--gray-text);
}

/* References Filter */
.ref-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  background-color: var(--bg-alt);
  color: var(--secondary);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

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

.ref-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ref-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 90, 31, 0.2);
}

.ref-logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.ref-logo-placeholder {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--secondary) 0%, #1E40AF 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.ref-client {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
}

.ref-tag {
  font-size: 0.75rem;
  background-color: var(--bg-alt);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--gray-text);
  font-weight: 600;
}

.ref-project-title {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.ref-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
  flex-grow: 1;
  margin-bottom: 20px;
}

.ref-metrics {
  background-color: rgba(255, 90, 31, 0.05);
  border: 1px dashed rgba(255, 90, 31, 0.3);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

/* ==========================================================================
   10. Blog Section
   ========================================================================== */
.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
}

.blog-search-wrapper {
  position: relative;
  max-width: 350px;
  width: 100%;
}

.blog-search-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-text);
}

.blog-search-input {
  padding-left: 44px;
}

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

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.blog-img-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

.blog-meta-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--white);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.blog-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-info {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray-text);
  margin-bottom: 12px;
}

.blog-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-body h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--secondary);
}

.blog-body p {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-card-btn {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card-btn:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   11. Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info {
  text-align: left;
}

.contact-info-desc {
  color: var(--gray-text);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.contact-branches {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.branch-box {
  padding-left: 20px;
  border-left: 4px solid var(--primary);
}

.branch-box h4 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.branch-box p {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 6px;
}

.branch-box a {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
}

.branch-box a:hover {
  color: var(--primary);
}

.contact-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-md);
}

.contact-card h3 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

/* ==========================================================================
   12. Footer Section
   ========================================================================== */
.footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 80px 0 30px 0;
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 20px;
  line-height: 1.6;
}

.footer-links h4,
.footer-newsletter h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
}

.footer-links h4::after,
.footer-newsletter h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  flex-grow: 1;
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   13. Modals Structure
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  padding: 40px;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--gray-text);
  cursor: pointer;
  z-index: 10;
}

.modal-close:hover {
  color: var(--primary);
}

/* Specific modal enhancements */
.blog-modal-content {
  text-align: left;
}

.blog-modal-content img {
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-modal-content .blog-modal-body {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.7;
}

.blog-modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--secondary);
}

.blog-modal-content h4 {
  font-size: 1.25rem;
  margin: 24px 0 12px 0;
}

.blog-modal-content ul, .blog-modal-content ol {
  margin: 12px 0 20px 24px;
}

.blog-modal-content li {
  margin-bottom: 8px;
}

/* ==========================================================================
   14. WhatsApp Floating Widget
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.whatsapp-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-size: 2rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-normal);
}

.whatsapp-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background-color: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--white);
  animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.whatsapp-chat-box {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-chat-box.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.whatsapp-chat-header {
  background-color: #128C7E;
  color: var(--white);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}

.whatsapp-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.whatsapp-status {
  font-size: 0.75rem;
  opacity: 0.8;
}

.whatsapp-chat-body {
  padding: 20px;
  background-color: #E5DDD5; /* WhatsApp chat background */
  font-size: 0.85rem;
}

.whatsapp-msg-bubble {
  background-color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  border-top-left-radius: 0;
  color: var(--neutral-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
}

.whatsapp-chat-footer {
  padding: 12px 16px;
  background-color: var(--bg-alt);
  display: flex;
}

.whatsapp-send-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25D366;
  color: var(--white);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.whatsapp-send-link:hover {
  background-color: #128C7E;
}

/* ==========================================================================
   15. Responsive Design (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content p {
    margin: 0 auto 30px auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
  }
  
  .result-panel {
    min-height: 300px;
  }

  .ai-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition-normal);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  /* Hamburger Menu Animations */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-right {
    gap: 12px;
  }

  .nav-right .btn {
    display: none; /* Hide Quote button on mobile header */
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .references-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .blog-search-wrapper {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item h3 {
    font-size: 2.5rem;
  }

  .calc-panel {
    padding: 24px;
  }
  
  .result-panel {
    padding: 24px;
  }
  
  .result-metric-box.total .metric-val {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   16. Dropdown Menu Styles
   ========================================================================== */
.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--white);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 0;
  z-index: 1001;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  transition: var(--transition-fast);
  text-align: left;
}

.dropdown-item:hover {
  background-color: var(--bg-alt);
  color: var(--primary);
  padding-left: 24px;
}

/* ==========================================================================
   17. Sekmeli Sürdürülebilirlik Tabları
   ========================================================================== */
.tab-container {
  margin-top: 50px;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--secondary);
  background-color: var(--bg-alt);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

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

.tab-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tab-fade-in 0.4s ease-out forwards;
}

@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.tab-card {
  background-color: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.tab-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 90, 31, 0.2);
}

.tab-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--secondary);
  border-left: 3px solid var(--primary);
  padding-left: 10px;
  font-family: var(--font-heading);
}

.tab-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* Responsive Tab ve Mobil Dropdown */
@media (max-width: 1024px) {
  .tab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tab-grid {
    grid-template-columns: 1fr;
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding-left: 20px;
    min-width: 100%;
    transition: none;
  }
  
  .nav-item.dropdown.active .dropdown-menu {
    display: block;
  }
}

