    @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400&family=Ubuntu:wght@300;400&family=Varela+Round&display=swap');


    .hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: aliceblue;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 1001;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

@media (max-width: 768px) {
  nav {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 10px;
    right: 30px;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    background-color: black;
    border-radius: 0 0 0 12px;
    box-shadow: -3px 3px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-in-out;
  }

  .nav-links li {
    text-align: right;
    width: 100%;
    padding: 10px 20px;
  }

  .nav-links li a {
    color: aliceblue;
    text-decoration: none;
    font-size: 16px;
  }

  @keyframes slideDown {
    0% {
      opacity: 0;
      transform: translateY(-20%);
    }
    100% {
      opacity: 1;
      transform: translateY(0%);
    }
  }
}






    nav {
        background-color: black;
        color: aliceblue;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-family: 'Varela Round', sans-serif;
        padding: 16px 40px; 
        margin: 0 0 80px;   
        flex-wrap: wrap;    
    }
    .home,
    .projects,
    .skills,
    .achievements,
    .resume {
    margin: 60px 0; 
    }


    nav h1 {
        font-size: 1.6rem;
    }

    body {
        background: linear-gradient(to right, #f9f9f9, #ecf2f8);
        font-family: 'Ubuntu', sans-serif;
        color: #333;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;
        scroll-behavior: smooth;
        transition: background 0.4s ease;
    }


    ul {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    ul li {
        padding: 0 20px;
    }

/* Existing style */
ul li a {
  text-decoration: none;
  color: aliceblue;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}


ul li a:hover {
  color: rgb(173, 156, 132); 
}


ul li a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: rgb(173, 156, 132);
  transition: width 0.3s ease;
}

ul li a:hover::after {
  width: 60%;
}


    main {
        padding-bottom: 120px;
    }

    footer {
        background-color: #000000;
        color: #fff;
        padding: 50px;
        text-align: center;
        margin-top: 0;
        margin-bottom: -140px;
        font-family: 'Varela Round', sans-serif;
    }

    footer a {
        color: #fff;
        text-decoration: none;
        margin: 0 15px;
        font-size: 16px;
    }

    footer a:hover {
        text-decoration: underline;
    }

    footer h4 {
        padding: 20px;
        padding-left: 80px;
        margin: 0;
    }

    footer p {
        margin: 20px;
    }

    footer h3 {
        color: #fff;
        margin-bottom: 20px;
        font-size: 1.4rem;
    }

    footer form {
        max-width: 400px;
        margin: 0 auto;
        text-align: left;
    }

    footer input {
        width: 100%;
        padding: 8px;
        margin-bottom: 10px;
    }

    footer button {
        background-color: #007bff;
        color: #fff;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
    }

    footer button:hover {
        background-color: #0056b3;
    }

    p {
        color: #666;
    }

    section {
    background: #fff;
    border-radius: 12px;
    padding: 60px 10%;
    margin: 40px 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    }


    a, button, .project-card, .achievement-card, .btn-primary {
    transition: all 0.3s ease-in-out;
    }


    .project-card:hover,
    .achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
    }



    body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: radial-gradient(circle, #e1efff 0%, #ffffff 100%);
    z-index: -1;
    animation: backgroundAnimation 20s ease-in-out infinite alternate;
    }

    @keyframes backgroundAnimation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
    }


    * {
    transition: all 0.3s ease-in-out;
    }



    section:nth-of-type(even) {
    background-color: #f0f4f8; 
    }

    section:nth-of-type(odd) {
    background-color: #ffffff;
    }


.wave {
  display: inline-block;
  animation: waveAnim 2s infinite;
}

@keyframes waveAnim {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.short-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 20px 0;
  color: #444;
}

.cta-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: 0.3s;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
}

.btn-secondary:hover {
  background-color: #007bff;
  color: white;
}

.social-links {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-links img {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;
}

.social-links img:hover {
  transform: scale(1.2);
}


    .home {
    width: 100%;
    padding: 0;
    margin-bottom: 60px; 
    background-color: #ffffff;
    }


.home-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.home-content {
  align-items: stretch; /* match height of both sides */
}

.intro-text {
  flex: 1.2;
  min-width: 320px;
  padding-right: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-text h1 {
  font-size: 3.2rem;
  font-weight: bold;
  color: #111;
  margin-bottom: 20px;
}

.intro-text h2 {
  font-size: 2rem;
  color: #555;
  margin-bottom: 20px;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
  text-align: justify;
}

.intro-image {
  flex: 1;
  min-width: 320px;
  text-align: center;
}

.intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: floatUpDown 4s ease-in-out infinite;
}


@media (max-width: 768px) {
  .home-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: 90vh; /* Makes the section take almost full screen height */
    padding: 40px 20px;
  }

  .intro-text {
    padding-right: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
  }
}



@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}


