/* ===========================
   DESIGN TOKENS
   =========================== */
:root {
  --bg: #070b14;
  --bg2: #0d1220;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(0,212,255,0.15);
  --cyan: #00d4ff;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --accent: #00d4ff;
  --text: #e2e8f0;
  --muted: #64748b;
  --card-bg: rgba(13,18,32,0.8);
  --shadow-cyan: 0 0 30px rgba(0,212,255,0.15);
  --shadow-purple: 0 0 30px rgba(139,92,246,0.15);
  --radius: 16px;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

#particleCanvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

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

/* ===========================
   GLASSMORPHISM
   =========================== */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
}

/* ===========================
   NAVIGATION
   =========================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7,11,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan);
  cursor: default;
}
.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }
.nav-links a:hover::after { transform: scaleX(1); }
.hamburger { display: none; background: none; border: none; color: var(--cyan); font-size: 1.5rem; cursor: pointer; }
.mobile-menu { display: none; list-style: none; flex-direction: column; gap: 1rem; padding: 1rem 2rem 1.5rem; border-top: 1px solid var(--glass-border); }
.mobile-menu a { text-decoration: none; color: var(--text); font-size: 1rem; }
.mobile-menu.open { display: flex; }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}
.btn:hover::before { width: 300px; height: 300px; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(0,212,255,0.7); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn-outline:hover { background: rgba(0,212,255,0.1); box-shadow: 0 0 20px rgba(0,212,255,0.3); transform: translateY(-2px); }

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  gap: 4rem;
  overflow: visible;
}
.hero-content { flex: 1; z-index: 2; min-width: 0; }
.hero-tag {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0.8;
}
.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}
.accent { -webkit-text-fill-color: unset; color: var(--cyan); text-shadow: 0 0 30px var(--cyan); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
}
.typed { color: var(--cyan); }
.cursor { color: var(--cyan); animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--cyan); text-shadow: 0 0 20px var(--cyan); }
.stat-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* Avatar */
.hero-visual {
  flex: 0 0 420px;
  width: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
/* avatar-ring must be at least as wide as the largest ring (ring3 = 320px) */
.avatar-ring { position: relative; width: 360px; height: 360px; display: flex; align-items: center; justify-content: center; }
.avatar-placeholder {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg2), rgba(0, 212, 255, 0.15));
  border: 3px solid var(--cyan);
  box-shadow: 0 0 40px rgba(0,212,255,0.5), inset 0 0 30px rgba(0,212,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
  cursor: pointer;
}
.avatar-placeholder:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 0 50px rgba(0,212,255,0.7), inset 0 0 40px rgba(0,212,255,0.2);
}
.rocket-icon {
  font-size: 5rem;
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
  animation: rocket-hover 3s ease-in-out infinite;
  user-select: none;
}
@keyframes rocket-hover {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--cyan);
  opacity: 0.3;
  animation: spin linear infinite;
}
.ring1 { width: 250px; height: 250px; animation-duration: 8s; border-style: dashed; }
.ring2 { width: 290px; height: 290px; animation-duration: 12s; animation-direction: reverse; border-color: var(--purple); }
.ring3 { width: 320px; height: 320px; animation-duration: 20s; border-style: dotted; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.floating-tag {
  position: absolute;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  white-space: nowrap;
  animation: floatTag 3s ease-in-out infinite;
}
.t1 { top: 0; left: -40px; animation-delay: 0s; }
.t2 { top: 60px; right: -40px; animation-delay: 0.5s; }
.t3 { bottom: 60px; left: -50px; animation-delay: 1s; }
.t4 { bottom: 10px; right: -20px; animation-delay: 1.5s; }
@keyframes floatTag {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; color: var(--muted); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* ===========================
   SECTIONS
   =========================== */
.section { padding: 6rem 0; position: relative; z-index: 1; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(0,212,255,0.02), transparent); }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===========================
   ABOUT
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.about-card {
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-cyan);
}
.about-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.about-card h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--cyan); margin-bottom: 0.75rem; letter-spacing: 0.05em; }
.about-card p { color: var(--muted); font-size: 0.95rem; }

/* ===========================
   SKILLS
   =========================== */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.skill-group { padding: 1.5rem; }
.skill-group-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot.purple { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.skill-items { display: flex; flex-direction: column; gap: 0.85rem; }
.skill-item { display: flex; flex-direction: column; gap: 0.35rem; }
.skill-item span { font-size: 0.85rem; color: var(--text); }
.bar { height: 5px; background: rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; }
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 8px rgba(0,212,255,0.5);
  transition: width 1.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.bar-fill.animated { width: var(--w); }

/* ===========================
   TIMELINE
   =========================== */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
}
.tl-item { padding-left: 55px; margin-bottom: 2.5rem; position: relative; }
.tl-dot {
  position: absolute; left: 7px; top: 1.5rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
}
.tl-card {
  padding: 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.tl-card:hover { transform: translateX(6px); box-shadow: var(--shadow-cyan); }
.tl-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.4rem; }
.tl-header h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--text); letter-spacing: 0.03em; }
.tl-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan); }
.tl-company { color: var(--purple); font-size: 0.85rem; font-weight: 500; margin-bottom: 1rem; }
.tl-list { list-style: none; color: var(--muted); font-size: 0.88rem; display: flex; flex-direction: column; gap: 0.4rem; }
.tl-list li::before { content: '▸ '; color: var(--cyan); }
.tl-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tl-tags span, .project-tags span {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--cyan);
}

/* ===========================
   PROJECTS
   =========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.project-card {
  padding: 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-purple); }
.project-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.project-icon { font-size: 2rem; }
.icon-link {
  font-size: 0.78rem; font-family: var(--font-mono);
  color: var(--cyan); text-decoration: none;
  border: 1px solid var(--glass-border);
  padding: 0.3rem 0.7rem; border-radius: 50px;
  transition: background 0.3s;
}
.icon-link:hover { background: rgba(0,212,255,0.12); }
.project-card h3 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 0.75rem; color: var(--text); letter-spacing: 0.03em; }
.project-card p { color: var(--muted); font-size: 0.88rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.add-card { align-items: center; text-align: center; justify-content: center; border-style: dashed; }
.add-icon { font-size: 2.5rem; color: var(--muted); margin-bottom: 0.75rem; }

/* ===========================
   CONTACT
   =========================== */
.contact-sub { text-align: center; color: var(--muted); margin-bottom: 3rem; font-size: 1rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; }
.contact-links { padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: var(--text);
  padding: 1rem; border-radius: 12px;
  transition: background 0.3s;
}
.contact-item:hover { background: rgba(0,212,255,0.07); }
.contact-icon { font-size: 1.8rem; }
.contact-item strong { color: var(--cyan); font-size: 0.85rem; letter-spacing: 0.05em; }
.contact-item div { font-size: 0.82rem; color: var(--muted); }
.contact-form { padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.05em; font-family: var(--font-mono); }
.form-group input, .form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,212,255,0.15);
}
.form-msg { text-align: center; font-size: 0.85rem; color: var(--cyan); font-family: var(--font-mono); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

/* ===========================
   ANIMATIONS & UTILITIES
   =========================== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .hero { flex-direction: column-reverse; padding: 7rem 2rem 3rem; text-align: center; gap: 2rem; }
  .hero-visual { flex: unset; width: auto; }
  .hero-btns, .hero-stats { justify-content: center; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .floating-tag { display: none; }
}
@media (max-width: 600px) {
  .skills-categories { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}
