:root {
  --bg: #0f172a;
  --bg-soft: #111c33;
  --card: rgba(30, 41, 59, 0.68);
  --card-solid: #1e293b;
  --card-strong: #23314a;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --text: #f8fafc;
  --heading: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --shadow: 0 24px 70px rgba(2, 8, 23, 0.38);
  --glow: 0 0 34px rgba(56, 189, 248, 0.24);
  --header-bg: rgba(15, 23, 42, 0.74);
  --panel-bg: rgba(2, 8, 23, 0.76);
  --chip-bg: rgba(15, 23, 42, 0.55);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.16), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(14, 165, 233, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.loading {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 18px;
  background: var(--bg);
  color: var(--muted);
  transition: opacity 0.45s ease, visibility 0.45s ease, background 0.35s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 62px;
  height: 62px;
  border: 3px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(2, 8, 23, 0.18);
}

.navbar {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  letter-spacing: 0;
  color: var(--heading);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.brand-copy strong {
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 800;
}

.brand-copy small {
  color: var(--accent);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-icon,
.tech-logo {
  display: inline-grid;
  place-items: center;
  color: #06121f;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.34);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  order: 3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 2;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(56, 189, 248, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 99px;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
  scroll-margin-top: 88px;
}

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

.hero-grid,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--heading);
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  margin-top: 14px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  font-weight: 800;
}

.hero-content h2 {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2.3rem);
}

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

.hero-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.btn,
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn {
  padding: 0 22px;
}

.btn:hover,
.filter-btn:hover,
.project-card:hover,
.skill-card:hover,
.glass-card:hover,
.highlight:hover,
.cert-card:hover {
  transform: translateY(-5px);
}

.btn:hover,
.project-card:hover,
.skill-card:hover,
.glass-card:hover,
.highlight:hover,
.cert-card:hover {
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow: var(--shadow), var(--glow);
}

.btn-primary {
  background: var(--accent);
  color: #06121f;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.28);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
}

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

.hero-stats div,
.highlight,
.glass-card,
.skill-card,
.project-card,
.cert-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.35s ease, box-shadow 0.25s ease;
}

.hero-stats div {
  padding: 18px;
  border-radius: 16px;
}

.hero-stats strong {
  display: block;
  font-size: 1.45rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.code-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel-bg);
  box-shadow: 0 28px 90px rgba(2, 8, 23, 0.28), 0 0 54px rgba(56, 189, 248, 0.16);
}

.panel-top {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.2);
}

.panel-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.panel-top span:nth-child(2) {
  background: #22c55e;
}

.panel-top span:nth-child(3) {
  background: #f59e0b;
}

pre {
  padding: 28px;
  overflow-x: auto;
  color: var(--accent);
  font-size: clamp(0.78rem, 2vw, 1rem);
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  aspect-ratio: 0.82 / 1;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 32px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.08)),
    var(--panel-bg);
  box-shadow: 0 30px 90px rgba(2, 8, 23, 0.35), 0 0 72px rgba(56, 189, 248, 0.2);
  overflow: hidden;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(248, 250, 252, 0.16);
  border-radius: 26px;
  pointer-events: none;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  z-index: 2;
  height: 34%;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, transparent, rgba(2, 8, 23, 0.58));
  pointer-events: none;
}

.portrait-glow {
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 35% 22%, rgba(56, 189, 248, 0.35), transparent 28%),
    conic-gradient(from 140deg, transparent, rgba(56, 189, 248, 0.22), transparent 45%);
  animation: portraitGlow 7s linear infinite;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.03);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 42px;
  animation: float 5s ease-in-out infinite;
}

.orbit-one {
  width: 280px;
  height: 280px;
  right: 0;
  top: 40px;
}

.orbit-two {
  width: 210px;
  height: 210px;
  left: 4px;
  bottom: 42px;
  animation-delay: 1.1s;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-card h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.about-card {
  padding: 32px;
  border-radius: var(--radius);
}

.about-card p + p {
  margin-top: 18px;
}

.about-highlights {
  display: grid;
  gap: 16px;
}

.highlight {
  padding: 22px;
  border-radius: var(--radius);
}

.highlight span {
  color: var(--accent);
  font-weight: 800;
}

.highlight strong {
  display: block;
  margin: 8px 0;
  font-size: 1.12rem;
}

.highlight p,
.glass-card p,
.project-card p,
.cert-card p,
.timeline-item p,
.contact-card p {
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px;
  border-radius: var(--radius);
}

.skill-card:hover {
  background: var(--card-strong);
}

.tech-logo,
.card-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  font-weight: 900;
}

