:root{
    --bg: #030014;
    --text: #cfcde7;
    --accent1: #6A5ACD;
    --accent2: #00E5FF;
    --accent3: #E93EFF;
    --white: #fff;
    --main:#1ac6ff;
    --neon:#5d00ff;      /* Purple Galaxy Neon */
    --neon-glow:#a86dff;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html , body{
    scroll-behavior: smooth;
    font-family: Poppins, sans-serif;
    height: 100%;
    width: 100%;
   /* background-color: var(--bg); */
    background: linear-gradient(120deg, #0a0a23, #381e72, #110a37);
     background-size: 200% 200%;
    animation: bgMove 8s infinite alternate ease-in-out;
   /* color: var(--text); */
   overflow-x:hidden;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
}

/* Style the overlay to cover the whole page */
#preloader {
    position: fixed;
    inset: 0;
    background: #2b145f;
    /*samebackgroundassite*/z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
    -moz-transition: opacity 0.5s ease;
    -ms-transition: opacity 0.5s ease;
    -o-transition: opacity 0.5s ease;
}

/* Hide animation */
#preloader.hide-preloader {
    opacity: 0;
    visibility: hidden;
}

.main-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 1s ease;
    -webkit-transition: opacity 2s ease, transform 1s ease;
    -moz-transition: opacity 2s ease, transform 1s ease;
    -ms-transition: opacity 2s ease, transform 1s ease;
    -o-transition: opacity 2s ease, transform 1s ease;
}

.main-content.show {
    opacity: 1;
    transform: translateY(0);
}

.container{
    width: 100%;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

.ball{
    background: var(--main);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    margin: 0 2.5rem;
    display: inline-block;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    position: relative;
    animation: bounce 1s linear infinite;
    -webkit-animation: bounce 0.8s linear infinite;
}

.ball:nth-of-type(2){
    animation-delay: 0.2s;
}

.ball:nth-of-type(3){
    animation-delay: 0.4s;
}

@keyframes bounce{
    0%{
        bottom:0;
        transform: scale(1.2,0.9);
        -webkit-transform: scale(1.2,0.9);
        -moz-transform: scale(1.2,0.9);
        -ms-transform: scale(1.2,0.9);
        -o-transform: scale(1.2,0.9);
}
    50%{
        bottom:4rem;
        transform: scale(0.9,1,1);
        -webkit-transform: scale(0.9,1,1);
        -moz-transform: scale(0.9,1,1);
        -ms-transform: scale(0.9,1,1);
        -o-transform: scale(0.9,1,1);
}
    100%{
        bottom: 0;
        transform: scale(1.2,0.9);
        -webkit-transform: scale(1.2,0.9);
        -moz-transform: scale(1.2,0.9);
        -ms-transform: scale(1.2,0.9);
        -o-transform: scale(1.2,0.9);
}
}

/* Cursor Styles */
.cursor{
    z-index:999;
    background: #2696E8;
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50% ;
    pointer-events: none;
    box-shadow: 0 0 #2696E8 , 0 0 #2696E8 , 0 0 #2696E8 ;
    -webkit-border-radius: 50% ;
    -moz-border-radius: 50% ;
    -ms-border-radius: 50% ;
    -o-border-radius: 50% ;
    animation: colors 5s infinite;
    -webkit-animation: colors 5s infinite;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    display: none;
}

@keyframes colors {
    0%{
        filter: hue-rotate(0deg);
        -webkit-filter: hue-rotate(0deg);
}
100%{
    filter: hue-rotate(360deg);
    -webkit-filter: hue-rotate(360deg);
}
}

.cursor:before{
    content: "";
    position: absolute;
    background: #2696E8;
    width: 50px;
    height: 50px;
    opacity: 0.2;
    transform: translate(-30% , -30%);
    border-radius: 50% ;
    -webkit-transform: translate(-30% , -30%);
    -moz-transform: translate(-30% , -30%);
    -ms-transform: translate(-30% , -30%);
    -o-transform: translate(-30% , -30%);
    -webkit-border-radius: 50% ;
    -moz-border-radius: 50% ;
    -ms-border-radius: 50% ;
    -o-border-radius: 50% ;
}

@keyframes bgMove {
    0%{ background-position: left; }
    100%{ background-position: right; }
}

@media (max-width: 1000px){
  .cursor{
    display: none !important;
  }
}

 @media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Navbar Styling */
nav{
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.5);
    position: fixed;
    width: 60%;
    padding: 1rem 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    top: 2rem;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    -webkit-border-radius: 60px;
    -moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span{
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  margin: 5px 0;
  border-radius: 3px;
  transition: 0.4s;
}

.nav-logo img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
    transition: .3s;
    -webkit-transition: .3s;
    -moz-transition: .3s;
    -ms-transition: .3s;
    -o-transition: .3s;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}


