/* ============================================
   SANAL YOLCULUK — Design System
   "Midnight Cosmos" Theme
   ============================================ */

/* ---------- Google Fonts Moved to index.html ---------- */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Backgrounds */
  --bg-primary: #0c0c18;
  --bg-secondary: #141425;
  --bg-tertiary: #1c1c35;
  --bg-glass: rgba(20, 20, 37, 0.75);
  --bg-glass-strong: rgba(20, 20, 37, 0.92);

  /* Accent Colors */
  --accent-primary: #7b73ff;
  --accent-secondary: #00e4b8;
  --accent-warm: #ff6b6b;
  --accent-gold: #ffd700;
  --accent-gradient: linear-gradient(135deg, #6c63ff, #00d4aa);
  --accent-gradient-warm: linear-gradient(135deg, #ff6b6b, #ffd700);
  --accent-gradient-reverse: linear-gradient(135deg, #00d4aa, #6c63ff);

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #b0b0c4;
  --text-accent: #b8b4ff;
  --text-muted: #9494ad;

  /* Glows */
  --glow-purple: rgba(123, 115, 255, 0.35);
  --glow-purple-strong: rgba(123, 115, 255, 0.55);
  --glow-teal: rgba(0, 228, 184, 0.25);
  --glow-teal-strong: rgba(0, 228, 184, 0.45);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.13);
  --border-accent: rgba(123, 115, 255, 0.35);

  /* Typography */
  --font-heading: 'Cinzel', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Z-Index Scale */
  --z-base: 1;
  --z-nav: 100;
  --z-modal: 200;
  --z-loader: 300;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body.loading {
  overflow: hidden;
}

::selection {
  background: var(--accent-primary);
  color: white;
}

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

a:hover {
  color: var(--accent-primary);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: none;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h4 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-reverse {
  background: var(--accent-gradient-reverse);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-accent);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  margin-bottom: 20px;
}

.section-description {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  margin: 24px auto 0;
  border-radius: var(--radius-full);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 24px var(--glow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--glow-purple-strong);
  color: white;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7c73ff, #10e4ba);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1.1rem;
}

/* ---------- Loading Screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  opacity: 0;
  animation: loaderFadeIn 1s ease forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.loader-bar-container {
  width: 200px;
  height: 2px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  opacity: 0;
  animation: loaderFadeIn 1s ease 0.3s forwards;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: loaderFadeIn 1s ease 0.5s forwards;
}

@keyframes loaderFadeIn {
  to { opacity: 1; }
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 20px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 12px 0;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--transition-fast);
}

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

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transform: rotate(-10deg);
  transition: transform var(--transition-spring);
}

.nav-logo:hover .nav-logo-icon {
  transform: rotate(0deg);
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform var(--transition-spring);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

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

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

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

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 1);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  transform-origin: center;
}

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

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

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

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-video-bg.loaded {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, rgba(12, 12, 24, 0.15) 0%, rgba(12, 12, 24, 0.35) 60%, var(--bg-primary) 100%),
    linear-gradient(to bottom, rgba(12, 12, 24, 0.2) 0%, transparent 30%, transparent 70%, var(--bg-primary) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-accent);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-secondary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .word {
  display: inline-block;
}

.hero-description {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- About Section ---------- */
.about {
  background: var(--bg-secondary);
  position: relative;
}

.about .section-label {
  color: #00d4aa;
}

.about .section-divider {
  background: linear-gradient(135deg, #00d4aa, #00b89c);
}

.about::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
  pointer-events: none;
}

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

.about-visual {
  position: relative;
}

.about-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.about-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  pointer-events: none;
}

.about-float-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-float-stat {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-float-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-subtitle {
  margin-bottom: 8px;
}

.about-text {
  font-size: 1.05rem;
}

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

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.about-feature:hover {
  border-color: var(--accent-primary);
}

.about-feature-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-feature-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ---------- Services Section ---------- */
.services {
  position: relative;
}

.services .section-label {
  color: #b8b4ff;
}

.services .section-divider {
  background: linear-gradient(135deg, #6c63ff, #b8b4ff);
}

.services-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.services-bg-glow.left {
  top: 20%;
  left: -200px;
  background: var(--accent-primary);
}

.services-bg-glow.right {
  bottom: 20%;
  right: -200px;
  background: var(--accent-secondary);
}

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

.service-card {
  position: relative;
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-normal);
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 40px var(--glow-purple);
}

.service-card-bg {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--glow-purple) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.service-card:hover .service-card-bg {
  opacity: 0.08;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  position: relative;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.15);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: rgba(108, 99, 255, 0.2);
  box-shadow: 0 0 30px var(--glow-purple);
  border-color: rgba(108, 99, 255, 0.3);
}

.service-card:nth-child(2) .service-icon,
.service-card:nth-child(4) .service-icon {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.15);
}

