body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: lightgray;
}

html {
    scroll-behavior: smooth;
}


#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 9999;
    background: black;
    color: #00eeff;
    font-family: 'Courier New', monospace;
}

/* Matrix canvas background */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

/* Typing text */
.typing-container {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    white-space: nowrap;
    z-index: 2;
}

.cursor {
    display: inline-block;
    animation: blink 0.7s steps(2, start) infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Spinner (fixed above typing) */
.spinner {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 6px solid #00eeff;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

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




.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    background-color: #001f7c38;
    padding-top: 80px;
}


.back-vid {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: -1;
    mix-blend-mode: overlay;
}


header {
    position: fixed;
    /* was: absolute */
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 30px;
    background-color: rgba(255, 255, 255, 0.121);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px #72a1dea2;
    z-index: 9999;
    /* keep it above everything */
    width: 100%;
}

.left {
    display: flex;
    align-items: center;
}

.left img {
    width: 40px;
    margin: 0 15px;
}


header ul {
    display: flex;
    justify-content: space-between;
    width: 30%;
    padding: 15px 15px;
    border-radius: 50px;
    background-color: rgba(0, 0, 69, 0.326);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px #72a1de63;
}

header ul li {
    list-style: none;
}

header ul a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: 0.3s;
    margin: 0 10px;
}

header ul a:hover {
    text-shadow: 0 0 15px black;
}


.menu-icon {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
    z-index: 10001;
    /* above header contents */
}

.menu-icon i {
    pointer-events: none;
}

.box-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 50px;
}

.box-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid #72a1de;
    border-radius: 50%;
    text-decoration: none;
    color: inherit;
    transition: .3s;
}

.box-icons a:hover {
    background-color: #72a1de;
    color: #000;
    box-shadow: 0 0 15px #72a1de;
}

.box-icons i {

    font-size: 20px;
    line-height: 1;
}


.box-icons a:focus-visible {
    outline: 2px solid #b7c9ff;
    outline-offset: 3px;
}


.blackhole-box {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: -1;
    mix-blend-mode: lighten;
}

.blackhole-box video {
    width: 100%;
    margin-top: -23.5%;
}

.hero {
    position: relative;
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: space-between;
}

.hero-info {
    position: absolute;
    left: 5%;
}

.hero-info .hero-info-title {
    color: #72a1de;
    padding: 8px 5px;
    border-radius: 50px;
    border: 1px solid #72a1de94;
    width: 240px;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de84;
}

.hero-info h1 {
    font-size: 60px;
    max-width: 600px;
    font-weight: 700;
    line-height: 70px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.hero-info p {
    max-width: 550px;
    line-height: 25px;
    margin-bottom: 40px;
    font-size: 20px;
}

.hero-info button {
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: 0.3s;
}

.hero-info button:hover {
    box-shadow: 0 0 15px #72a1de81;
}

.download-btn {
    display: inline-block;
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.download-btn:hover {
    box-shadow: 0 0 15px #72a1de81;
}


/* Gradient Animation */
.gradient {
    background: linear-gradient(to right, #00aaa7, #7e42a7, #6600c5, #6070fd, #2a46ff, #0099ff, #008ead);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

.skills-video-box {
    position: absolute;
    right: 3%;
}

.skills-video {
    height: 900px;
    mix-blend-mode: lighten;
}


.scroll-down {
    height: 50px;
    width: 30px;
    border: 2px solid lightgray;
    position: absolute;
    left: 49%;
    bottom: 8%;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.626);
}

.scroll-down::before,
.scroll-down::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    height: 10px;
    width: 10px;
    transform: translate(-50%, -100%) rotate(45deg);
    border: 2px solid lightgray;
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 2s ease-in-out infinite;
}

.scroll-down::before {
    top: 30%;
    animation-delay: 0.5s;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}



/* ---------- About + Timeline ---------- */
.centered-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 40px;
}

.about-me-section .matrix-heading {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto 40px;
    z-index: 2;
}

.about-me-section {
    width: 90%;
    margin: 100px auto;
    color: #fff;
}

.about-me-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.about-me-image img {
    width: 500px;
    border-radius: 15px;
    box-shadow: 0 0 25px #72a1de52;
    object-fit: cover;
}

.about-me-content {
    max-width: 600px;
}

.job-title {
    font-size: 30px;
    color: #72a1de;
    margin-bottom: 20px;
}

.timeline {
    margin-top: 40px;
    position: relative;
}

.timeline-title {
    color: #72a1de;
    font-size: 20px;
    margin: 30px 0 10px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #378effa8;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 10px #72a1de80;
}

.timeline-content span {
    font-size: 14px;
    color: #ccc;
}

.timeline-content p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #aaa;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 6px;
    width: 2px;
    height: 100%;
    background: #72a1de30;
}



