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

:root {
  /* Tonal Architecture */
  --surface: #f3faff;
  --surface-container-low: #e8f4fa;
  --surface-container-high: #d5ecf8;
  --surface-container-lowest: #ffffff;
  --surface-variant: rgba(213, 236, 248, 0.6);
  --primary: #002046;
  --primary-container: #1b365d;
  --on-surface: #071e27;
  --outline: #6c7a89;
  --outline-variant: rgba(108, 122, 137, 0.15);
  
  /* Functional Palette */
  --tertiary-fixed: #ffdfa0;
  --on-tertiary-fixed: #3a2a00;
  --secondary-fixed: #cbe7f5;
  --oxide-red: #8B2525;
  --purple-metallic: #86469C;
  --yellow-road: #D9A036;

  /* Typography */
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --ambient-shadow: 0 16px 32px rgba(7, 30, 39, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--on-surface);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.product-page {
  height: 100vh;
  overflow: hidden; /* Force perfectly 1 screen layout */
}

body.product-page .navbar {
  display: none !important;
  visibility: hidden !important;
}

body.product-page .sidebar {
  transform: translateX(0);
}

body.product-page .page-container {
  padding-left: 320px;
  height: 100vh;
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: flex;
  flex-direction: column;
}

/* Typography Classes */
.display-lg {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.title-sm {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.body-sm {
  font-size: 0.875rem; /* Inter is readable here */
  line-height: 1.5;
}

.label-md {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--outline);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Base Elements */
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* The "No-Divider" Rule: Use background tones instead */
.section {
  padding: 8rem 4rem;
}
.section-alt {
  background-color: var(--surface-container-low);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: #fff;
  box-shadow: var(--ambient-shadow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(7, 30, 39, 0.1);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--outline-variant);
  color: var(--primary);
}
.btn-secondary:hover {
  background: var(--surface-container-highest);
  border-color: var(--outline);
}

.btn-white {
  background: var(--surface-container-lowest);
  color: var(--on-surface);
  box-shadow: var(--ambient-shadow);
}
.btn-white:hover {
  transform: translateY(-2px);
}

/* Floating Navigation - Glass & Gradient Rule */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: var(--surface-variant);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid var(--outline-variant); /* minimal ghost border */
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-surface);
  position: relative;
  padding-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.nav-links a.active {
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 800;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

/* Sidebar / Product Menu */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background-color: var(--surface-container-high);
  z-index: 99;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  padding: 4rem 2rem 2rem 2rem;
  border-right: 1px solid var(--outline-variant);
  display: flex;
  flex-direction: column;
}

/* The sidebar can now be toggled via app.js classes */

.sidebar.is-open {
  transform: translateX(0);
}

.sidebar-title {
  margin-bottom: 2rem;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--on-surface);
  transition: background-color 0.3s, color 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background-color: var(--surface-container-lowest);
  box-shadow: var(--ambient-shadow);
}

.tech-support-widget {
  margin-top: auto;
  padding: 1.5rem;
  background-color: var(--surface-container-low);
  border-radius: 0.25rem;
}

.tech-support-widget h4 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}
.tech-support-widget p {
  margin-bottom: 1rem;
}

/* Layout Utilities */
.container {
  max-width: 1440px;
  margin: 0 auto;
}

/* Page Transitions Overlay */
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  z-index: 9999;
  pointer-events: none;
  transform: translateY(-100%);
}