.service-card:nth-child(2):hover .service-icon,
.service-card:nth-child(4):hover .service-icon {
  background: rgba(0, 212, 170, 0.2);
  box-shadow: 0 0 30px var(--glow-teal);
  border-color: rgba(0, 212, 170, 0.3);
}

.service-card:nth-child(3) .service-icon {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.15);
}

.service-card:nth-child(3):hover .service-icon {
  background: rgba(255, 107, 107, 0.2);
  box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
  border-color: rgba(255, 107, 107, 0.3);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-tag {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 212, 170, 0.2);
  background: rgba(0, 212, 170, 0.05);
}

/* ---------- Projects Showcase Section ---------- */
.projects-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  animation: projectGlowPulse 8s ease-in-out infinite alternate;
}

.projects-bg-glow.left {
  top: 10%;
  left: -200px;
  background: var(--accent-primary);
}

.projects-bg-glow.right {
  bottom: -10%;
  right: -200px;
  background: var(--accent-secondary);
  animation-delay: -4s;
}

@keyframes projectGlowPulse {
  0% { transform: scale(0.8) translate(0, 0); opacity: 0.08; }
  100% { transform: scale(1.2) translate(50px, -50px); opacity: 0.18; }
}

.projects-showcase {
  position: relative;
  width: 100%;
  background: var(--bg-primary);
  /* overflow: hidden breaks position: sticky — removed intentionally */
  overflow: visible;
}

.projects-showcase-inner {
  display: block;
  width: 100%;
}

.project-panel {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 80px 10%;
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.7);
  margin-bottom: 40vh;
  border-radius: 24px 24px 0 0;
  will-change: transform;
  transform: translateZ(0);
  contain: layout style;
}

.project-panel:nth-child(1) { z-index: 1; }
.project-panel:nth-child(2) { z-index: 2; }
.project-panel:nth-child(3) { z-index: 3; }
.project-panel:nth-child(4) { z-index: 4; }
.project-panel:nth-child(5) { z-index: 5; }
.project-panel:nth-child(6) { z-index: 6; }
.project-panel:nth-child(7) { z-index: 7; }

.project-panel:last-child {
  margin-bottom: 0;
}

.project-panel:first-child {
  box-shadow: none;
  border-radius: 0;
}

@media (hover: hover) {
  .project-panel:hover {
    box-shadow: 0 -20px 80px rgba(12, 12, 24, 0.9), 0 0 60px var(--glow-purple);
  }
}

.project-panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
}

@media (hover: hover) {
  .project-panel-bg {
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  .project-panel:hover .project-panel-bg {
    transform: scale(1.08);
  }
}

.project-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 24, 0.88) 0%, rgba(12, 12, 24, 0.25) 60%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.project-panel-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.project-panel-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent-secondary);
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(12, 12, 24, 0.6);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-panel-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-panel-desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.project-panel-btn {
  font-size: 1rem;
  padding: 14px 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-full);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.project-panel-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--glow-purple);
}


