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

:root {
  --bg: #050810;
  --surface: #0b1020;
  --accent: #00f5c4;
  --accent2: #7b5cf5;
  --accent3: #f5a623;
  --text: #e8eaf0;
  --muted: #5a6075;
  --border: rgba(0,245,196,0.15);
  --card: rgba(11,16,32,0.85);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ── CANVAS ── */
#three-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  backdrop-filter: blur(12px);
  background: rgba(5,8,16,0.7);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0,245,196,0.5);
}

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

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

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

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 3rem;
}

.container { max-width: 1100px; margin: 0 auto; width: 100%; }

/* ── HERO ── */
#hero {
  justify-content: center;
  text-align: center;
  padding-top: 10rem;
  min-height: 100vh;
}

.hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 12vw, 7rem);
  line-height: 1.05;
}

.hero-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  color: var(--muted);
  margin-top: 1.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-title span { color: var(--accent3); }

.hero-location {
  margin-top: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-cta {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}

.btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(0,245,196,0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-ghost:hover {
  background: rgba(0,245,196,0.08);
  transform: translateY(-2px);
}

/* ── SECTION HEADER ── */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 3rem;
}

/* ── EXPERIENCE ── */
#experience { background: linear-gradient(180deg, transparent, rgba(7,12,28,0.6) 50%, transparent); }

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent2), transparent);
}

.exp-card {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.8rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  cursor: default;
}

.exp-card::before {
  content: '';
  position: absolute;
  left: -2.5rem; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.exp-card:hover {
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: 0 0 30px rgba(0,245,196,0.08);
}

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

.exp-company {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.exp-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent3);
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding-top: 0.3rem;
}

.exp-bullets {
  list-style: none;
  margin-top: 0.8rem;
}

.exp-bullets li {
  font-size: 0.88rem;
  color: #9aa0b8;
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
}

.exp-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── EDUCATION ── */
#education { background: linear-gradient(180deg, transparent, rgba(123,92,245,0.05) 50%, transparent); }

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

.edu-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid rgba(123,92,245,0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.edu-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}

.edu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123,92,245,0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.edu-degree {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.edu-school {
  font-size: 0.82rem;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.edu-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.gpa-badge {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: rgba(123,92,245,0.15);
  border: 1px solid rgba(123,92,245,0.3);
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--accent2);
  letter-spacing: 0.08em;
}

/* ── PROJECTS ── */
#projects { background: linear-gradient(180deg, transparent, rgba(245,166,35,0.04) 50%, transparent); }

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

.proj-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.proj-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  border-color: var(--accent3);
  box-shadow: 0 20px 50px rgba(245,166,35,0.1);
}

.proj-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.proj-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.proj-bullets { list-style: none; }

.proj-bullets li {
  font-size: 0.82rem;
  color: #9aa0b8;
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
}

.proj-bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent3);
}

/* ── SKILLS ── */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.skill-group {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.skill-group-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  padding: 0.4rem 0.9rem;
  background: rgba(0,245,196,0.07);
  border: 1px solid rgba(0,245,196,0.2);
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--text);
  letter-spacing: 0.05em;
  transition: all 0.2s;
  cursor: default;
}

.skill-tag:hover {
  background: rgba(0,245,196,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.skill-tag.purple {
  background: rgba(123,92,245,0.07);
  border-color: rgba(123,92,245,0.25);
}

.skill-tag.purple:hover {
  background: rgba(123,92,245,0.2);
  border-color: var(--accent2);
  color: var(--accent2);
}

.skill-tag.gold {
  background: rgba(245,166,35,0.07);
  border-color: rgba(245,166,35,0.25);
}

.skill-tag.gold:hover {
  background: rgba(245,166,35,0.15);
  border-color: var(--accent3);
  color: var(--accent3);
}

/* ── CONTACT ── */
#contact {
  min-height: 60vh;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, transparent, rgba(0,245,196,0.03));
}

#contact .container { text-align: center; }

.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.2s;
  padding: 1.2rem 1.8rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  min-width: 140px;
}

.contact-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,245,196,0.1);
}

.contact-item .c-icon { font-size: 1.5rem; }

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

.contact-item .c-val {
  font-size: 0.82rem;
  color: var(--text);
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── CURSOR DOT ── */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s;
  box-shadow: 0 0 10px var(--accent);
}

/* 3D card perspective */
#projects { perspective: 1000px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 5rem 1.5rem; }
  .skills-layout { grid-template-columns: 1fr; }
  .timeline { padding-left: 1.2rem; }
  .exp-card::before { left: -1.7rem; }
}
