@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    border: none;
    outline: none;
    list-style: none;
    transition: all 500ms ease-in-out;
}

:root {
    --color-primary: #6f6af8;
    --color-primary-light: hsl(242, 91%, 69%, 18%);
    --color-primary-variant: #5854c7;
    --color-red: #da0f3f;
    --color-red-light: hsl(346, 100%, 38%, 15%);
    --color-green: #00c476;
    --color-green-light: hsl(156, 100%, 38%, 15%);
    /* --color-gray-900: #1e1e66; */
    --color-gray-900: #9e9eac;
    --color-gray-700: #2d2b7c;
    --color-gray-300: rgba(242, 242, 254, 0.9);
    --color-gray-200: rgba(242, 242, 254, 0.8);
    --color-white: #f2f2fe;
    --color-bg: #0f0f3e;
}

body {
    max-width: 1800px;
    width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 0.9rem;
    background: var(--color-bg);
    color: var(--color-white);
    font-family: "Roboto", sans-serif;
}
main{
    scroll-behavior: smooth;
    transition: all 500ms ease-in-out;
}

section {
    width: 100vw;
    padding-top: 4rem;
    padding-inline: 10%;
}

header,
footer {
    width: 100vw;
    padding: 0 10%;
}

a {
    color: var(--color-white);
    font-size: 1rem;
}

.heading {
    text-align: center;
    padding-bottom: 2rem;
}

.heading span{
    color: var(--color-red);
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--color-white);
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 0.8rem;
}


video {
    display: block;
    object-fit: cover;
}

button {
    white-space: nowrap;
    width: fit-content;
    padding: 10px 15px;
    border-radius: 5px;
    background: var(--color-primary-variant);
    color: var(--color-white);
    font-size: 1rem;
    box-shadow: inset 0 0 10px 3px var(--color-primary);
    cursor: pointer;
}

button:hover {
    background: var(--color-primary);
    box-shadow: inset 0 0 10px 3px var(--color-primary);
}

/* ===================================== START HEADER SECTION DESIGN =================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    background: var(--color-gray-700);
    z-index: 1000;
}

header .menu {
    display: none;
}

header nav ul {
    display: flex;
    gap: 20px;
}

header nav ul li a:hover {
    letter-spacing: 1px;
    color: var(--color-primary) !important;
}

/* ===================================== END HEADER SECTION DESIGN =================================== */

/* ===================================== START HERO SECTION DESIGN =================================== */
.hero {
    height: 100%;
    padding-top: 90px !important;
}

.small-device {
    display: none;
}

.hero .top {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
}

.hero .top h1 {
    width: 80%;
}

.hero .top .small-image-and-content {
    position: absolute;
    width: 300px;
    height: 240px;
    background: var(--color-bg);
    top: 30px;
    right: 0;
    padding: 10px 10px;
    border-radius: 0 0 0 30px;
    z-index: 5;
}

.hero .top .small-image-and-content div {
    display: flex;
    gap: 20px;
    width: 100%;
    aspect-ratio: 16/9;
    margin: 0 auto;
    flex-direction: column;
}

.hero .top .small-image-and-content div video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.hero .bottom::after {
    position: absolute;
    content: "";
    width: 60px;
    height: 60px;
    background: transparent;
    right: 0;
    border-radius: 100px;
    top: 70px;
    box-shadow: 40px -40px 0px 10px var(--color-bg);
    z-index: 4;
}

.hero .bottom::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 60px;
    background: transparent;
    right: 300px;
    border-radius: 100px;
    top: 0px;
    box-shadow: 40px -40px 0px 10px var(--color-bg);
    z-index: 4;
}

