/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  :root {
    --bg-color: rgb(32, 30, 31);
    --second-bg-color: rgb(63, 63, 63);
    --text-color: white;
    --main-color: cyan;
  }
  
  /* Set base font size; removed overflow-x: hidden to prevent cutting off content */
  html {
    font-size: 62.5%;
  }
  
  body {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0 1rem; /* Added horizontal padding for better mobile view */
  }
  
  /* Header Styling */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2%;
    background: var(--bg-color); /* Solid background so it doesn't float */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Optional drop shadow */
  }
  
  .logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 600;
  }
  
  .navbar {
    display: flex;
    gap: 1rem;
    margin-left: auto;
  }
  
  .navbar a {
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 1.5rem;
    transition: 0.3s;
    position: relative;
  }
  
  .navbar a:hover,
  .navbar a.active {
    color: var(--main-color);
  }
  
  #menu-icon {
    font-size: 2.5rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
  }
  
  .navbar.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-color);
    width: auto;
    padding: 0.5rem;
    text-align: right;
  }
  
  .navbar a {
    margin: 1rem 0;
  }
  
  /* Button Box */
  .btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
  }
  
  .btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    border: 0.2rem solid var(--main-color);
    border-radius: 0.8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
  }
  
  .btn-box .btn:hover {
    color: var(--main-color);
  }
  
  .btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: 0.5s;
  }
  
  .btn-box .btn:hover::before {
    width: 100%;
  }
  
  /* Social Icons */
  .home-sci {
    position: relative;
    bottom: 1rem;
    width: 170px;
    display: flex;
    justify-content: space-between;
  }
  
  .home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
  }
  
  .home-sci a:hover {
    color: var(--bg-color);
  }
  
  .home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: 0.5s;
  }
  
  .home-sci a:hover::before {
    width: 100%;
  }
  
  /* About Section */
  .about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-color);
    padding-bottom: 1rem;
    margin-top: 7rem; /* Ensure the header doesn't overlap content */
  }
  
  .heading {
    font-size: 5rem;
    margin-bottom: 7rem;
    text-align: center;
  }
  
  span {
    color: var(--main-color);
  }
  
  .about-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .about-img img {
    width: 85%;
    border-radius: 50%;
    border: 0.2rem solid var(--main-color);
  }
  
  .about-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: 0.2rem solid var(--bg-color);
    border-bottom: 0.2rem solid var(--bg-color);
    border-left: 0.2rem solid var(--main-color);
    border-right: 0.2rem solid var(--main-color);
    animation: aboutSpinner 8s linear infinite;
  }
  
  .about-content {
    text-align: center;
  }
  
  .about-content h3 {
    font-size: 2.6rem;
  }
  
  .about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
  }
  
  /* Education Section */
  .education {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 5rem;
  }
  
  .education .education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
  }
  
  .education-row .education-column {
    flex: 1 1 40rem;
  }
  
  .education-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
  }
  
  .education-column .education-box {
    border-left: 0.2rem solid var(--main-color);
  }
  
  .education-box .education-content {
    position: relative;
    padding-left: 2rem;
  }
  
  .education-box .education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
  }
  
  .education-content .content {
    position: relative;
    padding: 1.5rem;
    border: 0.2rem solid var(--main-color);
    border-radius: 0.6rem;
    margin-bottom: 2rem;
  }
  
  .education-content .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: 0.5s;
  }
  
  .education-content .content:hover::before {
    width: 100%;
  }
  
  .education-content .content .year {
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: 0.5rem;
  }
  
  .education-content .content .year i {
    padding-right: 0.5rem;
  }
  
  .education-content .content h3 {
    font-size: 2rem;
  }
  
  .education-content .content h4 {
    font-size: 1.8rem;
  }
  
  .education-content .content p {
    font-size: 1.6rem;
    padding-top: 0.5rem;
  }
  
  /* Skills Section */
  .skills {
    padding-bottom: 7rem;
    background: var(--bg-color);
  }
  
  .skills .skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
  }
  
  .skills-row .skills-column {
    flex: 1 1 40rem;
  }
  
  .skills-column .title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .skills-box .skills-content {
    position: relative;
    border: 0.2rem solid var(--main-color);
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
  }
  
  .skills-box .skills-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: 0.5s;
  }
  
  .skills-content .progress {
    padding: 1rem 0;
    width: 100%;
  }
  
  .skills-content .progress h3 {
    font-size: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .skills-content .progress h4 {
    font-size: 1.5rem;
    line-height: 1.6;
    margin: 1rem 0;
  }
  
  .skills-content .progress h3 span {
    color: var(--text-color);
    font-size: 1.2rem;
  }
  
  .skills-content .progress .bar {
    height: 1.4rem;
    border-radius: 12rem;
    border: 0.1rem solid var(--main-color);
    padding: 0.5rem;
    margin: 1rem 0;
    width: 100%;
  }
  
  .skills-content .progress .bar span {
    display: block;
    height: 100%;
    border-radius: 0.1rem;
    background: var(--main-color);
    width: 100%;
  }
  
  /* Project Container */
  .project-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    position: relative;
  }
  
  .text-content {
    flex: 1;
    min-width: 250px;
  }
  
  .text-content h4 {
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .project-video {
    border: 0.2rem solid var(--main-color);
    border-radius: 0.8rem;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .project-video-title {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .project-video video {
    display: block;
    max-width: 100%;
    border-radius: 0.6rem;
  }
  
  .project-container .bar {
    margin-top: 1.5rem;
    width: 100%;
  }
  
  a {
    color: inherit;
  }
  
  /* Animation */
  @keyframes aboutSpinner {
    100% {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    #menu-icon {
      display: block;
    }
    .navbar {
      display: none;
    }
    .navbar.active {
      display: flex;
    }
    .project-container {
      flex-direction: column;
      align-items: center;
    }
    .text-content,
    .project-video {
      width: 100%;
      max-width: none;
    }
    .project-video {
      margin-top: 2rem;
    }
    .project-container .bar {
      margin-top: 2rem;
    }
  }
  
