/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ----- VARIABLES ----- */
:root{
    --body-color: rgb(250, 250, 250);
    --color-white: rgb(255, 255, 255);

    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);

    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(40, 91, 212);

    --second-color: rgb(0, 201, 255);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);
}

/* ----- BASE ----- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ----- SMOOTH SCROLL ----- */
html{
    scroll-behavior: smooth;
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}

/* ---##-- REUSABLE CSS --##--- */


/* ----- GLOBAL BUTTON DESIGN ----- */
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
    /* Added below so that button text from anchor tags won’t show an underline */
    text-decoration: none;
}
a.btn {
    text-decoration: none;
}
.btn>i{
    margin-left: 10px;
}
.btn:hover>.blue-btn:hover{
    background: var(--first-color-hover);
}

/* ----- GLOBAL ICONS DESIGN ----- */
i{
    font-size: 16px;
}

/* ------- BASE -------- */
body{
    background: var(--body-color);
}
.container{
    width: 100%;
    position: relative;
}

/* ----- NAVIGATION BAR ----- */
nav{
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}
.nav-logo{
   position: relative;
}
.nav-name{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}
.nav-logo span{
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 5em;
    color: var(--text-color-second);
}
.nav-menu, .nav_menu_list{
    display: flex;
}
.nav-menu .nav_list{
    list-style: none;
    position: relative;
}
.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}
.nav-menu-btn{
    display: none;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transition: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}

 /* ========== PROJECTS SECTION ========== */
.projects-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
  }
  
  .projects-section h1 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #333;
  }
  
  /* Container for alternating project cards */
  .project-container {
    position: relative;
  }
  
  /* Common styling for each project card */
  .project-row {
    width: 60%; /* Increased width for a bigger horizontal card */
    background: #fff;
    border-radius: 10px;
    padding: 30px 25px;
    margin-bottom: 60px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
  }
  
  /* Stagger animation delays */
  .project-row:nth-child(odd) {
    animation-delay: 0.2s;
  }
  .project-row:nth-child(even) {
    animation-delay: 0.4s;
  }
  
  /* Alternating alignment */
  .project-row.left {
    margin-right: auto;
    text-align: left;
  }
  .project-row.right {
    margin-left: auto;
    text-align: left;
  }
  
  /* Hover effect */
  .project-row:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }
  
  /* Project Content */
  .project-content h2 {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 10px;
  }
  
  .project-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
  }
  
  .project-summary {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .project-link {
    display: inline-block;
    padding: 10px 18px;
    background: #6e57e0;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-bottom: 15px;
  }
  
  .project-link:hover {
    background: #285bd4;
  }
  
  /* ========== DETAILS TOGGLE ========== */
  .project-details {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
  }
  
  .details-toggle {
    cursor: pointer;
    font-weight: bold;
    color: #6e57e0;
    padding: 5px 0;
    outline: none;
  }
  
  .details-toggle::-webkit-details-marker {
    display: none;
  }
  
  .details-content {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    animation: fadeIn 0.5s ease forwards;
  }
  
  .details-content ul {
    margin: 10px 0 10px 20px;
    list-style: disc;
  }
  
  .project-skills {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #666;
  }
  
  /* ========== FADE IN ANIMATION ========== */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* ========== RESPONSIVE ADJUSTMENTS ========== */
  @media (max-width: 768px) {
    .project-row {
      width: 90%;
      margin-left: auto;
      margin-right: auto;
    }
    .project-content h2 {
      font-size: 1.6rem;
    }
  }
  
  
  /* ===== FOOTER ===== */
  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 30px;
    background: #f8f8f8;
    padding-block: 40px 60px;
    margin-top: 50px;
  }
  
  .top-footer p {
    font-size: 25px;
    font-weight: 600;
  }
  
  .middle-footer .footer-menu {
    display: flex;
  }
  
  .footer_menu_list {
    list-style: none;
  }
  
  .footer_menu_list a {
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 20px;
  }
  
  .footer-social-icons {
    display: flex;
    gap: 30px;
  }
  
  .footer-social-icons .icon {
    font-size: 20px;
    cursor: pointer;
  }
  
  .footer-social-icons .icon a {
    color: var(--text-color-second);
  }
  
  .bottom-footer {
    font-size: 14px;
    margin-top: 10px;
  }
  
  /* ===== MEDIA QUERIES ===== */
  @media only screen and (max-width: 900px) {
    .nav-menu-btn {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .nav-menu {
      position: fixed;
      top: 80px;
      left: -100%;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(20px);
      width: 100%;
      height: 90vh;
      transition: 0.3s;
    }
    .nav-menu.responsive {
      left: 0;
    }
    .nav_menu_list {
      flex-direction: column;
    }
    .wrapper {
      padding-inline: 5vw;
    }
    .project-row {
      padding: 1rem;
    }
  }
  
  @media only screen and (max-width: 540px) {
    .top-footer p {
      font-size: 20px;
    }
    .project-row h2 {
      font-size: 1.1rem;
    }
  }
  