* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Helvetica Neue', sans-serif;
      background-color: #fafafa;
      color: #2c2c2c;
      line-height: 1.6;
    }
    a {
        color: #4D51D0;
        text-decoration: none;
    }
    a:hover {
        text-decoration: underline;
    }

    header {
      padding: 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    nav a {
      margin-left: 2rem;
      text-decoration: none;
      color: #000;
      font-weight: 600;
      position: relative;
    }
    nav a:hover {
      text-decoration: none;
    }
    nav a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 100%;
      height: 2px;
    }

    nav a:hover::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 100%;
      height: 2px;
      background-color: #7D5FFF;
      transition: 0.3s;
    }

    nav a.active::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 100%;
      height: 2px;
      background-color: #7D5FFF;
    }

    .intro {
      text-align: center;
      padding: 2rem;
    }

    h1 {
        font-size:3rem;
    }
    .intro h1 {
      font-size: 5.25rem;
    line-height: 6.5rem;
      margin: 1.5rem 0;
      margin-top: -30px;
    }
      
    .intro h3 {
      font-size: 2rem;
      font-weight:400;
      margin: 2rem 0;
    }

    .intro p {
      max-width: 720px;
      margin: 0 auto;
        font-weight:500;
      font-size: 1.125rem;
        line-height: 1.625rem;
    }
      
    .avatar-wrapper {
        position: relative;
        margin: 4rem auto;
        margin-bottom: -40px;
        max-width: 700px;
        display: flex;
        flex-wrap: wrap;
    }

    .avatar-bg {
      position: absolute;
      top: 0;
      left: 0;
      margin-top: 100px;
      z-index: -2;
    }

    .avatar-img {
      position: relative;
      max-width: 420px;
      z-index: -1;
      display: block;
      margin: 0 auto;
    }
    
    @keyframes float {
      0% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(-5px);
      }
      100% {
        transform: translateY(0);
      }
    }
      
    @keyframes rise {
      0% {
        transform: translateY(20px);
      }
      100% {
        transform: translateY(0px);
      }
    }
    
    @keyframes rise2 {
      0% {
        transform: translateY(20px);
      }
      20% {
        transform: translateY(20px);
      }
      100% {
        transform: translateY(0px);
      }
    }

    .project-img.animate {
      animation: rise .5s ease-in-out;
    }

    .section {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
        margin:4px 0;
      padding: 4rem 2rem;
        background-color: #F6F6F6;
    }

    .section.reverse {
      flex-direction: row-reverse;
    }
      
    .section.overlap {
          margin-top: -10px;
    }

    .section img {
      max-width: 100%;
      width: 400px;
      height: auto;
      margin: 1rem;
    }

    .section-text {
      max-width: 500px;
      margin: 1rem;
    }

    .section-text h2 {
      font-size: 3rem;
      margin-bottom: 1rem;
     max-width: 900px;
    }

    .section-text p {
      color: #2c2c2c;
      margin-bottom: 1rem;
    }
    
    .info {
        font-size: .9rem;
        color: #343434;
        font-weight: 400;
    }

    .btn {
      display: inline-block;
      padding: 0.5rem 2rem;
      background-color: #E4572E;
      outline: 1px solid #F6F6F6;
      outline-offset: 2px;
      color: #fff;
      text-decoration: none;
      border-radius: 24px;
      font-weight: 500;
      margin-top: 16px;
    }
    .btn:hover {
      transition: .6s;
      outline: 1px solid #E4572E;
      outline-offset: 2px;
      text-decoration: none;
    }

    footer {
      text-align: center;
      padding: 2rem;
      background: #f4f4f4;
      font-size: 0.9rem;
    }
    
    .copyright {
          font-size: 0.8rem;
    }
    h3.step { 
        max-width: 900px;
        margin: 2rem auto;
        text-align: center;
        font-size: 1.6rem;
        font-weight: 500;
        color: #178A6D
    }
    .section-title {
        text-align: center;
        margin: 2rem auto;
        margin-bottom: 2rem;
        font-size: 2rem
    }
    .section-subtitle {
        text-align: center;
        max-width: 700px;
        margin: auto;
        font-size: 1rem;
        color: #555;
    }
    .flex-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 2rem;
    }
    .marginAuto900 {
        max-width: 1000px;
        margin: auto
    }
    .card {
        flex: 1 1 250px;
        background: #ffffff;
        padding: 1.5rem;
        border-radius: 8px;
        margin: 1rem;
        text-align: left;
    }
    ul {
          margin: 0;
          padding: 0 0 0 1rem;
    }
    li {margin: .5rem 0;
    }
    .quote {
        font-style: italic;
        margin: 0;
    }
    .screenshot {
        max-width: 100%;
        height: auto;
        margin: 2rem 2rem 0 2rem;
    }
    .screenshot-flex {
        max-width: 100%;
        height: auto;
        margin: .6rem;
    }
    .hero-content {
        margin:auto;
        color: #fff;
        height:auto;
        background-color: #178A6D;
    }
    .hero-content img {
        max-width: 100%;
        width:500px;
        height: auto;
        margin: 2rem;
    }
    .hero-text {
        max-width: 500px;
        margin: auto 1rem;
    }
    .back-link {
        padding: 0 2rem;
        background-color: #178A6D;
    }
    .back-link a {
        color: white;
        text-decoration: none;
        padding: .5rem;
        border-radius: 4px;
    }
    .back-link a:hover {
        color: white;
        text-decoration: none;
        background-color: rgba(255, 255, 255, 0.1);
        transition: 0.3s;
    }
    img a, img a:hover, {
        outline: none;
        border: none;
        padding: none;
        border: none;
        cursor: pointer;
    }
    h3.description {
        margin-bottom: .6rem;
        font-weight: 400;
        line-height: 140%
    }
    #backToTop {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background-color: #5255D4;
      color: white;
      border: none;
      border-radius: 50%;
      width: 48px;
      height: 48px;
      font-size: 1.5rem;
      cursor: pointer;
      display: none; /* hidden by default */
      z-index: 999;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      transition: opacity 0.3s ease;
    }
    .about-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 3rem 2rem;
      max-width: 1100px;
      margin: 0 auto;
      background-color: #f9f9f9;
    }

    .about-inner {
      display: flex;
      flex-direction: row;
      align-items: top;
      gap: 4rem;
    }

    .avatar-container {
      position: relative;
    }

    .avatar-container img {
      width: 280px;
      height: 280px;
      border-radius: 50%;
      border: 6px solid #fff;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .bubble {
      position: absolute;
      border-radius: 50%;
      background: #9E6AD7;
    }

    .bubble.large {
      width: 60px;
      height: 60px;
      top: 20px;
      right: 0px;
    }

    .bubble.small {
      width: 24px;
      height: 24px;
      top: 90px;
      right: 30px;
    }

    .about-text {
      max-width: 700px;
      text-align: left;
    }

    .about-text h1 {
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .about-text h1 span {
      font-weight: 700;
    }

    .about-text p {
      margin-bottom: 1rem;
      font-size: 1rem;
      color: #444;
    }
    .container {
      max-width: 1200px;
      margin: auto;
      padding: 2rem;
      display: flex;
      flex-wrap: wrap;
    }

    .main {
      flex: 2;
      padding-right: 2rem;
    }

    .sidebar {
      flex: 1;
      
    }
    .sidebar .block {
      background: #ffffff;
      padding: 1.5rem;
      border-radius: 12px;
      height: fit-content;
      text-align: left;
      margin-bottom: 1.5rem;
    }
    .sidebar p {
        margin-bottom: 1rem;
    }
    .sidebar strong {
        font-weight: 500;
    }

    .profile-header {
      display: flex;
        flex-wrap: wrap;
        flex-direction: row;
      align-items: center;
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .profile-header img {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid #fff;
    }

    .resume-section {
        margin: 2rem 0;
    }
    .exp-block {
        margin: 1rem 0 1.5rem 0;
        padding-bottom: 1rem;
        border-bottom: 1px dashed #ccc;
    }
    .edu-block {
        margin: 1rem 0 1.5rem 0;
    }
    .edu-block p {
        margin-bottom: 1.5rem;
    }
    .download img {
        position: relative;
        top: 4px;
        right: 6px;
    }
    li {
              text-align: left;
        }
    .mywork-img {
            display: block;
            margin-left: -30px;
            animation: float 2s ease-in-out infinite;
        }
        .curvedarrow-img {
           margin-top: 0px;
           animation: float 2s .4s ease-in-out infinite;
        }
    .avatar-wrapper span {
        position:relative;
        top:60px;
    }
    .btn-mobile {
        display: none;
        padding: 0.5rem 2rem;
        background-color: #E4572E;
        outline: 1px solid #F6F6F6;
        outline-offset: 2px;
        color: #fff;
        text-decoration: none;
        border-radius: 24px;
        font-weight: 500;
        margin-top: 16px;
    }

/*-------------------------------------------*/
    
    @media (max-width: 900px) {
      .container {
        flex-direction: column;
      }
      .main, .sidebar {
        padding-right: 0;
      }

/*-------------------------------------------*/

    @media (max-width: 768px) {
      .section {
        flex-direction: column;
      }
      .section img {
        width: 300px;
      }
    }

/*-------------------------------------------*/
      
    @media (max-width: 767px) {
      .section {
        flex-direction: column;
      }
      .section img {
        width: 300px;
      }
      .intro h1 {
          font-size: 3.5rem;
        line-height: 3.8rem;
        }

        .intro h3 {
          font-size: 1.6rem;
        }

        .intro p {
          font-size: 1rem;
            line-height: 1.3rem;
        }
        
        * {
            text-align: center;
        }
        
        .avatar-wrapper, .avatar-bg, .avatar-img {
            max-width: 300px;
        }
        .avatar-img {
            max-width: 300px;
        }
        .mywork-img {
            display: block;
            margin-left: -30px;
            max-width: 100px;
        }
        .curvedarrow-img {
            max-height: 40px;
            margin-top: 5px;
        }
        .avatar-wrapper span {
            position: absolute;
            top: 20px;
            right: -15px;
        }
        .about-inner {
            flex-direction: column;
            align-items: center;
          }
        .pofile-header {
        flex-direction: column;
      }
        
      @media (max-width: 524px) {
        .profile-header {
        display: block;
        flex-wrap: wrap;
        flex-direction: row;
        /* align-items: center; */
        gap: 2rem;
        /* margin-bottom: 2rem; */
        }
        .intro {
              padding: 0 1.8rem;
        }  
       .intro h1 {
            font-size: 3rem;
            line-height: 3.4rem;
        }
        p {
           text-align: center;
        }
        .resume-section p {
           text-align: center;
        }
        li {
              text-align: left;
        }
        .about-text h1{
              line-height: 2rem;
        }
        .block h3, .block p {
              text-align: left;
        }
        .flex-row {
              padding: 2rem 0;
        }
        .screenshot {
              margin: 0;
        }
        .back-link {
              text-align: left;
        }
        nav {
              text-align: left;
        }
        nav a {
              margin-left: 1rem;
        }
        .hero-content img {
            margin: auto;
            max-width: 320px;
        }
        .profile-header h1 {
            line-height: 2.8rem;
            font-size: 2.5rem;
            margin: .5rem 0 1rem;
        }
        .btn-mobile {
            display: inline-block;
            padding: 0.5rem 2rem;
            background-color: #E4572E;
            outline: 1px solid #F6F6F6;
            outline-offset: 2px;
            color: #fff;
            text-decoration: none;
            border-radius: 24px;
            font-weight: 500;
            margin-top: 16px;
        }
        .btn-mobile img {
            height: 20px;
            width: 20px;
            border: none;
            border-radius: 0;
        }
        .download {
            display: none;
        }
        .section-text h2 {
            font-size: 2.5rem;
            line-height: 120%;
        }
        .section-title {
            margin: 1rem auto;
            font-size: 1.8rem;
            max-width: 280px;
        }
        h3.step {
            margin: 1rem auto !important; 
        }
     }