:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --primary: #4f46e5;
  --primary-soft: #e0e7ff;
  --card: #ffffff;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.nav-glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  text-decoration: none;
}

.nav-link {
  color: #1e293b;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary);
}

.hero {
  padding-top: 110px;
  padding-bottom: 80px;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.35), transparent 40%),
    radial-gradient(circle at 10% 10%, rgba(79, 70, 229, 0.3), transparent 30%),
    linear-gradient(160deg, #0f172a, #1e1b4b 60%, #312e81);
  color: #fff;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c7d2fe;
  margin-bottom: 0.6rem;
}

.hero-title {
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  color: #dbeafe;
  max-width: 760px;
}

.meta-line {
  color: #cbd5e1;
  font-size: 0.98rem;
}

.meta-line a {
  color: #e0e7ff;
  text-decoration: none;
}

.meta-line a:hover {
  text-decoration: underline;
}

.dot {
  margin: 0 8px;
}

.social-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0 20px;
  border-radius: 14px;
  text-decoration: none;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.35s ease, background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.social-expand-btn svg {
  min-width: 26px;
}

.social-expand-btn span {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.35s ease, margin-left 0.35s ease, opacity 0.2s ease;
  font-weight: 600;
}

.social-expand-btn:hover {
  width: 245px;
  justify-content: flex-start;
  transform: translateY(-2px);
  background: #ffffff;
  color: #0f172a;
}

.social-expand-btn:hover span {
  max-width: 210px;
  margin-left: 12px;
  opacity: 1;
}

.profile-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  color: #fff;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: #f1f5f9;
}

.section-title {
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-text {
  color: var(--muted);
  max-width: 900px;
  font-size: 1.04rem;
  line-height: 1.75;
}

.skill-card,
.project-card,
.edu-card,
.timeline-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.skill-card h3,
.project-card h3,
.edu-card h3,
.timeline-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.skill-card p,
.project-card p,
.edu-card p {
  margin: 0;
  color: var(--muted);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card .btn {
  margin-top: auto !important;
  align-self: flex-start;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-meta {
  font-size: 0.92rem;
  color: #6366f1;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.1rem;
}

.timeline-item li {
  margin-bottom: 0.5rem;
  color: #334155;
}

.project-media {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  border: 1px dashed #94a3b8;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.95rem;
}

.project-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.edu-card span {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-section {
  background: #0f172a;
  color: #e2e8f0;
}

.footer-section .section-title,
.footer-section .section-text {
  color: #e2e8f0;
  margin-left: auto;
  margin-right: auto;
}

.footer-section .btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
}

.footer-section .btn-primary:hover {
  opacity: 0.92;
}

.copyright {
  color: #94a3b8;
  font-size: 0.92rem;
}

@media (max-width: 991px) {
  .hero {
    text-align: left;
    padding-top: 95px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .meta-line {
    line-height: 1.75;
  }

  .dot {
    display: none;
  }

  .social-expand-btn {
    width: 56px;
    height: 56px;
  }

  .social-expand-btn:hover {
    width: 210px;
  }
}