/* ---------- Technology Section ---------- */
.technology {
  position: relative;
}

.technology .section-label {
  color: #fbbf24;
}

.technology .section-divider {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.tech-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.tech-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.tech-item:hover::after {
  transform: scaleX(1);
}

.tech-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.tech-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.tech-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tech-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Stats Section ---------- */
.stats {
  background: var(--bg-secondary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats::before,
.stats::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.3;
}

.stats::before { top: 0; }
.stats::after { bottom: 0; }

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

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: var(--border-subtle);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-suffix {
  font-size: 2rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- Contact Section ---------- */
.contact {
  position: relative;
}

.contact .section-label {
  color: #34d399;
}

.contact .section-divider {
  background: linear-gradient(135deg, #00d4aa, #34d399);
}

.contact-cta-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-cta-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.contact-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #00d4aa, #6c63ff);
}

.contact-cta-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.contact-cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.contact-cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 32px;
}

.btn-email {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.contact-cta-email {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.contact-details-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-detail-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), transform var(--transition-normal);
}

.contact-detail-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateY(-4px);
}

.contact-detail-card .contact-detail-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 212, 170, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}

.contact-detail-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.contact-detail-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

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

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-parent {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-parent a {
  color: var(--text-accent);
  font-weight: 500;
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 24px var(--glow-purple);
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--glow-purple-strong);
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Section background patterns */
.section-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  pointer-events: none;
}

/* ============================================
   Section Glow System — Flowing Color Transitions
   Each section has unique ambient glow orbs
   that create depth and visual flow between sections
   ============================================ */

/* Base glow style */
.section-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- About Section Glows (Teal / Emerald) ---------- */
.section-glow-about-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -150px;
  background: rgba(0, 212, 170, 0.08);
}

.section-glow-about-2 {
  width: 400px;
  height: 400px;
  bottom: -50px;
  left: -100px;
  background: rgba(0, 180, 156, 0.06);
}

/* About → Services transition gradient */
.about::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
  z-index: 1;
}

/* ---------- Services Section Glows (Purple / Lavender) ---------- */
/* Already has .services-bg-glow — enhance them */
.services::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--bg-primary), transparent);
  pointer-events: none;
  z-index: 1;
}

.services::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-secondary));
  pointer-events: none;
  z-index: 1;
}

/* ---------- Projects Section Glows (Indigo / Violet) ---------- */
.section-glow-projects-1 {
  width: 600px;
  height: 600px;
  top: 10%;
  left: -200px;
  background: rgba(108, 99, 255, 0.07);
}

.section-glow-projects-2 {
  width: 500px;
  height: 500px;
  bottom: 5%;
  right: -150px;
  background: rgba(167, 139, 250, 0.06);
}

/* Projects → Technology transition */
.projects::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
  z-index: 1;
}

/* ---------- Technology Section Glows (Gold / Amber) ---------- */
.section-glow-tech-1 {
  width: 450px;
  height: 450px;
  top: -80px;
  right: -100px;
  background: rgba(251, 191, 36, 0.06);
}

.section-glow-tech-2 {
  width: 400px;
  height: 400px;
  bottom: -60px;
  left: -120px;
  background: rgba(245, 158, 11, 0.05);
}

/* Tech → Stats transition */
.technology::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-secondary));
  pointer-events: none;
  z-index: 1;
}

/* ---------- Stats section subtle glow ---------- */
.stats {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #10101e 50%, var(--bg-secondary) 100%);
}

/* ---------- Contact Section Glow (Emerald) ---------- */
.contact::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--bg-secondary), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Ambient glow on the contact section */
.contact::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- SEO Content / Çözümlerimiz Section ---------- */
.seo-content {
  background: var(--bg-secondary);
  position: relative;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.seo-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.seo-block:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.seo-block h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.seo-block p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: justify;
}

