/* ==========================================================================
   HASAN ÇELENK - MODERN DEVELOPER PORTFOLIO
   Harmonious, Modern Dark Theme (Plus Jakarta Sans & Natural Iris Indigo)
   Authentic Human Design - Zero Cliché / AI Gradients - 100% Bug-Free
   ========================================================================== */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  /* Harmonious Dark Palette */
  --bg-deep: #080b11;
  --bg-surface: #0e1320;
  --bg-card: rgba(15, 21, 34, 0.75);
  --bg-card-hover: rgba(20, 28, 46, 0.9);
  --bg-input: rgba(11, 16, 26, 0.85);

  /* Refined, Human Accent Colors (Single Cohesive Iris Indigo) */
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-glow: rgba(99, 102, 241, 0.25);
  
  /* Status */
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);

  /* Typography Colors */
  --text-pure: #ffffff;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.25);
  --border-accent: rgba(99, 102, 241, 0.4);

  /* Typography Families */
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Fluid Typography */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --text-sm: clamp(0.85rem, 0.82rem + 0.2vw, 0.92rem);
  --text-base: clamp(0.95rem, 0.92rem + 0.25vw, 1.05rem);
  --text-lg: clamp(1.12rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.35rem, 1.25rem + 0.6vw, 1.6rem);
  --text-2xl: clamp(1.75rem, 1.55rem + 1vw, 2.25rem);
  --text-3xl: clamp(1.75rem, 1.45rem + 1.5vw, 2.8rem);
  --text-4xl: clamp(2.15rem, 1.75rem + 2vw, 3.8rem);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65);
  --shadow-accent: 0 8px 24px rgba(99, 102, 241, 0.2);

  /* Layout & Radii */
  --container-max: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --header-height: 72px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  color-scheme: dark;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-muted);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* Top Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent-light);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent);
}

/* --- REFERENCE-STYLE FLUID CUSTOM CURSOR --- */
.cursor {
  position: fixed;
  left: -100px;
  top: -100px;
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.45);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease,
    background-color 0.2s ease;
}

.cursor.cursor-hover {
  width: 68px;
  height: 68px;
  background-color: #ffffff;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.8);
}

