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

html { scroll-behavior: smooth; }

body {
  background: #0a0a0f;
  color: #e2e8f0;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* =====================================================================
   Custom design tokens (kept from original)
   ===================================================================== */
.hero-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    #0a0a0f;
}

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.nav-glass {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8, #c084fc, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 9999px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-align: center;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-align: center;
}
.btn-outline:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.8);
  color: #c7d2fe;
  transform: translateY(-2px);
}

.nav-link { position: relative; transition: color 0.2s; }
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

.glow-dot {
  width: 6px; height: 6px;
  background: #6366f1; border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(99, 102, 241, 0.6);
  display: inline-block;
  flex-shrink: 0;
}

.btn-github {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  transition: all 0.25s ease;
  color: #94a3b8;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.btn-github:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
}

#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0; opacity: 0; overflow: hidden;
}
#mobile-menu.open { max-height: 300px; opacity: 1; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

/* =====================================================================
   Animations
   ===================================================================== */
@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50%       { transform: translateY(-25%); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out both; }
.animate-fade-in    { animation: fadeIn 0.8s ease-out both; }
.animate-bounce     { animation: bounce 1s infinite; }

/* =====================================================================
   Utility
   ===================================================================== */
.hidden { display: none !important; }

/* =====================================================================
   Icon sizes
   ===================================================================== */
.icon-sm  { width: 1rem;    height: 1rem; }
.icon-md  { width: 1.25rem; height: 1.25rem; }
.icon-lg  { width: 1.5rem;  height: 1.5rem; }

/* =====================================================================
   Navbar
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
}

.site-nav {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  user-select: none;
}

.nav-desktop-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
}

.nav-hire-btn {
  display: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.nav-mobile-toggle {
  color: #94a3b8;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.mobile-link:hover { color: #fff; }

.mobile-nav-cta { padding-top: 0.5rem; }

.mobile-hire-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* =====================================================================
   Hero section
   ===================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  padding-top: 4rem;
}

.hero-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out both;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: #94a3b8;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out both;
}

.hero-description {
  font-size: 1rem;
  color: #64748b;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  animation: fadeInUp 0.6s ease-out both;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 0.6s ease-out both;
}

.btn-full { width: 100%; }

.hero-scroll {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  animation: fadeIn 0.8s ease-out both;
}

.scroll-link {
  color: #475569;
  transition: color 0.2s;
}
.scroll-link:hover { color: #94a3b8; }

/* =====================================================================
   Sections
   ===================================================================== */
.section {
  padding: 6rem 1.5rem;
}

.container-xl {
  max-width: 72rem;
  margin: 0 auto;
}

.container-md {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.section-header-sm {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
}

/* =====================================================================
   About section
   ===================================================================== */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #94a3b8;
  line-height: 1.75;
}

.about-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-photo {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}

.tech-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-top: 1rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.accent { color: #818cf8; }

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

.stat-card {
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
}

.stat-card-wide { grid-column: span 2; }

.stat-num {
  font-size: 2.25rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
  font-weight: 400;
}

/* =====================================================================
   Skills section
   ===================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-card {
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-icon { font-size: 1.5rem; }

.skill-name {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.875rem;
}

/* =====================================================================
   Projects section
   ===================================================================== */
.projects-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.project-card {
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.project-icon {
  padding: 0.5rem;
  border-radius: 0.75rem;
}
.project-icon-indigo { background: rgba(99, 102, 241, 0.1); }
.project-icon-purple { background: rgba(168, 85, 247, 0.1); }
.project-icon-blue   { background: rgba(59, 130, 246, 0.1); }

.icon-indigo { color: #818cf8; }
.icon-purple { color: #c084fc; }
.icon-blue   { color: #60a5fa; }

.project-num {
  font-size: 0.75rem;
  color: #475569;
  font-family: monospace;
}

.project-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.75;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

/* =====================================================================
   Contact section
   ===================================================================== */
.contact-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.contact-desc {
  color: #64748b;
  margin-bottom: 2rem;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1.5rem;
  text-align: center;
  color: #475569;
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-link {
  color: #475569;
  transition: color 0.2s;
}
.social-link:hover { color: #94a3b8; }

/* =====================================================================
   Responsive — tablet and desktop
   ===================================================================== */
@media (min-width: 640px) {
  .hero-cta    { flex-direction: row; }
  .contact-cta { flex-direction: row; }
  .btn-full    { width: auto; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid   { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .nav-desktop-links { display: flex; }
  .nav-hire-btn      { display: inline-flex; }
  .nav-mobile-toggle { display: none; }
  #mobile-menu       { display: none !important; }

  .hero-title    { font-size: 4.5rem; }
  .hero-subtitle { font-size: 1.5rem; }

  .about-grid  { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 2.25rem; }
  .contact-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .skills-grid   { grid-template-columns: repeat(4, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}