.hero .bottom {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 230px);
    background: #4444;
    border-radius: 30px;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1)), url('https://cdn.wallpapersafari.com/32/32/HbsIBw.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.hero .bottom .button-group {
    position: absolute;
    width: 350px;
    padding: 20px;
    bottom: 0;
    left: 0;
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    place-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.hero .bottom .button-group button {
    width: fit-content;
    padding: 8px 15px;
    border-radius: 100px;
    border-color: #e5e5e5;
    border: 2px solid #e5e5e5;
    color: #e5e5e5;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
}

.hero .bottom .button-group button:hover {
    border-color: #fff;
    color: #e5e5e5;
}

/* ===================================== END HERO SECTION DESIGN =================================== */


/* ===================================== START ABOUT SECTION DESIGN =================================== */
.about .about___container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.about .about___container .col {
    display: flex;
    justify-content: start;
    flex-basis: 50%;
    flex-direction: column;
    gap: 15px;
}

.about .about___container p {
    color: rgb(118, 118, 162);
    text-align: justify;
    line-height: 20px;
}

.about .about___container .col-left .image__frame {
    position: relative;
    max-width: 390px;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    background-image: linear-gradient(to top, purple, brown);
    z-index: -1;
}

.about .about___container .col-left .image__frame img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    bottom: 0;
    mix-blend-mode: multiply;
}

.about .about___container .frame {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    position: fixed;
    user-select: none;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    backdrop-filter: blur(0);
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
}

.about .about___container .frame.active {
    opacity: 1;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.about .about___container .frame .layer__about {
    display: flex;
    gap: 20px;
    flex-direction: column;
    padding: 20px 30px;
    max-width: 580px;
    max-height: 600px;
    height: 100%;
    height: 100%;
    overflow: hidden;
    background: rgb(27, 10, 43);
    border-radius: 10px;
    scale: 0.9;
    opacity: 0;
    animation-delay: 300ms;
    transform-origin: top;
    transition: all 300ms ease-in-out linear;
    overflow: auto;
}

.about .about___container .frame .layer__about.active {
    opacity: 1;
    scale: 1;
}

.about .about___container .frame .layer__about:hover::-webkit-scrollbar-thumb{
    background: #5854c7;
}

.about .about___container .frame .layer__about::-webkit-scrollbar {
    width: 10px;
    background: rgb(0, 2, 107);
}

.about .about___container .frame .layer__about::-webkit-scrollbar-button {
    background: transparent;
}

.about .about___container .frame .layer__about::-webkit-scrollbar-thumb {
    background: rgb(0, 2, 107);
    cursor: pointer;
    border-radius: 10px;
}

.about .about__banner {
    margin: 2rem 0;
    width: 100%;
    border-radius: 20px;
}

.about .about__banner img {
    width: 100%;
    object-fit: cover;
}

/* ===================================== END ABOUT SECTION DESIGN =================================== */


/* ===================================== START PORTFOLIO SECTION DESIGN =================================== */
.portfolio {
    height: 100%;
}

.portfolio .portfolio__container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 1.8rem;
    flex-wrap: wrap;
}

.portfolio .portfolio__container .box {
    position: relative;
    width: calc(100% / 3 - 10px);
    
    background: rgb(53, 7, 97);
    border-radius: 10px;
    box-shadow: 4px 4px 15px rgb(1, 1, 71);
    overflow: hidden;
    transition: all 0.5s ease-in;
}

.portfolio .portfolio__container .box img {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 10px;
}
.portfolio .portfolio__container .box .project__name{
    font-size: 22px;
}
.portfolio .portfolio__container .box .content {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 25px 50px;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--color-gray-200), var(--color-gray-300));
    color: #111 !important;
    cursor: pointer;
    transform: translateY(110%);
    border-radius: 10px;
    transition: all 0.5s ease-in-out;
}
.portfolio .portfolio__container .box:hover .content *{
    color: #111;
}

.portfolio .portfolio__container .box:hover .content {
    transform: translateY(0%);
}

/* ===================================== END FORTFOLIO SECTION DESIGN =================================== */


