/* Color palette variables */
:root {
  --primary-black: #000000;
  /* #000000 */
  --soft-black: #0A0A0A;
  /* #0A0A0A */
  --deep-anthracite: #1A1A1A;
  /* #1A1A1A */
  --anthracite: #232323;
  /* #232323 */
  --graphite-grey: #3A3A3A;
  /* #3A3A3A */
  --medium-grey: #6A6A6A;
  /* #6A6A6A */
  --light-grey: #D9D9D9;
  /* #D9D9D9 */
  --pure-white: #FFFFFF;
  /* #FFFFFF */

  --text: var(--light-grey);
  --bg: var(--soft-black);
  --elev-1: rgba(26, 26, 26, 0.7);
  --elev-2: rgba(35, 35, 35, 0.8);
  --border: rgba(217, 217, 217, 0.12);
  --accent: #242424;
  /* matches Three.js accent */
  --surface-light: #FAFAFA;
  --surface-grey: #F2F2F2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% 10%, rgba(255, 255, 255, 0.04), transparent),
    linear-gradient(180deg, var(--soft-black), var(--primary-black));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 240ms ease, box-shadow 240ms ease, opacity 240ms ease, transform 240ms ease;
  background: transparent;
  backdrop-filter: none;
}

.main-header.hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.main-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.main-header.scrolled {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand-mark {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.03));
}

.main-nav {
  display: none;
  gap: 24px;
}

.main-nav .nav-link {
  color: var(--light-grey);
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease, opacity 200ms ease;
  opacity: 0.9;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.main-nav .nav-link:hover {
  opacity: 1;
}

.main-nav .nav-link.active {
  border-color: var(--light-grey);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  background: transparent;
  color: var(--light-grey);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-btn.active {
  background: var(--elev-1);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--light-grey);
  margin: 0 auto;
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown */
.dropdown-menu {
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(10, 10, 10, 0.95);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 999;
}

.dropdown-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-nav {
  display: grid;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.dropdown-link {
  color: var(--light-grey);
  text-decoration: none;
  font-size: 18px;
  padding: 8px;
}

.dropdown-lang {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 24px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.line-wave-canvas,
.stand-canvas,
.volumetric-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.line-wave-canvas {
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
}

.stand-canvas {
  z-index: 1;
}

.volumetric-canvas {
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  place-items: center;
  text-align: center;
  padding: 96px 20px 24px;
  margin: 0 auto;
}

.brand-logo {
  width: min(260px, 60vw);
  height: auto;
  opacity: 0.98;
  filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(255, 255, 255, 0.3));
}

.hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  margin: 0;
  color: var(--pure-white);
  letter-spacing: 0.02em;
}

.hero-subtitle {
  color: var(--medium-grey);
  margin: 0 0 8px 0;
  font-size: clamp(14px, 2.4vw, 18px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 24px;
  border-radius: 0;
  color: var(--pure-white);
  text-decoration: none;
  border: 1px solid rgba(217, 217, 217, 0.2);
  background: linear-gradient(135deg, rgba(35, 35, 35, 0.4), rgba(26, 26, 26, 0.4));
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(217, 217, 217, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(58, 58, 58, 0.6), rgba(35, 35, 35, 0.5));
  border-color: rgba(217, 217, 217, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(58, 58, 58, 0.5), rgba(35, 35, 35, 0.4));
}

.btn-ghost {
  background: transparent;
  border-color: rgba(217, 217, 217, 0.3);
}

.btn-ghost:hover {
  background: rgba(26, 26, 26, 0.3);
}

/* Sections */
.section {
  padding: 80px 0;
  background: transparent;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(35, 35, 35, 0.12), rgba(10, 10, 10, 0.12));
}

.section-title {
  font-size: clamp(28px, 4vw, 52px);
  margin: 0 0 16px 0;
  color: var(--pure-white);
  line-height: 1.2;
}

.section-text {
  color: var(--light-grey);
  margin: 0 0 16px 0;
}

.section-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(217, 217, 217, 0.08);
  border: 1px solid rgba(217, 217, 217, 0.15);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--light-grey);
  margin-bottom: 16px;
}

/* ============================================
   SERVICES SECTION - Özgün Hizmetler Bölümü
   ============================================ */