/* Hover Effect */
.nav-logo img:hover {
    transform: scale(1.15) rotate(5deg);
    border-color: #a56bff;
    box-shadow: 0 0 15px #b98aff;
}

/* Menu Links */
.nav-links{
    list-style:none;
    display:flex;
    gap:3.5rem;               
}

/* HOVER EFFECT */
.nav-links li a{
    text-decoration:none;
    color:var(--white);
    font-weight:600;
    font-size:1.1rem;
    position:relative;
    padding:6px 0;
    transition:0.3s ease;
}

/* NEON UNDER-GLOW ANIMATION */
.nav-links li a::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-3px;
    transform:translateX(-50%);
    width:0%;
    height:3px;
    border-radius:10px;
    background:linear-gradient(90deg , var(--neon) , var(--neon-glow) , var(--neon));
    box-shadow:0 0 10px var(--neon-glow);
    transition:0.35s ease;
}

/* Hover final effect */
.nav-links li a:hover{
    color:var(--neon-glow);
    text-shadow:0 0 10px var(--neon),0 0 20px var(--neon-glow);
}
.nav-links li a:hover::after{
    width:120%;       
}

/* Mobile Navbar */
@media (max-width: 1000px) {

   nav {
    position: fixed;
    left: 15%;
    width: 72%;
    padding: 0.8rem 1.2rem;
    transform: none !important;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.15);
    isolation: isolate;
    backdrop-filter: none !important;
    z-index: 9999;
    -webkit-border-radius: 60px;
    -moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
}

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 10000;
  }

  .nav-links {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: #050212 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 0;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 40px 80px rgba(0,0,0,0.9);
    transition: 0.4s ease;
    z-index: 999;
    -webkit-transition: 0.4s ease;
    -moz-transition: 0.4s ease;
    -ms-transition: 0.4s ease;
    -o-transition: 0.4s ease;
}

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li a {
    font-size: 1.2rem;
  }
}

/* ======================
   HAMBURGER ANIMATION
====================== */

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


/* Hero Section */

#hero{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
    padding: 0 9rem;
    width: 100%;
}

.hero-content{
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 🔥 main fix */
    text-align: left;
}

.hero-greet{
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    color: #ffffffcc;
    font-weight: 500;
}  

.glow{
     position: absolute;
    inset: -50px;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(168,109,255,0.6),
        rgba(94,231,255,0.4),
        transparent 70%
    );
    filter: blur(70px);
    animation: glowMove 7s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes glowMove{
     0%{
        transform: translate(-15px, -10px);
    }
    100%{
        transform: translate(15px, 10px);
    }
}

.hero-name{
    position: relative;
    /* font-size: 4.5rem; */
    font-weight: 800;
    letter-spacing: -1px;
     font-size: clamp(3.2rem, 6vw, 4.8rem);
    line-height: 1.1;
    background: linear-gradient(
        90deg,
        #b983ff,
        #7aa2ff,
        #9be7ff,
        #b983ff
    );

    background-size: 300% 100%;
    animation: textShift 4s ease-in-out infinite;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    z-index: 1;
}

@keyframes textShift{
       0%{
        background-position: 0% 50%;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0% 50%;
    }
}

.hero-sub{
    max-width: 750px;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #d6d4ff;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-controls{
    display: flex;
    align-items: center;
    gap: 14px;
    /* margin-top: 18px; */
}

#primary-btn{
    padding: 12px 26px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    background: linear-gradient(90deg, #7a5cff, #9be7ff);
    color: #000;
    cursor: pointer;
}

#settingsBtn , #musicToggle{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

