/* Base styles */
:root {
  --primary-color: #007bff;
  --accent-color: #0056b3;
  --text-color: #2c3e50;
  --text-light: #6c757d;
  --background-color: #ffffff;
  --secondary-bg: #f8f9fa;
  --border-color: #dee2e6;
  --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Global Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--background-color);
  margin: 0;
  padding: 0;
}

/* Reset link styles */
a {
  text-decoration: none;
  color: inherit;
}

a:visited {
  color: inherit;
}

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

/* Page Layout */
.page-content {
  padding: 4rem 0;
}

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

section:last-child {
  margin-bottom: 0;
}

/* Hero Section */
.hero-section {
  background: var(--secondary-bg);
  padding: 4rem 2rem;
  margin-bottom: 4rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* Header Sections */
.blog-header,
.intro-section {
  background: var(--secondary-bg);
  padding: 4rem 2rem;
  margin-bottom: 4rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.blog-header h1,
.intro-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-description {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Section Headings */
section>h2 {
  margin-bottom: 2rem;
  text-align: center;
}

/* Section containers */
.blog-listing,
.highlights,
.recent-posts {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards and Grids */
.highlight-grid,
.post-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 0;
}

.highlight-card,
.post-card,
.blog-card {
  position: relative;
  background: var(--background-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text-color);
  text-decoration: none;
  display: block;
  height: auto;
  min-height: 200px;
}

.highlight-card:hover,
.post-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: var(--text-color);
}

.highlight-card h2,
.post-card h3,
.blog-card h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  color: var(--text-color);
}

.highlight-card p,
.post-card p,
.blog-card p {
  color: var(--text-light);
  margin: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card time,
.post-card time {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0.5rem 0;
  display: block;
}

/* Navigation */
.main-nav {
  background: var(--background-color);
  box-shadow: var(--card-shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Footer */
footer {
  background: var(--secondary-bg);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  text-align: center;
}

.footer-social {
  margin-bottom: 1rem;
}

.footer-social .social-link {
  margin: 0 0.5rem;
  font-size: 1.2rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  position: relative;
  transition: background 0.2s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--text-color);
  transition: transform 0.2s ease;
}

.menu-icon::before {
  transform: translateY(-6px);
}

.menu-icon::after {
  transform: translateY(6px);
}

.mobile-menu-btn.active .menu-icon {
  background: transparent;
}

.mobile-menu-btn.active .menu-icon::before {
  transform: rotate(45deg);
}

.mobile-menu-btn.active .menu-icon::after {
  transform: rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

.btn.secondary {
  background: var(--secondary-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Service Sections */
.service-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-area {
  padding: 1rem;
  background: var(--secondary-bg);
  border-radius: 6px;
}

.service-area h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-area li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-area li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Timeline */
.experience-timeline {
  max-width: 800px;
  margin: 2rem auto;
}

.timeline-item {
  border-left: 2px solid var(--primary-color);
  padding-left: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
}

/* View All Section */
.view-all {
  text-align: center;
  margin-top: 3.5rem;
}

.view-all a {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.1rem;
}

.view-all a:hover,
.view-all a:visited {
  color: var(--primary-color);
}

/* Contact Page */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-intro {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-card {
  background: var(--secondary-bg);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text-color);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.contact-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contact-card p {
  margin: 0;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .page-content {
    padding: 2rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  .blog-grid {
    padding: 1rem;
  }

  .blog-card {
    padding: 1.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-color);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--card-shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .hero-cta {
    flex-direction: column;
    padding: 0 1rem;
  }

  .highlight-grid,
  .service-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .highlight-grid,
  .post-grid,
  .value-props {
    grid-template-columns: 1fr;
  }

  .service-content {
    grid-template-columns: 1fr;
  }

  .blog-header,
  .intro-section {
    padding: 3rem 1rem;
  }

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

  .contact-intro {
    padding: 0 1rem;
  }
}