:root {
  --bg: #0b0b0f;
  --panel: #14141b;
  --panel-2: #1b1b24;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #ffffff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --offline: #6b7280;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --radius: 20px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #0b0b0f 0%, #101018 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

/* ===================================================== */
/* ===== MAIN LAYOUT ===== */
/* ===================================================== */
.site-header,
.section,
.site-footer {
  padding-left: 20px;
  padding-right: 20px;
}

.navbar,
.hero,
.section > *,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===================================================== */
/* ===== NAVBAR ===== */
/* ===================================================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  position: relative;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===================================================== */
/* ===== HERO SECTION ===== */
/* ===================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;

  min-height: 100vh; /* 🔥 FULL SCREEN */
  padding: 0; /* remove extra spacing */
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d4d4d8;
  font-size: 0.85rem;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.75);
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.name-wrapper {
  position: relative;
  display: inline-block;
  width: 12ch;
}

.name-switch {
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  color: var(--text);
  cursor: pointer;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.name-switch.gaming {
  color: #a855f7;
  text-shadow:
    0 0 6px rgba(168, 85, 247, 0.55),
    0 0 14px rgba(59, 130, 246, 0.25);
}

.name-switch.glitching {
  text-shadow:
    -1px 0 rgba(255, 0, 102, 0.45),
     1px 0 rgba(0, 255, 255, 0.45);
}

.hero-description {
  color: var(--muted);
  max-width: 650px;
  margin-bottom: 25px;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    color 0.22s ease;
}

.hero-description.description-switching {
  opacity: 0;
  transform: translateY(6px);
}

.hero-description.gaming-description {
  color: #c4b5fd;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===================================================== */
/* ===== BUTTONS ===== */
/* ===================================================== */
.btn {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.2s ease;
  border: 1px solid var(--border);
}

.btn.primary {
  background: var(--text);
  color: #0b0b0f;
}

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

.btn.secondary {
  background: transparent;
  color: var(--text);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ===================================================== */
/* ===== HERO IMAGE ===== */
/* ===================================================== */
.hero-image img {
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
  min-height: 360px;
}

/* ===================================================== */
/* ===== GENERAL SECTIONS ===== */
/* ===================================================== */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.alt-section {
  background: rgba(255, 255, 255, 0.02);
}

.section-heading {
  margin-bottom: 30px;
}

.section-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.3px;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

/* ===================================================== */
/* ===== ABOUT ME (MODERN CLEAN) ===== */
/* ===================================================== */
#about {
  background-color: #0D0D14;
}

.about-modern {
  max-width: 780px;
}

.about-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}

.about-modern p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-modern p:last-of-type {
  margin-bottom: 0;
}

/* ===== ABOUT INFO ROW ===== */
.about-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px 32px;
  margin-top: 24px;
  max-width: 720px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.info-label {
  color: #9fb8ff;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.info-label::after {
  content: "/";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.22);
  font-weight: 400;
}

.info-value {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===================================================== */
/* ===== PROJECT CARDS ===== */
/* ===================================================== */
.projects-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.card,
.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3,
.project-card h3 {
  margin-bottom: 10px;
}

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

.project-image {
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2a2a35, #181821);
  margin-bottom: 18px;
}

.project-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
}

/* ===================================================== */
/* ===== FOOTER ===== */
/* ===================================================== */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* ===================================================== */
/* ===== SOCIAL ICONS ===== */
/* ===================================================== */
.hero-socials {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 18px;
  transition: 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.social-icon.redbull:hover {
  color: #ff4d4d;
  border-color: rgba(255, 0, 0, 0.4);
}

/* ===================================================== */
/* ===== CLEAN TIMELINE (NO BOXES) ===== */
/* ===================================================== */
#timeline {
  background-color: #0C0C11;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.timeline-column {
  min-width: 0;
}

.timeline-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
  letter-spacing: 0.2px;
}

.experience-timeline {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding-left: 60px;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 20px;
  width: 1px;
  height: calc(100% - 16px);
  background: rgba(255, 255, 255, 0.12);
}

.experience-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  margin-bottom: 24px;
  align-items: start;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.experience-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0f;
  border: 1.5px solid #2f6bff;
  color: #dfe8ff;
  font-size: 0.84rem;
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.08);
  z-index: 1;
}

.experience-content {
  padding: 0;
}

.experience-content h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 4px;
  color: var(--text);
}

.experience-company {
  font-size: 0.9rem;
  line-height: 1.2;
  color: #d4d4d8;
  margin-bottom: 6px;
}

.experience-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9fb8ff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.experience-description {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.experience-list {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
}

.experience-list li {
  margin-bottom: 6px;
  line-height: 1.42;
  font-size: 0.86rem;
}

.experience-list li:last-child {
  margin-bottom: 0;
}

/* ===================================================== */
/* ===== PROJECTS PREVIEW SECTION ===== */
/* ===================================================== */
.section-subtext {
  color: var(--muted);
  max-width: 560px;
  margin-top: 10px;
  font-size: 0.95rem;
}

.projects-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.project-preview-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.015) 100%), var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.project-preview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.project-preview-card.featured-project {
  background:
    radial-gradient(circle at top right, rgba(159, 184, 255, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.015) 100%),
    var(--panel);
}

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