@media (max-width: 1000px) {
    #hero {
        padding: 0 1rem;
        padding-top: 0;
        min-height: 100vh;
        padding-bottom: 0;
        margin: auto;
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .hero-greet {
        font-size: 1.8rem; /* Bigger on mobile */
    }

    .hero-name {
        font-size: clamp(2.5rem, 8vw, 4.2rem); /* Proper scaling for mobile */
    }

    .hero-greet {
        font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    }

    .hero-sub {
        font-size: clamp(1.1rem, 4.5vw, 1.8rem); /* Scales with viewport */
        line-height: 1.5;
    }

    .hero-controls {
        justify-content: center;
    }

    #primary-btn {
        padding: 14px 30px;
        font-size: 1.1rem;
    }

    #settingsBtn, #musicToggle {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* About Section */

#about{
    display: flex;
    max-width: 1200px;
    margin: auto;
    padding: 0 9rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
    width: 100%;
}

.about-content{
    align-items: center;
    max-width: 1100px;
    display: flex;
    gap:5rem;
    width: 100%;
}

.about-title{
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    position: relative;
}

.about-title::after{
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--neon), var(--neon-glow));
    border-radius: 10px;
}

.about-content{
    max-width: 920px;
}

.about-content p{
    color: #d6d4ff;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.95;
}

.about-image{
    position: relative;
    width: 300px;          /* 👈 width kam */
    height: 360px;         /* 👈 height zyada */
    margin-left: auto;
    border-radius: 20px;
    overflow: hidden;      /* IMPORTANT */
    cursor: pointer;
    flex-shrink: 0;
}

.about-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;     /* 🔥 rectangle me perfect */
    border-radius: 20px;
    z-index: 2;
    position: relative;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.image-glow{
    position: absolute;
    inset: -25px;
    background: radial-gradient(circle at top,rgba(168,109,255,0.7),rgba(94,231,255,0.4),transparent 70%);
    filter: blur(55px);
    opacity: 0.6;
    z-index: 1;
    transition: 0.6s ease;
    -webkit-transition: 0.6s ease;
    -moz-transition: 0.6s ease;
    -ms-transition: 0.6s ease;
    -o-transition: 0.6s ease;
}

.about-image:hover img{
    transform: translateY(-12px) scale(1.05) rotate(-1deg);
    filter: drop-shadow(0 0 25px var(--neon-glow));
    -webkit-filter: drop-shadow(0 0 25px var(--neon-glow));
}

.about-image:hover .image-glow{
    opacity: 1;
    filter: blur(65px);
}

@media (max-width: 1000px) {
    #about {
        padding: 3rem 1rem; /* Clean padding for mobile */
        justify-content: center;
    }

    .about-content {
        flex-direction: column; /* Stack vertically */
        gap: 2rem; /* Smaller gap */
        text-align: center; /* Center text */
        align-items: center;
    }

    .about-title {
        font-size: clamp(1.8rem, 5vw, 2.4rem); /* Responsive title */
        text-align: center; /* Center title */
    }

    .about-title::after {
        margin: 8px auto; /* Center underline */
    }

    .about-content p {
        font-size: clamp(0.95rem, 3vw, 1rem); /* Responsive font */
        line-height: 1.8;
    }

    .about-image {
        width: 90vw; /* Responsive width */
        max-width: 400px;
        height: auto;
        aspect-ratio: 3/4;
        margin: 0 auto; /* Center image */
    }
}

/* Skills Section */

#skills{
    display: flex;
    padding-top: 5rem; 
    padding-bottom: 5rem;
}

.sub-title{
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    position: relative;
}

.sub-title::after{
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--neon), var(--neon-glow));
    border-radius: 10px;
}

#skills{
    opacity: 1;
    pointer-events: auto;
    display: flex;
    flex-wrap: wrap;
}

.skill-container{
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 0;
}

.skill-heading{
    align-items: center;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 5px;
    margin-bottom: 50px;
    color: var(--white);
}

.bar{
    font-size: 30px;
}

.techincal-bars{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 60px;
    row-gap: 30px;
}

.techincal-bars .bar{
    margin: 40px 0;
}

.techincal-bars .bar:first-child{
    margin-top: 0;
}

.techincal-bars .bar:last-child{
    margin-bottom: 0;
}

.techincal-bars .bar .indfo{
    margin-bottom: 5px;
}

.techincal-bars .bar .indfo span{
    font-size: 17px;
    font-weight: 500;
    color: white;
    letter-spacing: 0.5px;
    text-shadow:
        0 0 6px var(--neon),
        0 0 14px var(--neon-glow);
    animation: showtext 0.5s 1s linear forwards;
    -webkit-animation: showtext 0.5s 1s linear forwards;
    opacity: 1;
}

