/* ═══════════════════════════════════════════════════════════
   CHATBOT — Hasan Can Çelik Personal Assistant
   ═══════════════════════════════════════════════════════════ */

/* ── Floating Trigger Button ─────────────────────────────── */
#chat-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.45);
  transition: var(--transition);
  animation: chatPulse 3s ease-in-out infinite;
}
#chat-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.6);
  animation: none;
}
#chat-trigger svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  transition: var(--transition);
}
#chat-trigger.is-open svg.icon-chat {
  display: none;
}
#chat-trigger.is-open svg.icon-close {
  display: block;
}
#chat-trigger svg.icon-close {
  display: none;
}

.chat-unread {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--c-bg);
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chatPulse {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.45);
  }
  50% {
    box-shadow:
      0 8px 48px rgba(108, 99, 255, 0.7),
      0 0 0 8px rgba(108, 99, 255, 0.1);
  }
}
@keyframes badgePop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* ── Chat Window ─────────────────────────────────────────── */
#chat-window {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 8999;
  width: 390px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--c-bg2);
  border: 1px solid var(--c-border2);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(108, 99, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform-origin: bottom right;

  /* Kapalı durum */
  opacity: 0;
  transform: scale(0.88) translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}
#chat-window.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

/* ── Header ──────────────────────────────────────────────── */
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.15),
    rgba(0, 212, 255, 0.08)
  );
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}
.chat-avatar-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--c-green);
  border-radius: 50%;
  border: 2px solid var(--c-bg2);
  animation: blink 2s ease-in-out infinite;
}
.chat-header-info {
  flex: 1;
  min-width: 0;
}
.chat-header-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-header-status {
  font-size: 0.75rem;
  color: var(--c-green);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.chat-header-actions {
  display: flex;
  gap: 0.4rem;
}
.chat-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.8rem;
}
.chat-icon-btn:hover {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.3);
  color: var(--c-text);
}

/* ── Suggested Questions ─────────────────────────────────── */
.chat-suggestions {
  padding: 0.75rem 1rem 0.5rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
  background: var(--c-bg2);
}
.chat-suggestion-chip {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: #a5a0ff;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}
.chat-suggestion-chip:hover {
  background: rgba(108, 99, 255, 0.18);
  border-color: rgba(108, 99, 255, 0.4);
  color: var(--c-text);
  transform: translateY(-1px);
}

/* ── Messages Area ───────────────────────────────────────── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar {
  width: 3px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--c-accent);
  border-radius: 3px;
}

/* Mesaj baloncukları */
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  animation: msgIn 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}
@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-msg.user {
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.chat-msg.bot .chat-msg-avatar {
  background: var(--grad-primary);
  color: #fff;
}
.chat-msg.user .chat-msg-avatar {
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  color: var(--c-muted);
  font-size: 0.8rem;
}

.chat-bubble {
  max-width: 78%;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--c-text);
  position: relative;
  word-break: break-word;
}
.chat-msg.bot .chat-bubble {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble {
  background: var(--grad-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  border: none;
}

/* Typing indicator */
.chat-typing .chat-bubble {
  padding: 0.75rem 1rem;
}
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 16px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--c-muted);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingDot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Timestamp */
.chat-msg-time {
  font-size: 0.65rem;
  color: var(--c-muted);
  margin-top: 0.15rem;
  text-align: right;
  padding: 0 0.25rem;
}
.chat-msg.bot .chat-msg-time {
  text-align: left;
}

/* ── Input Area ──────────────────────────────────────────── */
.chat-input-area {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg2);
  flex-shrink: 0;
}
.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background: var(--c-bg3);
  border: 1px solid var(--c-border2);
  border-radius: 14px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  transition: var(--transition);
}
.chat-input-row:focus-within {
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}
#chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--c-text);
  resize: none;
  max-height: 100px;
  min-height: 22px;
  line-height: 1.5;
}
#chat-input::placeholder {
  color: var(--c-muted);
}
#chat-send {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  opacity: 0.5;
}
#chat-send.active {
  opacity: 1;
}
#chat-send:hover.active {
  transform: scale(1.08);
}
#chat-send svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.chat-input-footer {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: var(--c-muted);
}
.chat-input-footer a {
  color: #a5a0ff;
  text-decoration: none;
}

