/* ==========================================================================
   KÜTÜK SOFTWARE — Modern Software Engineering & Digital Studio Stylesheet
   Author: Sefa Yusuf Kütük (kutuksoftware.com)
   Theme: High-Tech Light Pearl & Soft Metallic Space-Gray Contrast
   ========================================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-metallic: #253142;
  --bg-metallic-light: #334155;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --brand-primary: #2563eb;
  --brand-indigo: #4f46e5;
  --brand-cyan: #06b6d4;
  --brand-emerald: #10b981;
  --brand-amber: #f59e0b;
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.07), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(37, 99, 235, 0.14), 0 8px 20px -4px rgba(15, 23, 42, 0.06);
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   1. ARCHITECTURAL TECH GRID & AMBIENT MESH BACKGROUND
   ========================================================================== */
.tech-grid-bg {
  background-color: var(--bg-main);
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
}

.tech-dots-bg {
  background-image: radial-gradient(rgba(100, 116, 139, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-ambient-glow::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(79, 70, 229, 0.05) 45%, transparent 70%);
  filter: blur(40px);
}

.hero-ambient-glow::after {
  content: '';
  position: absolute;
  top: 5%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.13) 0%, rgba(37, 99, 235, 0.06) 50%, transparent 70%);
  filter: blur(50px);
}

/* ==========================================================================
   2. TOP SCROLL LASER PROGRESS & FLOATING PILL NAVBAR
   ========================================================================== */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-indigo), var(--brand-cyan));
  z-index: 9999;
  transition: width 0.08s ease-out;
}

.floating-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-header.scrolled {
  top: 10px;
}

.nav-pill-container {
  max-width: 1220px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 9999px;
  padding: 9px 14px 9px 18px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

.floating-header.scrolled .nav-pill-container {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12);
  border-color: rgba(203, 213, 225, 0.95);
}

.nav-link-item {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 15px;
  border-radius: 999px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: var(--brand-primary);
  background: rgba(37, 99, 235, 0.07);
}

/* Status Pulse Dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-emerald);
  position: relative;
  display: inline-block;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: var(--brand-emerald);
  opacity: 0.4;
  animation: pulse-ring 2s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* ==========================================================================
   3. GRADIENT TEXT & BUTTONS
   ========================================================================== */
.text-gradient-tech {
  background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary-tech {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.btn-primary-tech:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(37, 99, 235, 0.55);
  color: #ffffff;
}

.btn-secondary-tech {
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-secondary-tech:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: #f8fafc;
  transform: translateY(-2px);
}

/* ==========================================================================
   4. HERO IDE / LIGHT MODERN CODE WINDOW
   (Ferah beyaz ve açık kristal gri yazılım editörü görünümü)
   ========================================================================== */
.ide-window {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  box-shadow: 
    0 20px 45px -12px rgba(37, 99, 235, 0.10),
    0 4px 16px -2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  position: relative;
}

.ide-header {
  background: linear-gradient(90deg, #f1f5f9 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ide-dots {
  display: flex;
  gap: 7px;
}

.ide-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.ide-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 8px;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ide-tab:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
}

.ide-tab.active {
  color: #2563eb;
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.ide-body {
  padding: 20px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: #1e293b;
  background: #ffffff;
  min-height: 250px;
}

/* Lighthouse Score Ring */
.metric-pill-bar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 14px 20px;
}

.score-badge-100 {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 2px solid #10b981;
  color: #047857;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   5. BENTO GRID CARDS (PURE LIGHT & SOFT SKY ACCENT)
   ========================================================================== */
.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.35);
}

.bento-card-dark {
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

.bento-card-dark:hover {
  border-color: #38bdf8;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   6. PROJECT BROWSER SHOWCASE CARDS (WITH REAL HOMEPAGE SCREENSHOTS)
   ========================================================================== */
.project-browser-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.project-browser-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.4);
}

