/* ========================================
   Manish Goel - Personal Portfolio
   Light Theme
   ======================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  color: #333333;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #004499;
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 600;
  color: #1a1a1a;
}

/* Layout */
.site-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eaeaea;
}

.nav {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: #666666;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #0066cc;
  text-decoration: none;
  border-bottom-color: #0066cc;
}

.main-content {
  flex: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

.site-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #eaeaea;
  color: #888888;
  font-size: 0.875rem;
}

.site-footer a {
  color: #666666;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #eaeaea;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid #eaeaea;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: #666666;
  margin-bottom: 1.5rem;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-link {
  padding: 0.5rem 1rem;
  border: 1px solid #0066cc;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.hero-link:hover {
  background-color: #0066cc;
  color: #ffffff;
  text-decoration: none;
}

/* Sections */
section {
  margin-bottom: 2.5rem;
}

.about p:last-child {
  margin-bottom: 0;
}

/* Experience */
.experience-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

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

.experience-item h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-date {
  font-size: 0.875rem;
  font-weight: 400;
  color: #888888;
}

.experience-role {
  color: #666666;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.experience-item ul {
  margin-bottom: 0;
}

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

.skill-category h4 {
  color: #0066cc;
  margin-bottom: 0.25rem;
}

.skill-category p {
  margin-bottom: 0;
  color: #555555;
  font-size: 0.95rem;
}

/* Education */
.education-item {
  margin-bottom: 1.5rem;
}

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

.education-item h4 {
  margin-bottom: 0.25rem;
}

.education-item p {
  margin-bottom: 0.25rem;
}

.education-note {
  font-size: 0.9rem;
  color: #666666;
  font-style: italic;
}

/* Contact */
.contact {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.contact h2 {
  margin-top: 0;
}

.contact p {
  margin-bottom: 0;
}

/* Blog List */
.blog-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
}

.blog-header p {
  color: #666666;
  margin-bottom: 0;
}

.blog-list {
  margin-bottom: 0;
}

.blog-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

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

.blog-item-date {
  font-size: 0.875rem;
  color: #888888;
  display: block;
  margin-bottom: 0.25rem;
}

.blog-item-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.blog-item-title a {
  color: #1a1a1a;
}

.blog-item-title a:hover {
  color: #0066cc;
}

.blog-item-description {
  color: #555555;
  margin-bottom: 0;
}

.no-posts {
  color: #888888;
  font-style: italic;
}

/* Single Post */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-date {
  color: #888888;
  font-size: 0.95rem;
}

.post-content {
  margin-bottom: 3rem;
}

.post-content h2 {
  margin-top: 2.5rem;
}

.post-content h2:first-child {
  margin-top: 0;
}

.post-footer {
  padding-top: 1.5rem;
  border-top: 1px solid #eaeaea;
}

.back-link {
  font-weight: 500;
}

/* Code blocks */
code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.9em;
  background-color: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

pre code {
  background: none;
  padding: 0;
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  
  .site-header {
    padding: 1rem;
  }
  
  .nav {
    justify-content: center;
  }
  
  .main-content {
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .profile-photo {
    width: 120px;
    height: 120px;
  }
  
  .experience-item h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