/* ── Error message ───────────────────────────────────────── */
.chat-error {
  font-size: 0.8rem;
  color: #f87171;
  text-align: center;
  padding: 0.4rem 0.75rem;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  #chat-window {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform-origin: bottom center;
  }
  #chat-trigger {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}
/* ── Dark theme (default) ─────────────────────────────── */
:root {
  --c-bg: #07080d;
  --c-bg2: #0d0f18;
  --c-bg3: #111422;
  --c-surface: rgba(255, 255, 255, 0.04);
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border2: rgba(255, 255, 255, 0.12);
  --c-text: #e8eaf0;
  --c-muted: #6b7280;
  --c-subtle: #9ca3af;
  --c-accent: #6c63ff;
  --c-accent2: #00d4ff;
  --c-green: #22c55e;
  --grad-primary: linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.25);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  /* nav renkleri (tema geçişinde ayrı kontrol) */
  --nav-bg: rgba(7, 8, 13, 0.85);
  --nav-bg-s: rgba(7, 8, 13, 0.97);
  --nav-mobile-bg: rgba(13, 15, 24, 0.98);
}
/* ── Light theme ──────────────────────────────────────── */
html.light {
  --c-bg: #f5f6fa;
  --c-bg2: #eef0f7;
  --c-bg3: #e4e7f2;
  --c-surface: rgba(0, 0, 0, 0.03);
  --c-border: rgba(0, 0, 0, 0.08);
  --c-border2: rgba(0, 0, 0, 0.13);
  --c-text: #111827;
  --c-muted: #6b7280;
  --c-subtle: #4b5563;
  --c-accent: #5b53e8;
  --c-accent2: #0099cc;
  --c-green: #16a34a;
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(91, 83, 232, 0.15);
  --nav-bg: rgba(245, 246, 250, 0.88);
  --nav-bg-s: rgba(245, 246, 250, 0.99);
  --nav-mobile-bg: rgba(238, 240, 247, 0.99);
}
/* Smooth theme transition on every element */
html.theme-transitioning * {
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease !important;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.loaded {
  opacity: 1;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--c-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--c-accent);
  border-radius: 4px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}
.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-center {
  text-align: center;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: var(--nav-bg-s);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

/* 1. Nav logo → profil resmi */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--c-text);
}
.nav-logo-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(108, 99, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6c63ff, #00d4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  transition: var(--transition);
}
.nav-logo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.nav-logo-avatar span {
  display: none;
}
.nav-logo:hover .nav-logo-avatar {
  border-color: var(--c-accent2);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav-logo-name span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--c-subtle);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--c-text);
  background: var(--c-surface);
}
.nav-cta {
  padding: 0.5rem 1.2rem !important;
  background: var(--grad-primary) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.85rem !important;
}
.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid var(--c-border);

    /* Kapatıldığında tamamen gizle */
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;

    /* Animasyonlara opacity ve visibility'yi dahil et */
    transition:
      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.4s ease,
      visibility 0.4s ease;
  }
  .nav-links.open {
    /* Açıldığında tekrar görünür yap */
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
  .hamburger {
    display: flex;
  }
  .nav-logo-name {
    display: none;
  }
}

/* ── Theme Toggle ─────────────────────────────────────── */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  color: var(--c-text);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 0.5rem;
  font-size: 1rem;
}
.theme-toggle:hover {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.3);
  transform: rotate(15deg) scale(1.08);
}
/* ikon durumları */
.theme-toggle .icon-moon {
  display: block;
}
.theme-toggle .icon-sun {
  display: none;
}
html.light .theme-toggle .icon-moon {
  display: none;
}
html.light .theme-toggle .icon-sun {
  display: block;
}