.my-project {
    display: flex;
    flex-direction: column;
    gap: 10%;
    align-items: center;
    position: relative;
    width: 80%;
    height: auto;
    margin-top: 160px;
    margin-bottom: 40px;
}
/* Wrap that holds all project cards */
.projects-list { width: 100%; }

/* By default (collapsed): show first 3 on tablet/desktop */
.projects-list.collapsed .project-card:nth-of-type(n+4) {
  display: none;
}

/* When expanded: show all */
.projects-list.expanded .project-card {
  display: flex;
}

/* Phones: show only first 2 when collapsed */
@media (max-width: 700px) {
  .projects-list.collapsed .project-card:nth-of-type(n+3) {
    display: none;
  }
}

/* Button row at the bottom of the section */
.projects-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 20px;
}

.project-card {
    display: flex;
    width: 100%;
    height: 40%;
    align-items: center;
    gap: 10%;
    justify-content: center;
    margin-bottom: 60px;
}
/* only add margin between project cards, not after the last one */
.project-card:not(:last-child) {
    margin-bottom: 60px;
}

.project-vidbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    mix-blend-mode: exclusion;
    position: relative;
    cursor: pointer;
    transition: 0.5s;
    min-width: 400px;

}

.project-vidbox video {
    object-fit: cover;
    width: 100%;
    box-shadow: 0 0 10px lightgray;
    border-radius: 20px;
    transition: 0.5s;
}

.project-card video:hover {
    box-shadow: 0 0 25px rgb(255, 255, 255);
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 50%;
    padding-left: 10%;
}

.project-info h1 {
    width: 90%;
    font-size: 25px;
    font-weight: bold;
    text-wrap: nowrap;
    margin-top: 0;
    margin-bottom: 10px;
    max-width: 450px;
}

.project-info p {
    width: 90%;
    max-width: 400px;
    min-width: 300px;
    margin-bottom: 50px;
    margin-top: 0;
}


.project-info .btn-row button {
    color: #fff;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: .3s;
}

.project-info .btn-row button a {
    color: inherit !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* keep visited links white too */
.project-info .btn-row button a:visited {
    color: inherit !important;
}

.project-info .btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.project-info .btn-row button:hover {
    opacity: .8;
    box-shadow: 0 0 15px #72a1de81;
}


.project-vidbox .hover-sign {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    height: 100px;
}

.hover-sign::before,
.hover-sign::after {
    content: "👆";
    text-align: center;
    position: absolute;
    font-size: 50px;
    top: 20%;
    left: 40%;
    border-radius: 40px;
    animation: hover-animation 4s ease-in-out infinite;

}

.hover-sign.active {
    display: none;
}

@keyframes hover-animation {
    0% {
        box-shadow: 0 0 5px rgb(255, 255, 255);
        transform: translate(100%, 50%) rotate(30deg);
    }

    100% {
        box-shadow: 0 0 5px rgb(255, 255, 255);
        transform: translateX(80%, 80%) rotate(20deg);
    }
}




/* Skills section */
.skills-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.skills-box {
    width: 100%;
    height: 80vh;
    position: relative;
    display: flex;
    align-items: start;
    justify-content: center;
    mix-blend-mode: lighten;
    opacity: 0.7;
}

.skills-image {
    width: 70%;
    mix-blend-mode: difference;
}

.skills-video {
    width: 80%;
    height: auto;
    max-width: 900px;
    mix-blend-mode: difference;
    object-fit: contain;
    border-radius: 20px;
    z-index: 1;
}

.Designer {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: start;
    top: 25%;
    left: 2%;
    max-width: 300px;
}

.Designer h1 {
    font-size: 50px;
    display: flex;
    align-items: center;
}

.Designer p {
    line-height: 23px;
}


.coder {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: start;
    top: 50%;
    right: 0%;
    max-width: 300px;
}

.coder h1 {
    font-size: 50px;
    display: flex;
    align-items: center;
}

.coder p {
    line-height: 23px;
}



.coder-text {

    font-size: 50px;
}

/* SLIDER  */

.slider {
    position: absolute;
    top: 100%;
    bottom: 5%;
    left: 50%;
    /* Center horizontally */
    transform: translateX(-50%);
    /* Perfect centering */

    width: auto;
    /* Let content define width or use a fixed width */
    height: var(--height);

    overflow: hidden;
    mask-image: linear-gradient(to right,
            transparent,
            #000 10% 90%,
            transparent);
    mix-blend-mode: difference;
    opacity: 0.7;
}

.slider .list {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}

.slider .list .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc((10s / var(--quantity)) * (var(--position) - 1) - 10s) !important;
}