.tech-logo {
  padding: 8px;
  background: rgba(248, 250, 252, 0.96);
}

.tech-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.filter-bar {
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid var(--line);
  padding: 0 18px;
  background: var(--card);
  color: var(--muted);
}

.filter-btn.active {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(56, 189, 248, 0.16);
  color: var(--text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.project-card.hide {
  display: none;
}

.project-image {
  position: relative;
  aspect-ratio: 1 / 0.72;
  margin: 16px 16px 0;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(15, 23, 42, 0.3)),
    var(--project-gradient);
  isolation: isolate;
}

.project-image.has-image {
  background: #0f172a;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

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


.project-image::after {
  content: attr(data-code);
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  color: rgba(248, 250, 252, 0.88);
  font-size: 2.2rem;
  font-weight: 900;
}

.project-image.has-image::after {
  display: none;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.project-meta {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-body h3 {
  margin-top: 8px;
  font-size: 1.3rem;
}

.project-body p {
  margin-top: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  background: var(--chip-bg);
  font-size: 0.78rem;
  font-weight: 700;
}

.project-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.project-actions a {
  flex: 1;
  min-height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.project-actions a:hover {
  transform: translateY(-2px);
}

.project-actions a:first-child {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
}

.project-actions a:last-child {
  background: var(--chip-bg);
  color: var(--text);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  align-items: start;
}

.timeline-logo {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--card-solid);
  box-shadow: var(--shadow);
}

.timeline-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.timeline-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--card);
  transition: transform 0.25s ease, background 0.35s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow: var(--shadow), var(--glow);
}

.timeline-content h3 {
  margin-bottom: 6px;
}

.timeline-company,
.timeline-date,
.timeline-location,
.timeline-skill {
  display: block;
}

.timeline-company {
  color: var(--text);
  font-weight: 700;
}

.timeline-date,
.timeline-location {
  color: var(--muted);
}

.timeline-description {
  margin-top: 14px;
}

.timeline-skill {
  margin-top: 12px;
  color: var(--text);
  font-weight: 800;
}

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

.education-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
}

.education-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.competition-section {
  position: relative;
  width: 100%;
  padding: 88px 0;
  overflow: hidden;
  scroll-margin-top: 88px;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.04), transparent 30%, transparent 70%, rgba(56, 189, 248, 0.04)),
    #08152e;
  border-top: 1px solid rgba(56, 189, 248, 0.16);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}

.competition-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(56, 189, 248, 0.025) 1px, transparent 1px);
  background-size: 100% 32px;
}

.competition-inner {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.competition-section .section-heading h2 {
  color: #f8fafc;
}

.competition-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 24px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.competition-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: competitionMarquee 28s linear infinite;
}

.competition-marquee:hover .competition-track {
  animation-play-state: paused;
}

.competition-group {
  display: flex;
  align-items: center;
  gap: 50px;
  padding-right: 50px;
}

.competition-logo {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 18px;
  background: rgba(15, 31, 61, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.competition-logo img {
  width: 150px;
  height: 150px;
  display: block;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.competition-logo:hover {
  z-index: 2;
  transform: scale(1.08);
  border-color: rgba(56, 189, 248, 0.68);
  background: rgba(15, 31, 61, 0.88);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.45), 0 0 50px rgba(14, 165, 233, 0.22);
}

.competition-logo:hover img {
  filter: brightness(1.12) drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}

.glass-card,
.cert-card {
  border-radius: var(--radius);
  padding: 24px;
}

.glass-card h3,
.cert-card h3 {
  margin: 14px 0 10px;
}

.cert-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cert-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--card);
}

.cert-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1.55 / 1;
  margin-bottom: 18px;
  border: 1px dashed rgba(56, 189, 248, 0.5);
  border-radius: 16px;
  color: var(--accent);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.12), transparent),
    var(--chip-bg);
  font-weight: 800;
  text-align: center;
}

.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.cert-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  font-weight: 800;
  font-size: 0.76rem;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  font-weight: 800;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cert-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.18);
}

.contact-section {
  padding-bottom: 70px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.4fr);
  gap: 32px;
  align-items: center;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 46px);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(30, 41, 59, 0.12)),
    var(--card);
  box-shadow: var(--shadow);
}

