:root {
  --bg: #0b0f14;
  --card: rgba(18,24,38,0.92);
  --accent: #7dd3fc;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  letter-spacing: 0.03em;
}

#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.hero-grid {
  max-width: 1100px;
  margin: auto;
  padding: 10rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.hero-right {
  display: flex;
  flex-direction: column;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  gap: 1.5rem;
}

.profile-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 30px rgba(125,211,252,0.15);
  position: relative;
  z-index: 1;
  transition: none;
}

.profile-img.glitching {
  animation: imageGlitch 0.6s ease-out;
}

@keyframes imageGlitch {
  0% {
    filter: none;
    transform: translate(0, 0);
  }
  10% {
    filter: brightness(120%);
    transform: translate(-5px, 2px);
  }
  20% {
    filter: brightness(90%);
    transform: translate(5px, -2px);
  }
  30% {
    filter: brightness(110%);
    transform: translate(-3px, 1px);
  }
  40% {
    filter: brightness(95%);
    transform: translate(3px, -1px);
  }
  60% {
    filter: brightness(105%);
    transform: translate(-2px, 1px);
  }
  80% {
    filter: brightness(102%);
    transform: translate(1px, 0);
  }
  100% {
    filter: none;
    transform: translate(0, 0);
  }
}

.hero-right h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-highlights {
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1.5rem;
}

.hero-highlights li {
  display: flex;
  gap: 0.5rem;
}

.hero-highlights li::before {
  content: "→";
  color: var(--accent);
  flex-shrink: 0;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(11, 15, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 100;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  letter-spacing: 0.05em;
}

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

.nav-link.active {
  color: var(--accent);
  font-weight: 500;
}

.nav-separator {
  color: var(--border);
  user-select: none;
}

section {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 2rem;
}

.page-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.page-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section h2 {
  margin-bottom: 2.5rem;
  color: var(--accent);
  font-size: 1.2rem;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.exp-item {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  transition: border-color 0.3s ease;
}

.exp-item:hover {
  border-color: var(--accent);
}

.exp-year {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  letter-spacing: 0.1em;
}

.exp-item h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.role-desc {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.activities {
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.activities li {
  display: flex;
  gap: 0.5rem;
}

.activities li::before {
  content: "→";
  color: var(--accent);
  flex-shrink: 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
  transition: all 0.3s ease;
}

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

.card h3 {
  margin-bottom: 1rem;
}

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

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

footer p {
  margin: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  align-items: flex-start;
  font-style: normal;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-left {
    align-items: center;
  }

  .hero-right {
    text-align: left;
  }

  .hero-highlights {
    text-align: left;
  }
}