:root {
      --primary-color: #1a1a1a;
      --secondary-color: #f8f8f8;
      --accent-color: #c2ff72;
      --text-color: #2c2c2c;
      --text-secondary: #666;
      --border-color: #eaeaea;
      --transition: all 0.3s ease;
      --container-width: 1200px;
      --header-height: 100vh;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* Typography */
    @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

    html, body {
      width: 100%;
      background-color: white;
      color: var(--text-color);
      line-height: 1.6;
      font-family: sans-serif;
      scroll-behavior: smooth;
    }
  
    /* Container */
    .container {
      width: 100%;
      margin: 0;
      padding: 0;
      overflow-x: hidden;
      background-color: white;
    }

    /* Header / Hero Section */
    header {
      position: relative;
      width: 100%;
      height: var(--header-height);
      background: white;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0;
      color: var(--text-color);
      overflow: hidden;
    }

    .header-content {
      position: relative;
      z-index: 2;
      width: 50%;
      padding: 0 5rem;
      opacity: 0;
      animation: fadeIn 1s ease forwards;
    }

    /* --- Desktop / Large screens --- */
.header-image {
  position: relative;
  width: 50%;               /* half of parent container */
  height: 100%;
  overflow: hidden;
  opacity: 0;
  animation: slideIn 1.8s ease forwards;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
}

.header-image img {
  width: 70%;
  height: auto;             /* maintain aspect ratio */
  max-width: 70%;
  max-height: 70vh;         /* prevent image from exceeding viewport */
  object-fit: contain;
  object-position: right center;
  transform: scale(1.05);
  transition: var(--transition);
  margin-right: 0;
}

.header-image:hover img {
  transform: scale(1);
}

/* --- Tablets (481px to 1024px) --- */
@media screen and (max-width: 1024px) and (min-width: 481px) {
  .header-image {
    width: 100%;            /* full width container */
    justify-content: center; /* center the image */
    height: 50vh;            /* smaller container height */
  }

  .header-image img {
    width: 60%;              /* smaller image */
    height: auto;
    max-width: 60%;
    max-height: 50vh;
    object-position: center;
    transform: scale(1.03);
  }

  .header-image:hover img {
    transform: scale(1);
  }
}

/* --- Smartphones (up to 480px) --- */
@media screen and (max-width: 480px) {
  .header-image {
    width: 100%;            /* full width container */
    justify-content: center;
    height: 40vh;           /* smaller container height */
  }

  .header-image img {
    width: 90%;              /* responsive width for small screens */
    height: auto;
    max-width: 80%;
    max-height: 40vh;
    object-position: center;
    transform: scale(1);     /* no zoom on mobile */
  }

  .header-image:hover img {
    transform: scale(1);     /* disable zoom on small screens */
  }
}

    header h1 {
      font-family: 'Playfair Display', serif;
      font-size: 4.5rem;
      font-weight: 500;
      line-height: 1.2;
      margin-bottom: 1.5rem;
      color: var(--primary-color);
    }

    header h2 {
      font-family: 'Inter', sans-serif;
      font-size: 1rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      margin-bottom: 2rem;
      color: var(--text-secondary);
    }

    header p {
      font-size: 1.1rem;
      line-height: 1.8;
      color: var(--text-secondary);
      margin-bottom: 1.5rem;
      max-width: 90%;
      font-family: 'Geist Mono', 'Merriweather';
    }

    /* Animations */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes slideIn {
      from { opacity: 0; transform: translateX(50px); }
      to { opacity: 1; transform: translateX(0); }
    }

    /* Section Styles */
    section {
  padding: 5rem 0;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

    section:nth-child(even) {
      background-color: white;
    }

    /* Headings */
    h2 {
      font-family:  'Poppins';
      text-align: center;
      font-size: 2.3rem;
      font-weight: 500;
      margin-bottom: 2rem;
      color: var(--primary-color);
    }

    h3 {
      font-family: 'Poppins', sans-serif;
      font-size: 1.5rem;
      font-weight: 500;
      margin-bottom: 1rem;
      color: var(--primary-color);
    }

    
    /* --- Certificates Section --- */
#certificates {
  padding: 40px 5%;
  text-align: center;
  
}

#certificates h2 {
  font-size: 2em;
  margin-bottom: 40px;
}

.certificates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.certificate-card {
  background-color: #f0f0f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* This is new */
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* New styles for the certificate image */
.certificate-image {
  width: 100%;
  height: auto;
  display: block;
}

/* New styles for the card content area */
.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Makes the card content fill available space */
}