/* Barba JS Transition Classes */
.slide-enter-active,
.slide-leave-active {
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Page Containers */
.page-container {
  transition: opacity 0.5s ease;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  padding: 10rem 4rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(rgba(0,32,70,0.6), rgba(0,32,70,0.8)), url('../assets/img/mainpicture.png') center/cover;
  color: white;
}

.hero .label-md {
  color: var(--tertiary-fixed);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 1.5rem;
}

.hero .display-lg {
  max-width: 800px;
  margin-bottom: 1.5rem;
  color: white; /* overriding on-surface */
}

.hero p {
  max-width: 600px;
  font-size: 1.125rem;
  margin-bottom: 3rem;
  color: rgba(255,255,255,0.8);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Spectrum Grid (Tectonic Hassasiyet Spektrumu) */
.spectrum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0; /* No borders, just different surfaces */
  margin-top: 4rem;
}

.spectrum-card {
  position: relative;
  aspect-ratio: 1; /* square cards */
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  overflow: hidden;
  color: white; /* Text is white on these */
}

.spectrum-card::before {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  /* Very gentle top and bottom dark fade just to strictly guarantee white text legibility, leaving the middle untouched so the core color shines */
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

/* Background images with dominant original colors overlaid (80% opacity) */
.bg-zemin { background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../assets/img/zemin.png') center/cover; }
.bg-cati { background: linear-gradient(rgba(139, 37, 37, 0.8), rgba(139, 37, 37, 0.8)), url('../assets/img/cati.png') center/cover; }
.bg-endustriyel { background: linear-gradient(rgba(0, 32, 70, 0.8), rgba(0, 32, 70, 0.8)), url('../assets/img/endustriyel.png') center/cover; }
.bg-yol { background: linear-gradient(rgba(217, 160, 54, 0.8), rgba(217, 160, 54, 0.8)), url('../assets/img/yol.png') center/cover; }
.bg-demir { background: linear-gradient(rgba(160, 165, 175, 0.85), rgba(160, 165, 175, 0.85)), url('../assets/img/demir.png') center/cover; }
.bg-metalik { background: linear-gradient(rgba(134, 70, 156, 0.8), rgba(134, 70, 156, 0.8)), url('../assets/img/metalik.png') center/cover; }

.spectrum-card > * {
  position: relative;
  z-index: 2;
}

.spectrum-card .sector-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tertiary-fixed);
  margin-bottom: 1rem;
}

.spectrum-card .title-sm {
  font-size: 1.5rem;
  margin-bottom: auto;
}

.spectrum-card .tech-specs {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
}

.spectrum-card:hover {
  transform: scale(0.98);
}

/* Resources & Projects Sections */
.resources-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

/* Product Specific Page Layout */
.product-layout {
  display: flex; 
  flex-direction: column;
  height: 100vh;
  background: var(--surface);
  transition: padding-left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  padding: 0; /* Reset */
}

/* Content Area for Product Page */
.product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 2rem 2rem 2rem; 
  overflow: hidden;
}

/* Asymmetric Product Header */
.product-hero {
  flex-shrink: 0;
  margin-bottom: 2rem; 
}

.product-hero h1 {
  font-size: 2.75rem; 
  margin-top: 0.5rem;
}

.product-hero p {
  font-size: 1.125rem !important; 
  max-width: 650px !important;
}

.product-hero .label-md {
  margin-bottom: 0.25rem;
  display: block;
}

/* Main Grid for Product Info */
.product-grid {
  flex: 1; /* Stretch to fill remaining space */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr; /* Exact equal halves */
  gap: 0;
  overflow: hidden;
}

