@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #FCFCFC;
  --bg-secondary: #FFFFFF;
  --text-primary: #000000;
  --text-secondary: #52525B;
  --text-tertiary: #a1a1aa;
  --border: #E2E8F0;
  --accent: #10B981; /* Muted emerald for small highlights */
  --nav-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  padding-bottom: 100px; /* Room for floating nav */
}

/* Layout Containers */
.container {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 2rem 0;
}

.hero-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.name {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.role {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.hero-social-link:hover {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.hero-social-link.btn-cv {
  width: auto;
  padding: 0 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  gap: 0.5rem;
}

.avatar-container {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
}

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

.project-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

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

.project-name {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
}

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

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  background: #f1f5f9;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-category h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.skill-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-secondary);
}

/* Blog and Achievements */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

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

.blog-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.blog-date {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.achievement-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  gap: 1rem;
}

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

.achievement-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.achievement-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* About Section */
.about-section {
  padding: 2rem 0;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Buttons and Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn.primary {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

.btn.primary:hover {
  background: #27272a;
}

/* Floating Navigation */
.floating-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  display: flex;
  gap: 0.25rem;
  z-index: 1000;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav-item i {
  width: 16px;
  height: 16px;
}

.nav-item span {
  display: none; /* Desktop only labels */
}

.nav-item:hover, .nav-item.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .nav-item span {
    display: inline;
  }
}

/* Experience Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -1.45rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--border);
  z-index: 10;
}

.experience-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
  transition: all 0.3s ease;
}

/* Hidden Repos */
.repo-extra {
  transition: all 0.3s ease;
}

/* Load More Button */
#load-more-btn:hover {
  color: var(--text-primary) !important;
}

#load-more-btn:hover i {
  transform: translateY(2px);
}

.experience-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

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

.exp-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  margin-right: 1rem;
}

.exp-info .title {
  font-size: 1.125rem;
  font-weight: 700;
}

.exp-info .company {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.exp-meta {
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.exp-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.on-site-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
}
