:root {
  --bg: #070912;
  --bg-2: #0b1020;
  --text: #f8fafc;
  --muted: #a7b0c5;
  --muted-2: #cbd5e1;
  --border: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.075);
  --card-2: rgba(255, 255, 255, 0.12);
  --purple: #866ee7;
  --pink: #ea60da;
  --hot: #fc0987;
  --yellow: #fbd41d;
  --blue: #38bdf8;
  --green: #22c55e;
  --radius: 28px;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 10% 0%, rgba(134, 110, 231, 0.22), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(252, 9, 135, 0.18), transparent 30%),
    linear-gradient(180deg, #070912 0%, #090d19 48%, #070912 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  color: #ffffff;
  background: rgba(252, 9, 135, 0.42);
}

.bg-orb {
  position: fixed;
  z-index: -5;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.22;
  pointer-events: none;
}

.orb-one {
  top: -220px;
  left: -170px;
  background: var(--purple);
}

.orb-two {
  right: -180px;
  top: 240px;
  background: var(--hot);
}

.orb-three {
  left: 35%;
  bottom: -260px;
  background: var(--blue);
}

.cursor-glow {
  position: fixed;
  z-index: -2;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(234, 96, 218, 0.2), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 18, 0.72);
  backdrop-filter: blur(22px);
}

.navbar {
  width: min(var(--max), calc(100% - 40px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--purple), var(--hot));
  color: #ffffff;
  box-shadow: 0 16px 44px rgba(252, 9, 135, 0.26);
}

.brand-text {
  font-size: 1rem;
}

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

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--hot));
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #ffffff;
}

/* HERO */

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 70px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 9px 14px;
  border: 1px solid rgba(252, 9, 135, 0.25);
  border-radius: 999px;
  background: rgba(252, 9, 135, 0.08);
  color: #ffd5ef;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 1.8s infinite;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(3.1rem, 7vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.085em;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  background: linear-gradient(90deg, #ffffff, var(--pink), var(--hot), var(--yellow));
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradientMove 5s ease-in-out infinite alternate;
}

.hero-description {
  max-width: 720px;
  margin-top: 28px;
  color: var(--muted-2);
  font-size: 1.08rem;
}

.hero-actions,
.publication-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--hot));
  box-shadow: 0 18px 54px rgba(252, 9, 135, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 22px 70px rgba(252, 9, 135, 0.38);
}

.btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(16px);
}

.btn-secondary:hover {
  border-color: rgba(252, 9, 135, 0.35);
  background: rgba(255, 255, 255, 0.11);
}

.hero-stats {
  max-width: 650px;
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats strong {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.ai-card {
  position: relative;
  display: grid;
  place-items: center;
  width: min(430px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(252, 9, 135, 0.17), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.ai-card::before {
  content: "";
  position: absolute;
  inset: -70px;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(252, 9, 135, 0.42),
    transparent,
    rgba(134, 110, 231, 0.42),
    transparent
  );
  animation: rotate 9s linear infinite;
}

.ai-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 43px;
  background: rgba(7, 9, 18, 0.84);
}

.ai-ring,
.ai-core,
.tech-chip {
  position: absolute;
  z-index: 2;
}

.ai-ring {
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.ring-one {
  width: 74%;
  height: 74%;
  animation: rotate 18s linear infinite;
}

.ring-two {
  width: 52%;
  height: 52%;
  animation: rotateReverse 14s linear infinite;
}

.ai-core {
  display: grid;
  place-items: center;
  width: 212px;
  height: 212px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(134, 110, 231, 0.18), rgba(252, 9, 135, 0.14));
  text-align: center;
  backdrop-filter: blur(22px);
}

.ai-core span {
  font-size: 2.4rem;
}

.ai-core h2 {
  margin-top: 8px;
  font-size: 1.16rem;
  letter-spacing: -0.04em;
}

.ai-core p {
  color: var(--muted);
  font-size: 0.83rem;
}

.tech-chip {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.24);
  animation: float 4s ease-in-out infinite;
}

.chip-1 {
  top: 72px;
  left: 52px;
}

.chip-2 {
  top: 112px;
  right: 34px;
  animation-delay: 0.4s;
}

.chip-3 {
  bottom: 84px;
  left: 30px;
  animation-delay: 0.8s;
}

.chip-4 {
  right: 60px;
  bottom: 56px;
  animation-delay: 1.2s;
}

/* COMMON */

.section-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.section-heading h2,
.publication-card h2,
.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
}