/* --- REUSABLE UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
}

.section {
  padding-block: 6rem 4rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 1rem;
}

.badge-tag i {
  font-size: 0.85rem;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.25;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--accent-light);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: #ffffff;
  color: #080b11;
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  background: #e2e8f0;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-pure);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: var(--text-xs);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --- HEADER / NAVBAR --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 900;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(8, 11, 17, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.02em;
}

.brand-svg-logo {
  height: 42px;
  width: auto;
  max-width: 250px;
  display: block;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.logo-crescent {
  fill: #E30A17;
  transition: filter var(--transition-fast), fill var(--transition-fast);
}

.nav-brand:hover .brand-svg-logo {
  transform: scale(1.02);
}

.nav-brand:hover .logo-crescent {
  filter: drop-shadow(0 0 12px rgba(227, 10, 23, 0.85));
}

.nav-logo-img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.footer-logo-img {
  height: 40px;
  max-width: 240px;
}

.brand-symbol {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-dot {
  color: var(--accent-light);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-light);
  border: 1px solid var(--border-accent);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  padding-block: 0.5rem;
  position: relative;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  font-size: 1.3rem;
  cursor: pointer;
  place-items: center;
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 5rem;
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
  min-width: 0;
}

.hero-content {
  width: 100%;
  min-width: 0;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--success-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #34d399;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--success);
  opacity: 0.7;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.hero-greeting {
  font-size: var(--text-lg);
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-role span {
  color: var(--accent-light);
}

.hero-bio {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

.hero-social-link:hover {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Hero Portrait Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-aura-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 68%);
  filter: blur(75px);
  opacity: 0.22;
  top: 30%;
  z-index: 1;
}

.hero-portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 535px;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.hero-portrait-img {
  width: 100%;
  height: auto;
  max-height: 660px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.88));
  image-rendering: -webkit-optimize-contrast;
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 190px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(180deg, transparent 0%, var(--bg-deep) 90%);
}

/* Floating Badges */
.hero-float-badge {
  position: absolute;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(14, 19, 32, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  color: var(--text-pure);
  font-size: var(--text-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
  z-index: 4;
}

.badge-pos-left {
  bottom: 22%;
  left: -25px;
}

.badge-pos-right {
  top: 18%;
  right: -10px;
}

.hero-float-badge i {
  color: var(--accent-light);
  font-size: 1.15rem;
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-card-large {
  grid-column: span 2;
}

.about-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 1rem;
}

.about-text {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

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

.stat-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-number span {
  color: var(--accent-light);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

/* --- PROJECTS SLIDER / CAROUSEL --- */
.projects-slider-wrapper {
  position: relative;
  width: 100%;
}

.projects-slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.slider-arrows {
  display: flex;
  gap: 0.75rem;
}

.slider-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-pure);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.slider-nav-btn:hover {
  background: #ffffff;
  color: #080b11;
  border-color: #ffffff;
  transform: scale(1.05);
}

.projects-track {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: 0.5rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.projects-track::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 calc(50% - 0.875rem);
  min-width: 340px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}

.project-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-light);
  font-weight: 600;
  text-transform: uppercase;
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-pure);
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.project-icon-btn:hover {
  background: #ffffff;
  color: #080b11;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.project-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.65rem;
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* Dots pagination */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all var(--transition-normal);
}

.slider-dot.active {
  width: 24px;
  background: var(--accent-light);
  box-shadow: 0 0 10px var(--accent);
}

@media screen and (max-width: 860px) {
  .project-card {
    flex: 0 0 90%;
    min-width: 280px;
  }
}

/* --- EXPERIENCE & SKILLS SECTION --- */
.career-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 6px;
  height: calc(100% - 16px);
  width: 2px;
  background: var(--border-medium);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent-light);
  box-shadow: 0 0 10px var(--accent);
}

.timeline-role {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.25rem;
}

