/* ─── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #050810;
  --bg-dark:     #03050d;
  --bg-card:     #0a0f1e;
  --bg-card2:    #0d1326;
  --border:      rgba(100, 180, 255, 0.12);
  --border-hover:rgba(100, 180, 255, 0.3);
  --accent:      #38bdf8;
  --accent2:     #818cf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --text:        #e2e8f0;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;
  --white:       #ffffff;
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

a { text-decoration: none; color: inherit; }

/* ─── Stars Canvas ───────────────────────────────────── */
#stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Layout Helpers ─────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-dark {
  background: var(--bg-dark);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 56px;
  color: var(--white);
}

.accent { color: var(--accent); }

/* ─── Navigation ─────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: var(--transition);
  padding: 20px 0;
}

#navbar.scrolled {
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: box-shadow var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Mobile Menu ────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(5, 8, 16, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 100px 24px 40px;
  transform: translateY(-100%);
  transition: transform var(--transition);
}

.mobile-menu.open {
  transform: translateY(0);
  display: block;
}

.mobile-menu ul { list-style: none; }
.mobile-menu ul li { border-bottom: 1px solid var(--border); }
.mobile-menu ul li a {
  display: block;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.mobile-menu ul li a:hover { color: var(--accent); }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content { max-width: 700px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.06);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

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

.hero-name {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-name .last {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.hero-tagline {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-dim);
  max-width: 500px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 100px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.btn-primary:hover {
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition);
}

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

.btn-full { width: 100%; text-align: center; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 1s ease 0.6s both;
}

.hero-scroll span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}

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

/* ─── About ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 20px;
  font-size: 16px;
}

.about-text strong { color: var(--accent); font-weight: 600; }

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Avatar with orbits */
.about-visual {
  display: flex;
  justify-content: center;
}

.avatar-ring {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-inner {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px var(--accent-glow);
  z-index: 2;
}

.avatar-initials {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--bg);
}

.orbit {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: spin linear infinite;
}

.orbit-1 { width: 200px; height: 200px; animation-duration: 12s; border-style: dashed; }
.orbit-2 { width: 260px; height: 260px; animation-duration: 20s; animation-direction: reverse; }
.orbit-3 { width: 310px; height: 310px; animation-duration: 30s; border-style: dashed; opacity: 0.4; }

.orbit-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: spin linear infinite;
  transform-origin: 150px 150px;
}

.dot-1 { animation-duration: 12s; top: 50%; left: calc(50% - 100px); margin-top: -5px; transform-origin: 100px 5px; }
.dot-2 { animation-duration: 20s; animation-direction: reverse; top: calc(50% - 130px); left: 50%; margin-left: -5px; transform-origin: 5px 130px; }
.dot-3 { animation-duration: 30s; top: 50%; right: calc(50% - 105px); margin-top: -5px; transform-origin: -95px 5px; background: var(--accent2); box-shadow: 0 0 10px var(--accent2); }

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

/* ─── Timeline ───────────────────────────────────────── */
.timeline {
  position: relative;
  margin-bottom: 72px;
}

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

.timeline-item {
  position: relative;
  padding-left: 72px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 28px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  border: 3px solid var(--bg-dark);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition);
}

.timeline-card:hover { border-color: var(--border-hover); }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.timeline-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.company {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.timeline-year {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.timeline-points {
  list-style: none;
  margin-bottom: 20px;
}

.timeline-points li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0 4px 16px;
  position: relative;
}

.timeline-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent2);
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
}

/* Skills */
.resume-skills h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 32px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.skill-group h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.skill-bars { display: flex; flex-direction: column; gap: 14px; }

.skill-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-bar span {
  font-size: 13px;
  color: var(--text-dim);
}

.bar {
  height: 4px;
  background: rgba(100, 116, 139, 0.2);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Interests ──────────────────────────────────────── */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.interest-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition), box-shadow var(--transition);
}

.interest-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.interest-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.interest-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.interest-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Blog ───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card));
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(24px);
}

.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition);
}

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

.blog-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.blog-featured h3 { font-size: 22px; }

.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.blog-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
  align-self: flex-start;
}

.blog-read:hover { text-decoration: underline; }

/* ─── Contact ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text p {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-dim);
  font-size: 15px;
  transition: color var(--transition);
}

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

.contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.contact-link:hover .contact-icon { border-color: var(--accent); }

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.footer-copy, .footer-made {
  font-size: 13px;
  color: var(--text-muted);
}

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

[data-aos] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .avatar-ring { width: 200px; height: 200px; }
  .avatar-inner { width: 90px; height: 90px; }
  .avatar-initials { font-size: 24px; }
  .orbit-1 { width: 130px; height: 130px; }
  .orbit-2 { width: 170px; height: 170px; }
  .orbit-3 { width: 210px; height: 210px; }
  .skills-grid { grid-template-columns: 1fr; }
  .interests-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured { grid-column: 1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-name { font-size: 48px; }
  .interests-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 20px; }
  .timeline-header { flex-direction: column; gap: 8px; }
  .timeline::before { left: 16px; }
  .timeline-item { padding-left: 52px; }
  .timeline-dot { left: 8px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
