/* ================================================================
   Variables & Reset
================================================================ */
:root {
  --bg:         #0a0e1a;
  --bg-alt:     #0f1525;
  --surface:    #151d30;
  --surface-2:  #1c2640;
  --border:     #1e2d4a;
  --accent:     #4f8ef7;
  --accent-2:   #7b5ea7;
  --accent-grd: linear-gradient(135deg, #4f8ef7 0%, #7b5ea7 100%);
  --text:       #e2e8f0;
  --text-muted: #8892a4;
  --text-dim:   #5a6478;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,.6);
  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; }

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

img, svg { display: block; }

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

ul { list-style: none; }

/* ================================================================
   Utilities
================================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent-grd);
  border-radius: 2px;
  margin: .75rem auto 0;
}

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

/* ================================================================
   Buttons
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grd);
  color: #fff;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

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

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .35rem .9rem; font-size: .82rem; }

/* ================================================================
   Navigation
================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--accent-grd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  flex: 1;
}
.nav-links a {
  font-size: .9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: .75rem; margin-left: auto; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu li a,
.mobile-menu li .btn {
  display: block;
  padding: .6rem 0;
  color: var(--text-muted);
  font-size: .95rem;
}
.mobile-menu li a:hover { color: var(--text); }

/* ================================================================
   Hero
================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(79,142,247,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(123,94,167,.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.hero-greeting { color: var(--accent); font-size: .95rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--accent-grd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}

.hero-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: .75rem;
}

.hero-sub { color: var(--text-muted); font-size: .95rem; margin-bottom: 2.5rem; font-family: 'Fira Code', monospace; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-avatar { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }

.avatar-ring {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--accent-grd);
  padding: 3px;
  flex-shrink: 0;
}
.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(79,142,247,.3);
  animation: spin 20s linear infinite;
}
.avatar-ring { position: relative; }

.avatar-initials {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--accent-grd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.avatar-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .4rem 1rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ================================================================
   About
================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 1.05rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-grd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* ================================================================
   Skills
================================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}
.skill-category:hover { border-color: var(--accent); }

.skill-cat-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

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

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

.tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .25rem .75rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  transition: var(--transition);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================================
   Timeline (Experience)
================================================================ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -1.85rem;
  top: 1.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  z-index: 1;
}
.timeline-marker.current {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(79,142,247,.5);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: var(--transition);
}
.timeline-card:hover { border-color: var(--accent); }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}

.job-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.job-company { font-size: .9rem; color: var(--accent); font-weight: 500; }
.job-period {
  font-size: .8rem;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .25rem .75rem;
  white-space: nowrap;
  font-family: 'Fira Code', monospace;
}

.job-desc { color: var(--text-muted); font-size: .92rem; margin-bottom: 1rem; }

.job-details { color: var(--text-muted); font-size: .87rem; padding-left: 1rem; }
.job-details li { list-style: disc; margin-bottom: .45rem; }
.job-details li:last-child { margin-bottom: 0; }

/* ================================================================
   Projects
================================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}
.project-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.project-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-icon svg { width: 22px; height: 22px; color: var(--accent); }

.project-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 500;
  font-family: 'Fira Code', monospace;
}
.project-status--live { color: #22c55e; }
.project-status--soon { color: var(--accent); }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.status-dot--live {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}
.status-dot--soon {
  background: var(--accent);
  opacity: .6;
}

.project-summary {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

.project-detail {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.project-footer {
  margin-top: auto;
  padding-top: .5rem;
}

/* ================================================================
   Education
================================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}
.edu-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.edu-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.edu-icon svg { width: 22px; height: 22px; color: var(--accent); }

.edu-degree { font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: .3rem; }
.edu-institution { font-size: .85rem; color: var(--text-muted); }

/* ================================================================
   Contact
================================================================ */
.contact-intro { text-align: center; color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.05rem; }

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  min-width: 200px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.contact-icon {
  width: 48px; height: 48px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 22px; height: 22px; color: var(--accent); }

.contact-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-value { font-size: .9rem; color: var(--text); font-weight: 500; }

.cv-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 600px;
  margin: 0 auto;
}
.cv-cta p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.1rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ================================================================
   Footer
================================================================ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner { text-align: center; color: var(--text-dim); font-size: .85rem; }

/* ================================================================
   Responsive
================================================================ */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-text { order: 2; }
  .hero-avatar { order: 1; }
  .hero-cta { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .timeline { padding-left: 1.5rem; }

  .contact-card { min-width: 160px; padding: 1.5rem; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .hero-name { font-size: 2.5rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