.theme-services {
  background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.services-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.section-header-centered {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.theme-services .section-title {
  color: #000000;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1400px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

.service-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 40px 28px;
  transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (min-width: 1200px) {
  .service-card {
    padding: 36px 24px;
  }
}

.service-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.service-geometric-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 150%;
  height: 150%;
  background: linear-gradient(135deg, rgba(217, 217, 217, 0.08), transparent);
  transform: rotate(12deg);
  transition: all 800ms cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.service-card:hover .service-geometric-bg {
  transform: rotate(24deg) scale(1.1);
  background: linear-gradient(135deg, rgba(217, 217, 217, 0.15), transparent);
}

.service-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 72px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.03);
  line-height: 1;
  transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover .service-number {
  color: rgba(0, 0, 0, 0.06);
  transform: scale(1.1);
}

.service-icon-wrapper {
  margin-bottom: 28px;
  position: relative;
}

@media (min-width: 1200px) {
  .service-icon-wrapper {
    margin-bottom: 24px;
  }
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #000000, #1A1A1A);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, #232323, #3A3A3A);
  transform: rotate(45deg) scale(1.1);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: #FFFFFF;
  transition: transform 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover .service-icon svg {
  transform: rotate(-45deg);
}

.service-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 16px 0;
  letter-spacing: 0.05em;
  position: relative;
}

@media (min-width: 1200px) {
  .service-title {
    font-size: 18px;
    margin: 0 0 12px 0;
  }
}

.service-description {
  font-size: 14px;
  line-height: 1.8;
  color: #3A3A3A;
  margin: 0 0 24px 0;
  position: relative;
  flex: 1;
}

@media (min-width: 1200px) {
  .service-description {
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 20px 0;
  }
}

.service-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #000000, #3A3A3A);
  transition: width 800ms cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.service-card:hover .service-line {
  width: 60px;
}

/* Service Learn More Button - Dark design for light background */
.service-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Titillium Web', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  border: none;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.service-learn-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-learn-more:hover::before {
  left: 100%;
}

.service-learn-more:hover {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.service-learn-more svg {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-learn-more:hover svg {
  transform: translateX(4px);
}

.service-card:hover {
  transform: translateY(-8px) scale(1);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.12);
}

@media (min-width: 920px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

/* ============================================
   PROJECTS SECTION - Hexagon Grid (Yeni)
   ============================================ */
.theme-projects-new {
  background: linear-gradient(180deg, #000000 0%, #0A0A0A 100%);
  padding: 120px 0;
  position: relative;
}

.theme-projects-new .section-title {
  color: #FFFFFF;
}

.projects-hexagon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.hex-project-card {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.6), rgba(35, 35, 35, 0.4));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px) rotateX(10deg) scale(0.9);
  transition: all 700ms cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  clip-path: polygon(50% 0%,
      100% 25%,
      100% 75%,
      50% 100%,
      0% 75%,
      0% 25%);
}

.hex-project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.7), rgba(35, 35, 35, 0.5));
  z-index: 0;
  transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.hex-project-card:hover::before {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.4), rgba(35, 35, 35, 0.3));
}

.hex-project-card.in-view {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
}

.hex-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  z-index: 1;
}

.hex-animated-border {
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg,
      transparent 0%,
      rgba(217, 217, 217, 0.3) 50%,
      transparent 100%);
  opacity: 0;
  transform: scale(0.8);
  transition: all 800ms cubic-bezier(0.25, 1, 0.5, 1);
  clip-path: polygon(50% 0%,
      100% 25%,
      100% 75%,
      50% 100%,
      0% 75%,
      0% 25%);
  animation: rotateBorder 8s linear infinite;
  animation-play-state: paused;
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.hex-project-card:hover .hex-animated-border {
  opacity: 1;
  transform: scale(1);
  animation-play-state: running;
}