.contact-card p {
  margin-top: 14px;
  max-width: 660px;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  background: var(--chip-bg);
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-links a span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-links a:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: var(--glow);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

  50% {
    transform: translateY(-18px) rotate(7deg);
  }
}

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

@keyframes competitionMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .navbar {
    gap: 14px;
  }

  .hero-grid,
  .about-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 380px;
  }

  .skills-grid,
  .projects-grid,
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: grid;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--header-bg);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    backdrop-filter: blur(18px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .navbar {
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-copy strong {
    font-size: 0.8rem;
  }

  .brand-copy small {
    font-size: 0.52rem;
  }

  .section {
    padding: 72px 0;
    scroll-margin-top: 80px;
  }

  .competition-section {
    padding: 68px 0;
    scroll-margin-top: 80px;
  }

  .competition-group {
    gap: 50px;
    padding-right: 50px;
  }

  .competition-logo,
  .competition-logo img {
    width: 100px;
    height: 100px;
  }

  .competition-logo {
    flex-basis: 100px;
    border-radius: 14px;
  }

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

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

  .hero-stats,
  .skills-grid,
  .projects-grid,
  .education-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .code-panel,
  .portrait-frame {
    width: 100%;
  }

  .orbit {
    display: none;
  }

  .timeline::before {
    left: 36px;
  }

  .timeline-item {
    grid-template-columns: 72px 1fr;
    gap: 14px;
  }

  .timeline-logo,
  .timeline-logo img {
    width: 72px;
    height: 72px;
  }

  .timeline-content {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    max-width: 106px;
    line-height: 1.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .competition-track {
    animation: none;
  }
}


/* Frontend Web birleşik yetenek kartı */
.skill-card strong {
  line-height: 1.25;
}

/* Eğitim kurum ve program bilgileri */
.education-program {
  margin-top: 10px;
  color: var(--accent) !important;
  font-weight: 800;
}

/* Proje kartı aksiyonları */
.project-actions {
  align-items: stretch;
}

.project-actions a,
.project-detail-button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.project-detail-button {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.15);
}

.project-actions a {
  color: var(--text);
  background: var(--chip-bg);
}

.project-actions a:hover,
.project-detail-button:hover {
  transform: translateY(-2px);
}

.project-detail-button:focus-visible,
.project-detail-close:focus-visible,
.project-detail-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Sağdan açılan proje detay paneli */
body.project-panel-open {
  overflow: hidden;
}

.project-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(2, 8, 23, 0.66);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.project-detail-overlay.is-visible {
  opacity: 1;
}

.project-detail-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1200;
  width: min(520px, 92vw);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.14), transparent 34%),
    linear-gradient(160deg, #111c33 0%, #0f172a 58%, #081020 100%);
  border-left: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: -28px 0 90px rgba(2, 8, 23, 0.58);
  transform: translateX(105%);
  visibility: hidden;
  transition:
    transform 0.34s cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 0.34s;
}

.project-detail-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.project-detail-header {
  flex: 0 0 auto;
  min-height: 98px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
}

.project-detail-header > div {
  min-width: 0;
}

.project-detail-category {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-detail-header h2 {
  margin-top: 5px;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.project-detail-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 13px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.11);
  font: 300 2rem/1 Inter, sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.project-detail-close:hover {
  color: #fff;
  background: rgba(56, 189, 248, 0.16);
  transform: rotate(4deg);
}

.project-detail-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 22px 34px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.42) transparent;
}

.project-detail-summary {
  padding: 18px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 16px;
  color: #dbeafe;
  background: rgba(56, 189, 248, 0.08);
  font-size: 1rem;
}

.project-detail-section {
  margin-top: 24px;
}

.project-detail-section h3 {
  margin-bottom: 9px;
  color: var(--heading);
  font-size: 1rem;
}

.project-detail-section p {
  color: var(--muted);
  line-height: 1.75;
}

.project-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-detail-tags span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--chip-bg);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-detail-link {
  min-height: 48px;
  margin-top: 28px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #06121f;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-detail-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.3);
}

@media (max-width: 620px) {
  .project-detail-panel {
    width: 100%;
  }

  .project-detail-header {
    min-height: 88px;
    padding: 16px;
  }

  .project-detail-content {
    padding: 20px 16px 28px;
  }
}


/* Proje bağlantısı olmayan detay panellerinde butonu kesin olarak gizle */
.project-detail-link[hidden] {
  display: none !important;
}


/* Proje görselleri: kaynak dosyalar 1200 × 864 px */
.project-image {
  aspect-ratio: 25 / 18;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
