html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: rgba(255, 255, 255, 0.92);
    background: #121212;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.swiper {
    width: 90%;
    margin: 0 auto;
    padding: 40px 0;
}

.swiper-slide {
    width: 70%;
    height: 380px;
    background: #222;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 40px;
    text-align: left;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
        opacity 0.5s ease,
        background 0.3s ease;
    cursor: grab;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    opacity: 0.5;
    transform: scale(0.9);
}

.project-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

.project-header {
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.75em;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.project-header h3 a {
    color: #1e90ff;
    text-decoration: none;
}

.project-header h3 a:hover {
    text-decoration: underline;
}

.project-type {
    display: inline-block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.project-highlights {
    flex: 1;
    margin: 0;
    padding-left: 1.25rem;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
}

.project-highlights li {
    margin-bottom: 0.5rem;
}

.project-highlights li:last-child {
    margin-bottom: 0;
}

.project-tech {
    font-size: 0.85rem;
    color: #777;
    margin-top: auto;
    padding-top: 1.25rem;
    letter-spacing: 0.3px;
}

.swiper-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    background: #292929;
}

.swiper-slide h3 a {
    color: #1e90ff;
}

.swiper-slide ul {
    margin: 0;
    padding-left: 20px;
    word-wrap: break-word;
    word-break: break-word;
}

.swiper-slide ul li {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.3);
}

.swiper-button-next,
.swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px;
    color: #fff;
}

a {
    color: #1e90ff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: underline;
    color: #1a7ac8;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.container {
    display: flex;
    flex-direction: column;
}