.hex-content {
  text-align: center;
  position: relative;
  z-index: 1;
  transform: translateY(0);
  transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.hex-project-card:hover .hex-content {
  opacity: 0;
  transform: translateY(-8px);
}

.hex-label {
  font-family: 'Titillium Web', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(217, 217, 217, 0.4);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.hex-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 20px 0;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.hex-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 100ms;
}

.hex-project-card:hover .hex-tags {
  opacity: 1;
  transform: translateY(0);
}

.hex-tags span {
  padding: 6px 14px;
  background: rgba(217, 217, 217, 0.1);
  border: 1px solid rgba(217, 217, 217, 0.2);
  color: #D9D9D9;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

.hex-tags span:hover {
  background: rgba(217, 217, 217, 0.2);
  border-color: rgba(217, 217, 217, 0.4);
  color: #FFFFFF;
}

.hex-project-card:hover {
  background: linear-gradient(135deg, rgba(35, 35, 35, 0.8), rgba(26, 26, 26, 0.6));
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
}

/* Logo Overlay System */
.hex-project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: 50%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(0.8);
  transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
  pointer-events: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-project-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Card-specific logos */
.hex-card-1::after {
  background-image: url('../assets/Teknofest_logo.png');
}

.hex-card-2::after {
  background-image: url('../assets/MSB-logo.png');
}

.hex-card-3::after {
  background-image: url('../assets/Teknofest_logo.png');
}

/* Hexagon responsive */
@media (min-width: 640px) {
  .projects-hexagon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .projects-hexagon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* View All Projects Button */
.view-all-projects {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  background: transparent;
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Titillium Web', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  border: 1.5px solid rgba(217, 217, 217, 0.2);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.view-all-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(217, 217, 217, 0.1), transparent);
  transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.view-all-btn:hover::before {
  left: 100%;
}

.view-all-btn:hover {
  border-color: rgba(217, 217, 217, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.view-all-btn svg {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.view-all-btn:hover svg {
  transform: translateX(5px);
}

/* ============================================
   ABOUT SECTION - Özgün İki Yönlü Grid
   ============================================ */
.theme-about {
  background: linear-gradient(180deg, #0A0A0A 0%, #000000 100%);
  padding: 120px 0;
  overflow: hidden;
}

.about-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.about-left {
  max-width: 560px;
}

.about-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(217, 217, 217, 0.06);
  border: 1px solid rgba(217, 217, 217, 0.12);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #D9D9D9;
  margin-bottom: 24px;
  font-family: 'Titillium Web', sans-serif;
}

.animate-text {
  background: linear-gradient(90deg, #FFFFFF 0%, #D9D9D9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-description {
  font-size: 16px;
  line-height: 1.8;
  color: #D9D9D9;
  margin-bottom: 32px;
  opacity: 0.9;
}

.about-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #D9D9D9;
  opacity: 0.85;
  transition: opacity 300ms ease;
}

.feature-item:hover {
  opacity: 1;
}

.feature-marker {
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #D9D9D9, #6A6A6A);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.about-right {
  display: grid;
  gap: 24px;
}

.capability-card {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.6), rgba(35, 35, 35, 0.4));
  border: 1px solid rgba(217, 217, 217, 0.08);
  border-radius: 0;
  padding: 32px;
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(217, 217, 217, 0.3), transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1);
}

.capability-card:hover::before {
  transform: scaleY(1);
}

.card-geometric-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 217, 217, 0.4), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.capability-card:hover .card-geometric-line {
  transform: scaleX(1);
}

.card-content {
  position: relative;
  z-index: 1;
}

.capability-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
}

.capability-text {
  font-size: 14px;
  line-height: 1.6;
  color: #D9D9D9;
  margin: 0;
  opacity: 0.85;
}

.capability-card:hover {
  background: linear-gradient(135deg, rgba(35, 35, 35, 0.8), rgba(26, 26, 26, 0.6));
  border-color: rgba(217, 217, 217, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

@media (min-width: 920px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* ============================================
   STATS SECTION - 3D WebGL Background
   ============================================ */
.theme-stats {
  background: #000000;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.stats-webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.stats-container {
  position: relative;
  z-index: 1;
}

.stats-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  perspective: 1000px;
}

.stat-item {
  position: relative;
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.4), rgba(35, 35, 35, 0.2));
  border: 1px solid rgba(217, 217, 217, 0.08);
  transition: all 500ms cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  transform: translateY(30px) rotateX(8deg);
}

.stat-item.in-view {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.stat-geometric-frame {
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.stat-geometric-frame::before,
.stat-geometric-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(217, 217, 217, 0.3);
  transition: all 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.stat-geometric-frame::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.stat-geometric-frame::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.stat-item:hover .stat-geometric-frame::before {
  width: 40px;
  height: 40px;
}

.stat-item:hover .stat-geometric-frame::after {
  width: 40px;
  height: 40px;
}

.stat-item:hover {
  background: linear-gradient(135deg, rgba(35, 35, 35, 0.6), rgba(26, 26, 26, 0.4));
  border-color: rgba(217, 217, 217, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
}

.stat-number {
  font-family: 'Titillium Web', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D9D9D9;
  opacity: 0.7;
}

/* ============================================
   CONTACT SECTION - Minimal Modern Form
   ============================================ */
.theme-contact {
  background: linear-gradient(180deg, #F2F2F2 0%, #FAFAFA 100%);
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left {
  max-width: 480px;
}

.theme-contact .section-title {
  color: #000000;
}

.contact-description {
  font-size: 16px;
  line-height: 1.8;
  color: #3A3A3A;
  margin-bottom: 32px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-marker {
  width: 4px;
  height: 4px;
  background: #232323;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.contact-link {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  position: relative;
  transition: color 300ms ease;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #000000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-link:hover::after {
  transform: scaleX(1);
}

.contact-right {
  max-width: 560px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 16px 0 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(35, 35, 35, 0.2);
  font-size: 16px;
  color: #000000;
  font-family: Helvetica, Arial, sans-serif;
  outline: none;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-label {
  position: absolute;
  top: 16px;
  left: 0;
  font-size: 16px;
  color: #6A6A6A;
  pointer-events: none;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

.form-input:focus,
.form-input:not(:placeholder-shown) {
  border-bottom-color: #232323;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
  top: -8px;
  font-size: 12px;
  color: #232323;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #232323, #3A3A3A);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1);
}

.form-input:focus~.form-line {
  transform: scaleX(1);
}

.form-submit {
  position: relative;
  align-self: flex-start;
  padding: 16px 48px 16px 32px;
  background: #000000;
  color: #FFFFFF;
  border: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.form-submit:hover::before {
  left: 100%;
}

.submit-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #FFFFFF;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1);
}

.form-submit:hover .submit-line {
  transform: scaleX(1);
}

.form-submit:hover {
  background: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

@media (min-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .hero-overlay {
    padding: 72px 20px 24px;
  }

  .about-grid,
  .contact-grid {
    gap: 48px;
  }

  .section-title {
    font-size: clamp(24px, 8vw, 36px);
  }

  .capability-card {
    padding: 24px;
  }

  .projects-puzzle {
    grid-auto-rows: 220px;
  }

  .stat-item {
    padding: 32px 24px;
  }

  .stat-number {
    font-size: clamp(36px, 10vw, 56px);
  }
}

/* Medium screens */
@media (min-width: 720px) {
  .main-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Smooth transitions for all interactive elements */
* {
  transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Print styles */
@media print {

  .main-header,
  .volumetric-canvas,
  .about-bg-canvas,
  .stats-webgl-canvas,
  .line-wave-canvas,
  .stand-canvas {
    display: none;
  }
}


/* Headings use Titillium */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.about-badge,
.stat-number,
.nav-link {
  font-family: 'Titillium Web', Helvetica, Arial, sans-serif;
}

.nav-link {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.about-badge {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stat-number {
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ============================================
   FOOTER - Modern 2 Column Layout
   ============================================ */
.site-footer {
  padding: 80px 0 30px;
  color: var(--light-grey);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(0, 0, 0, 0.9) 100%);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(217, 217, 217, 0.3) 50%,
      transparent 100%);
}

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

/* Sol: Logo */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  /* User requested left alignment */
  margin-top: 8%;
  /* User requested spacing */
}

.footer-logo {
  display: inline-block;
  max-width: 250px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo img {
  width: 100%;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
}

.footer-logo:hover {
  transform: translateY(-2px);
}

.footer-logo:hover img {
  filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(255, 255, 255, 0.3));
}

/* Sağ: İki Sütun Grid */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

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

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pure-white);
  margin: 0 0 10px 0;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--pure-white), transparent);
}

/* Hızlı Linkler */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  position: relative;
  padding-left: 20px;
}

.footer-links li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 1px;
  background: var(--medium-grey);
  transition: width 0.3s ease, background 0.3s ease;
}

.footer-links a {
  font-family: 'Titillium Web', sans-serif;
  color: var(--light-grey);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-links li:hover::before {
  width: 14px;
  background: var(--pure-white);
}

.footer-links a:hover {
  color: var(--pure-white);
  transform: translateX(3px);
}

/* İletişim */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--medium-grey);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 8px;
  border-radius: 6px;
}

.footer-contact-item svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-contact-item:hover {
  color: var(--pure-white);
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.03);
}

.footer-contact-item:hover svg {
  opacity: 1;
}

/* Sosyal Medya */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--medium-grey);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.social-link:hover::before {
  opacity: 1;
}

.social-link svg {
  position: relative;
  z-index: 1;
}

/* Alt Çizgi: Copyright */
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--medium-grey);
  font-weight: 300;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 50px 0 25px;
  }

  .footer-grid {
    gap: 40px;
    margin-bottom: 35px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-brand {
    text-align: center;
    align-items: center;
  }

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

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links li {
    text-align: center;
    padding-left: 0;
  }

  .footer-links li::before {
    display: none;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Logo styling */
.brand-mark {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: filter 300ms ease;
}

.brand-mark:hover {
  filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(255, 255, 255, 0.2));
}

.brand-logo {
  filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(255, 255, 255, 0.3));
}

/* Improve hero readability slightly over busy backgrounds */
.hero-overlay {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}