.slider .list .item img {
    width: 100%;
    transition: transform 0.5s ease;
}

@keyframes autoRun {
    from {
        left: 100%;
    }

    to {
        left: calc(var(--width) * -1);
    }
}

.slider:hover .item {
    animation-play-state: paused !important;
    filter: grayscale(1);
}

.slider .item:hover {
    filter: grayscale(0);
}

.slider .list .item:hover img {
    transform: scale(1.2);
    /* Adjust the zoom as needed */
}


/* CONTACT SECTION */
.contact-section {
    width: 80%;
    height: 100vh;
    display: flex;
    justify-content: center;
    gap: 10%;
    align-items: center;
    position: relative;
}

.contact-section h1 {
    position: absolute;
    top: 10%;
    left: 45%;
}

.contact-section .matrix-heading {
    display: block;
    text-align: center;
    margin: 0 auto 40px;
    z-index: 2;
}

.social-box {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.social-box a {
    color: lightgray;
    text-decoration: none;
    font-size: 20px;
    text-wrap: nowrap;
}

.social-box i {
    color: #7668ff;
    font-size: 30px;
    margin-right: 10px;
}

.social-icons a i {
    color: white;
    margin-top: 40px;
}

/* Address only */
.address-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: lightgray;
    text-decoration: none;
    font-size: 20px;
}

.address-row i {
    font-size: 28px;
    color: #7668ff;
    line-height: 1;
    margin-top: 2px;
}

.addr-lines span {
    display: block;
    line-height: 1.3;
}


.contact-box p {
    max-width: 400px;
    margin-top: 30px;
    margin-bottom: 5px;
}

.contact-box input {
    padding: 7.5px 30px;
    background-color: lightgray;
    width: 80%;
    height: 25px;
    border: none;
    outline: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.contact-box button {
    margin-top: 30px;
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #72a1de81;
    background-color: #2200493d;
    box-shadow: 0 0 5px #72a1de81;
    cursor: pointer;
    transition: 0.3s;
}

.contact-box button:hover {
    opacity: 0.8;
    box-shadow: 0 0 15px #72a1de81;
}

.footer {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.121);
    z-index: 999;
    padding: 0 3rem;
}


/* BLUR EFFECT ANIMAION */

.autoBlur {
    animation: autoBlurAnimation linear both;
    animation-timeline: view();

}

@keyframes autoBlurAnimation {
    0% {
        filter: blur(40px);
    }

    35%,
    65% {
        filter: blur(0);
        opacity: 1;
    }

    100% {
        filter: blur(40px);
        opacity: 0;
    }
}


/* AUTO DISPLAY ANIMAION */
.autoDisplay {
    animation: autoDisplayAnimation both;
    animation-timeline: view();

}

@keyframes autoDisplayAnimation {
    from {
        filter: blur(10px);
        transform: translateY(-200px) scale(0);
    }

    50% {
        opacity: 1;
        filter: blur(0px);
        transform: translateX(0) scale(1);
    }
}


/* FADEIN_LEFT */

.fadein-left {
    animation: fadeInLeftAnimation both;
    animation-timeline: view();
}

@keyframes fadeInLeftAnimation {
    0% {
        opacity: 0;
        transform: translateX(-500px) scale(0.2);
        filter: blur(10px);
    }

    35%,
    65% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0px);
    }

    100% {
        filter: blur(10px);
    }
}

/* Sidebar */

.menu-icon {
    font-size: 35px;
    cursor: pointer;
    display: none;
}


.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background-color: #000000b8;
    z-index: 10001;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.479);
    backdrop-filter: blur(10px);
    opacity: 0;
    border-bottom-left-radius: 100%;

}

.close-icon {
    font-size: 50px;
    color: lightgray;
    padding-left: 10px;
    cursor: pointer;
}

.sidebar ul {
    padding-left: 20px;
}

.sidebar ul li {
    list-style: none;
    margin-bottom: 30px;
}

.sidebar ul li a {
    text-decoration: none;
    color: lightgray;
    font-size: 30px;
    font-weight: 900;
    text-shadow: 0 0 15px #4c4c4c;
}