.timeline-meta {
  display: flex;
  gap: 1rem;
  font-size: var(--text-xs);
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* Skills Cards */
.skills-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-box-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.skill-chip:hover {
  background: var(--accent-soft);
  border-color: var(--border-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.skill-chip i {
  color: var(--accent-light);
}

/* ==========================================================================
   CONTACT SECTION - 100% VISIBLE, BULLETPROOF & ELEGANT
   ========================================================================== */
.contact-section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  padding-block: 6rem 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info-card {
  padding: 2.5rem;
}

.contact-card-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.75rem;
}

.contact-card-text {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.method-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  display: grid;
  place-items: center;
  color: var(--accent-light);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.method-text h4 {
  font-size: var(--text-xs);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.method-text p,
.method-text a {
  font-size: var(--text-base);
  color: var(--text-pure);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.method-text a:hover {
  color: var(--accent-light);
}

/* Single Click Copy Email Box */
.copy-email-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
}

.email-val {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-pure);
}

/* Contact Form */
.contact-form-card {
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

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

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-pure);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-pure);
  font-family: var(--font-main);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 16px var(--accent-glow);
  background: rgba(14, 20, 32, 0.95);
}

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

/* Floating Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--accent-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-pure);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 4rem 2.5rem;
  background: rgba(8, 11, 17, 0.95);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-pure);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  font-size: var(--text-xs);
  color: var(--text-dim);
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: #ffffff;
  color: #080b11;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   TRACKOUNT-STYLE RIGHT-MIDDLE "BAŞA DÖN" (SCROLL TO TOP) SYSTEM
   ========================================================================== */
.trackount-back-to-top {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 36px;
  height: 145px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.trackount-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.trackount-back-to-top:hover {
  transform: translateY(calc(-50% - 4px));
}

.trackount-back-to-top span {
  writing-mode: vertical-rl;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: 9px;
  font-weight: 800;
  transform: rotate(180deg);
  text-transform: uppercase;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  user-select: none;
  white-space: nowrap;
}

.trackount-back-to-top:hover span {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.trackount-back-to-top i {
  background: rgba(255, 255, 255, 0.14);
  width: 2px;
  height: 48px;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  transition: background 0.25s ease;
}

.trackount-back-to-top:hover i {
  background: rgba(255, 255, 255, 0.25);
}

.trackount-back-to-top i b {
  background: linear-gradient(180deg, #38bdf8, #818cf8);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  width: 2px;
  height: 0%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 2px;
  transition: height 0.1s linear;
}

.trackount-back-to-top:hover i b {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* --- RESPONSIVE BREAKPOINTS (ALL DEVICES: MOBILE, TABLET, LAPTOP, DESKTOP) --- */
@media screen and (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
  .hero-portrait-wrapper {
    max-width: 480px;
  }
  .hero-portrait-img {
    max-height: 590px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-card-large {
    grid-column: span 1;
  }
  .career-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-role, .hero-bio, .hero-cta, .hero-socials {
    justify-content: center;
    margin-inline: auto;
  }
  .hero-portrait-wrapper {
    margin-inline: auto;
    max-width: 440px;
  }
  .hero-portrait-img {
    max-height: 540px;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding-block: 4.5rem 3rem;
  }
  .hero-section {
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: 3.5rem;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background: rgba(14, 19, 32, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
    gap: 1.5rem;
    border-left: 1px solid var(--border-subtle);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition-normal), visibility var(--transition-normal);
  }
  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-toggle {
    display: grid;
  }
  .cursor {
    display: none !important;
  }
  .hero-portrait-wrapper {
    max-width: 380px;
  }
  .hero-portrait-img {
    max-height: 480px;
  }
  .badge-pos-left {
    bottom: 12%;
    left: 0;
  }
  .badge-pos-right {
    top: 12%;
    right: 0;
  }
  .project-card {
    flex: 0 0 88%;
    min-width: 280px;
  }
  .trackount-back-to-top {
    right: 8px;
    width: 28px;
    height: 120px;
    gap: 8px;
  }
  .trackount-back-to-top span {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .trackount-back-to-top i {
    height: 36px;
  }
}

@media screen and (max-width: 600px) {
  .nav-actions .btn {
    display: none !important;
  }
  .nav-toggle {
    display: grid !important;
  }
  .brand-svg-logo {
    height: 32px;
    max-width: 175px;
  }
  .hero-title {
    font-size: clamp(1.85rem, 1.5rem + 2.5vw, 2.5rem);
    word-break: break-word;
  }
}

@media screen and (max-width: 520px) {
  .container {
    padding-inline: 1.15rem;
  }
  .hero-greeting {
    font-size: var(--text-base);
  }
  .hero-role {
    font-size: 1rem;
  }
  .hero-bio {
    font-size: var(--text-sm);
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-portrait-wrapper {
    max-width: 310px;
  }
  .hero-portrait-img {
    max-height: 400px;
  }
  .hero-aura-glow {
    width: 300px;
    height: 300px;
  }
  .hero-float-badge {
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    gap: 0.4rem;
  }
  .badge-pos-left {
    bottom: 8%;
    left: 0;
  }
  .badge-pos-right {
    top: 8%;
    right: 0;
  }
  .project-card {
    flex: 0 0 94%;
    min-width: 250px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem 1.15rem;
  }
  .trackount-back-to-top {
    display: none !important;
  }
  .toast-container {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
  }
  .toast {
    width: 100%;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media screen and (max-width: 360px) {
  .brand-svg-logo {
    height: 26px;
    max-width: 140px;
  }
  .hero-portrait-wrapper {
    max-width: 250px;
  }
  .hero-portrait-img {
    max-height: 320px;
  }
  .hero-float-badge {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-box {
    padding: 0.85rem;
  }
}

@media (pointer: coarse) {
  .cursor {
    display: none !important;
  }
}
