/* Handcrafted, Clean Editorial CSS for Akshat Pandey's Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #ffffff;
  --bg-subtle: #f8f9fa;
  --text-main: #171717;
  --text-muted: #525252;
  --text-light: #737373;
  --link-color: #2563eb;
  --link-hover: #1d4ed8;
  --border-color: #e5e5e5;
  --border-subtle: #f0f0f0;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 860px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Base Image Handling */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header & Centered Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
}

/* Main Layout */
.main-content {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Intro / Profile Section */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.profile-text {
  flex: 1;
}

.profile-avatar {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 2rem 0 1rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

p strong {
  color: var(--text-main);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Links & Buttons */
.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  list-style: none;
}

.social-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.social-item a:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  text-decoration: none;
}

.social-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Dividers */
hr {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  margin: 2.5rem 0;
}

/* Tech Stacks Section */
.tech-group {
  margin-bottom: 2rem;
}

.tech-group-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
}

.tech-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Experience List */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

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

.role-company {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.role-date {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
}

.timeline-body p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Projects List */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.75rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.project-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
}

.project-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--link-color);
}

/* MEDIA QUERIES FOR ALL SCREEN SIZES */

@media (max-width: 768px) {
  .nav-container {
    padding: 0.85rem 1rem;
  }
  
  .site-nav {
    gap: 1.5rem;
  }

  .main-content {
    padding: 1.75rem 1rem 3rem;
  }

  .profile-header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-thumb {
    height: 200px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .site-nav {
    gap: 1rem;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .role-date {
    margin-top: 0.1rem;
  }

  .social-list {
    flex-direction: column;
    align-items: stretch;
  }

  .social-item a {
    justify-content: center;
  }
}