.techincal-bars .bar .progess-line{
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    width: 100%;
    height: 5px;
    background-color: #000;
    animation: animate 1s cubic-bezier(1,0,0.5,1) forwards;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    -webkit-animation: animate 1s cubic-bezier(1,0,0.5,1) forwards;
    transform: scaleX(0);
    transform-origin: left;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    -ms-transform: scaleX(0);
    -o-transform: scaleX(0);
}

@keyframes animate{
    100%{
        transform: scaleX(1);
        -webkit-transform: scaleX(1);
        -moz-transform: scaleX(1);
        -ms-transform: scaleX(1);
        -o-transform: scaleX(1);
}
}

.techincal-bars .bar .progess-line span{
    height: 100%;
    background-color: #0ef;
    position: absolute;
    border-radius: 10px;
    animation:animate 1s 1s cubic-bezier(1,0,0.5,1) forwards;
    transform: scaleX(0);
    transform-origin: left center;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    -webkit-animation:animate 1s 1s cubic-bezier(1,0,0.5,1) forwards;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    -ms-transform: scaleX(0);
    -o-transform: scaleX(0);
}

.progess-line.html span{
    width: 90%;
}

.progess-line.css span{
    width: 70%;
}

.progess-line.javascript span{
    width: 85%;
}

.progess-line.python span{
    width: 80%;
}

.progess-line.react span{
    width: 80%;
}

.progess-line.django span{
    width: 75%;
}

.progess-line.github span{
    width: 85%;
}

.progess-line.tailwindcss span{
    width: 65%;
}

.progess-line.nodejs span{
    width: 75%;
}

.progess-line.bootstrap span{
    width: 70%;
}

.progess-line.c span{
    width: 80%;
}

.progess-line span::after{
    position: absolute;
    padding: 1px 8px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    top: -28px;
    right: -20px;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    -webkit-animation: showText 0.5s 1.5s linear forwards;
}

.progess-line.html span::after{
    content: "90%";
}

.progess-line.css span::after{
    content: "70%";
}

.progess-line.javascript span::after{
    content: "85%";
}

.progess-line.python span::after{
    content: "80%";
}

.progess-line.react span::after{
    content: "80%";
}

.progess-line.django span::after{
    content: "75%";
}

.progess-line.github span::after{
    content: "85%";
}

.progess-line.tailwindcss span::after{
    content: "65%";
}

.progess-line.nodejs span::after{
    content: "75%";
}

.progess-line.bootstrap span::after{
    content: "70%";
}

.progess-line.c span::after{
    content: "80%";
}

.progess-line span::before{
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-bottom-width: 0px;
    border-right-width: 0px;
    top: -10px;
    right: 0;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
    -webkit-animation: showText 0.5s 1.5s linear forwards;
}

@keyframes showText{
    100%{
        opacity: 1;
    }
}

/* Responsive Skills Section */
@media (max-width: 1000px) {
    .sub-title {
        font-size: clamp(1.8rem, 5vw, 2.4rem); 
        text-align: center; 
    }

    #skills{
        padding-top: 3rem;
        padding-bottom: 3rem;
        opacity: 1;
    }

    .sub-title::after {
        margin: 8px auto; /* Center underline */
    }

    .skill-container {
        padding: 0 1rem; /* Reduced padding */
    }

    .skill-heading {
        margin-bottom: 30px; /* Smaller margin */
        font-size: clamp(1.5rem, 4vw, 2.4rem); /* Responsive heading font */
         text-shadow:
        0 0 6px var(--neon),
        0 0 14px var(--neon-glow);
        color: white;
    }

    .bar {
        font-size: 24px; /* Smaller bar font */
    }

    .techincal-bars {
        grid-template-columns: 1fr; /* Single column on mobile */
        column-gap: 0;
        row-gap: 15px; /* Reduced gap */
    }

    .techincal-bars .bar {
        margin: 15px 0; /* Reduced margins */
    }

    .techinal-bars .bar {
        margin: 20px 0; /* Reduced margins */
    }

    .techincal-bars .bar .indfo span {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem); /* Responsive info font */
         text-shadow:
        0 0 6px var(--neon),
        0 0 14px var(--neon-glow);
        color: white;
    }

    .progess-line span::after {
        font-size: 10px; 
        padding: 1px 6px; 
    }
}

/* Journey Section */