.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.btn-primary,
.btn-secondary {
  padding: 14px 30px;
  font-size: 1.1rem;
  border-radius: 30px;
}






    @media (max-width: 768px) {
        .home-content {
            flex-direction: column;
            text-align: center;
        }
    }



    .skills {
        background-color: #f3f9fe;
        max-width: 100%;
        margin: 0 auto;
        padding: 40px 0;
        margin-top: 60px;
        text-align: center;
        margin-bottom: 60px; 
    }



    .skills-wrapper {
        display: grid;
        grid-template-columns: repeat(5, minmax(150px, 1fr)); 
        gap: 30px;
        justify-items: center;
        padding: 20px;
        max-width: 1000px; 
        margin: 0 auto;     
    }


    .icon-card {
        background-color: #ffffff;
        border-radius: 11px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        width: 170px;  
        height: 170px;  
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    .icon-card:hover {
        transform: scale(1.05);
    }

    .skills h2 {
        font-size: 2.5rem;
        font-family: 'Ubuntu', sans-serif;
    }


    .icon-card img {
        max-width: 100%;
        max-height: 100%;
    }


   .skill-container{
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        cursor: pointer;
        
    
    }

    .skill-container:hover{
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }
    .skill-text {
        visibility: hidden; 
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.7); 
        color: #fff; 
        padding: 10px;
        border-radius: 5px; 
        white-space: nowrap; 
    }


    .skill-container:hover .skill-text {
        visibility: visible; 
    }

    .btn-primary {
        background-color: #007bff; 
        border-color: #007bff; 
    }


    .btn-primary:hover {
        background-color: #0056b3; 
        border-color: #004085;
    }



    @media (max-width: 768px) {
  .skills-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}




.education {
  background-color: #f7faff;
  padding: 40px 20px;
}

.education-header {
  text-align: center;
  font-size: 2.5rem;
  font-family: 'Ubuntu', sans-serif;
  margin-bottom: 30px;
}


.education-container {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}


.education-container::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0d6efd;
  border-radius: 5px;
}


.edu-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  background-color: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  gap: 20px;
}


.edu-card::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 35px;
  width: 15px;
  height: 3px;
  background-color: #0d6efd;
}


.edu-logo {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: contain;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 4px;
}


.edu-details h3 {
  font-size: 1.4rem;
  color: #0d6efd;
  margin-bottom: 5px;
}

.edu-date {
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 8px;
}

.edu-details p {
  margin: 4px 0;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}


.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}


@media screen and (max-width: 768px) {
  .education-container {
    padding-left: 20px;
  }

  .education-container::before {
    left: 12px;
  }

  .edu-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .edu-card::before {
    left: -28px;
    top: 30px;
    width: 12px;
  }

  .edu-logo {
    width: 60px;
    height: 60px;
  }
}




@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}




    .projects {
    background-color: #fdfdfd;
    padding: 40px 10%;
    margin: 20px 0 10px; 
    }

    .projects-title {
    font-size: 2.5rem;
    font-family: 'Ubuntu', sans-serif;
    text-align: center;
    margin-bottom: 0.4rem;
    padding-bottom: 40px;
    width: 100%;
    }
    .projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    }

    .project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background-color: #ffffff;
    border-radius: 11px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

    .project-pic {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    }

    .project-title {
    font-size: 1.2rem;
    margin: 10px 0 5px;
    }

    .project-details {
    font-size: 0.95rem;
    text-align: justify;
    flex-grow: 1;
    margin-bottom: 15px;
    min-height: 130px; 
    }

    .project-link {
    margin-top: auto;
    text-align: center;
    }

    .project-link.btn {
    display: inline-block;
    width: 100%;
    }


    .project-link.btn {
    display: inline-block;
    width: auto;         
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: auto;
    align-self: center;     
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    }

    .project-link.btn:hover {
    background-color: #0056b3;
    }
.achievements {
    background-color: #f9f9f9;
    margin: 10px 0 40px;
    padding: 60px 20px;
    text-align: center;
}