/* sidebar container (vertical stack) */
.social-sidebar {
    padding-left: 20px;
    margin-top: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    justify-content: center;
}

/* make each link a circular button */
.social-sidebar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #72a1de;
    border-radius: 50%;
    text-decoration: none;
    color: inherit;
    transition: .3s;
}

/* icon size inside */
.social-sidebar i {
    font-size: 22px;
}

/* hover / focus to match header */
.social-sidebar a:hover {
    background-color: #72a1de;
    color: #000;
    box-shadow: 0 0 15px #72a1de;
}

.social-sidebar a:focus-visible {
    outline: 2px solid #b7c9ff;
    outline-offset: 3px;
}


/* Sidebar Open ANimation */
.sidebar.open-sidebar {
    animation: openSideBarAnimation 1.5s forwards;
}

@keyframes openSideBarAnimation {
    to {
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }
}

/* Sidebar close ANimation */

.sidebar.close-sidebar {
    animation: closeSideBarAnimation 1.5s forwards;
}

@keyframes closeSideBarAnimation {
    from {
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }

    to {
        width: 0;
        opacity: 0;
        bottom: 70%;
        border-bottom-left-radius: 50%;
    }
}






@media (max-aspect-ratio: 16/9) {
    .back-vid {
        width: auto;
        height: 100%;
    }
}

@media (min-aspect-ratio: 16/9) {
    .back-vid {
        width: 100%;
        height: auto;
    }
}


@media screen and (max-width: 1200px) {
    .blackhole-box video {
        margin-top: -20%;
    }

    .hero-info h1 {
        font-size: 40px;
        max-width: 400px;
        line-height: 40px;
    }

    .hero-info P {
        max-width: 300px;
    }

    .skills-video-box {
        right: 0%;
    }

    .skills-video-box video {
        height: 500px;
    }

    .info-cards {
        grid-template-columns: auto;
    }

    .card:nth-child(3) {
        grid-column: span 2;
        height: 70vh;
    }

    .info-cards .card h1 {
        font-size: 20px;
    }

    .info-cards .card:nth-child(3) h1 {
        bottom: 25%;
    }

    .card video {
        height: 60%;

        margin-top: 5%;
    }

    .my-project {
        margin-bottom: 200px;
        scale: 0.8;
    }


    .contact-section .section-title {
        left: 43%;
    }

    .slider {
        top: 100%;
    }
}

/* ====== NEW: TABLET BREAKPOINT (e.g., iPad Mini 768×1024) ====== */
@media screen and (max-width: 1024px) {

    /* switch to mobile-style header */
    header {
        height: 60px;
    }

    header ul,
    header .box-icons {
        display: none;
    }

    .menu-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding-right: 60px;
        /* tighter than phone */
        font-size: 30px;
    }

    /* sidebar width better for tablet */
    .sidebar.open-sidebar {
        animation: openSideBarTablet 1.2s forwards;
    }

    @keyframes openSideBarTablet {
        to {
            width: 60%;
            opacity: 1;
            bottom: 0;
            border-radius: 0;
        }
    }

    .sidebar.close-sidebar {
        animation: closeSideBarTablet 1.2s forwards;
    }

    @keyframes closeSideBarTablet {
        from {
            width: 60%;
            opacity: 1;
            bottom: 0;
            border-radius: 0;
        }

        to {
            width: 0;
            opacity: 0;
            bottom: 70%;
            border-bottom-left-radius: 50%;
        }
    }

    /* hero/video balance on tablet */
    .blackhole-box video {
        margin-top: -18%;
    }

    .skills-video-box {
        right: 0;
    }

    .skills-video {
        max-width: 720px;
    }

    /* ensure hero text doesn’t overflow */
    .hero-info h1 {
        font-size: 44px;
        line-height: 52px;
    }

    .hero-info p {
        font-size: 18px;
        max-width: 480px;
    }
}