/* Light modda bazı ek düzeltmeler */
html.light .hero-grid {
  background-image:
    linear-gradient(rgba(91, 83, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 83, 232, 0.06) 1px, transparent 1px);
}
html.light .shape {
  background: linear-gradient(
    135deg,
    rgba(91, 83, 232, 0.07),
    rgba(0, 153, 204, 0.07)
  );
}
html.light .tl-card,
html.light .skill-cat-card,
html.light .proj-card,
html.light .cert-card,
html.light .ach-card,
html.light .edu-card,
html.light .stats-card,
html.light .contact-item,
html.light .social-big-item,
html.light .visual-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
}
html.light .sec-eyebrow {
  background: rgba(91, 83, 232, 0.08);
  border-color: rgba(91, 83, 232, 0.18);
}
html.light .skill-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #374151;
}
html.light .skill-pill:hover {
  background: rgba(91, 83, 232, 0.1);
  border-color: rgba(91, 83, 232, 0.25);
  color: #111827;
}
html.light .tl-tech {
  background: rgba(91, 83, 232, 0.08);
  border-color: rgba(91, 83, 232, 0.15);
}
html.light .proj-tech {
  background: rgba(91, 83, 232, 0.08);
  border-color: rgba(91, 83, 232, 0.15);
}
html.light .status-pill {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.2);
}
html.light .hero-orb-1 {
  background: radial-gradient(
    circle,
    rgba(91, 83, 232, 0.18) 0%,
    transparent 70%
  );
}
html.light .hero-orb-2 {
  background: radial-gradient(
    circle,
    rgba(0, 153, 204, 0.12) 0%,
    transparent 70%
  );
}
html.light body::before {
  opacity: 0.018;
}
html.light .edu-logo,
html.light .tl-co-logo,
html.light .ach-org-logo {
  background: #f0f1f8;
  border-color: rgba(0, 0, 0, 0.1);
}
html.light .ti {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 25s linear infinite;
}
@keyframes gridDrift {
  to {
    background-position: 60px 60px;
  }
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(
    circle,
    rgba(108, 99, 255, 0.3) 0%,
    transparent 70%
  );
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: -50px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.2) 0%,
    transparent 70%
  );
  animation: orbFloat 16s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(30px, -30px);
  }
  66% {
    transform: translate(-20px, 20px);
  }
}
.shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.08),
    rgba(0, 212, 255, 0.08)
  );
  animation: shapeFloat 20s ease-in-out infinite;
}
.shape-1 {
  width: 280px;
  height: 280px;
  top: 12%;
  left: -4%;
}
.shape-2 {
  width: 180px;
  height: 180px;
  top: 65%;
  right: -8%;
  animation-delay: -6s;
}
.shape-3 {
  width: 120px;
  height: 120px;
  bottom: 18%;
  left: 22%;
  animation-delay: -12s;
}
.shape-4 {
  width: 220px;
  height: 220px;
  top: 35%;
  right: 28%;
  animation-delay: -18s;
}
@keyframes shapeFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-24px) rotate(90deg);
  }
  50% {
    transform: translateY(-48px) rotate(180deg);
  }
  75% {
    transform: translateY(-24px) rotate(270deg);
  }
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: #a5a0ff;
  margin-bottom: 1.5rem;
  animation: badgeGlow 3s ease-in-out infinite alternate;
}
.wave {
  font-size: 1.1rem;
  animation: wave 2s ease-in-out infinite;
}
@keyframes wave {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(20deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}
@keyframes badgeGlow {
  from {
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.2);
  }
  to {
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
  }
}
.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.hero-name {
  display: block;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradShift 5s ease infinite;
}
@keyframes gradShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.profession-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.2rem 0 1.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--c-subtle);
}
.profession-ticker {
  position: relative;
  height: 1.6rem;
  overflow: hidden;
  min-width: 200px;
}
.profession-item {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-accent2);
  font-weight: 600;
  opacity: 0;
  transform: translateY(100%);
}
.profession-item:nth-child(1) {
  animation: ticker 9s infinite 0s;
}
.profession-item:nth-child(2) {
  animation: ticker 9s infinite 3s;
}
.profession-item:nth-child(3) {
  animation: ticker 9s infinite 6s;
}
@keyframes ticker {
  0%,
  10%,
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
  15%,
  40% {
    opacity: 1;
    transform: translateY(0);
  }
  50%,
  95% {
    opacity: 0;
    transform: translateY(-100%);
  }
}
.hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--c-subtle);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn:hover::after {
  transform: translateX(100%);
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5);
}
.btn-ghost {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  border-color: rgba(108, 99, 255, 0.3);
}
.social-bar {
  display: flex;
  gap: 0.75rem;
}
.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}
.social-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.si-github {
  background: #24292e;
}
.si-linkedin {
  background: #0a66c2;
}
.si-mail {
  background: #d44638;
}
.si-phone {
  background: #25d366;
}

