/* ═══════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════ */
:root {
  --bg:        #080c14;
  --bg-2:      #0d1321;
  --surface:   rgba(255,255,255,0.035);
  --border:    rgba(255,255,255,0.07);
  --accent:    #00e5ff;
  --accent-2:  #7c6bff;
  --text:      #e8eaf0;
  --text-muted:#8890a4;
  --white:     #ffffff;

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --trans:     0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════
   CANVAS BACKGROUND
═══════════════════════════════════════ */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   CURSOR
═══════════════════════════════════════ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0,229,255,0.5);
  transition: width var(--trans), height var(--trans), border-color var(--trans), background var(--trans);
}
.cursor-ring.hovered {
  width: 56px; height: 56px;
  border-color: var(--accent);
  background: rgba(0,229,255,0.07);
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(760px, 92vw);
  background: rgba(8,12,20,0.6);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 60px;
  padding: 10px 20px;
  transition: box-shadow var(--trans);
}
.navbar.scrolled {
  box-shadow: 0 8px 40px rgba(0,229,255,0.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 2px;
  min-width: 36px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--trans), color var(--trans);
}
.nav-link i { font-size: 0.8rem; }
.nav-link:hover, .nav-link.active {
  background: rgba(0,229,255,0.1);
  color: var(--accent);
}

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 24px;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.section-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 56px;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  padding-top: 120px;
  align-items: center;
  justify-content: center;
}
.hero-content {
  max-width: 720px;
  z-index: 2;
}
.hero-greeting {
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  font-family: var(--font-head);
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero-title-static { color: var(--text-muted); }
.hero-title-typed {
  color: var(--accent);
  min-width: 200px;
}
.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.hero-stack span {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface);
  transition: border-color var(--trans), color var(--trans);
}
.hero-stack span:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--trans);
  cursor: none;
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,229,255,0.06);
  box-shadow: 0 0 20px rgba(0,229,255,0.15);
}
.btn-fill {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}
.btn-fill:hover {
  background: #33eaff;
  box-shadow: 0 0 30px rgba(0,229,255,0.35);
  transform: translateY(-1px);
}

/* DECO CIRCLES */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.deco-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: float 8s ease-in-out infinite;
}
.c1 { width: 400px; height: 400px; background: var(--accent); right: -100px; top: 10%; animation-delay: 0s; }
.c2 { width: 300px; height: 300px; background: var(--accent-2); right: 20%; bottom: 10%; animation-delay: -3s; }
.c3 { width: 200px; height: 200px; background: var(--accent); left: 5%; top: 60%; animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}
.about-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.avatar-placeholder {
  width: 180px; height: 180px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(124,107,255,0.15));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent);
}
.about-socials {
  display: flex;
  gap: 12px;
}
.about-socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all var(--trans);
}
.about-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,229,255,0.08);
}
.about-lead {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.4;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.about-tags span {
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--accent);
  background: rgba(0,229,255,0.06);
  font-weight: 500;
}

/* ═══════════════════════════════════════
   RESUME / TIMELINE
═══════════════════════════════════════ */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.resume-col-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.resume-col-title i { color: var(--accent); }

.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(0,229,255,0.4);
}
.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.timeline-content h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.timeline-place {
  font-size: 0.82rem;
  color: var(--accent-2);
  margin-bottom: 8px;
  font-weight: 500;
}
.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   SKILLS
═══════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.skill-category h3 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.skill-category h3 i { color: var(--accent); }
.skill-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  transition: all var(--trans);
  cursor: default;
}
.skill-card i {
  font-size: 1.1rem;
  color: var(--accent);
  width: 20px;
  text-align: center;
}
.skill-card:hover {
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.05);
  transform: translateX(4px);
}

/* ═══════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity var(--trans);
}
.project-card:hover {
  border-color: rgba(0,229,255,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.project-card:hover::before { opacity: 1; }
.project-card--placeholder {
  border-style: dashed;
  opacity: 0.5;
}
.badge-collab {
  display: inline-block;
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 7px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  vertical-align: middle;
  line-height: 1.4;
  margin-left: 4px;
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.project-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
}
.project-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--trans);
}
.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.project-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.project-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.project-stack span {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(124,107,255,0.12);
  border: 1px solid rgba(124,107,255,0.25);
  color: #a89bff;
}

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.03), transparent);
  opacity: 0;
  transition: opacity var(--trans);
}
.contact-card:hover {
  border-color: rgba(0,229,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.contact-card:hover::after { opacity: 1; }
.contact-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform var(--trans), color var(--trans);
  flex-shrink: 0;
}
.contact-card:hover .contact-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer strong { color: var(--accent); }

/* ═══════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-link span { display: none; }
  .nav-link { padding: 8px 12px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-avatar { flex-direction: row; align-items: center; }
  .resume-grid { grid-template-columns: 1fr; }
  .hero-name { letter-spacing: -1px; }
}
@media (max-width: 500px) {
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }
}