.browser-toolbar {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-address-bar {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.project-preview-viewport {
  position: relative;
  height: 295px;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
}

.project-preview-viewport img.preview-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-browser-card:hover .project-preview-viewport img.preview-bg {
  transform: scale(1.035);
}

/* Coming Soon Shimmer Badge */
.badge-coming-soon {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   7. INTERACTIVE PROJECT CONFIGURATOR CHIPS
   ========================================================================== */
.config-option-card {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.config-option-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.config-option-card.selected {
  border-color: var(--brand-primary);
  background: #eff6ff;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.18);
}

.config-option-card.selected .check-circle {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

/* ==========================================================================
   8. LIGHT TECH TICKER RIBBON
   ========================================================================== */
.metallic-ribbon {
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.tech-ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.tech-ticker-track {
  display: inline-flex;
  gap: 18px;
  animation: ticker-scroll 32s linear infinite;
}

.tech-ticker-wrap:hover .tech-ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   9. LIGHT PEARL BANNERS & FOOTER
   ========================================================================== */
.metallic-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.08);
}

.metallic-footer {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   10. WELCOME INTRO OVERLAY, HERO PARALLAX & DISTINCT SECTION ANIMATIONS
   ========================================================================== */

/* 10.1 Welcome Intro Screen (Karşılama Ekranı) */
.welcome-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.75s;
}

.welcome-intro-overlay.intro-finished {
  opacity: 0;
  transform: scale(1.08) translateY(-25px);
  visibility: hidden;
  pointer-events: none;
}

.welcome-intro-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: intro-box-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes intro-box-pop {
  0% { opacity: 0; transform: scale(0.84) translateY(16px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.welcome-logo-ring {
  position: relative;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.15));
  box-shadow: 0 20px 45px -10px rgba(37, 99, 235, 0.25);
}

.welcome-logo-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(135deg, #2563eb, #06b6d4, #4f46e5);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-slow 3s linear infinite;
}

@keyframes spin-slow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.welcome-progress-track {
  width: 224px;
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.welcome-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #4f46e5, #06b6d4);
  border-radius: 999px;
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 10.2 Hero Floating Tech Nodes & Animated Flowing Gradient Title */
.text-gradient-tech {
  background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 35%, #06b6d4 70%, #1d4ed8 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow-text 5s linear infinite;
}

@keyframes gradient-flow-text {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

.hero-floating-nodes {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.hero-node {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  box-shadow: 0 10px 25px -6px rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease-out;
}

.hero-node.node-1 { top: 15%; left: 4%; animation: float-gentle 5s ease-in-out infinite; }
.hero-node.node-2 { bottom: 14%; left: 44%; animation: float-gentle-alt 6s ease-in-out infinite; }
.hero-node.node-3 { top: 14%; right: 4%; animation: float-gentle-alt 5.4s ease-in-out infinite; }
.hero-node.node-4 { bottom: 10%; right: 3%; animation: float-gentle 6.4s ease-in-out infinite; }

/* 10.3 Distinct Section Animations (Her Bölüme Özel Farklı Geçiş Efektleri) */

/* Ortak Başlangıç Durumu */
.anim-hero-blur-up,
.anim-hero-3d-ide,
.anim-tilt-left,
.anim-tilt-right,
.anim-zoom-blur,
.anim-bento-pop,
.anim-flip-x,
.anim-profile-rotate,
.anim-step-slide,
.anim-elastic-pop,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  will-change: opacity, transform, filter;
}

/* [A] HERO ANİMASYONU: Kristal Blur Çözülmesi & 3D Perspektif IDE Sahnesi */
.anim-hero-blur-up {
  transform: translateY(36px) scale(0.96);
  filter: blur(10px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-hero-3d-ide {
  transform: perspective(1200px) rotateY(-18deg) rotateX(10deg) translateX(50px) scale(0.9);
  filter: blur(6px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease;
}

/* [B] PROJELER BÖLÜMÜ: Sol/Sağ 3D Perspektif Kanat Açılışı & Zoom-Blur */
.anim-tilt-left {
  transform: perspective(1000px) rotateY(16deg) translateX(-65px) translateY(25px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-tilt-right {
  transform: perspective(1000px) rotateY(-16deg) translateX(65px) translateY(25px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-zoom-blur {
  transform: scale(0.86) translateY(30px);
  filter: blur(8px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.34, 1.45, 0.64, 1),
    filter 0.85s ease;
}

/* [C] HİZMETLER (BENTO GRID): Elastik Matris Yaylanma Efekti */
.anim-bento-pop {
  transform: scale(0.8) translateY(40px) rotate(1.8deg);
  transition:
    opacity 0.7s ease,
    transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* [D] PROJE PLANLAMA MODÜLÜ: 3D Domino Kapak Açılışı (Flip-X) */
.anim-flip-x {
  transform: perspective(900px) rotateX(-52deg) translateY(36px) scale(0.94);
  transform-origin: top center;
  transition:
    opacity 0.75s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

/* [E] KURUMSAL & GELİŞTİRİCİ: Açısal Profil Sahnesi & Ok Akışı */
.anim-profile-rotate {
  transform: translateX(-60px) rotate(-5deg) scale(0.92);
  transition:
    opacity 0.85s ease,
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-step-slide {
  transform: translateX(55px) skewX(-5deg);
  transition:
    opacity 0.75s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* [F] İLETİŞİM BÖLÜMÜ: Elastik Sıçrama (Elastic Pop) */
.anim-elastic-pop {
  transform: scale(0.76) translateX(-35px);
  transition:
    opacity 0.65s ease,
    transform 0.85s cubic-bezier(0.34, 1.6, 0.64, 1);
}

/* Standart Yedek Reveal Sınıfları */
.reveal-up {
  transform: translateY(34px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left {
  transform: translateX(-34px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right {
  transform: translateX(34px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale {
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Aktif (Görünür) Durum */
.anim-hero-blur-up.is-visible,
.anim-hero-3d-ide.is-visible,
.anim-tilt-left.is-visible,
.anim-tilt-right.is-visible,
.anim-zoom-blur.is-visible,
.anim-bento-pop.is-visible,
.anim-flip-x.is-visible,
.anim-profile-rotate.is-visible,
.anim-step-slide.is-visible,
.anim-elastic-pop.is-visible,
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg) rotate(0deg) translate(0, 0) scale(1) skewX(0deg);
  filter: blur(0px);
}

/* Kademeli Gecikmeler (Stagger Delays) */
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 165ms; }
.delay-3 { transition-delay: 250ms; }
.delay-4 { transition-delay: 335ms; }
.delay-5 { transition-delay: 420ms; }
.delay-6 { transition-delay: 505ms; }

/* Gentle Floating Motion (Hero IDE & Mobile Phone Mockups) */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

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

.float-gentle {
  animation: float-gentle 5.5s ease-in-out infinite;
}

.float-gentle-delayed {
  animation: float-gentle-alt 6.2s ease-in-out infinite;
}

/* Button & Card Shimmer Sweep Effect */
.btn-primary-tech {
  position: relative;
  overflow: hidden;
}

.btn-primary-tech::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary-tech:hover::after {
  left: 140%;
}

/* Bento Card Top Accent Glow Line on Hover */
.bento-card::before,
.project-browser-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 20;
}

.bento-card:hover::before,
.project-browser-card:hover::before {
  transform: scaleX(1);
}

.project-browser-card {
  position: relative;
}

/* Bento Icon Bounce on Card Hover */
.bento-card .w-12 {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-card:hover .w-12 {
  transform: scale(1.1) rotate(-4deg);
}

/* IDE Code Content Slide & Crossfade */
.ide-body {
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.ide-body.switching {
  opacity: 0;
  transform: translateY(6px);
}

/* Blinking Terminal Cursor */
@keyframes blink-cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.ide-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background-color: var(--brand-primary);
  vertical-align: middle;
  margin-left: 4px;
  border-radius: 1px;
  animation: blink-cursor 1s infinite;
}

/* Animated Progress Bar Fill */
.progress-fill-animated {
  width: 0%;
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.progress-fill-animated.filled {
  width: 90%;
}

/* Modal Backdrop & Card Spring Transition */
#project-detail-modal {
  opacity: 0;
  transition: opacity 0.25s ease;
}

#project-detail-modal.modal-open {
  opacity: 1;
}

#project-detail-modal .modal-card-box {
  transform: translateY(18px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#project-detail-modal.modal-open .modal-card-box {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .welcome-intro-overlay { display: none !important; }
  .anim-hero-blur-up, .anim-hero-3d-ide, .anim-tilt-left, .anim-tilt-right,
  .anim-zoom-blur, .anim-bento-pop, .anim-flip-x, .anim-profile-rotate,
  .anim-step-slide, .anim-elastic-pop,
  .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .float-gentle, .float-gentle-delayed {
    animation: none !important;
  }
}

/* ==========================================================================
   11. RESPONSIVE UTILITIES & MOBILE BAR
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding-bottom: 76px;
  }
  .project-preview-viewport {
    height: 215px;
  }
}
