body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: lightgray;
}

html {
    scroll-behavior: smooth;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    background-color: #001f7c38;
}

.back-video {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: -1;
    mix-blend-mode: overlay;
}

@media (max-aspect-ratio: 16/9) {
    .back-video {
        width: auto;
        height: 100%;
    }
}

/*make video property adapts to all screen sizes*/

@media (min-aspect-ratio: 16/9) {
    .back-video {
        width: 100%;
        height: auto;
    }
}

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.123);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px #72a1de68;
    z-index: 999;
}

.left {
    display: flex;
    align-items: center;
}

.left img {
    width: 100px;
    margin: 0 14px;
}

header ul {
    display: flex;
    justify-content: space-between;
    width: 30%;
    padding: 15px 15px;
    border-radius: 50px;
    background-color: rgba(0, 0, 69, 0.30);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px #727fde65;
}

header ul li {
    list-style: none;
}

header ul li a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: 0.3s;
    margin: 0 10px;
}

header ul li a:hover {
    text-shadow: 0 0 15px black;
}

.box-icons {
    display: flex;
    gap: 30px;
}

.box-icons p {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border: 2px solid #72a1de;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.5s;
}

.box-icons p:hover {
    background-color: #727fde;
    color: black;
    box-shadow: 0 0 15px #727fde;
}

.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 {
    margin-top: 100px;
    position: relative;
    left: 5%;
}

.hero-info .hero-info-title {
    color: #727fde;
    padding: 8px 5px;
    border-radius: 50px;
    border: 1px solid #727fde77;
    max-width: 300px;
    background-color: #2200493d;
    box-shadow: 0 0 5px #727fde88;
}

.hero-info h1 {
    font-size: 50px;
    max-width: 600px;
    font-weight: 700;
    line-height: 70px;
    margin-top: 15px;
    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 #727fde8e;
    background-color: #2200493d;
    box-shadow: 0 0 5px #727fde86;
    cursor: pointer;
    transition: 0.3s;
}

.hero-info button:hover {
    box-shadow: 0 0 15px #727fde86;
}

/* 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%;
    }
}

.hero-vid-box {
    position: absolute;
    right: 3%;
}

.hero-vid-box video {
    height: 400px;
    mix-blend-mode: screen;
}

.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 1 5px lightgray;
}

.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;
    animation: scroll-down 1s ease-in-out infinite;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

.info-section {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 80%;
    margin-top: 100px;
}

.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;
}

.cards {
    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;
}

.cards h1 {
    position: absolute;
    margin: 0;
    bottom: 40%;
    left: 5%;
    font-size: 25px;
    z-index: 1;
    color: lightgray;
}

.cards p {
    position: absolute;
    bottom: 3%;
    left: 5%;
    z-index: 1;
    max-width: 300px;
    color: gray;
    font-size: 13px;
    line-height: 20px;
}

.cards img {
    width: 80%;
    height: 50%;
    object-fit: cover;
}

.cards video {
    margin-top: 10%;
    width: 70%;
    height: 50%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.cards 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 #727fde86;
    cursor: pointer;
    transition: 0.3s;
}

.cards button:hover {
    box-shadow: 0 0 15px lightgray;
    opacity: 0.7;
}

.cards:hover {
    box-shadow: 0 0 15px rgba(211, 211, 211, 0.5);
}

.cards:nth-child(3) {
    grid-row: span 2;
    height: 83vh;
}

.cards:nth-child(3) p {
    bottom: 12%;
}

.cards:nth-child(3) h1 {
    bottom: 21%;
}

.cards:nth-child(4) {
    grid-column: span 2;
}

.cards:nth-child(4) p {
    max-width: 650px;
}

.cards:nth-child(4) h1 {
    bottom: 35%;
}

footer {
    right: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.128);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.356);
    z-index: 999;
}

footer h1 {
    font-size: 30px;
}

.menu-icon {
    font-size: 36px;
    cursor: pointer;
    display: none;
}

/* SideBar */