#journey{
    padding: 120px 0;
  position: relative;
}

.journey-title{
    padding-left: 20%;
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    position: relative;
}

.journey-title::after{
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--neon), var(--neon-glow));
    border-radius: 10px;
}

.timeline {
  position: relative;
  max-width: 960px;
  margin: auto;
  padding: 80px 20px;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--neon),
    var(--accent2),
    var(--neon)
  );
  top: 0;
  bottom: 0;
  margin-left: -2px;
  left: 50%;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  -webkit-transition: all 0.6s ease-out;
  -moz-transition: all 0.6s ease-out;
  -ms-transition: all 0.6s ease-out;
  -o-transition: all 0.6s ease-out;
  -webkit-transform: translateY(20px);
  -moz-transform: translateY(20px);
  -ms-transform: translateY(20px);
  -o-transform: translateY(20px);
}

.timeline-item.left {
  left: 0;
  transform: translateX(-40px) translateY(20px);
  -webkit-transform: translateX(-40px) translateY(20px);
  -moz-transform: translateX(-40px) translateY(20px);
  -ms-transform: translateX(-40px) translateY(20px);
  -o-transform: translateX(-40px) translateY(20px);
}

.timeline-item.right {
  left: 50%;
  transform: translateX(40px) translateY(20px);
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--neon);
  border-radius: 50%;
  top: 20px;
  z-index: 5;
  box-shadow:
    0 0 10px var(--neon),
    0 0 25px var(--neon-glow);
}

.timeline-item.left::before {
  right: -10px;
}

.timeline-item.right::before {
  left: -10px;
}

.timeline-item .content {
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  position: relative;
  transition: 0.4s ease;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.timeline-item .content:hover {
  transform: translateY(-8px);
  box-shadow:    0 0 20px var(--neon),    0 0 40px rgba(168,109,255,0.6);
  -webkit-transform: translateY(-8px);
  -moz-transform: translateY(-8px);
  -ms-transform: translateY(-8px);
  -o-transform: translateY(-8px);
}

.icon {
  font-size: 30px;
  color: #00c853;
  margin-bottom: 10px;
  display: inline-block;
  transform: scale(0.8);
  transition: transform 0.5s ease-in-out 0.3s;
  -webkit-transition: transform 0.5s ease-in-out 0.3s;
  -moz-transition: transform 0.5s ease-in-out 0.3s;
  -ms-transition: transform 0.5s ease-in-out 0.3s;
  -o-transition: transform 0.5s ease-in-out 0.3s;
}

.timeline-item.show .icon {
  transform: scale(1.3);
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

p {
  font-size: 1rem;
  opacity: 0.9;
}

@media (max-width: 768px) {

  .journey-title {
    padding-left: 0;
    text-align: center;
  }

  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-item::before {
    left: 10px;
  }

  .timeline-item.left::before,
  .timeline-item.right::before {
    left: 10px;
    right: auto;
  }
}

@media (max-width:1000px){
    .journey{
        padding-top: 50%;
    }
    .journey-title{
        font-size: clamp(1.8rem, 5vw, 2.4rem);
        text-align: center;
        padding-left: 0;
        padding-bottom: 2rem;
    }
    .journey-title::after {
        margin: 8px auto; /* Center the underline */
    }
}

/* Project Section */

#projects{
    padding: 6rem 8%;
}

.projects-title{
    padding-left: 20%;
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    position: relative;
}

.projects-title::after{
    content: "";
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg,#a86dff,#5ee7ff);
    display: block;
    margin-top: 10px;
    border-radius: 10px;
}

/* 🔥 ALWAYS 2 CARDS PER ROW */
.projects-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

/* CARD */
.project-card{
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(168,109,255,0.4);
    border-radius: 28px;
    padding: 2.4rem;
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    transition: 0.4s ease;
}

.project-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(168,109,255,0.35);
}