.certificate-card h3 {
  font-size: 1.2em;
  margin: 0 0 10px 0;
  color: #333;
}

.certificate-card .issuer {
  font-size: 0.9em;
  color: #555;
  margin: 0;
  font-family: 'JetBrains Mono' ;
  flex-grow: 1; /* Pushes the button to the bottom */
}

.credential-button {
  display: block;
  background-color: #8A2BE2;
  color: #fff;
  padding: 12px 15px;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 20px; /* Adds space above the button */
}

.credential-button:hover {
  background-color: #555;
}

/* Adjusting footer social icons for better consistency */
.social-container a svg {
  width: 24px; /* Fixed size for all icons */
  height: 24px;
  fill: #333; /* A neutral color */
  transition: fill 0.3s ease;
}

.social-container a:hover svg {
  fill: #007bff; /* Change color on hover */
}

/* Removing inline styles from HTML for better practice */
.social-container a {
  display: inline-block;
  margin: 0 10px;
  /* Remove width and height from here if you've set it on the SVG */
}
    /* Mobile Styles */
    @media screen and (max-width: 480px) {
      header {
        flex-direction: column-reverse;
        height: auto;
        min-height: 100vh;
      }

      .header-content {
        width: 100%;
        padding: 2rem;
        text-align: center;
      }

      .header-image {
        width: 100%;
        height: 40vh;
        justify-content: center;
      }

      .header-image img {
        max-height: 40vh;
        object-position: center;
      }

      header h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
      }

      header h2 {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
      }

      header p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
      }

      /* Bio and Approach Section */
      .bio-section {
        flex-direction: column;
      }

      .bio-image-container {
        height: 40vh;
      }

      .bio-content {
        padding: 2rem;
      }

      .bio-content h2, 
      .approach-content h2 {
        font-size: 1.3rem;
      }

      /* Sections General */
      .section {
        padding: 60px 0;
      }

      .section-inner {
        padding: 0 1.5rem;
      }

      .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
      }

      /* Grids */
      .education-grid,
      .interests-grid,
      .skills-grid,
      .courses-grid,
      .activity-grid,
      .language-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }

      .interest-item,
      .skill-item,
      .activity-item {
        padding: 1.5rem;
      }

      /* Two Column Layouts */
      .two-column-container {
        flex-direction: column;
      }

      .section-half {
        width: 100%;
        padding: 1.5rem;
      }
    }
    #objective{
      padding-left: 100px;
      padding-right: 100px;
    }
    /* Tablet Styles */
    @media screen and (min-width: 481px) and (max-width: 768px) {
      header {
        flex-direction: column-reverse;
        height: auto;
        min-height: 100vh;
      }

      .header-content {
        width: 100%;
        padding: 3rem;
        text-align: center;
      }

      .header-image {
        width: 100%;
        height: 50vh;
        justify-content: center;
      }

      .header-image img {
        max-height: 50vh;
        object-position: center;
      }

      header h1 {
        font-size: 3rem;
      }

      /* Bio and Approach Section */
      .bio-section {
        flex-direction: column;
      }

      .bio-image-container {
        height: 50vh;
      }

      .bio-content {
        padding: 3rem;
      }

      /* Sections General */
      .section {
        padding: 80px 0;
      }

      .section-inner {
        padding: 0 2rem;
      }

      .section-title {
        font-size: 3rem;
        margin-bottom: 50px;
      }

      /* Grids */
      .education-grid,
      .interests-grid,
      .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
      }

      .courses-grid,
      .activity-grid,
      .language-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
      }
    }

    /* Small Desktop Styles */
    @media screen and (min-width: 769px) and (max-width: 1024px) {
      .header-content {
        padding: 0 3rem;
      }

      header h1 {
        font-size: 3.5rem;
      }

      .section-inner {
        padding: 0 3rem;
      }

      /* Grids */
      .education-grid,
      .interests-grid,
      .skills-grid,
      .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
      }

      .activity-grid,
      .language-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
      }
    }

    /* Large Desktop Styles */
    @media screen and (min-width: 1025px) {
      .header-content {
        padding: 0 5rem;
      }

      .section-inner {
        padding: 0 4rem;
        max-width: 1400px;
        margin: 0 auto;
      }

      /* Grids */
      .education-grid,
      .interests-grid,
      .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
      }

      .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 80px 60px;
      }

      .activity-grid,
      .language-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
      }
    }

    /* Extra Large Desktop Styles */
    @media screen and (min-width: 1440px) {
      .section-inner {
        max-width: 1600px;
      }

      .header-content {
        padding: 0 6rem;
      }

      .section-inner {
        padding: 0 5rem;
      }

      /* Grids */
      .courses-grid {
        gap: 100px 80px;
      }

      .activity-grid,
      .language-grid {
        gap: 50px;
      }
    }

    /* Print Styles */
    @media print {
      * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
      }

      .header-image,
      footer {
        display: none;
    
      }

      .section {
        page-break-inside: avoid;
        margin: 20px 0;
        padding: 20px 0;
      }
    }