.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background-color: #000000b8;
    backdrop-filter: blur(10px);
    z-index: 999;
    box-shadow: 0 0 20px rgba(211, 211, 211, 0.411);
    border-bottom-left-radius: 100%;
    opacity: 0;
}

.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: 700;
    text-shadow: 0 0 15px rgba(128, 128, 128, 0.256);
}

.sidebar .social-icons {
    padding-left: 20px;
    margin-top: 60px;
    text-wrap: nowrap;
}

.sidebar .social-icons a {
    font-size: 35px;
    padding: 5px 5px;
    cursor: pointer;
}

/*Open Sidebar Animattion*/

.sidebar.open-sidebar {
    animation: openSidebarAnimation 1.5s forwards;
}

@keyframes openSidebarAnimation {
    to {
        width: 80%;
        opacity: 1;
        bottom: 0;
        border-radius: 0;
    }
}

/*Close Sidebar Animattion*/

.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%;
    }
}

/* Blur Effect Animation*/
.autoBlur {
    animation: autoBlurAnimation linear both;
    animation-timeline: view();
}

@keyframes autoBlurAnimation {
    0% {
        filter: blur(40px);
        opacity: 0;
    }

    35%,
    65% {
        filter: blur(0);
    }
}

.autoDisplay {
    animation: autoDisplayAnimation both;
    animation-timeline: view();
}

@keyframes autoDisplayAnimation {
    from {
        filter: blur(10px);
        transform: translateY(-200px) scale(0);
        opacity: 0.2;
    }

    50% {
        opacity: 1;
        filter: blur(0);
        trsnsform: translateX(0) scale(1);
    }
}

.fadeInRight {
    animation: fadeInAnimation both;
    animation-timeline: view();
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
        transform: translateX(-500px) scale(0.2);
        filter: blur(0);
    }

    35%,
    65% {
        opacity: 1;
        transform: translateX(0px) scale(1);
        filter: blur(0);
    }

    100% {
        filter: blur(20px);
    }
}

@media (max-aspect-ratio: 16/19) {
    .back-vid {
        width: auto;
        height: 100%;
    }
}

@media (min-aspect-ratio: 16/9) {
    .back-vid {
        width: 100%;
        height: auto;
    }

}

@media screen and (max-width: 1000px) {
    .blackhole-box video {
        margin-top: -20%;
    }

    .hero-info h1 {
        font-size: 40px;
        max-width: 400px;
        line-height: 40px;
    }

    .hero-info p {
        max-width: 300px;
    }

    .hero-vid-box {
        right: 0;
    }

    .hero-vid-box video {
        height: 500px;
    }

    .section-title {
        font-size: 30px;
    }

    .info-card {
        grid-template-columns: auto;
    }

    .card:nth-child(3) {
        grid-column: span 2;
        height: 70vh;
    }

    .info-cards .card h1 {
        font-size: 20px;
    }

    .card:nth-child(3) h1 {
        bottom: 25%;
    }

    .card video {
        height: 65%;
        margin-top: 5%;
    }

    footer {
        font-size: 20px;
    }
}

@media screen and (max-width: 700px) {}

.cards video {
    margin-top: 10%;
    width: 70%;
    height: 50%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.cards button {
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #727fde8e;
    background-color: #2200493d;
    box-shadow: 0 0 5px #727fde86;
    cursor: pointer;
    transition: 0.3s;
    bottom: 5%;
    left: 5%;
}

.cards button:hover {
    box-shadow: 0 0 15px #727fde86;
}

.cards:nth-child(3) {
    grid-row: span 2;
    height: 80vh;
}

.cards:nth-child(3) p {
    bottom: 12%;
}

.cards:nth-child(3) h1 {
    bottom: 21%;
}

.cards:nth-child(4) {
    grid-column: span 2;
}

.cards:nth-child(4) p {
    max-width: 650px;
}

.cards:nth-child(4) h1 {
    bottom: 35%;
}

.autoDisplay {
    animation: autoDisplayAnimation both;
    animation-timeline: view();
}

@keyframes autoDisplayAnimation {
    from {
        filter: blur(10px);
        transform: translateY(-200px) scale(0);
        opacity: 0.2;
    }

    50% {
        opacity: 1;
        filter: blur(0);
        trsnsform: translateX(0) scale(1);
    }
}

.fadeInRight {
    animation: fadeInAnimation both;
    animation-timeline: view();
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
        transform: translateX(-500px) scale(0.2);
        filter: blur(0);
    }

    35%,
    65% {
        opacity: 1;
        transform: translateX(0px) scale(1);
        filter: blur(0);
    }

    100% {
        filter: blur(20px);
    }
}