@media screen and (max-width: 700px) {
    header {
        position: fixed;
        height: 50px;
    }

    header ul,
    header .box-icons {
        display: none;
    }

    .menu-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        /* push to far right */
        padding-right: 75px;
    }

    .blackhole-box video {
        width: 100%;
        margin-top: -15%;
    }

    .autoBlur {
        animation: none;
    }

    .hero {
        flex-direction: column;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;

    }

    .hero-info {
        bottom: 5%;
    }

    .scroll-down {
        bottom: 5%;
    }

    .hero .skills-video-box {
        height: 200px;
        top: 5%;
    }

    .about-me-section {
        width: 100%;
        margin: 60px auto;
    }

    .about-me-container {
        gap: 20px;
    }

    .about-me-image img {
        width: 350px;
        border-radius: 12px;
    }

    .about-me-content {
        max-width: 320px;
    }



    .info-cards {
        grid-template-columns: auto;
    }

    .card:nth-child(3) {
        grid-column: span 2;
        height: 70vh;
    }

    .card video {
        width: 100%;
    }

    .container {
        height: 100%;
    }

    .project-vidbox video {
        width: 250px;
        margin-left: -100px;
    }

    .project-info {
        overflow: hidden;
        padding-left: 0;
        margin-left: -50px;
    }

    .project-info h1 {
        font-size: 20px;
        max-width: 200px;
        text-wrap: wrap;
    }

    .project-info p {
        font-size: 10px;
        text-wrap: wrap;
        max-width: 200px;
        min-width: 0;
    }

    .project-info .btn-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .project-info .btn-row button {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .project-info .btn-row button a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: inherit;
        text-decoration: none;
    }

    .project-info .btn-row button i {
        font-size: 16px;
    }

    .my-project {
        margin-bottom: 600px;
    }

    .project-card {
        flex-direction: column;
        margin-left: 25%;
        gap: 30px;
    }

    .project-vidbox {
        min-width: 200px;
    }

    .project-info {
        width: 85%;
    }

    .project-info h1 {
        text-wrap: nowrap;
    }

    .project-info p {
        max-width: 300px;
    }

    .Designer {
        top: 15%;
        left: 18%;
    }

    .Designer h1 {
        margin-bottom: 0;
        margin-top: 70px;
    }

    .coder {
        top: 50%;
        left: 18%;
    }

    .coder h1 {
        margin-bottom: 0;
    }

    .slider .list .item img {
        width: 70%;
    }

    .slider {
        top: 100%;
    }

    .contact-section {
        flex-direction: column;
        margin-top: 100px;
        margin-bottom: 50px;
    }

    .contact-section h1 {
        position: absolute;
        top: 10%;
        left: 45%;
    }

    .footer {
        font-size: 10px;
    }

    .social-box {
        margin-left: -90px;
    }
}


@media screen and (max-width: 480px) {
    .spinner {
        position: absolute;
        top: 40%;
        left: 37%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        border: 6px solid #00eeff;
        border-top: 4px solid transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        z-index: 2;
    }

    .typing-container {
        position: absolute;
        top: 55%;
        left: 45%;
        transform: translate(-50%, -50%);
        font-size: 1.1rem;
        white-space: normal;
        /* Allow wrapping */
        max-width: 200px;
        /* Limit width to trigger line break */
        text-align: center;
        z-index: 2;
    }

    .sidebar {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        width: 0%;
        background-color: #000000b8;
        z-index: 10001;
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.479);
        backdrop-filter: blur(10px);
        opacity: 0;
        border-bottom-left-radius: 100%;
        transform: translateX(-60px);

    }

    .hero .skills-video-box {
        display: none;

    }

    .blackhole-box {
        overflow: hidden;
    }

    .blackhole-box video {
        width: 140%;
        margin-top: -27%;

    }

    .left {
        scale: 0.9;
        margin-left: -30px;
    }

    .left h2 {
        font-size: 20px;
    }

    .hero {
        scale: 0.9;
    }

    .hero-info {
        bottom: 15%;
    }

    .hero-info h1 {
        font-size: 35px;
    }

    .scroll-down {
        bottom: 15%;
        left: 60%;
    }

    .section-title {
        font-size: 25px;
    }

    .info-cards {
        display: flex;
        flex-direction: column;
    }

    .card {
        min-height: 20rem;
    }

    .card h1 {
        bottom: 30%;
        font-size: 5px;
    }


    .about-me-section {
        width: 95%;
        margin: 40px auto;
    }

    .about-me-container {
        gap: 16px;
    }

    .about-me-image img {
        width: 280px;
    }

    .about-me-content {
        max-width: 280px;
    }

    .project-card {
        height: 50%;
    }

    .project-info p {
        margin-bottom: 15px;
    }

    .project-info {
        margin-left: -80px;
    }

    .skills-box {
        height: 120vh;
        margin-right: 30px;
    }

    .slider {
        bottom: 0%;
        top: 100%;
    }

    .contact-section {
        scale: 0.9;
        height: 120vh;
    }

    .contact-section .section-title {
        top: -30px;
        left: 25%;
    }

    .footer {
        padding: 15px;
    }

    .footer h1 {
        max-width: 150px;
    }

    .footer .box-icons {
        gap: 10px;
    }


}