:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --accent: #00ff88;
  --accent2: #00b8ff;
  --text: #e8e8f0;
  --muted: #6b6b80;
  --border: rgba(255, 255, 255, 0.07);
  --card-bg: #13131e;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.12;
}

.orb1 {
  width: 500px;
  height: 500px;
  background: #00ff88;
  top: -200px;
  right: -100px;
}

.orb2 {
  width: 400px;
  height: 400px;
  background: #00b8ff;
  bottom: 100px;
  left: -150px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

/* HERO */
.hero {
  padding: 6rem 0 4rem;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.05em;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  letter-spacing: 0.05em;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* AVATAR */
.avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.avatar-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  padding: 4px;
  position: relative;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 255, 136, 0.3);
  animation: spin 20s linear infinite;
}

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

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg3);
}

.avatar-status {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* STATS */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 3rem 0;
}

.stat-item {
  background: var(--card-bg);
  padding: 1.5rem;
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
}

/* SECTION HEADERS */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* SKILLS */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.skill-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.skill-badge.featured {
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--accent);
}

/* RESUME SECTION */
.resume-content {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* TIMELINE (EXPERIENCE) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -1.9rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.timeline-content:hover {
  border-color: rgba(0, 255, 136, 0.3);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.timeline-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

.timeline-company {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* EDUCATION */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.education-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.education-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.edu-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.edu-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
}

.edu-institution {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.edu-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-3px);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.project-icon {
  font-size: 1.25rem;
  background: var(--bg3);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.project-stars {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.project-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.project-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  min-height: 40px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  display: inline-block;
  margin-right: 0.4rem;
}

.project-lang {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.project-updated {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
}

.loader-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  animation: shimmer 1.5s infinite;
  min-height: 180px;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

/* CONTACT */
.contact-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
}

.contact-wrap h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-wrap p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  background: var(--bg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent);
}

.contact-icon i {
  font-size: 1.2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-value {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--muted);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--accent);
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
  .hero {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  nav {
    padding: 1rem 0;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 4rem 0 3rem;
    text-align: center;
  }

  .hero-tag {
    justify-content: center;
  }

  .hero-desc {
    margin: 0 auto 2rem;
  }

  .hero-btns {
    justify-content: center;
  }

  .avatar-wrap {
    order: -1;
    margin-bottom: 1rem;
  }

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

  .section {
    padding: 3rem 0;
  }

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

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .edu-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .contact-wrap {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none; /* Hide nav links on very small screens or implement a mobile menu */
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

  .stat-item {
    padding: 1rem;
  }

  .stat-num {
    font-size: 1.5rem;
  }
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: 8px;
  transition: 0.2s;
}

.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.cert-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cert-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.cert-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}