/* Hero visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}
.hero-img-wrap {
  position: relative;
  width: 360px;
  height: 360px;
}
.img-glow {
  position: absolute;
  inset: -30px;
  background: var(--grad-primary);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.18;
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(1);
  }
  50% {
    opacity: 0.28;
    transform: scale(1.05);
  }
}

/* 1. Hero profil resmi */
.hero-img-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(108, 99, 255, 0.4);
  box-shadow:
    0 0 0 8px rgba(108, 99, 255, 0.07),
    var(--shadow-card);
  overflow: hidden;
  background: linear-gradient(135deg, #151828, #1e2340);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.hero-img-circle:hover {
  transform: scale(1.04);
}
.hero-img-circle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2; /* Resim her zaman üstte kalır */
  background: inherit; /* Saydam (PNG) arka planlarda alttaki ikonu gizler */
}
.hero-img-circle .ph-icon {
  position: absolute;
  z-index: 1; /* İkon altta kalır */
}

.tech-icons {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.ti {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--c-bg2);
  border: 1px solid var(--c-border2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  animation: tiFloat 6s ease-in-out infinite;
}
.ti-1 {
  top: 5%;
  left: -12%;
  color: #3776ab;
  animation-delay: 0s;
}
.ti-2 {
  top: 22%;
  right: -12%;
  color: #336791;
  animation-delay: -1.5s;
}
.ti-3 {
  bottom: 28%;
  left: -8%;
  color: #00d4ff;
  animation-delay: -3s;
}
.ti-4 {
  bottom: 8%;
  right: -10%;
  color: #ff6b6b;
  animation-delay: -4.5s;
}
.ti-5 {
  top: -5%;
  right: 15%;
  color: #f0c040;
  animation-delay: -2s;
}
@keyframes tiFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-pill);
  color: #4ade80;
  font-size: 0.9rem;
  font-weight: 500;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--c-green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-muted);
  font-size: 0.8rem;
  z-index: 3;
  animation: hintBounce 2s infinite;
}
.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--c-muted);
  border-radius: 11px;
  position: relative;
}
.scroll-wheel {
  width: 3px;
  height: 7px;
  background: var(--c-muted);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% {
    top: 6px;
    opacity: 1;
  }
  100% {
    top: 22px;
    opacity: 0;
  }
}
@keyframes hintBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* ── SECTIONS ────────────────────────────────────────── */
section {
  position: relative;
}
.section-wrapper {
  padding: 7rem 0;
}
.section-wrapper.alt {
  background: var(--c-bg2);
}
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5a0ff;
  margin-bottom: 1rem;
}
.sec-eyebrow.mx-auto {
  display: flex;
  width: fit-content;
  margin: 0 auto 1rem;
}
.sec-title {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.sec-desc {
  color: var(--c-subtle);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── ABOUT ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text p {
  color: var(--c-subtle);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.about-text p:last-child {
  margin-bottom: 2rem;
}
.stats-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}
.stats-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.2;
  filter: blur(8px);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.stat-item {
  text-align: center;
}
.stat-item h3 {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item p {
  color: var(--c-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ── EXPERIENCE ──────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--c-accent),
    var(--c-accent2),
    transparent
  );
}
.tl-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.tl-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.tl-dot {
  position: absolute;
  left: -2.45rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid var(--c-bg2);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.6);
}
.tl-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.tl-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.12);
  transform: translateX(4px);
}