.project-preview-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9fb8ff;
  font-size: 1rem;
  flex-shrink: 0;
}

.project-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.project-status.live {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.22);
}

.project-status.wip {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.22);
}

.project-status.selfhosted {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.22);
}

.project-status.discontinued {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.26);
}

.project-preview-image {
  height: 180px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #181821, #101018);
}

/* ===== Mock Preview Types ===== */
.paste-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 35%),
    linear-gradient(135deg, #191924, #101018);
}

.project-preview-window {
  width: 82%;
  background: rgba(12, 12, 18, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.window-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
}

.code-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.code-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(159,184,255,0.95), rgba(255,255,255,0.18));
}

.code-lines span:nth-child(1) { width: 78%; }
.code-lines span:nth-child(2) { width: 58%; }
.code-lines span:nth-child(3) { width: 88%; }
.code-lines span:nth-child(4) { width: 46%; }

.rpc-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.13), transparent 35%),
    linear-gradient(135deg, #161620, #0f1017);
}

.rpc-mockup {
  width: 84%;
}

.rpc-bar {
  width: 38%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  margin-bottom: 14px;
}

.rpc-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px;
}

.rpc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  flex-shrink: 0;
}

.rpc-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpc-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.rpc-lines span:nth-child(1) { width: 62%; }
.rpc-lines span:nth-child(2) { width: 82%; }
.rpc-lines span:nth-child(3) { width: 48%; }

.server-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.14), transparent 35%),
    linear-gradient(135deg, #171922, #0d0f16);
}

.server-rack {
  width: 72%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.server-rack span {
  display: block;
  height: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  position: relative;
}

.server-rack span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
}

/* ===== Content ===== */
.project-preview-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.project-preview-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.project-type {
  font-size: 0.76rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.project-preview-description {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e4e4e7;
  font-size: 0.78rem;
  font-weight: 600;
}

.project-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-feature-list li {
  font-size: 0.78rem;
  color: #cfcfd4;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.08);
}

.project-preview-footer {
  padding-top: 4px;
}

.project-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.project-inline-link:hover {
  gap: 12px;
  opacity: 0.9;
}

.projects-preview-cta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .projects-preview-grid {
    grid-template-columns: 1fr;
  }

  .project-preview-image {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .project-preview-card {
    padding: 16px;
    border-radius: 20px;
  }

  .project-preview-image {
    height: 165px;
  }

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

  .project-status {
    font-size: 0.72rem;
  }

  .tech-badge,
  .project-feature-list li {
    font-size: 0.74rem;
  }
}

/* ===================================================== */
/* ===== RESPONSIVE 1100PX ===== */
/* ===================================================== */
@media (max-width: 1100px) {
  .timeline-grid {
    gap: 26px;
  }

  .experience-timeline {
    padding-left: 54px;
  }

  .experience-timeline::before {
    left: 18px;
  }

  .experience-item {
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    margin-bottom: 22px;
  }

  .experience-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

/* ===================================================== */
/* ===== RESPONSIVE 900PX ===== */
/* ===================================================== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .timeline-grid {
    gap: 28px;
  }
}

/* ===================================================== */
/* ===== RESPONSIVE 768PX ===== */
/* ===================================================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    right: 20px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    width: 200px;
  }

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

  .hero {
    padding-top: 20px;
    padding-bottom: 50px;
  }

  .name-wrapper {
    width: 12ch;
  }

  .experience-timeline {
    padding-left: 0;
  }

  .experience-timeline::before {
    left: 16px;
  }

  .experience-item {
    grid-template-columns: 38px 1fr;
    column-gap: 10px;
    margin-bottom: 18px;
  }

  .experience-icon {
    width: 30px;
    height: 30px;
    font-size: 0.76rem;
    box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.08);
  }

  .experience-content h3 {
    font-size: 0.94rem;
  }

  .experience-company {
    font-size: 0.84rem;
  }

  .experience-date {
    font-size: 0.72rem;
    margin-bottom: 8px;
  }

  .experience-description,
  .experience-list li {
    font-size: 0.82rem;
    line-height: 1.38;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .project-card {
    padding: 20px;
  }

  .hero-image img {
    min-height: 280px;
  }
}

/* ===================================================== */
/* ===== RESPONSIVE 600PX ===== */
/* ===================================================== */
@media (max-width: 600px) {
  .about-info {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-label,
  .info-value {
    font-size: 0.88rem;
  }
}


/* ===== Project Meta Blocks ===== */
.project-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.project-meta-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.meta-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-items span {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e4e4e7;
  font-weight: 500;
}