.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(30, 144, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    font-size: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(30, 144, 255, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}



.sidebar {
    width: 20vw;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: 0 0;
    position: fixed;
    height: 100vh;
    overflow-y: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-sizing: border-box;
}

/* Profile Section: Top Anchored, Flexible but Compact */
.sidebar .profile {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(12px, 2.8vh, 28px) 0 clamp(12px, 2.3vh, 22px) 0;
    margin-bottom: clamp(20px, 4.5vh, 40px);
}

.sidebar .profile .profile-image {
    height: clamp(70px, 14vh, 120px);
    width: clamp(70px, 14vh, 120px);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.95);
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Navigation Menu: Fills Remaining Space, Centered Content */
.sidebar .nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15px;
    margin-bottom: clamp(15px, 3vh, 35px);
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: clamp(8px, 1.7vh, 16px) 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: clamp(14px, 2.3vh, 18px);
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    margin: clamp(1px, 0.2vh, 4px) 0;
    white-space: nowrap;
    position: relative;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(30, 144, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    transform: translateX(5px);
    border: 1px solid rgba(30, 144, 255, 0.3);
    box-shadow: 0 4px 16px rgba(30, 144, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link svg {
    width: clamp(14px, 2vh, 20px);
    height: clamp(14px, 2vh, 20px);
    margin-right: 12px;
}

section {
    width: 76vw;
    margin-right: 0;
    margin-left: 22vw;
    padding: 4vw 4vw;
    text-align: left;
    min-height: 100vh;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    box-sizing: border-box;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h3 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

section h2 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.about-content,
.education-content,
.skills-content,
.experience-content,
.projects-content,
.achievements-content,
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.intro {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
    position: relative;
}

.home-content {
    width: 95%;
    padding: 2vw;
    text-align: left;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.1rem;
    margin-top: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.typing-effect {
    font-size: 2rem;
    display: inline-block;
    margin-top: 0;
    margin-bottom: 1rem;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    white-space: normal;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.buttons {
    margin-top: 1rem;
    text-align: left;
    display: flex;
    gap: 1rem;
}

.buttons .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 500;
    text-align: center;
}

.buttons .btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.github-btn,
.webapp-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: auto;
    text-align: center;
}

.github-btn:hover,
.webapp-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#contact {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    align-items: flex-start;
    width: 100%;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    padding: 0;
    border: none;
    background: transparent;
    transition: transform 0.3s ease;
    width: auto;
}

.social-item a {
    display: flex;
    align-items: center;
    line-height: 1;
}

.social-item:hover {
    transform: translateX(10px);
    background: transparent;
    border: none;
    box-shadow: none;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    transition: transform 0.2s ease;
}

.social-item a {
    font-size: 1rem;
    color: #ccc;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.social-item:hover a {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}


.intro-text {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.1rem;
}

.blue-text {
    color: #1e90ff;
    letter-spacing: 0.5px;
}

.white-text {
    color: #fff;
}

.date {
    color: #888;
    font-style: italic;
}

.about-me h3,
.interests h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.about-me,
.interests,
.education,
.online-certifications,
.skills,
.projects,
.experience,
.achievements,
.contact {
    padding: 1rem;
    color: white;
}

.interests .interest-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.interests .interest-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin: 0.5rem;
    min-height: 60px;
}

.interests .interest-image {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.interests .interest-item span {
    color: white;
    font-size: 1.2rem;
}

.education-box {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin-bottom: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.education-details p,
.education-details ul {
    margin: 0.2rem 0;
}

.education-box h3 a {
    color: #1e90ff;
    text-decoration: none;
}

.education-box h3 a:hover {
    text-decoration: underline;
}

.education-logo {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iitbhu-logo {
    width: 240px;
    height: auto;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.experience {
    margin-bottom: 40px;
}

.experience-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 40px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.experience-details {
    margin: 0.2rem 0;
    flex: 1;
}

.experience-details p {
    margin: 0.1rem 0;
    line-height: 1.6;
}

.experience-details ul {
    margin: 0.1rem 0;
    padding-left: 20px;
}

.experience-details li {
    margin: 0.1rem 0;
}

.experience-logo {
    flex-shrink: 0;
    margin-left: 20px;
}

.company-logo {
    width: 200px;
    height: auto;
    margin-right: 40px;
    margin-left: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.experience-tech {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.75rem;
    letter-spacing: 0.3px;
}

.online-certifications .certification-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.online-certifications .certification-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 16px;
    margin: 0.5rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 70px;
}

.online-certifications .certification-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.online-certifications .certification-image {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.online-certifications .certification-item span {
    color: white;
    font-size: 1.2rem;
}

.skills-subsection {
    margin-bottom: 2rem;
}

.skills-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.skill-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    width: 100px;
    height: 100px;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skill-box:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skill-image {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-img {
    max-width: 100%;
    max-height: 100%;
}

.project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.project-buttons .btn {
    display: inline-block;
    margin: 0;
    padding: 0.6rem 1.25rem;
    min-width: 110px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    font-size: 0.9rem;
}

.project-buttons .btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#achievements ul {
    list-style: none;
    padding-left: 0;
}

#achievements ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

#achievements ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1e90ff;
    font-weight: bold;
    font-size: 1.1rem;
}

.contact-content {
    align-items: flex-start;
    text-align: left;
    max-width: 800px;
}

.contact-name {
    font-size: 4rem;
    margin-bottom: 0.1rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.85;
    color: #fff;
    background: none;
    -webkit-text-fill-color: initial;
    display: block;
    word-break: break-word;
}

.contact p:not(.contact-name) {
    font-size: 1rem;
    color: #888;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-left: 5px;
    opacity: 0.8;
}

.contact .social-icon {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 50%;
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
    transition: transform 0.3s ease;
}

.social-item:hover .social-icon {
    transform: scale(1.1);
}

.education-details p {
    line-height: 1.6;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper img {
    display: block;
}

.image-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    z-index: 1;
    pointer-events: none;
}


@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        width: 22.5vw;
        overflow-y: hidden;
        flex-direction: column;
        z-index: 100;
        box-sizing: border-box;
    }

    section {
        width: 73.5vw;
        padding: 2vw 2vw;
        margin-left: 24.5vw;
        margin-right: 0;
    }

    h1 {
        font-size: 3rem;
    }

    .typing-effect {
        font-size: 1.8rem;
    }

    .skill-box {
        width: 110px;
        height: 110px;
    }

    .interests .interest-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .online-certifications .certification-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .swiper-slide {
        width: 80%;
        height: 360px;
        padding: 35px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 25px;
        height: 25px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 12px;
    }

    .project-header h3 {
        font-size: 1.5em;
    }

    .project-highlights {
        font-size: 0.95rem;
    }

    .project-tech {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {

    .contact-name {
        font-size: 3.25rem;
    }

    .swiper {
        width: 100%;
        padding: 30px 0;
    }

    .swiper-slide {
        width: 85%;
        height: auto;
        min-height: 300px;
        padding: 25px;
    }

    .project-header h3 {
        font-size: 1.3em;
    }

    .project-type {
        font-size: 0.7rem;
    }

    .project-highlights {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .project-tech {
        font-size: 0.75rem;
        padding-top: 1rem;
    }

    .project-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .project-buttons .btn {
        padding: 0.5rem 1rem;
        min-width: 90px;
        font-size: 0.85rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 0px;
        height: 0px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 0px;
    }

    .skill-box {
        width: 100px;
        height: 100px;
    }



    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        display: flex;
        align-items: center;
        padding: 0 1rem;
        z-index: 1000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }

    .hamburger-menu {
        position: fixed;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 1000;
        margin: 1rem;
    }

    .hamburger-menu span {
        display: block;
        height: 4px;
        background-color: white;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
        transition: left 0.3s ease;
        color: white;
        z-index: 999;
        overflow-y: auto;
        padding-top: 60px;
    }

    .sidebar.active {
        left: 0;
    }

    body {
        flex-direction: column;
    }

    section {
        width: 100vw;
        padding-top: 60px;
        margin-left: 0;
        margin-right: 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2,
    h3 {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1rem;
    }

    .typing-effect {
        font-size: 1.2rem;
    }

    .buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .interests .interest-box {
        grid-template-columns: 1fr;
    }

    .interests .interest-item {
        justify-content: flex-start;
    }

    .online-certifications .certification-box {
        grid-template-columns: 1fr;
    }

    .online-certifications .certification-item {
        justify-content: flex-start;
    }

    .education-box {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .education-logo {
        margin-left: 0;
        margin-bottom: 1rem;
        align-self: center;
    }

    .iitbhu-logo {
        width: 150px;
    }

    .experience-box {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .experience-logo {
        margin-left: 0;
        margin-bottom: 1rem;
        align-self: center;
    }

    .company-logo {
        width: 150px;
    }


}

.swiper-slide .project-content h3,
.swiper-slide .project-content p,
.swiper-slide .project-content ul {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.swiper-slide-active .project-content h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.swiper-slide-active .project-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.swiper-slide-active .project-content ul {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.education-box:hover,
.experience-box:hover {
    transform: none;
    box-shadow: none;
}

.sidebar .profile .profile-image:hover {
    transform: scale(1.03);
}

.social-icons a:hover {
    transform: scale(1.1);
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: rgba(30, 144, 255, 0.85);
    box-shadow: 0 8px 24px rgba(30, 144, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.counter {
    color: #1e90ff;
    font-weight: 700;
}

@media (max-width: 480px) {
    .contact-name {
        font-size: 2.25rem;
        margin-left: 0px;
    }


    h1 {
        margin-top: 2rem;
        font-size: 2.25rem;
        margin-bottom: 0rem;
    }

    .typing-effect {
        font-size: 1rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .home-content {
        width: 95%;
    }

    section {
        width: 100vw;
        padding-top: 50px;
        margin-left: 0rem;
        margin-right: 0;
    }

    section h2 {
        margin-left: 0px;
        font-size: 2rem;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    section h3 {
        font-size: 1.65rem;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .contact p:not(.contact-name) {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        margin-left: 0px;
    }

    .skill-box {
        width: 80px;
        height: 80px;
        padding: 0.75rem;
    }

    .skill-image {
        width: 50px;
        height: 50px;
    }

    .skill-box span {
        font-size: 0.75rem;
    }

    .buttons .btn,
    .github-btn,
    .webapp-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: 100px;
    }

    .swiper-slide {
        width: 85%;
        padding: 15px;
    }

    .swiper-slide h3 {
        font-size: 1.2em;
    }

    .certification-item {
        padding: 0.75rem;
    }

    .certification-image {
        width: 40px;
        height: 40px;
    }

    .certification-item span {
        font-size: 1rem;
    }

    .education-box,
    .experience-box {
        padding: 15px;
    }

    .iitbhu-logo,
    .company-logo {
        width: 120px;
    }

    .project-buttons {
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .project-buttons .btn {
        flex: 1;
        min-width: 0;
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 0px;
        height: 0px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 0px;
    }

    .social-item a {
        font-size: 0.8rem;
        margin-left: 0px;
        color: #ccc;
        text-decoration: none;
        letter-spacing: 0.5px;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
    }

    .contact .social-icon {
        width: 30px;
        height: 30px;
        margin-left: 0px;
    }

}


/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.06);
    border-top-color: rgba(30, 144, 255, 0.8);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.15);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body.loading {
    overflow: hidden;
}


/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 144, 255, 0.95);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    white-space: nowrap;
}

.toast-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-exit {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

.toast-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.toast-message {
    line-height: 1.3;
}