/* 2. Şirket logosu */
.tl-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.tl-meta-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.tl-co-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-bg3);
  border: 1px solid var(--c-border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.tl-co-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  inset: 0;
}
.tl-co-logo .co-initials {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tl-role {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}
.tl-company {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  font-size: 0.9rem;
}
.tl-date {
  font-size: 0.82rem;
  color: var(--c-muted);
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid var(--c-border);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tl-desc {
  color: var(--c-subtle);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.tl-bullets {
  padding-left: 1.1rem;
  margin-bottom: 1rem;
}
.tl-bullets li {
  color: var(--c-subtle);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.3rem;
}
.tl-tech-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tl-tech {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: var(--radius-pill);
  color: #a5a0ff;
}

/* ── 3. SKILLS — Modern kategori kartları ─────────────── */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}
.skill-cat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
}
.skill-cat-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.skill-cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-cat-card:hover {
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.12);
}
.skill-cat-card:hover::before {
  opacity: 1;
}
.skill-cat-card:nth-child(1)::before {
  background: linear-gradient(90deg, #6c63ff, #00d4ff);
}
.skill-cat-card:nth-child(2)::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.skill-cat-card:nth-child(3)::before {
  background: linear-gradient(90deg, #10b981, #06b6d4);
}
.skill-cat-card:nth-child(4)::before {
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
}
.skill-cat-card:nth-child(5)::before {
  background: linear-gradient(90deg, #f97316, #f59e0b);
}
.skill-cat-card:nth-child(6)::before {
  background: linear-gradient(90deg, #06b6d4, #6c63ff);
}
.skill-cat-card:nth-child(7)::before {
  background: linear-gradient(90deg, #14b8a6, #10b981);
}
.skill-cat-card:nth-child(8)::before {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
.skill-cat-card:nth-child(9)::before {
  background: linear-gradient(90deg, #0ea5e9, #6c63ff);
}
.skill-cat-card:nth-child(10)::before {
  background: linear-gradient(90deg, #f43f5e, #f97316);
}
.skill-cat-card:nth-child(11)::before {
  background: linear-gradient(90deg, #a3e635, #22c55e);
}
.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.skill-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  flex-shrink: 0;
}
.skill-cat-card:nth-child(1) .skill-cat-icon {
  background: linear-gradient(135deg, #6c63ff, #00d4ff);
}
.skill-cat-card:nth-child(2) .skill-cat-icon {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.skill-cat-card:nth-child(3) .skill-cat-icon {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}
.skill-cat-card:nth-child(4) .skill-cat-icon {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}
.skill-cat-card:nth-child(5) .skill-cat-icon {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}
.skill-cat-card:nth-child(6) .skill-cat-icon {
  background: linear-gradient(135deg, #06b6d4, #6c63ff);
}
.skill-cat-card:nth-child(7) .skill-cat-icon {
  background: linear-gradient(135deg, #14b8a6, #10b981);
}
.skill-cat-card:nth-child(8) .skill-cat-icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.skill-cat-card:nth-child(9) .skill-cat-icon {
  background: linear-gradient(135deg, #0ea5e9, #6c63ff);
}
.skill-cat-card:nth-child(10) .skill-cat-icon {
  background: linear-gradient(135deg, #f43f5e, #f97316);
}
.skill-cat-card:nth-child(11) .skill-cat-icon {
  background: linear-gradient(135deg, #a3e635, #22c55e);
}
.skill-cat-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
}
.skill-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-pill);
  color: #a5a0ff;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.skill-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--c-subtle);
  transition: var(--transition);
  cursor: default;
}
.skill-pill:hover {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.3);
  color: var(--c-text);
}

/* ── PROJECTS ────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.proj-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
}
.proj-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.proj-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

/* 4. Proje resim alanı */
.proj-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #151828, #1e2340);
}
.proj-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.proj-card:hover .proj-img > img {
  transform: scale(1.08);
}
.proj-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(108, 99, 255, 0.3);
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.05),
    rgba(0, 212, 255, 0.05)
  );
}
.proj-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: var(--transition);
}
.proj-card:hover .proj-overlay {
  opacity: 1;
}
.proj-overlay-btn {
  width: 44px;
  height: 44px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}
.proj-overlay-btn:hover {
  transform: scale(1.15);
}
.proj-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}
.proj-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.proj-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}
.status-completed {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.status-in_progress {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}
.status-planned {
  background: rgba(108, 99, 255, 0.15);
  color: #a5a0ff;
}
.proj-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.proj-desc {
  color: var(--c-subtle);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.2rem;
}
.proj-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.proj-tech {
  font-size: 0.72rem;
  padding: 0.18rem 0.55rem;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: var(--radius-pill);
  color: #a5a0ff;
}

/* ── EDUCATION ───────────────────────────────────────── */
.edu-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.edu-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: var(--shadow-glow);
}

/* 5. Üniversite logosu */
.edu-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  background: var(--c-bg3);
  border: 1px solid var(--c-border2);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.edu-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 2;
  background: inherit;
}
.edu-logo-ph {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.edu-logo-ph i {
  font-size: 2.2rem;
  color: #fff;
}
.edu-school {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.edu-degree {
  color: var(--c-accent2);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.edu-dates {
  color: var(--c-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.edu-gpa {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-pill);
  color: #4ade80;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.edu-desc {
  color: var(--c-subtle);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ── ACHIEVEMENTS ────────────────────────────────────── */
.ach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.ach-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.ach-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
}
.ach-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* 6. Kurum logosu */
.ach-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.ach-org-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--c-bg3);
  border: 1px solid var(--c-border2);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ach-org-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 2;
  background: inherit;
}
.ach-org-logo .ach-logo-ph {
  position: absolute;
  z-index: 1;
}
.ach-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.ach-date {
  font-size: 0.8rem;
  color: var(--c-muted);
}
.ach-desc {
  color: var(--c-subtle);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── CERTIFICATES ─────────────────────────────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.cert-card {
  background: var(--c-surface);
  border: 0.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.cert-card:hover {
  border-color: var(--c-border2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Görsel alan */
.cert-img-wrap {
  width: 100%;
  height: 130px;
  position: relative;
  overflow: hidden;
  background: var(--c-bg3);
}
.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
  transition: transform 0.35s ease;
}
.cert-card:hover .cert-img-wrap img {
  transform: scale(1.04);
}

.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
  transition: transform 0.35s ease;
  z-index: 1; /* ← bunu ekle */
}

.cert-img-ph {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--c-bg3);
  z-index: 0; /* ← bunu ekle */
}
.cert-img-ph i {
  font-size: 28px;
  color: var(--c-muted);
}
.cert-img-ph span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* Kart alt bilgi */
.cert-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 0.5px solid var(--c-border);
}
.cert-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text);
}
.cert-org {
  font-size: 0.78rem;
  color: var(--c-muted);
}
.cert-date {
  font-size: 0.72rem;
  color: var(--c-muted);
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cert-date i {
  font-size: 12px;
}

/* ── CTA ─────────────────────────────────────────────── */
.cta-section {
  background: var(--c-bg2);
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.cta-orb-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  left: -200px;
  background: rgba(108, 99, 255, 0.2);
}
.cta-orb-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  right: -100px;
  background: rgba(0, 212, 255, 0.15);
}
.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.cta-desc {
  color: var(--c-subtle);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CONTACT ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-top: 3rem;
}

/* Yeni Kart Tasarımı */
.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: calc(var(--radius) + 8px);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(
    108,
    99,
    255,
    0.15
  ); /* Temanın vurgu rengine göre ayarlanabilir */
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--c-text);
  position: relative;
  padding-bottom: 0.75rem;
}

.contact-card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem;
  background: transparent;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}