.project-card h3{
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.project-card p{
    color: #d6d4ff;
    line-height: 1.6;
}

/* 🔥 MAGIC ALIGNMENT */
.project-footer{
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* TECH TAGS */
.project-tech{
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-tech span{
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(168,109,255,0.6);
    color: #bda6ff;
}

/* BUTTONS */
.project-links{
    display: flex;
    gap: 1rem;
}

.project-links a{
    padding: 10px 22px;
    border-radius: 25px;
    background: linear-gradient(90deg,#7a5cff,#9be7ff);
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.project-links a:hover{
    transform: scale(1.05);
}

/* 📱 MOBILE */
@media (max-width: 1000px){
    .projects{
        padding-top: 50%;
    }
    .projects-title{
        font-size: clamp(1.8rem, 5vw, 2.4rem);
        text-align: center;
        padding-left: 0;
        padding-bottom: 1rem;
    }
    .projects-title::after {
        margin: 8px auto; /* Center the underline */
    }
    .projects-grid{
        grid-template-columns: 1fr;
    }

    .projects{
        padding: 4rem 6%;
    }
}

/* ============== EXTRA SMALL DEVICES (Phones) ============== */
@media (max-width: 768px) {
    html, body {
        font-size: 14px;
    }

    #hero {
        padding-left: 1rem;
        padding-top: 100px;
        min-height: 70vh;
        padding-bottom: 2rem;
    }

    .hero-greet {
        font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    }

    #primary-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    #settingsBtn, #musicToggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    #about {
        padding: 3rem 1rem;
    }

    .about-image {
        width: 100%;
        max-width: 300px;
    }

    nav {
        position: fixed;
        left: 10px;
        right: 10px;
        width: auto;
        padding: 0.6rem 1rem;
        top: 1rem;
        gap: 15px;
    }

    .nav-logo img {
        width: 50px;
        height: 50px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.3rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .techincal-bars {
        grid-template-columns: 1fr;
        row-gap: 15px;
    }
}

@media (max-width: 480px) {
    #hero {
        padding-top: 110px;
        min-height: 60vh;
    }

    .hero-greet {
        font-size: clamp(1rem, 3vw, 1.4rem);
    }

    .hero-controls {
        flex-wrap: wrap;
        gap: 10px;
    }

    nav {
        padding: 0.5rem 0.8rem;
        gap: 10px;
    }

    .nav-logo img {
        width: 45px;
        height: 45px;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
    }

    #about {
        padding: 2rem 0.8rem;
    }

    .about-image {
        max-width: 280px;
    }

    .project-card {
        padding: 1.2rem;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }

    .project-card p {
        font-size: 0.9rem;
    }

    .timeline::after {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
        padding-right: 15px;
    }

    .timeline-item::before {
        left: 6px;
    }

    .footer-shlok .shlok {
        font-size: 1.5rem;
    }

    .footer-shlok .shlok-sub {
        font-size: 1.1rem;
    }
}

/* Footer Section */
#footer{
    margin-top: 0;
    padding-top: 2rem;
    margin-bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(15,10,40,0.6),
        rgba(10,5,30,0.95)
    );
    border-top: 1px solid rgba(168,109,255,0.4);
    backdrop-filter: blur(25px);
}

.footer-shlok {
    text-align: center;
    padding: 3rem 1rem 1.5rem;
    color: #d6d4ff;
    font-family: "Poppins", sans-serif;
}

.footer-shlok .shlok {
    font-size: 2rem;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 0.6rem;
}

.footer-shlok .shlok-sub {
    font-size: 1.5rem;
    opacity: 1;
    font-style: italic;
}

.footer-container{
    max-width: 1200px;
    margin: auto;
    padding: 4rem 6%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

/* BRAND */
.footer-brand h3{
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links h4{
    color: var(--white);
}

.footer-brand p{
    color: #d6d4ff;
    line-height: 1.7;
    max-width: 400px;
}

/* LINKS */
.footer-links h4,
.footer-social h4{
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-social h4{
    color: var(--white);
}

.footer-links ul{
    list-style: none;
}

.footer-links li{
    margin-bottom: 0.6rem;
}

.footer-links a{
    color: #d6d4ff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover{
    color: #9be7ff;
    padding-left: 6px;
}

/* SOCIAL */
.social-icons{
    display: flex;
    gap: 1rem;
}

.social-icons a{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(168,109,255,0.6);
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    color: white;
    transition: 0.35s;
}

.social-icons a:hover{
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 0 25px rgba(168,109,255,0.7);
}

/* BOTTOM */
.footer-bottom{
    text-align: center;
    padding: 1.2rem;
    border-top: 1px solid rgba(168,109,255,0.25);
    color: #bcbaff;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 📱 MOBILE */
@media (max-width: 900px){
    .footer-container{
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons{
        justify-content: center;
    }

    .footer-brand p{
        margin: auto;
    }
}