@media (max-aspect-ratio: 16/19) {
    .back-vid {
        width: auto;
        height: 100%;
    }
}

@media (min-aspect-ratio: 16/9) {
    .back-vid {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 1000px) {
    .blackhole-box video {
        margin-top: -20%;
    }

    .hero-info h1 {
        font-size: 40px;
        max-width: 400px;
        line-height: 40px;
    }

    .hero-info p {
        max-width: 300px;
    }

    .hero-vid-box {
        right: 0;
    }

    .hero-vid-box video {
        height: 0px;
    }

    .section-title {
        font-size: 30px;
    }

    .info-card {
        grid-template-columns: auto;
    }

    .card:nth-child(3) {
        grid-column: span 2;
        height: 70vh;
    }

    .info-cards .card h1 {
        font-size: 20px;
    }

    .card:nth-child(3) h1 {
        bottom: 25%;
    }

    .card video {
        height: 65%;
        margin-top: 5%;
    }

    footer {
        font-size: 20px;
    }

}

@media screen and (max-width: 700px) {
    header {
        position: fixed;
        height: 50px;
    }

    header ul {
        display: none;
    }

    header .box-icons {
        display: none;
    }

    header h1 {
        font-size: 25px;
    }

    .blackhole-box video {
        margin-top: -16%;
    }

    .hero {
        flex-direction: column;
    }

    .autoBlur {
        animation: none;
    }

    .hero-info {
        bottom: 5%;
    }

    .scroll-down {
        bottom: 5%;
    }

    .hero-info h1 {
        line-height: 50px;
    }

    .hero-vid-box {
        height: 200px;
        top: 5%;
        right: 5%;
    }

    .card video {
        width: 100%;
    }

    .designer {
        top: 15%;
        left: 18%;
    }

    .coder {
        top: 50%;
        left: 18%;
    }

    .skill-box h1 {
        margin-bottom: 0;
        margin-top: 70px;
    }

    .slider {
        bottom: 0;
    }

    .slider img {
        width: 60%;
    }

    .contact-section {
        flex-direction: column;
        margin-top: 100px;
        margin-bottom: 50px;
    }

    .contact-section .section-title {
        top: -40px;
        left: 25%;
    }

    footer h1 {
        font-size: 17px;
    }

    .menu-icon {
        display: inline;
    }
}

.contact {
    width: 80%;
    display: flex;
    justify-content: flex-start;
    margin-top: 100px;
    margin-bottom: 100px;

}

.contact-box {
    display: block;
    justify-content: left;
    text-align: left;
    justify-items: left;
    background-color: #2200493d;
    padding: 30px;
    border: 2px solid gray;
    border-radius: 20px;
}

.contact h1{
    font-size: 50px;
    justify-content: center;
    text-align: center;
    align-content: center;
}

.contact-box label {
    margin: 5px;
    color: #727fde8e;

}

.contact-box input,
.contact-box textarea {
    margin: 20px;
}

.contact-box input,
.contact-box textarea {
    border-radius: 20px;
    padding: 10px;
}

.contact-box button {
    margin: 10px;
    color: #727fde8e;
    background-color: #2200493d;
    border: 2px solid gray;
    border-radius: 20px;
    font-size: 15px;
    padding: 7px;
    width: 35%;
}

.contact-box small {
    font-size: 10px;
    color: #727fde8e;
}