.contact-item:hover {
  background: var(--c-surface);
  border-color: var(--c-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.ci-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
  /* Ortak background ve box-shadow buradan kaldırıldı, aşağıda özelleştirildi */
}

/* Mail İkonu (Modern Kırmızı/Mercan Tonları) */
.ci-email {
  background: linear-gradient(135deg, #ea4335, #d93025);
  box-shadow: 0 6px 15px rgba(234, 67, 53, 0.3);
}

/* Telefon İkonu (Modern Yeşil/WhatsApp Tonları) */
.ci-phone {
  background: linear-gradient(135deg, #34a853, #1e8e3e);
  box-shadow: 0 6px 15px rgba(52, 168, 83, 0.3);
}

/* Kutuya hover yapıldığında ikonların gölgesini belirginleştirme */
.contact-item:hover .ci-email {
  box-shadow: 0 8px 20px rgba(234, 67, 53, 0.4);
}
.contact-item:hover .ci-phone {
  box-shadow: 0 8px 20px rgba(52, 168, 83, 0.4);
}

.ci-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ci-label {
  font-size: 0.85rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.ci-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-word; /* Uzun maillerin taşmasını engeller */
}

.ci-val:hover {
  color: var(--c-accent2);
}

/* Sosyal Medya Butonları */
.social-big {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-big-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--c-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-big-item:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  background: var(
    --c-surface
  ); /* Eğer arka plan grid renginden farklıysa öne çıkarır */
}

/* GitHub ve LinkedIn hover durumunda kenarlık rengini belirginleştirme */
.social-big-item:hover .sbi-github {
  box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
}
.social-big-item:hover .sbi-linkedin {
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.sbi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  transition: var(--transition);
}

.sbi-github {
  background: #24292e;
}
.sbi-linkedin {
  background: #0a66c2;
}

.sbi-content {
  display: flex;
  flex-direction: column;
}

.sbi-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
}

.sbi-handle {
  font-size: 0.85rem;
  color: var(--c-muted);
}

.sbi-arrow {
  margin-left: auto;
  color: var(--c-muted);
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-big-item:hover .sbi-arrow {
  color: var(--c-text);
  transform: translateX(4px); /* Ok işareti hoverda sağa kayar */
}

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  color: var(--c-muted);
  font-size: 0.88rem;
}
.footer-copy span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 2rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .social-bar {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-img-wrap {
    width: 280px;
    height: 280px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .ach-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .section-wrapper {
    padding: 4.5rem 0;
  }
  .hero-img-wrap {
    width: 230px;
    height: 230px;
  }

  /* Sildiğiniz "display: none" yerine ikonları küçülterek gösterin */
  .tech-icons {
    display: block;
  }
  .ti {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  /* İkonların mobilde profil resminin çok dışına çıkmasını engeller */
  .ti-1 {
    top: 0%;
    left: -5%;
  }
  .ti-2 {
    top: 15%;
    right: -5%;
  }
  .ti-3 {
    bottom: 20%;
    left: -2%;
  }
  .ti-4 {
    bottom: 5%;
    right: -2%;
  }
  .ti-5 {
    top: -5%;
    right: 10%;
  }

  .skills-categories {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .edu-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer {
    flex-direction: column;
    text-align: center;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .cert-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