.achievements h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.achievement-intro {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

.achievement-intro p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.achievement-intro .btn {
    padding: 10px 25px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.achievement-intro .btn-primary {
    background-color: #007bff;
    border: none;
    color: #fff;
}

.achievement-intro .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


    body {
        margin: 0;
        padding: 0;
        background-color: aliceblue;
        font-family: 'Ubuntu', sans-serif;
        box-sizing: border-box;
        color: #333;
        max-width: 100%;
        overflow-x: hidden;
    }

    .resume {
        background-color: #eef7fb;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    font-family: 'Ubuntu', sans-serif;
    width: 100%;
    margin: 20px 0 40px;
    }

    .resume .position-relative {
    max-width: 1100px;
    width: 100%;
    padding: 60px 40px;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    }

    .resume .position-relative:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    }

    .resume h1 {
    font-size: 2.8rem;
    color: #1d1d1d;
    margin-bottom: 20px;
    }

    .resume p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    }

    .resume .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .resume .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    }

    .resume .btn-primary a {
    color: #fff;
    text-decoration: none;
    }



    @media screen and (max-width: 767px) {
        .resume {
            padding-left: 10px;
            padding-right: 10px;
        }
        .resume .position-relative {
            padding: 20px;
        }
    }


    @media screen and (max-width: 767px) {
        nav {
            flex-direction: column;
            text-align: center;
        }
        nav ul {
            flex-direction: column;
            padding: 0;
        }
        nav li {
            padding: 10px 0;
        }
        .home {
            flex-direction: column;
            text-align: center;
        }
        .img {
            max-width: 100%;
        }
        .projects-container {
            flex-direction: column;
            align-items: center;
        }
    
    }

    @media screen and (min-width: 768px) and (max-width: 991px) {
        nav li {
            padding: 10px;
        }
    }

    @media screen and (min-width: 992px) and (max-width: 1199px) {
        nav li {
            padding: 10px;
        }
    }

    @media screen and (min-width: 1200px) {
        nav {
            padding: 12px 20px;
        }
        nav li {
            padding: 0 20px;
        }
    }

    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: auto;
    }


    nav, footer {
        width: 100%;
        box-sizing: border-box; 
    }

    *, *::before, *::after {
        box-sizing: border-box;
    }
    .projects p{
        text-align: justify;
    }   

    @media only screen and (max-width: 600px) {
        .intro-text h1 {
            font-size: 1.5rem; 
            
        }

        .intro-text h2 {
            font-size: 1.2rem;
        }

        .intro-text p {
            font-size: 0.9rem; 
            margin: 0.5rem 0; 
            text-align: justify;
        }

        .intro-image img {
            max-width: 80%; 
        }
        .projects p{
            text-align: justify;
        }
    }


    .intro-image img {
        width: 100%; 
        max-width: 500px; 
        height: auto; 
        margin-top: 1rem; 
    }

    @media only screen and (max-width: 600px) {
        .achievements {
            margin-top: -2rem 
        }

  @media (max-width: 768px) {
  .social-links {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    margin-top: 20px;
  }

  .social-links a img {
    width: 30px;
    height: 30px;
  }
}

        h4 {
            font-size: 1 rem; 
            margin: -130px auto;
            justify-content: center; 
            align-items: center;
            text-align:center;
        }

        .center-container {
            padding: 10px; 
        }
    }

    html {
        scroll-behavior: smooth;
    }

    .achievement-card {
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        cursor: pointer;
    }

    .achievement-card:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }
 

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.social-links-1 {
    display: flex;
    gap: 15px;
    align-items: center;
}


  .social-links img {
  transition: transform 0.2s ease;
}

.social-links img:hover {
  transform: scale(1.2);
}

.social-links-1 img:hover {
  transform: scale(1.2);
}

  .social-links-1 img {
  transition: transform 0.2s ease;
}

    form {
        background: #000000;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-width: 500px;
        width: 100%;
        box-sizing: border-box;
    }
    input[type="email"],
    textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }
    textarea {
        resize: vertical;
    }


    input[type="email"] {
        font-family: 'Roboto', sans-serif;
    }

    textarea {
        font-family: 'Roboto', sans-serif;
    }

    .h4{
        align-items: center;
        text-align: center;
        justify-content: center;
    }


    .h4 {
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    .h4{
        align-items: center;
        text-align: center;
        justify-content: center;
    }


    .text-container {
        position: relative;
        height: 3.7em; 
        overflow: hidden;

    }

    h2.animated-text {
        display: inline-block;
        font-family: monospace;
        font-size: 15rem;
        white-space: nowrap;
        overflow: hidden;
        position: relative;
        padding-right: 0.2em; 
        border-right: 0.15em solid rgb(0, 0, 0); 
    }

    @keyframes typewriter {
        from { width: 0; }
        to { width: 100%; }
    }

    h2.animated-text {
        animation: typewriter 4s steps(40, end) infinite;
            border-right: 0.15em solid rgb(0, 0, 0); 
    }


    #animated-text::after {
    content: '|';
    animation: blink 0.8s infinite;
    margin-left: 2px;
    color: black;
    }
    @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
    }


    .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    }
    @keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    }
    p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeTextUp 1s ease forwards;
    animation-delay: 0.3s;
    }

    .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    }

    @keyframes fadeTextUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    }






#preloader {
  position: fixed;
  inset: 0;
  background-color: aliceblue;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}


.preloader-logo {
  width: 500px; 
  height: auto;
  animation: gentleZoom 2s ease-in-out forwards;
  filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.2));
}


@keyframes gentleZoom {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


body:not(.loaded) main,
body:not(.loaded) header,
body:not(.loaded) footer {
  opacity: 0;
  transition: opacity 1s ease;
}

body.loaded main,
body.loaded header,
body.loaded footer {
  opacity: 1;
}
body:not(.loaded) {
  overflow: hidden;
}