:root {
  --bg: #f6f7fb;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  --radius: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.04), transparent 25%),
              radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.05), transparent 25%),
              var(--bg);
  color: var(--text);
  line-height: 1.65;
  padding-bottom: 2rem;
}

/* Top Navigation */
.top-nav {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1rem;
  position: sticky;
  backdrop-filter: blur(12px);
  top: 0;
  z-index: 100;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
}

.nav-content {
  max-width: 1128px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Main Container */
.container {
  max-width: 1128px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

/* Profile Card */
.profile-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.profile-banner {
  height: 130px;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.95) 0%, rgba(124, 58, 237, 0.9) 70%);
}

.profile-info {
  padding: 0 1.5rem 1.75rem;
  position: relative;
}

.avatar-wrapper {
  margin-top: -55px;
  margin-bottom: 1rem;
}

.avatar {
  width: 124px;
  height: 124px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(124, 58, 237, 0.9));
  border: 6px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.25);
}

.profile-name {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.profile-headline {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.profile-location {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.contact-link {
  color: var(--card-bg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.18);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.contact-link.secondary {
  background: #f8fafc;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.contact-link.secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

/* Content Sections */
.section-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}

.section-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Projects */
.section-intro {
  margin-bottom: 1rem;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.project-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.project-description {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

.project-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.25rem;
}

.project-link:hover {
  text-decoration: underline;
}

.project-status {
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
}

.project-status.error {
  border-color: #ef4444;
  color: #b91c1c;
  background: #fef2f2;
}

/* About Section */
.about-text {
  color: var(--muted);
}

/* Experience Items */
.experience-item {
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px dashed var(--border);
}

.experience-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.experience-header {
  margin-bottom: 0.5rem;
}

.experience-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.experience-company {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.experience-duration {
  font-size: 0.82rem;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--border);
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  letter-spacing: 0.01em;
}

.experience-description {
  margin-top: 0.5rem;
}

.experience-description ul {
  list-style: none;
  padding-left: 0;
}

.experience-description li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.55rem;
}

.experience-description li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.skill-category {
  margin-bottom: 1rem;
}

.skill-category-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.skill-list {
  list-style: none;
}

.skill-list li {
  padding: 0.25rem 0;
  color: var(--muted);
}

/* Education Items */
.education-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}

.education-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.education-degree {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.education-school {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.education-duration {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    margin: 0.5rem auto;
    padding: 0 0.5rem;
  }

  .profile-info {
    padding: 0 1rem 1rem;
  }

  .avatar {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  .avatar-wrapper {
    margin-top: -40px;
  }

  .profile-name {
    font-size: 1.25rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-card {
    padding: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  body {
    background-color: #ffffff;
  }

  .top-nav {
    display: none;
  }

  .profile-card,
  .section-card {
    box-shadow: none;
    page-break-inside: avoid;
  }

  .profile-banner {
    height: 60px;
  }

  .avatar-wrapper {
    margin-top: -30px;
  }

  .avatar {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
  }

  .contact-link {
    color: #000000;
  }
}