/* ===================================== START CONTACT SECTION DESIGN =================================== */
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.contact .contact__container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.contact .contact__container address,
.contact .contact__container form {
    width: calc(100% / 2 - 20px);
}

.contact .contact__container address {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

.contact .contact__container address .box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact .contact__container address .box i,
.contact .contact__container address .box p,
.contact .contact__container address .box a {
    font-size: 16px;
    color: rgb(224, 224, 255);
    text-decoration: none;
}

.contact .contact__container form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact .contact__container form .form-group {
    display: flex;
    flex-direction: column;
}

.contact .contact__container form h2 {
    grid-column: 1/-1;
    color: var(--color-primary);
    padding: 10px 0;
}

.contact .contact__container form .textarea,
.button {
    grid-column: 1/-1;
}

.contact .contact__container form .form-group input,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    background: rgb(1, 1, 72);
    color: var(--paragraph-color);
    border: 0;
    outline: none;
}

.contact .contact__container form .form-group input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgb(253, 248, 253);
    background: darkblue;
}

/* ===================================== END CONTACT SECTION DESIGN =================================== */


/* ===================================== START FOOTER SECTION DESIGN =================================== */
.footer {
    margin-top: 30px;
    width: 100vw;
    background: var(--color-gray-700);
    padding: 20px 0;
}

footer {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: center;
}

footer .box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .box ul {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: center;
}

footer .logo {
    font-size: 2.2rem;
}
hr{
    width: 100%;
    border: 1px solid var(--color-bg);
}
footer .box ul li a:hover{
    color: var(--color-primary);
    letter-spacing: 1px;
}
footer .social-media-icon ul li a {
    font-size: 1.8rem;
}
.icon{
    padding: 10px;
    border-radius: 5px;
    background: var(--color-primary-variant);
}

footer .social-media-icon ul li a:hover {
    color: var(--color-primary-variant);
}

/* ===================================== END FOOTER SECTION DESIGN =================================== */

/* ============================MEDIA QUERY ========================================  */

@media only screen and (max-width:1440px) {}

@media only screen and (max-width:1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .hero .top h1 {
        width: 100% !important;
    }

    .small-device {
        display: block;
        width: 100%;
        height: 300px;
        object-fit: cover;
        margin-bottom: 30px;
        border-radius: 30px;
    }

    section,
    footer,
    header {
        padding: 0 7% 0% 5%;
    }

    header .menu {
        width: 40px;
        height: 40px;
        display: block;
        font-size: 2rem;
        cursor: pointer;
    }

    header .menu:hover {
        color: var(--color-primary);
    }
    footer{
        height: 100%;
        flex-direction: column;
    }
    header nav {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--color-gray-900);
        transform: translateX(-110%);
        opacity: 0;
        z-index: 1000;
    }

    header nav.active {
        transform: translateX(0);
        opacity: 1;
    }

    header nav ul {
        padding-top: 20px;
        display: block;
    }

    header nav ul li {
        padding: 10px 7% 10px 5%;
        border-bottom: 1px solid var(--color-gray-700);
    }

    .hero .top h1 {
        width: 100%;
    }

    .hero .bottom {
        min-height: 300px;
    }

    .hero .bottom::before,
    .hero .bottom::after,
    .small-image-and-content {
        display: none;
    }

    .about .about___container {
        flex-direction: column;
    }

    .about .about___container .col {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .contact .contact__container{
        flex-direction: column;
    }
    .contact .contact__container address,
     .contact .contact__container form{
        width: 100%;
    }
}

@media only screen and (max-width:768px) {
    body {
        font-size: 0.8rem;
    }

    section,
    footer,
    header {
        padding-inline: 0 20px 0 25px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    header nav ul li {
        padding: 10px 25px;
    }
    .contact .contact__container form{
        flex-direction: column;
        grid-template-columns: 100%;
    }
    .contact .contact__container form .form-group{
        width: 100%;
    }
}