/* Card Tiles without borders, relying on background tone */
.tile {
  padding: 2rem; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.tile-image {
  background-size: cover;
  background-position: center;
  /* Min height removed to allow pure grid flexing */
}

.tile-white {
  background: var(--surface-container-lowest);
}

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

.tile-blue .label-md {
  color: rgba(255,255,255,0.6);
}

.tile-secondary {
  background: var(--surface-container-low);
}

/* Color Palette Swatches */
.color-swatches {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.swatch-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.swatch-color {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 0.25rem;
  box-shadow: var(--ambient-shadow);
}

/* Tech Specs List */
.tech-spec-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tech-spec-item {
  border-left: 2px solid var(--tertiary-fixed);
  padding-left: 1rem;
}
.tech-spec-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.tech-spec-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Uygulama Alanları Listesi Düzeltmeleri */
.tile ul {
  margin-top: 1rem !important;
  gap: 1rem !important;
}
.tile ul li {
  gap: 0.75rem !important;
}
.tile ul li div {
  width: 32px !important;
  height: 32px !important;
  flex-shrink: 0 !important;
}
.tile ul li span {
  font-size: 0.875rem !important;
  line-height: 1.2 !important;
}

/* Butonu kaldırılmış genişletilmiş liste */
.tile ul.large-items {
  margin-top: 1.25rem !important;
  gap: 1.25rem !important;
}
.tile ul.large-items li {
  gap: 1rem !important;
}
.tile ul.large-items li div {
  width: 52px !important;
  height: 52px !important;
  border-radius: 6px !important;
  flex-shrink: 0 !important;
}
.tile ul.large-items li span {
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

/* Footer Placeholder */
.footer {
  background: var(--primary);
  color: white;
  padding: 6rem 4rem;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
  body.product-page .sidebar {
    transform: translateX(-100%); /* default hidden on mobile, need toggle */
  }
  .spectrum-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .spectrum-grid, .product-grid, .bento-grid-5, .ref-projects-grid {
    grid-template-columns: 1fr;
  }
  .bento-card, .bento-tofas {
    grid-column: span 1 !important;
  }
  .navbar {
    padding: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    order: 3;
    width: 100%;
  }
  .hero, .customers-hero, .partners-hero, .contact-hero {
    padding: 6rem 1.5rem 2rem 1.5rem !important;
    height: auto;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  body.product-page .page-container {
    margin-left: 0;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    width: 80%;
    max-width: 300px;
    padding: 2rem 1rem;
    transform: translateX(-100%) !important;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
  }
  .sidebar.is-open {
    transform: translateX(0) !important;
  }
  .ref-projects-section .container {
    padding: 0 1.5rem !important;
  }
}

/* Customers / References Page Styles */
.customers-page {
  background-color: #ffffff;
}
.customers-hero {
  padding: 8rem 4rem 4rem 4rem;
  max-width: 1440px;
  margin: 0 auto;
}
.customers-hero .ref-label {
  display: inline-block;
  background-color: #eaf4f9;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.customers-hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 2rem;
  max-width: 800px;
}
.customers-hero p {
  font-size: 1.25rem;
  color: #4a5d6a;
  max-width: 700px;
}

.bento-grid-5 {
  padding: 0 4rem 4rem 4rem;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.bento-card {
  padding: 2rem;
  border-radius: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  height: 320px; /* Fixed smaller height */
}

.bento-card p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
  margin: 0;
}

.bento-card:hover p {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
}

.bento-tofas {
  grid-column: span 2;
  background: linear-gradient(rgba(0,32,70,0.8), rgba(0,32,70,0.95)), url('https://images.unsplash.com/photo-1565043666747-69f6646db940?auto=format&fit=crop&w=800&q=80') center/cover;
  color: white;
  box-shadow: 0 20px 40px rgba(0,32,70,0.05);
  justify-content: flex-end; /* Push content to bottom */
}
.bento-tofas .icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--tertiary-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-tertiary-fixed);
  margin-bottom: 2rem;
}
.bento-tofas .card-meta {
  position: absolute;
  top: 3rem;
  right: 3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bento-tofas h3 {
  font-size: 3rem;
  color: white;
  margin-bottom: 0.5rem;
}
.bento-tofas p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 80%;
}

.bento-karsan {
  grid-column: span 1;
  background: linear-gradient(rgba(203, 231, 245, 0.9), rgba(203, 231, 245, 0.95)), url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?auto=format&fit=crop&w=800&q=80') center/cover;
  padding: 2rem;
  justify-content: space-between;
}
.bento-karsan svg { margin-bottom: 1.5rem; color: var(--primary); }
.bento-karsan h3 { font-size: 2.5rem; color: var(--primary); font-family: var(--font-display); font-weight: 800; margin-bottom: 0.5rem; transition: transform 0.3s ease; }
.bento-karsan p { font-size: 0.875rem; color: var(--primary); font-weight: 500; line-height: 1.6; }

.bento-magneti {
  grid-column: span 1;
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.95)), url('https://images.unsplash.com/photo-1581092334651-ddf26d9a09d0?auto=format&fit=crop&w=800&q=80') center/cover;
  box-shadow: 0 10px 30px rgba(0,32,70,0.03);
  position: relative;
  justify-content: space-between;
}
.bento-magneti svg { margin-bottom: 1.5rem; color: #d5ecf8; width: 48px; height: 48px;}
.bento-magneti h3 { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.5rem; transition: transform 0.3s ease; }
.bento-magneti p { font-size: 0.875rem; color: #4a5d6a; line-height: 1.6;}

.bento-tictanativ {
  grid-column: span 1;
  background: linear-gradient(135deg, rgba(0,32,70,0.85), rgba(7,30,39,0.95)), url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=800&q=80') center/cover;
  color: white;
  justify-content: space-between;
}
.bento-tictanativ svg { width: 48px; height: 48px; color: var(--tertiary-fixed); margin-bottom: 1.5rem; }
.bento-tictanativ h3 { font-size: 2.5rem; margin-bottom: 0.5rem; color: white; transition: transform 0.3s ease; }
.bento-tictanativ p { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.6; }

.bento-akmerkez {
  grid-column: span 1;
  background: linear-gradient(rgba(0,32,70,0.6), rgba(0,32,70,0.8)), url('https://images.unsplash.com/photo-1555529733-0e670560f7e1?auto=format&fit=crop&w=800&q=80') center/cover;
  border-left: 4px solid var(--tertiary-fixed);
  color: white;
  justify-content: space-between;
}
.bento-akmerkez svg { margin-bottom: 1.5rem; width: 48px; height: 48px; color: white; }
.bento-akmerkez h3 { font-size: 2.5rem; margin-bottom: 0.5rem; color: white; transition: transform 0.3s ease; }
.bento-akmerkez p { font-size: 0.875rem; color: rgba(255,255,255,0.8); line-height: 1.6;}

/* Stats Bar */
.stats-bar {
  background-color: #eaf4f9;
  margin: 4rem;
  padding: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stats-grid {
  display: flex;
  gap: 4rem;
}
.stat-item h2 { font-size: 3.5rem; color: var(--primary); font-family: var(--font-display); font-weight: 800; line-height: 1; }
.stat-item p { font-size: 0.75rem; color: #6c7a89; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.5rem; }

.stats-quote {
  max-width: 400px;
  border-left: 1px solid #cbe7f5;
  padding-left: 3rem;
  font-style: italic;
  font-size: 0.875rem;
  color: #4a5d6a;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .bento-grid-5 { grid-template-columns: 1fr; }
  .bento-tofas { grid-column: span 1; }
  .stats-bar { flex-direction: column; gap: 3rem; padding: 2rem; margin: 2rem; align-items: flex-start; }
  .stats-quote { border-left: none; padding-left: 0; padding-top: 2rem; border-top: 1px solid #cbe7f5; }
}
@media (max-width: 768px) {
  .stats-grid { flex-direction: column; gap: 2rem; }
}

/* Contact Page Styles */
.contact-page {
  background-color: var(--surface);
}

.contact-hero {
  background: linear-gradient(135deg, var(--on-surface) 0%, var(--primary) 100%);
  padding: 8rem 4rem 4rem 4rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 20%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(35deg);
  pointer-events: none;
}

.contact-hero .breadcrumb {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  display: block;
}

.contact-hero h1 {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}

.contact-hero .accent-line {
  width: 80px;
  height: 4px;
  background-color: var(--tertiary-fixed);
  margin-top: 1.5rem;
}

.contact-content {
  max-width: 1440px;
  margin: 0 auto;
}

.contact-grid {
  display: flex;
  gap: 2rem;
  padding: 4rem;
}

.contact-form-card {
  flex: 0 0 60%;
  background-color: #ffffff;
  padding: 4rem;
  box-shadow: 0 16px 32px rgba(7, 30, 39, 0.05);
  border-radius: 0;
}

.contact-form-card .label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--outline);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.contact-form-card h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-form-card p {
  font-size: 1rem;
  color: #4a5d6a;
  margin-bottom: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--outline);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background-color: var(--surface-container-high);
  border: none;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--on-surface);
  border-radius: 0;
  transition: box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8fa0ac;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 4px var(--primary);
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-top: 1rem;
}

.contact-info-side {
  flex: 0 0 calc(40% - 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background-color: var(--surface-container-low);
  display: flex;
  align-items: center;
  padding: 2rem;
  gap: 2rem;
}

.info-card .icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.info-card .info-content h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--on-surface);
  margin-bottom: 0.5rem;
}
.info-card .info-content p {
  font-size: 0.875rem;
  color: #4a5d6a;
  line-height: 1.6;
}

.social-section {
  margin-top: 1rem;
}
.social-section h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--outline);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  border-radius: 0.25rem;
  background-color: var(--primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(7, 30, 39, 0.15);
}
.social-btn:nth-child(1) { background-color: #e91e63; }
.social-btn:nth-child(2) { background-color: #000000; }
.social-btn:nth-child(3) { background-color: #0077b5; }

.contact-map {
  height: 440px;
  background-image: url('https://images.unsplash.com/photo-1510006851064-e6056cf0e3ab?auto=format&fit=crop&w=1920&q=80&grayscale=true');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-overlay {
  background-color: rgba(255, 255, 255, 0.4);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  mix-blend-mode: overlay;
}
.map-pin {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.map-pin .icon-container {
  width: 48px; height: 48px;
  background-color: #071e27;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
}
.map-pin .label {
  background-color: white;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--on-surface);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-transform: uppercase;
}

.spec-footer {
  background-color: #f4f7f9;
  padding: 5rem 4rem 2rem 4rem;
}
.spec-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.spec-footer-grid h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--on-surface);
  text-transform: uppercase;
}
.spec-footer-grid p {
  font-size: 0.875rem;
  color: #6c7a89;
  line-height: 1.6;
  max-width: 80%;
}
.spec-footer-block h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--on-surface);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.spec-footer-block ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.spec-footer-block a {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: #cbe7f5;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s ease;
}
.spec-footer-block a:hover {
  text-decoration-color: var(--primary);
}
.spec-footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid #d5ecf8;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #8fa0ac;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #00c853;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}

@media (max-width: 1024px) {
  .contact-grid { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .spec-footer-grid { grid-template-columns: 1fr; }
}

/* Partners Page Styles (İş Ortakları) */
.partners-page {
  background-color: var(--surface);
}

.partners-hero {
  background-color: #f8fafc;
  padding: 10rem 4rem 4rem 4rem;
}
.partners-content {
  max-width: 1440px;
  margin: 0 auto;
}
.ref-label-bg {
  display: inline-block;
  background-color: #dceef7;
  color: #4a5d6a;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.partners-hero h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.partners-hero p {
  font-size: 1.125rem;
  color: #4a5d6a;
  line-height: 1.6;
  max-width: 650px;
}

.partners-bento-section {
  background-color: #f3faff; /* slightly lighter than the hero? Actually, maybe use #eaf4f9 */
  padding: 6rem 4rem;
}
.partners-grid-4 {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.partners-grid-4 .pc-card {
  height: 320px;
  position: relative;
  justify-content: space-between;
  box-shadow: var(--ambient-shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.partners-grid-4 .header {
  display: flex;
  justify-content: flex-end; /* Push label to the right */
  margin-bottom: 2rem;
}

.partners-grid-4 .label {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: white;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
}

.partners-grid-4 .card-content h3 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.partners-grid-4 .card-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 90%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
  margin: 0;
}

.partners-grid-4 .pc-card:hover .card-content p {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
}

/* Specific Card Backgrounds */
.partner-acm {
  background: linear-gradient(rgba(0,32,70,0.7), rgba(0,32,70,0.95)), url('https://images.unsplash.com/photo-1541888086425-d81bb19240f5?auto=format&fit=crop&w=800&q=80') center/cover;
}
.partner-purpos {
  background: linear-gradient(rgba(7,30,39,0.7), rgba(7,30,39,0.95)), url('https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?auto=format&fit=crop&w=800&q=80') center/cover;
}
.partner-perfect {
  background: linear-gradient(rgba(20,50,80,0.7), rgba(20,50,80,0.95)), url('https://images.unsplash.com/photo-1590487483647-3bd4ae475a85?auto=format&fit=crop&w=800&q=80') center/cover;
}
.partner-gelchi {
  background: linear-gradient(rgba(0,32,70,0.6), rgba(0,32,70,0.9)), url('https://images.unsplash.com/photo-1541701494587-cb58502866ab?auto=format&fit=crop&w=800&q=80') center/cover;
}

/* CTA Section */
.partners-cta { background: #dceef7; padding: 6rem 4rem; }
.cta-content { max-width: 1440px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 4rem;}
.cta-text { flex: 1; max-width: 700px; }
.cta-text h2 { font-size: 2.25rem; color: var(--primary); margin-bottom: 1.5rem; font-family: var(--font-display); font-weight: 800;}
.cta-text p { font-size: 1rem; color: #4a5d6a; line-height: 1.6; }
.cta-btn { background: var(--primary); color: white; padding: 1rem 2.5rem; font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; display: inline-flex; align-items: center; gap: 1rem; border-radius: 4px; box-shadow: var(--ambient-shadow); flex-shrink: 0;}

/* Unique Local Footer for this View */
.partners-footer { background: #eaf4f9; padding: 4rem; display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid white;}
.partners-footer .brand { font-size: 1.25rem; font-weight: 800; color: var(--primary); font-family: var(--font-display); margin-bottom: 0.5rem; display: block;}
.partners-footer .copyright { font-size: 0.65rem; color: #8fa0ac; letter-spacing: 0.05em; text-transform: uppercase;}
.partners-footer-links { display: flex; gap: 2rem; align-items: center; }
.partners-footer-links a { font-size: 0.75rem; color: #6c7a89; font-weight: 700; letter-spacing: 0.05em; transition: color 0.2s;}
.partners-footer-links a:hover { color: var(--primary); }
.partners-socials { display: flex; gap: 1rem; }
.partners-socials a { width: 32px; height: 32px; border: 1px solid #cbe7f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); transition: all 0.2s; }
.partners-socials a:hover { background: var(--primary); color: white; }

@media (max-width: 1024px) {
  .partners-grid-4 { grid-template-columns: 1fr; }
  .cta-content { flex-direction: column; align-items: flex-start; }
  .partners-footer { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .partners-footer-links { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* Reference Projects Section */
.ref-projects-section {
  background-color: #e6f0f9; /* Light blue matching the image */
  padding: 6rem 0;
}

.ref-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.ref-card {
  background-color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
}

.ref-image {
  height: 250px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 1rem;
}

.ref-content {
  padding: 1.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ref-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.ref-content p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #6c7a89;
  margin-bottom: auto; /* Pushes the badge to the bottom */
}

.ref-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1.5rem;
}

.badge-endustriyel { background-color: #e2eff8; color: var(--primary); }
.badge-zemin { background-color: #e2eff8; color: var(--primary); }
.badge-metalik { background-color: #e2eff8; color: var(--primary); }
.badge-demir { background-color: #e2eff8; color: var(--primary); }
.badge-cati { background-color: #fcebc4; color: #8a6d3b; }


/* Global Main Footer */
.main-footer {
  position: relative;
  background: linear-gradient(rgba(0, 32, 70, 0.93), rgba(0, 32, 70, 0.98)), url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: white;
  padding: 6rem 4rem 2rem 4rem;
}

.main-footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
  display: inline-block;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 400px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--tertiary-fixed);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .main-footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .main-footer {
    padding: 4rem 2rem 2rem 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
