/* Base Styles */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8faf8;
  --bg-card: #f3f7f3;
  --accent: #5cb85c;
  --accent-hover: #4cae4c;
  --accent-dark: #3d8b3d;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #717171;
  --border: #e0e0e0;
  --header-bg: #5cb85c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, .section-title, .experience-title, .project-title, .education-degree {
  font-family: 'Avenir Next', 'Avenir', 'Nunito', 'Inter', sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Navigation */
.nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-link {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

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

.nav-link.active {
  background: var(--accent);
  color: #ffffff;
}

.nav-link.active:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

/* Header */
.header {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  margin-bottom: 1.5rem;
  object-fit: cover;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.subline {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Social Icons */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--accent);
  color: #ffffff;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

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

/* Section Titles */
.section-title {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Summary */
.summary {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
  border: 1px solid var(--border);
}

/* Experience Cards */
.experience-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

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

.experience-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.experience-company {
  color: var(--accent);
  font-size: 0.95rem;
}

.experience-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.experience-list {
  list-style: none;
  margin-top: 1rem;
}

.experience-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.experience-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Skills Section */
.skills-category {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.skills-category-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(92, 184, 92, 0.22);
  color: #2d6b2d;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid rgba(92, 184, 92, 0.4);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: rgba(92, 184, 92, 0.32);
  border-color: rgba(92, 184, 92, 0.55);
}

/* Education */
.education-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.education-degree {
  font-weight: 600;
  color: var(--text-primary);
}

.education-school {
  color: var(--accent);
  font-size: 0.95rem;
}

.education-details {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Achievements */
.achievement-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

/* Portfolio Page */
.portfolio-intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-card-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.project-logo {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.project-logo-serpo {
  object-fit: contain;
  background: #b8c4d9;
}

.project-content {
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.project-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

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

.project-link svg {
  width: 16px;
  height: 16px;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--accent);
  color: #ffffff;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 640px) {
  .header h1 {
    font-size: 1.75rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 1rem 3rem;
  }

  .project-header {
    flex-direction: column;
    gap: 0.75rem;
  }
}
