html {
  scroll-behavior: smooth;
}

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

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
}

.back-vid {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: -1;
    mix-blend-mode: overlay;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* For screens wider than 16:9 (landscape) */
@media (min-aspect-ratio: 16/9) {
    .back-vid {
        width: 100%;
        height: auto;
    }
}

/* For screens taller than 16:9 (portrait) */
@media (max-aspect-ratio: 16/9) {
    .back-vid {
        width: auto;
        height: 100%;
    }
}

header {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.121);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px #72a1dea2;
    z-index: 999;
}

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

.left img {
    width: 60px;
    margin: 0 20px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}

header ul {
    display: flex;
    justify-content: space-between;
    width: 30%;
    padding: 15px;
    border-radius: 50px;
    background-color: rgba(0,0,0,0.30);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px #727fde65;
    list-style: none;
}

header ul li {
    list-style: none;
    margin: 0 10px;
}

header ul li a {
    text-decoration: none;
    color: white;
    font-weight: 700;
}

.box-icons {
    display: flex;
    gap: 40px;
}

.box-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border: 2px solid #727fde;
    text-decoration: none;
    color: lightgray;
    border-radius: 50%;
    transition: 0.3s ease;
}

.box-icons a:hover {
    background-color: #727fde;
    color: black;
    box-shadow: 0 0 15px #727fde6f;
    transform: scale(1.1);
}

.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;
    margin-right: 18px;
}

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

.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%;
    }
}

.hero-vid-box {
    position: absolute;
    right: 1%;
}

.hero-vid-box video {
    height: 900%;
    width: auto;
    opacity: 0.7;
    mix-blend-mode: screen;
    filter: brightness(1.2);
}

.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;
    }
}

.info-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 80%;
    margin: 100px auto 0;
    min-height: 100vh;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
}

.info-cards {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
    width: 100%;
    height: 100%;
    margin-top: 30px;
}

.card {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    width: auto;
    height: 40vh;
    overflow: hidden;
    border: 1px solid gray;
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.5s;
}

.card h1 {
    position: absolute;
    margin: 0;
    bottom: 40%;
    left: 5%;
    font-size: 25px;
    z-index: 1;
    color: lightgray;
}

.card p {
    position: absolute;
    bottom: 3%;
    left: 5%;
    z-index: 1;
    max-width: 300px;
    color: gray;
    font-size: 13px;
    line-height: 20px;
}

.card img {
    width: 80%;
    height: 50%;
    object-fit: cover;
}

.card video {
    margin-top: 10%;
    width: 70%;
    height: 50%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.card button {
    position: absolute;
    bottom: 5%;
    left: 5%;
    padding: 10px 25px;
    border: 1px solid gray;
    background-color: #0f1217;
    color: gray;
    border-radius: 20px;
    box-shadow: 0 0 5px lightgray;
    cursor: pointer;
    transition: 0.3s;
}

.card button:hover {
    box-shadow: 0 0 15px lightgray;
    opacity: 0.7;
}

.card:hover {
    box-shadow: 0 0 15px rgb(211, 211, 211);
}

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

.card:nth-child(3) p {
    bottom: 12%;
}

.card:nth-child(3) h1 {
    bottom: 21%;
}

.card:nth-child(4) {
    grid-column: span 2;
}

.card:nth-child(4) p {
    max-width: 650px;
}

.card:nth-child(4) h1 {
    bottom: 35%;
}

.my-project {
    display: flex;
    flex-direction: column;
    gap: 10%;
    align-items: center;
    position: relative;
    width: 80%;
    height: 100vh;
    margin: 200px auto 700px;
}

.project-card {
    display: flex;
    width: 100%;
    height: 40%;
    align-items: center;
    gap: 10%;
    justify-content: center;
}

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

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

.project-card video:hover {
    box-shadow: 0 0 25px #fff;
}

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

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

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

.project-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;
}

