:root {
  --bg: #05070c;
  --bg-soft: #0a1020;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(18, 28, 48, 0.92);
  --panel-border: rgba(72, 208, 255, 0.14);
  --text: #f5f7fb;
  --muted: #9aa7bd;
  --accent: #1ed6ff;
  --accent-2: #3b82f6;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(30, 214, 255, 0.11), transparent 25%),
    radial-gradient(circle at 85% 85%, rgba(59, 130, 246, 0.12), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #03050a 40%, #04060b 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.panel-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 214, 255, 0.12) 0%, rgba(30, 214, 255, 0.03) 40%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
  transition: transform 0.08s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 82px;
  gap: 18px;
}

.logo {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

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

.nav a {
  color: rgba(245, 247, 251, 0.9);
  font-size: 1rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(30, 214, 255, 0.35);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px 0 40px;
  z-index: 1;
}

.hero-inner {
  text-align: center;
  max-width: 920px;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.98rem;
  color: #b9f6ff;
  background: rgba(6, 32, 44, 0.55);
  border: 1px solid rgba(30, 214, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(30, 214, 255, 0.04), 0 0 24px rgba(30, 214, 255, 0.06);
}

.hero-title {
  margin: 26px 0 10px;
  font-family: var(--mono);
  font-size: clamp(3.7rem, 9vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero-subtitle {
  margin: 10px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 820px;
  margin: 26px auto 0;
  font-size: 1.22rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
  padding: 16px 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

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

.btn-primary {
  color: #08131a;
  background: linear-gradient(135deg, var(--accent), #59d6ff);
  box-shadow: 0 0 25px rgba(30, 214, 255, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 0 35px rgba(30, 214, 255, 0.26);
}

.btn-secondary {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(30, 214, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(30, 214, 255, 0.06);
}

.btn-secondary:hover {
  background: rgba(30, 214, 255, 0.08);
}

.btn-full {
  width: 100%;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-socials a {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-socials a:hover {
  color: var(--accent);
  border-color: rgba(30, 214, 255, 0.35);
  transform: translateY(-2px);
}

.section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 214, 255, 0.16), transparent);
  opacity: 0.7;
}

.section-heading {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 52px;
}

.section-title {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

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

.section-line {
  width: 120px;
  height: 4px;
  margin: 20px auto 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(30, 214, 255, 0.08), var(--accent), rgba(30, 214, 255, 0.08));
  box-shadow: 0 0 16px rgba(30, 214, 255, 0.18);
}

.section-heading p,
.about-copy p,
.contact-card p,
.stat-label,
.panel-description,
.panel-section li,
.project-content p {
  color: var(--muted);
}

.section-heading p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 0;
}

.section-split {
  padding-top: 90px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-copy .section-title,
.about-copy .section-line {
  text-align: left;
  margin-left: 0;
}

.about-copy p {
  font-size: 1.16rem;
  line-height: 1.95;
  margin: 0 0 20px;
}

.code-chip {
  margin-top: 28px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 1rem;
  background: rgba(3, 24, 31, 0.55);
  border: 1px solid rgba(30, 214, 255, 0.18);
  color: #d2faff;
}

.code-chip span {
  color: #7dd3fc;
}

.code-chip em {
  font-style: normal;
  color: #fde68a;
}

.stats-grid {
  display: grid;
  gap: 18px;
}

.stat-card,
.skill-card,
.contact-card,
.contact-form,
.project-panel-card {
  background: linear-gradient(180deg, rgba(20, 31, 54, 0.82), rgba(15, 23, 42, 0.72));
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat-card {
  padding: 28px 28px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  margin-top: 10px;
  font-size: 1rem;
}

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

.project-card {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(17, 27, 46, 0.92), rgba(14, 21, 35, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(30, 214, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.project-image-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #02050c;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.project-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 9, 17, 0.02), rgba(1, 9, 17, 0.4));
}

.project-category,
.project-number {
  position: absolute;
  z-index: 1;
  font-family: var(--mono);
}

.project-category {
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 214, 255, 0.88);
  color: #04131a;
  font-size: 0.88rem;
  font-weight: 700;
}

.project-number {
  left: 18px;
  bottom: 14px;
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.project-content {
  padding: 26px 24px 24px;
}

.project-content h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.project-content p {
  margin: 14px 0 18px;
  font-size: 1rem;
  line-height: 1.8;
}

.project-tags,
.skill-tags,
.panel-tags,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: #7dd3fc;
  background: rgba(3, 24, 31, 0.5);
  border: 1px solid rgba(30, 214, 255, 0.16);
}

.project-link {
  margin-top: 22px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  border-radius: 16px;
  color: #071117;
  background: linear-gradient(135deg, var(--accent), #4fd7ff);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(30, 214, 255, 0.14);
}

.project-link span {
  font-size: 1.2rem;
}

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

.skill-card {
  padding: 28px 24px;
  min-height: 220px;
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.skill-card-header h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.skill-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(3, 24, 31, 0.5);
  color: var(--accent);
  border: 1px solid rgba(30, 214, 255, 0.16);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 18px;
}

.contact-card {
  padding: 26px 24px;
}

.contact-card h3 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.contact-card p {
  margin: 0;
  line-height: 1.8;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-form {
  padding: 26px 24px;
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 16px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7e8aa1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(30, 214, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(30, 214, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.site-footer {
  padding: 26px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.28);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-wrap p,
.footer-wrap a {
  margin: 0;
  color: var(--muted);
}

.footer-wrap a:hover {
  color: var(--accent);
}

.project-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  background: rgba(2, 6, 13, 0.54);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.project-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.project-panel-card {
  width: min(560px, 100%);
  height: 100%;
  border-radius: 0;
  border-left: 1px solid rgba(30, 214, 255, 0.14);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 26px 24px 34px;
}

.project-panel.open .project-panel-card {
  transform: translateX(0);
}

.panel-close {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
  display: block;
}

.panel-image-wrap {
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.panel-topline {
  margin-top: 20px;
}

.panel-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--mono);
  background: rgba(30, 214, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(30, 214, 255, 0.18);
}

#projectPanelBody h3 {
  margin: 18px 0 10px;
  font-family: var(--mono);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.panel-description {
  margin: 0 0 18px;
  line-height: 1.8;
}

.panel-section {
  margin-top: 24px;
}

.panel-section h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.panel-section ul {
  margin: 0;
  padding-left: 20px;
}

.panel-section li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.panel-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(30, 214, 255, 0.18);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

.panel-btn-primary {
  color: #061319;
  background: linear-gradient(135deg, var(--accent), #4fd7ff);
  border-color: transparent;
}

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

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

@media (max-width: 1080px) {
  .split-grid,
  .contact-grid,
  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-image-wrap {
    height: 240px;
  }

  .container {
    width: min(100% - 32px, 1180px);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .hero {
    min-height: auto;
    padding: 90px 0 70px;
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-text,
  .section-heading p,
  .about-copy p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .section {
    padding: 88px 0;
  }

  .project-content,
  .skill-card,
  .contact-card,
  .contact-form {
    padding: 22px 18px;
  }

  .project-panel-card {
    width: 100%;
    padding: 20px 18px 26px;
  }

  .cursor-glow {
    display: none;
  }
}