/* Footer */
    footer {
      background-color: white;
      color: rgb(0, 0, 0);
      padding: 3rem;
      text-align: center;
    }

    footer p {
      font-size: 1rem;
      opacity: 0.8;
    }
.social-container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
 gap: 24px; padding: 16px 0;
}

/* Add after your existing CSS, before the media queries */

/* Skills Accordion Section */
.skills-section {
    width: 100%;
    max-width: 900px;
    margin: 5rem auto;
    padding: 0 1.5rem; /* Symmetrical padding */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Also update these specific elements to ensure consistency */
.title-group h3,
.skill p,
.skill span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.accordion-item {
    background-color: white;
   
    border-radius: 12px;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    gap: 1rem;
}

.icon {
    font-size: 1.5rem;
    color: #8A2BE2;
    width: 30px;
    text-align: center;
}

.title-group {
    flex-grow: 1;
}

.title-group h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: #000000;
}

.title-group span {
    font-size: 0.875rem;
    color: #000000;
}

.chevron {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease-in-out;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 1.5rem;
}

.skill {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #000000;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.skill p {
    margin: 0;
    width: 150px;
    flex-shrink: 0;
}

.skill span {
    font-size: 0.875rem;
    font-weight: 500;
}

.progress-container {
    flex-grow: 1;
    background-color: var(--border-color);
    border-radius: 999px;
    height: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5, #A855F7);
    border-radius: 999px;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 1rem 1.5rem;
}

.accordion-item.active .chevron {
    transform: rotate(180deg);
}

/* --- Responsive styles for Skills Section --- */

/* For Tablets and smaller desktops */
@media screen and (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}


/* For Smartphones */
@media screen and (max-width: 480px) {
    .skills-section {
        margin: 3rem auto;
        padding: 0 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 1rem;
    }

    .accordion-header {
        padding: 1rem;
        gap: 0.75rem;
    }

    .title-group h3 {
        font-size: 1rem;
    }

    .skill {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .skill p {
        width: auto; /* Allow skill name to take full width */
        font-weight: 500;
    }

    .progress-container {
        width: 100%;
    }
}




/* tech containder */

.tech-container {
        font-family: 'Inter', sans-serif;
        max-width: 800px;
        width: 100%;
        text-align: center;
        margin: 4rem auto; /* This centers the container */
        padding: 0 1.5rem; /* Adds horizontal padding for smaller screens */
        /* Reset properties inherited from the 'section' tag */
        position: static;
        left: auto;
        right: auto;
        margin-left: auto;
        margin-right: auto;
    }

    /* Heading Style */
  


    /* Paragraph Style */
    .tech-container p {
        font-size: 1rem; /* 16px */
        color: #4B5563; /* Gray color for the paragraph */
        line-height: 1.6;
        margin-bottom: 2.5rem; /* 40px */
    }

    /* Grid container for the technology badges */
    .tech-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem; /* 12px */
    }

    /* Individual technology badge style */
    .tech-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem; /* 8px */
        padding: 0.5rem 1rem; /* 8px 16px */
        background-color: #F9FAFB; /* Very light gray background */
        border: 1px solid #E5E7EB; /* Light gray border */
        border-radius: 0.5rem; /* 8px */
        font-size: 0.875rem; /* 14px */
        font-weight: 500;
        color: #374151;
        transition: all 0.2s ease-in-out;
        cursor: default;
    }

    /* Hover effect for the badges */
    .tech-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    /* Icon style within the badge */
    .tech-badge img {
        width: 20px;
        height: 20px;
    }

    /* Style for the final text */
    .tech-container .more-text {
        font-size: 1rem;
        color: #6B7280; /* Lighter gray for the final text */
        margin-top: 2.5rem; /* 40px */
        margin-bottom: 0;
    }