.section-heading p,
.publication-card p,
.contact-card p {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 1.03rem;
}

.card-grid.three,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.glass-card,
.skill-card,
.project-card,
.timeline-card,
.publication-card,
.contact-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.glass-card,
.skill-card,
.project-card {
  min-height: 250px;
  padding: 26px;
  border-radius: var(--radius);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.glass-card:hover,
.skill-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(252, 9, 135, 0.36);
  background:
    radial-gradient(circle at top right, rgba(252, 9, 135, 0.12), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.05));
}

.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: rgba(252, 9, 135, 0.12);
  font-size: 1.7rem;
}

.glass-card h3,
.skill-card h3,
.project-card h3,
.timeline-card h3 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
}

.glass-card p,
.project-card p,
.timeline-card p {
  color: var(--muted-2);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-list span,
.community-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 800;
}

/* TIMELINE */

.timeline {
  position: relative;
  max-width: 940px;
  margin-left: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 13px;
  width: 2px;
  height: calc(100% - 24px);
  background: linear-gradient(var(--purple), var(--hot), transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.timeline-marker {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin-top: 24px;
  border: 7px solid #111827;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--hot));
  box-shadow: 0 0 0 8px rgba(252, 9, 135, 0.1);
}

.timeline-card {
  padding: 24px;
  border-radius: var(--radius);
}

.timeline-date {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--yellow);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 800;
}

/* PROJECTS */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  min-height: 330px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.project-badge,
.project-rank {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 900;
}

.project-badge {
  color: #ddd6fe;
  background: rgba(134, 110, 231, 0.18);
}

.project-rank {
  color: #fef08a;
  background: rgba(251, 212, 29, 0.14);
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: #ffffff;
  font-weight: 900;
}

/* PUBLICATION */

.publication-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 40px;
  padding: 38px;
  border-radius: 36px;
  overflow: hidden;
}

.publication-title {
  color: #ffffff !important;
  font-size: 1.24rem !important;
  font-weight: 900;
}

.publication-visual {
  display: grid;
  place-items: center;
  min-height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 35%, rgba(252, 9, 135, 0.25), transparent 45%),
    rgba(255, 255, 255, 0.06);
  text-align: center;
}

.strawberry-icon {
  font-size: 5rem;
  filter: drop-shadow(0 20px 50px rgba(252, 9, 135, 0.36));
  animation: float 3.6s ease-in-out infinite;
}

.publication-visual strong {
  margin-top: 16px;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.publication-visual span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* COMMUNITY */

.community-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* CONTACT */

.contact-card {
  padding: 44px;
  border-radius: 36px;
  text-align: center;
}

.contact-card .section-label {
  margin-inline: auto;
}

.contact-card p {
  max-width: 760px;
  margin-inline: auto;
}

.contact-actions {
  justify-content: center;
}

/* FOOTER */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 44px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer a {
  color: #ffffff;
  font-weight: 900;
}

/* SAFE REVEAL ANIMATION */

/* JS çalışmazsa içerik görünür kalır. */
.reveal {
  opacity: 1;
  transform: none;
}

/* Sadece JS aktifse reveal animasyonu uygulanır. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ANIMATIONS */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 100% center;
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .section {
    padding: 78px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .hero-grid,
  .publication-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .ai-card {
    width: min(360px, 100%);
  }

  .card-grid.three,
  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .navbar {
    height: 70px;
  }

  .brand-text {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(7, 9, 18, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 15vw, 4.25rem);
  }

  .section-heading h2,
  .publication-card h2,
  .contact-card h2 {
    font-size: 2.05rem;
  }

  .hero-actions,
  .publication-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .publication-card,
  .contact-card {
    padding: 26px;
  }

  .project-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .cursor-glow {
    display: none;
  }
}
