/* =========================================
   1. Base & Global Styles
   ========================================= */
   html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.6;
  }
  
  .container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
  }
  
  /* =========================================
     2. Navigation (Purple Theme)
     ========================================= */
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #6a0dad;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
    letter-spacing: -0.5px;
  }
  
  .nav a {
    margin-left: 25px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
  }
  
  .nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
  }
  
  /* =========================================
     3. Hero & About Hero
     ========================================= */
  .hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #f5f7fa;
    color: #111111;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
    margin-bottom: 15px;
    font-weight: 800;
  }
  
  .hero p {
    font-size: 1.25rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
  }
  
  .eyebrow {
    color: #6a0dad;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
  }
  
  /* =========================================
     4. Cards & Skills Grid
     ========================================= */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
  }
  
  .card {
    display: block;
    background: #ffffff;
    padding: 24px;
    border: 1px solid #eef0f2;
    text-decoration: none;
    color: #111111;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  
  .card:hover {
    transform: translateY(-8px);
    background: #e96d00; /* Orange Hover */
    border-color: #e96d00;
    box-shadow: 0 15px 30px rgba(233, 109, 0, 0.2);
  }
  
  .card:hover h3, 
  .card:hover p, 
  .card:hover .mini-tags span {
    color: #ffffff;
  }
  
  .card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #6a0dad;
    transition: color 0.3s ease;
  }
  
  .mini-tags {
    margin-top: 15px;
  }
  
  .mini-tags span {
    display: inline-block;
    background: rgba(106, 13, 173, 0.1);
    color: #6a0dad;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
  }
  
  .card:hover .mini-tags span {
    background: rgba(255, 255, 255, 0.2);
  }
  
  /* =========================================
     5. About Story & Timeline
     ========================================= */
  .about-story {
    padding: 80px 20px;
  }
  
  .timeline-item {
    border-left: 3px solid #6a0dad;
    padding-left: 25px;
    margin-bottom: 40px;
    position: relative;
  }
  
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 15px;
    height: 15px;
    background: #e96d00;
    border-radius: 50%;
  }
  
  .timeline-item h4 {
    margin: 0 0 8px 0;
    color: #6a0dad;
    font-size: 1.25rem;
  }
  
  /* =========================================
     6. Footer & Buttons
     ========================================= */
  .button {
    display: inline-block;
    padding: 12px 28px;
    background-color: #6a0dad;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s ease;
    border: none;
  }
  
  .button:hover {
    background-color: #550a8a;
    transform: translateX(5px);
  }
  
  footer {
    text-align: center;
    padding: 50px 20px;
    color: #777;
    border-top: 1px solid #eee;
  }
  
  /* =========================================
     7. Mobile Responsiveness
     ========================================= */
  @media (max-width: 768px) {
    .nav {
      flex-direction: column;
      padding: 20px;
    }
    .nav a { margin: 10px 5px; }
    .hero h1 { font-size: 2.2rem; }
  }

  .card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
  }
  
  .card-footer small {
    color: #777;
    font-weight: 500;
  }
  
  .card:hover .card-footer {
    border-top-color: rgba(255,255,255,0.2);
  }
  
  .card:hover .card-footer small {
    color: #fff;
  }

  .about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; /* This makes it stack nicely on mobile */
  }
  
  .about-text {
    flex: 1;
    min-width: 300px;
  }
  
  .about-image-wrapper {
    flex: 1;
    min-width: 300px;
  }
  /* =========================================
   8. Missing Layout Fixes
   ========================================= */

/* Fixes the hero image size */
.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Fixes the image in the About Preview section */
.profile-img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: block;
}

/* Gives the About Preview a background color to separate it from the white grid */
.about-preview {
  background-color: #f9f9f9;
  padding: 80px 0;
  border-top: 1px solid #eee;
}

/* Positions the "5.3+ Years" badge on top of the image */
.about-image-wrapper {
  position: relative;
}

.experience-badge {
  position: absolute;
  bottom: -15px;
  right: -10px;
  background: #e96d00;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(233, 109, 0, 0.3);
}

/* Align Featured Articles header */
.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-text p {
  color: #555;
  margin-bottom: 25px;
}