:root {
  --primary-color: #0077cc;
  --light-bg: #f8f9fa;
  --text-dark: #333;
  --text-light: #6c757d;
  --border-color: #ddd;
  --section-spacing: 5rem;
}

/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.text-blue {
  color: var(--primary-color);
}

.small-caps {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #e8f2ff;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* Links and Buttons */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: #005fa3;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: #e8f2ff;
  text-decoration: none;
}

/* Header and Navigation */
header {
  padding: 1.5rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eaeaea;
  margin-bottom: 2rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
}

.logo a {
  color: var(--text-dark);
  text-decoration: none;
}

nav {
  background-color: #f1f7ff;
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin-left: 1.5rem;
}

nav li:first-child {
  margin-left: 0;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--primary-color);
  background-color: rgba(0, 119, 204, 0.05);
  text-decoration: none;
}

nav a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Hero section */
.hero {
  padding: 0 0 4rem;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 2;
}

.hero-image {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 45%;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: #222;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #444;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* For mobile screens, ensure the image doesn't dominate */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse;
    gap: 30px;
  }
  
  .hero-image {
    max-width: 70%; /* Control image width on mobile */
    margin: 0 auto;
  }
  
  .hero-content {
    width: 100%;
  }
}

/* Experience timeline */
.experience-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* This centers the section */
  position: relative;    /* Add this */
  background-color: #f9f9fb;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.experience {
  max-width: 1020px;    /* Match your container max-width */
  margin: 0 auto; 
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  /*left: calc(8rem + 21px);*/
  left: 10rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #eee;
  z-index: 0;  
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

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

.timeline-date {
  flex: 0 0 8rem;
  text-align: right;
  padding-right: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  position: relative;
  padding-top: 4px;
}

.date-range {
  display: inline-block; /* This keeps the date together */
  white-space: nowrap; /* This prevents breaking within each date */
}

.timeline-date::after {
  content: '';
  position: absolute;
  top: 8px;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white; /* Add border */
  background-color: var(--primary-color);
  z-index: 1;
}

.timeline-content {
  flex: 1;
  padding-left: 2rem;
}

.timeline-content h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.job-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Expertise section */
.expertise {
  padding: 60px 0;
  background-color: #fff;
}

.expertise .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 3rem;
}

.expertise-card {
  background-color: #f9f9fb;
  padding: 30px;
  border-radius: 4px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.expertise-card h4 {
  font-size: 1.25rem;
  margin-top: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #333;
}

.expertise-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.expertise-icon {
  font-size: 1.75rem;
}

/* Forms */
form div {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
}

/* Contact page */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info ul {
  padding-left: 1.5rem;
}

.contact-info li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  margin-left: 1.5rem;
}

.copyright {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
}

/* Blog */
.blog-list {
  list-style: none;
  padding: 0;
  max-width: 680px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.blog-post {
  width: 100%;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.blog-post h2 {
  margin-bottom: 0.5rem;
}

.blog-post-meta {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.blog-post-excerpt {
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    min-height: auto;
    padding: 0 0 3rem;
    
  }
  
  .hero-container {
    flex-direction: column-reverse;
    gap: 30px;
  }
  
  .hero-content {
    flex: 3;
    width: 100%;
  }
  
  .hero-image {
    width: 80%;
    margin: 0 auto;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: column;
  }
  
  .timeline-date {
    width: 100%;
    text-align: left;
    padding-right: 0;
    padding-left: 40px;
    margin-bottom: 0.75rem;
  }
  
  .timeline-date::after {
    left: 14px;
    right: auto;
  }
  
  .timeline-content {
    padding-left: 40px;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    margin-top: 1rem;
  }
  
  .footer-links a {
    margin: 0 0.75rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}





/*New CSS to fix the timeline*/
/* Desktop timeline styling */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Position the line precisely */
.timeline::before {
  content: '';
  position: absolute;
  left: 150px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #eee;
  z-index: 0;
}

/* Timeline items */
.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

/* Date containers */
.timeline-date {
  width: 150px;
  position: relative;
  text-align: right;
  padding-right: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Date text - prevent widowing */
.date-range {
  white-space: nowrap;
  display: inline-block;
}

/* Dots */
.timeline-date::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 150px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 2px solid white;
  z-index: 1;
}

/* Content positioning */
.timeline-content {
  flex: 1;
  padding-left: 30px;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: column;
    margin-bottom: 2rem;
  }
  
  .timeline-date {
    width: 100%;
    text-align: left;
    padding-left: 40px;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .timeline-date::after {
    left: 20px;
    right: auto;
    transform: translateX(-50%);
  }
  
  .timeline-content {
    padding-left: 40px;
  }
}


/* fix mobile timeline spacing */

/* Timeline base styles */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px; /* Always keep line at far left on mobile */
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #eee;
  z-index: 0;
}

/* Mobile-specific styling */
@media (max-width: 768px) {
  /* Container for each job */
  .timeline-item {
    display: block; /* Change from flex to block */
    margin-bottom: 40px; /* Space between jobs */
    position: relative;
    padding-left: 40px; /* Space for the line and dot */
  }
  
  /* Date styling */
  .timeline-date {
    display: block;
    width: auto;
    position: relative;
    text-align: left;
    margin-bottom: 10px; /* Small gap after date */
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-light);
  }
  
  /* Date dots */
  .timeline-date::after {
    content: '';
    position: absolute;
    top: 5px;
    left: -25px; /* Position relative to item padding */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid white;
    z-index: 1;
  }
  
  /* Company and content */
  .timeline-content {
    display: block;
    padding: 0;
  }
  
  /* Company name */
  .timeline-content h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1rem;
  }
  
  /* Job title */
  .job-title {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }
  
  /* Description */
  .timeline-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
  }
  
  /* Keep date text on one line */
  .date-range {
    white-space: nowrap;
  }
}

/* For larger screens */
@media (min-width: 769px) {
  /* Original desktop styling here */
  .timeline::before {
    left: 150px;
  }
  
  .timeline-item {
    display: flex;
    margin-bottom: 3rem;
  }
  
  .timeline-date {
    width: 150px;
    text-align: right;
    padding-right: 20px;
    position: relative;
  }
  
  .timeline-date::after {
    top: 8px;
    left: auto;
    right: -6px;
    transform: none;
  }
  
  .timeline-content {
    flex: 1;
    padding-left: 30px;
  }
}

/* end of new css to fix timeline */


/* fix expertise cards look and spacing */
/* Expertise section styling */
.expertise {
  padding: 60px 0;
  background-color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.section-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Expertise grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 3rem;
}

/* Expertise card styling */
.expertise-card {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Expertise icon styling */
.expertise-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #666;
  /* Remove emoji styling if used */
  font-family: inherit;
}

/* Expertise text styling */
.expertise-card h4 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #2d3748;
}

.expertise-card p {
  color: #6c757d;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .expertise-card {
    padding: 25px;
  }
}

/* Container adjustment */
.expertise .container {
  max-width: 1200px; /* Ensure container is wide enough */
  padding: 0 15px; /* Minimal padding */
}

/* Alternative approach: grid instead of flex */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 3rem;
}

.expertise-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
}

@media (max-width: 992px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}




/* Blog header styling */
.blog-header {
  text-align: center;
  padding: 4rem 0 3rem;
  margin-bottom: 2rem;
}

.blog-header h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-header p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}



