/* ========================================
   M. Ferhat Çiçek – CV Site v2
   Bento Grid + Glassmorphism + Dock Nav
   Sand Gold Theme
   ======================================== */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #c9a84c;
  --gold-light: #dbb960;
  --gold-dark: #a68a3e;
  --gold-glow: rgba(201, 168, 76, 0.12);
  --gold-border: rgba(201, 168, 76, 0.25);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-hover-bg: rgba(255, 255, 255, 0.06);
  --card-hover-border: rgba(255, 255, 255, 0.12);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #050505;
  color: #e4e4e7;
  line-height: 1.6;
  overflow-x: clip;
}

/* content sections above background orbs */
section, footer {
  position: relative;
  z-index: 1;
}

/* off-screen sections don't need full rendering */
#deneyim, #projeler, #yetenekler, #basarilar, #iletisim {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* ---------- Background Effects ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUAAAAAAAAAAAAAAAAAAAAAAADgKxmiAAAABnRSTlMFCA0RFRkMi4qZAAAAi0lEQVQ4y9WTwQ6AIAxDV+P//7ITToyOFi+e6GFJ07cBAwDgP0JADYxAnsFfAacaOL8i/GYNHIsmDnrNHIiAe0IMjIB7MJIxQjIGG0R1CaZYgnW7BWMYwx00cQ5DDBRr6AEdA19bEBcnBPQZkSP6BEM4ItFDLsYN7JGJduSJIZANJGEBivIBt+0N3AM/HxkTSbUAAAAASUVORK5CYII=");
  background-size: 48px 48px;
}

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05), transparent 70%);
  top: -200px;
  left: -150px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(166, 138, 62, 0.04), transparent 70%);
  bottom: -100px;
  right: -100px;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(219, 185, 96, 0.03), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- Dock Navigation ---------- */
#dock {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  background: rgba(20, 20, 24, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
  isolation: isolate;
}

.dock-item {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  color: #71717a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 0.625rem;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.dock-item:hover {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.06);
}

.dock-item.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.dock-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- Dock Divider ---------- */
.dock-divider {
  width: 1px;
  height: 24px;
  background: rgba(63, 63, 70, 0.4);
  margin: 0 6px;
  flex-shrink: 0;
}

/* ---------- Language Buttons in Dock ---------- */
.lang-btn {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #71717a;
  background: transparent;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.lang-btn:hover {
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.2);
}

/* ---------- Bento Card Base ---------- */
.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
  z-index: 1;
  will-change: transform;
  transform: translateZ(0);
}

.bento-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

/* ---------- Hero Grid ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 1rem;
  min-height: calc(100vh - 3rem);
}

.hero-intro {
  grid-column: 1;
  grid-row: 1;
  min-height: 400px;
}

.hero-photo {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}

.hero-photo-img {
  width: 192px;
  height: 192px;
  border-radius: 1.25rem;
  object-fit: cover;
  border: 2px solid rgba(201, 168, 76, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-stats {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }
  .hero-intro { grid-column: 1; grid-row: auto; min-height: auto; }
  .hero-photo { grid-column: 1; grid-row: auto; flex-direction: row; padding: 1.5rem; }
  .hero-photo-img { width: 120px; height: 120px; }
  .hero-stats { grid-column: 1; grid-row: auto; grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a0a;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: transparent;
  color: #a1a1aa;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid rgba(63, 63, 70, 0.4);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  background: rgba(201, 168, 76, 0.06);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid rgba(201, 168, 76, 0.1);
}

/* ---------- Experience Items ---------- */
.exp-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #a1a1aa;
  line-height: 1.5;
}

.exp-item::before {
  content: '▸';
  color: var(--gold);
  flex-shrink: 0;
}

/* ---------- Interest Pills ---------- */
.interest-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: #71717a;
  transition: all 0.3s ease;
}

.interest-pill:hover {
  border-color: rgba(201, 168, 76, 0.2);
  color: var(--gold);
}

/* ---------- Stat Mini Cards ---------- */
.stat-mini { position: relative; overflow: hidden; }
.stat-mini::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

/* ---------- Project Showcase ---------- */
.project-showcase { min-height: 320px; }
@media (max-width: 768px) { .project-showcase { min-height: auto; } }

/* ---------- Scroll Animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible,
[data-animate].animate-in,
.stat-card.animate-in,
.gallery-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

[data-animate]:nth-child(2) { transition-delay: 0.08s; }
[data-animate]:nth-child(3) { transition-delay: 0.16s; }
[data-animate]:nth-child(4) { transition-delay: 0.24s; }
[data-animate]:nth-child(5) { transition-delay: 0.32s; }
[data-animate]:nth-child(6) { transition-delay: 0.4s; }
[data-animate]:nth-child(7) { transition-delay: 0.48s; }

/* ---------- Pulse Animation ---------- */
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #1a1a1e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #27272a; }

::selection { background: rgba(201, 168, 76, 0.3); color: white; }

/* ---------- Shared Project Detail Page Styles ---------- */
.section { padding: 6rem 0; }
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
  background: linear-gradient(to right, #ffffff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card {
  background: rgba(39, 39, 42, 0.3);
  border: 1px solid rgba(63, 63, 70, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: border-color 0.3s ease;
}
.stat-card:hover { border-color: rgba(201, 168, 76, 0.3); }

.section .stat-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease;
}
.section .stat-card.animate-in { opacity: 1; transform: translateY(0); }

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #a1a1aa;
  line-height: 1.5;
}
.detail-item::before { content: '▸'; color: var(--gold); flex-shrink: 0; }

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(63, 63, 70, 0.3);
}
.spec-row:last-child { border-bottom: none; }

.gallery-item { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.gallery-item.animate-in { opacity: 1; transform: translateY(0); }

/* ---------- RTL Support ---------- */
.is-rtl { direction: rtl; text-align: right; }
.is-rtl .exp-item::before, .is-rtl .detail-item::before { content: '◂'; }
.is-rtl #dock { direction: ltr; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  #dock {
    left: 0.5rem;
    right: 0.5rem;
    transform: none;
    justify-content: center;
    gap: 0;
    padding: 4px 4px;
    border-radius: 0.75rem;
    flex-wrap: wrap;
  }
  .dock-item { padding: 6px 8px; font-size: 10px; }
  .lang-btn { padding: 4px 6px; font-size: 9px; }
  .dock-divider { height: 16px; }
}

body { padding-bottom: 0; }