.project-info button:hover {
    opacity: 0.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 #fff;
        transform: translate(100%, 50%) rotate(30deg);
    }
    100% {
        box-shadow: 0 0 5px #fff;
        transform: translate(80%, 80%) rotate(20deg);
    }
}

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

.skills-box {
    width: 100%;
    height: 90vh;
    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;
}

.Designer {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: start;
    top: 25%;
    left: 5%;
    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: 25%;
    right: 5%;
    max-width: 300px;
}

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

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

/* Horizontal Skill Slider */
.slider-container {
    position: absolute;
    bottom: 5%;
    width: 80%;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
    mix-blend-mode: difference;
    opacity: 0.7;
}

.slider-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: scroll 20s linear infinite;
}

.slider-item {
    flex: 0 0 auto;
    margin: 0 25px;
    transition: transform 0.3s ease;
}

.slider-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.slider-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.contact-section {
    width: 100%;
    padding: 5rem 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    box-sizing: border-box;
    text-align: center;
}

.contact-section .section-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
}

.contact-content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-box {
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.contact-box label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    text-align: left;
}

.contact-box input,
.contact-box textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: #f0f0f0;
    font-size: 1rem;
    color: #111;
}

.contact-box textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-box button {
    margin-top: 1.5rem;
    align-self: flex-start;
    padding: 14px 30px;
    border-radius: 50px;
    background: linear-gradient(135deg, #4e00b6, #220049);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 15px rgba(114, 161, 222, 0.4);
    transition: all 0.3s ease;
}

.contact-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(114, 161, 222, 0.6);
}

.footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-sizing: border-box;
}

.footer .box-icons {
    display: flex;
    gap: 1.2rem;
}

.footer .box-icons a {
    font-size: 1.5rem;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer .box-icons a:hover {
    color: #000000;
    transform: scale(1.1);
}

.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;
    }
}

.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 {
    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);
    }
}

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

.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 70%;
    width: 0%;
    background-color: #000000b8;
    z-index: 999;
    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;
}

.social-sidebar {
    padding-left: 20px;
    margin-top: 60px;
    text-wrap: nowrap;
}

.social-sidebar a {
    font-size: 35px;
    padding: 5px 5px;
    cursor: pointer;
    transition: 0.5s;
}

.sidebar.open-sidebar {
    animation: openSideBarAnimation 1.5s forwards;
}

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

.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%;
    }
}

.hero-info .hero-btn {
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid rgba(114, 161, 222, 0.51);
    background-color: rgba(34, 0, 73, 0.24);
    box-shadow: 0 0 5px rgba(114, 161, 222, 0.51);
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hero-info .hero-btn:hover {
    background-color: rgba(34, 0, 73, 0.5);
}

.hero-info h1 {
    position: relative;
    z-index: 3;
    margin-top: 80px;
}

.gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-btn {
    position: relative;
    z-index: 5;
    touch-action: auto;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Styles */
@media (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;
    }

    .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;
    }
}

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

    header ul {
        display: none;
    }

    header .box-icons {
        display: none;
    }

    .menu-icon {
        display: inline;
    }

    .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%;
    }

    .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 button {
        padding: 5px 10px;
    }

    .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-container {
        width: 90%;
    }

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

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

    .footer {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .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;
    }

    .project-card {
        height: 50%;
    }

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

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

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

    .slider-container {
        bottom: 0%;
    }

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

    .footer {
        padding: 15px;
    }

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

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

@media (max-width: 768px) {
    .button-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-btn {
        width: 80%;
        padding: 12px 30px;
        text-align: center;
    }

    .hero-info {
        position: relative;
        text-align: center;
        padding: 20px;
    }

    .hero-info h1 {
        font-size: 40px;
        line-height: 50px;
    }

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

    .contact-section {
        padding: 4rem 5%;
    }

    .contact-box {
        padding: 2rem;
    }

    .contact-box button {
        align-self: center;
    }
}

@media (max-width: 600px) {
    .footer {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        border-radius: 0;
    }

    .footer .box-icons {
        justify-content: center;
    }

    .footer h1 {
        font-size: 1rem;
    }
}