@import url('https://fonts.googleapis.com/css2?family=Alegreya:wght@400;500;600;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Edu+TAS+Beginner:wght@400;700&display=swap');


* ,
*::before ,
*::after {
    margin: 0 ;
    padding: 0 ;
    box-sizing: border-box;
}

html {
    font-size: 62.5% ;
    font-family: 'Alegreya', serif;
    scroll-behavior: smooth ;
}

body {
    overflow-x: hidden;
}

::-webkit-scrollbar { 
    width: 5px; 
}

::-webkit-scrollbar-track { 
    background-color: rgb(255, 255, 255); 
}

::-webkit-scrollbar-thumb { 
    background-color: rgb(41, 41, 41); 
}

section {
    position: relative;
    background-color: rgb(18, 18, 18);
}

.cursor-scale {
    cursor: pointer;
}

.max-width_container {
    width: 100% ;
    max-width: 160rem ;
    margin: 0 auto ;
}

/* HEADER  */

.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding-block: 1.5rem ;
    background-color: rgb(18, 18, 18);
    transition: .5s ease;
    z-index: 10;
}

.header.active {
    background-color: rgb(23, 23, 23) ;
    /* padding-block: 1.5rem ; */
    box-shadow: 0 12px 30px -10px rgba(125, 111, 111, 0.2) ;
}

.header .container .nav-logo {
    padding: 0 6rem ;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    position: fixed;
    top: 0;
    right: -40rem;
    background-color: rgb(23, 23, 23) ;
    height: 100vh;
    max-width: 40rem;
    width: 100%;
    padding: 2.5rem;
    overflow-y: auto;
    z-index: 30;
    transition: 0.25s cubic-bezier(0.33, 0.85, 0.4, 0.96);
    visibility: hidden;
}

.navbar.active {
    visibility: visible;
    transform: translateX(-40rem);
    transition-duration: 0.5s;
}

.navbar-top ,
.logo-name {
    display: flex;
    justify-content: space-between;
    align-items: center ;
}

.logo-name .logo img {
    width: 4rem ;
}

.logo-name h2 {
    font-size: 3rem ;
    margin-left: 1rem ;
    color: #fff ;
    font-weight: 400;
}

.navbar-list {
    text-align: center;
    padding-block: 8rem ;
    overflow-y: auto;
}

.navbar-item {
    list-style: none ;
    padding: 1.5rem 0 ;
}

.navbar-link {
    font-size: 2.5rem ;
    color: #fff ;
    text-decoration: none; 
    text-transform: capitalize;
    transition: all 0.25s ease;
}

.navbar-item:hover .navbar-link {
    color: grey ;
}

.navbar-title {
    font-size: 2.5rem ;
    color: grey ;
}

.address-text {
    padding-block: 2rem ;
    color: #fff ;
    font-size: 1.7rem ;
    letter-spacing: 1.5px ;
    font-weight: 600 ;
}

.contact-link {
    display: block ;
    text-decoration: none;
    color: grey ;
    font-size: 2.5rem ;
}

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgb(0, 0, 0) ;
    z-index: 20;
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
}

.overlay.active {
    opacity: 0.85;
    pointer-events: all;
}


/* ////////////////////////////// */
/* HERO */

.main {
    position: relative;
    max-width: 160rem ;
    padding: 10rem 0 ;
    background-color: rgb(18, 18, 18);
}

.main .container {
    padding: 0 4rem ;
}

.hero {
    display: flex ;
}

.hero .hero-content {
    flex: 1 ;
}

.hero-content h1 {
    font-size: 13rem ;
    color: #fff ;
    font-weight: 500 ;
}

.text-icon {
    max-width: 70rem ;
    margin-left: auto ;
    animation: slideIn 800ms ease;
}

.text-icon h2 {
    font-size: 9rem ;
    color: #fff ;
    font-weight: 400;
}


.hero-img {
    position: relative;
    border-radius: 50% ;

    background-image: radial-gradient(#3c2c2c 15%  , transparent 25%);
    background-size: 25px 25px ;
    box-shadow: inset 0 0 10px 10px rgba(0,0,0,.6);
}

.hero-img img {
    animation: spin 40s linear infinite ;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.hero-img_text {
    position: absolute;
    top: 50% ;
    left: 50% ;
    transform: translate(-50% , -50%);
    font-size: 10rem ;
    color: grey ;
}

.img-shape {
    position: absolute ;
    bottom: 1rem ;
    opacity: .5 ;
}

.social-icon {
    display: flex;
    justify-content: center ;
    gap: 2.5rem;
}

.social-icon_link {
    background-image: radial-gradient(#3c2c2c 15%  , transparent 25%);
    background-size: 15px 15px ;
    box-shadow: inset 0 0 10px 10px rgba(0,0,0,.8);
    color: #fff;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transform: scale(0.9);
}

.social-icon_link:hover {
    background-image: none;
    box-shadow: none;
    color: #c336df ;
    transform: scale(1.3);
}

/* ==================
    CATEGORY
================== */

.category {
    padding: 10rem 0 ;
    font-family: 'Edu TAS Beginner', cursive;
    overflow-x: hidden;
}

.category-container span {
    color: rgb(128, 128, 128) ;
    text-transform: capitalize;
    white-space: nowrap ;
    font-weight: 700;

    display: flex ;
    align-items: center ;
    gap: 2rem ;
}

.category-container .little-letter {
    font-size: 2rem ;
}

.category-container .big-letter {
    font-size: 8rem ;
    padding-block: 0 1.8rem ;
}

.category-container span i {
    color: rgba(128, 128, 128 , .4);
}



/* ==================
    ABOUT
================== */

.about {
    padding-bottom: 15rem ;
}

.about .container {
    max-width: 135rem;
    margin: 0 auto ;
    padding: 5rem 2rem ;
    display: flex ;
    justify-content: center ;
    gap: 12rem ;
}

.about-content {
    flex-basis: 55%;
}

.about-content h2 {
    margin-bottom: 5rem ;
    font-size: 90px ;
    font-weight: 400;
    color: #fff ;
    line-height: 110px ;

    animation: scalee linear forwards;
    animation-timeline: view();
    animation-range: cover 0% cover 50% ;
}

@keyframes scalee {
    from{transform: scale(0);opacity:0}
    to{transform: scale(1);opacity: 1;}
}

.about-text {
    position: relative;
    font-size: 32px ;
    color: grey ;
    padding-inline-start: 8rem ;
    line-height: 50px ;

    animation: scalee linear forwards ;
    animation-timeline: view();
    animation-range: cover 0% cover 30% ;
}

.about-text .em {
    text-decoration: underline;
    color: #fff ;
    font-weight: 600 ;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0 ;
    left: 0 ;
    background-image: url("image/about-quote.svg");
    background-repeat: no-repeat;
    background-size: contain;
    width: 4rem ;
    height: 4rem ;
}

.about-img_container {
    position: relative ;
    width: 100% ;
    max-width: 50rem ;
}

.about-img_container .about-img {
    width: 100% ;
}

.about-img_container::after {
    content: '';
    position: absolute ;
    left:0 ;
    bottom: 0 ;
    width: 100% ;
    height: 20% ;
    background: linear-gradient(transparent , rgb(18,18,18)) ; 
    filter: drop-shadow(2px 2px 5px rgb(0, 0, 0 , 0.8)) ;
}

.about-shape {
    position: absolute;
    transform: rotateX(180deg);
    right: 0 ;
}

/* ==================
    SERVICES
================== */

.services-container {
    position: relative;
    height: 500vh;
    background-color: rgb(18, 18, 18);
    background-image: radial-gradient(#3c2c2c 15%, transparent 25%);
    background-size: 2.5rem 2.5rem ;
    background-attachment: fixed;
}

.services-container::before {
    content: '';
    position: absolute;
    top: 0 ;
    left: 0 ;
    width: 100% ;
    height: 4% ;
    background: linear-gradient(rgb(18, 18, 19), rgb(18, 18, 35));
}

.services-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3%;
    background: linear-gradient(rgb(18, 18, 35) , rgb(18, 18, 19));
}

.services-container h3 {
    padding: 0 5rem ;
}

.sticky-container {
    overflow: hidden;
    position: sticky;
    top: 8rem ;
    height: 100vh;
}

.scroll-container {
    position: absolute;
    top: 0;
    height: 100%;
    width: 500vw;

    display: flex;
    justify-content: space-around ;
    align-items: center ;
    gap: 10rem ;
    padding: 0 10rem;
}

.card {
    position: relative;
    width: 100% ;
    max-width: 60rem ;
    text-align: center ;
    border-radius: 2rem ;
    cursor: pointer;
    transform-style: preserve-3d ;
    transition: all 500ms ease;
}

.card img {
    width: 100% ;
    border-top-right-radius: 2rem;
    border-top-left-radius: 2rem;
    filter: invert(97%);
    transition: all 200ms ease;
}

.card .card-img {
    transition: all 500ms ease ;
}

.card:hover .card-img {
    transform: scale(0);
    opacity: 0;
}

.card .popup {
    position: absolute;
    top: 41% ;
    left: 50% ;
    transform: translate(-50% , -50%);
    transition: all 500ms ease;
}

.card:hover .popup {
    transform: translate(-50%, -50%) translateZ(15rem) ;
}

.card .tilt-content {
    font-size: 5rem;
    border-bottom-right-radius: 2rem;
    border-bottom-left-radius: 2rem;
    background-color: grey;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 300ms ease;
}

.card:hover .tilt-content {
    transform: scaleY(1);
}

/* ==================
    RECENT WORK
================== */

.recent-work {
    position: relative;
    padding: 0 5rem 5rem ;
}

.recent-work_container h3 ,
.services-container h3 {
    position: relative;
    color: grey ;
    font-size: 5rem ;
    text-transform: uppercase;
    width: fit-content;
}

.recent-work_container ul {
    padding: 4rem 0 ;
    list-style: none ;
}

.recent-work_container ul li {
    border-top: 1px solid grey ;
    border-bottom: 1px solid grey;
    padding: 5rem 3rem ;
}

.recent-work_container ul a {
    text-decoration: none;
}

.recent-work_container ul a li {
    color: #fff ;
    text-transform: capitalize;

    display: flex;
    justify-content: space-between;
    align-items: center ;
}

.recent-work_container ul a li p:nth-child(1) {
    font-size: 8rem ;
}

.recent-work_container ul a li p:nth-child(2) {
    font-size: 2rem ;
}

/* ////////////////////////////// */

.slider-container {
    position: fixed ;
    width: 300px;
    height: 280px ;
    pointer-events: none ;
    transform: translate(-50% , -50%);
    transform-origin: top left ;
    overflow: hidden;
    animation: slide2r 400ms forwards  ;
}

@keyframes slide2r {
    from {
        transform: scale(1) translate(-50%, -50%);
    }
    to {
        transform: scale(0);
    }
}

.slider-container.active {
    animation: slider 400ms linear ;
}

@keyframes slider {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1) translate(-50%, -50%);
    }
}

.slider-container .slider-img {
    position: relative;
    width: 100% ;
    height: 100% ;
    padding: 5rem 2.5rem;
    transition: all 500ms ease-in-out;
}

.slider-container .slider-img img {
    width: 100% ;
    height: 100% ;
}

.slider-list a:hover li p {
    color: grey ;
}

.slider-list a:nth-child(2):hover ~ .slider-container .slider-img {
    transform: translateY(-280px);
}
.slider-list a:nth-child(3):hover~.slider-container .slider-img {
    transform: translateY(-560px);
}
.slider-list a:nth-child(4):hover~.slider-container .slider-img {
    transform: translateY(-840px);
}
.slider-list a:nth-child(5):hover~.slider-container .slider-img {
    transform: translateY(-1120px);
}
.slider-list a:nth-child(6):hover~.slider-container .slider-img {
    transform: translateY(-1400px);
}

/* /////////////////////////// */

.recent-work:has(.slider-container.active)~.cursor {
    mix-blend-mode:normal;
    background-color: #c336df;
    width: 5rem ;
    height: 5rem ;
    box-shadow: 0 0 1rem rgba(0,0,0,.6);
    transition: all 200ms linear ;
}

.recent-work:has(.slider-container.active)~.cursor:before {
    content: 'View';
    position: absolute ;
    top: 50% ;
    left: 50% ;
    transform: translate(-50% , -50%);
    font-size: 1.5rem ;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 1rem #000 ;
}

/* ==================
    FOOTER
================== */

footer {
    position: relative;
    background: url("image/work-together.jpg");
    background-size: cover ;
    background-repeat: no-repeat;
    background-position: bottom;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0 0 0 0;
    background-color: rgba(0,0,0,.8);
}

footer::after {
    content: "";
    position: absolute;
    top: 0 ;
    left: 0 ;
    width: 100% ;
    height: 40% ;
    background: linear-gradient(rgba(18,18,18) , transparent)
}

.footer-container {
    position: relative;
    padding: 10rem 5rem 2rem ;
    z-index: 1;
}

.row .row-span {
    font-size: 7rem;
    line-height: 7.5rem ;
    color: #fff ;
    font-weight: 400;
    display: flex;
    align-items: center ;
    gap: 2rem ;
}

.profile-picture {
    width: 8rem ;
    height: 8rem ;
    border-radius: 50% ;
    background-image: url("image/pic1.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center ;
    box-shadow: inset 0 0 1rem rgba(255,255,255,.1);
}

.row .row-span i {
    margin-left: auto ;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, .5);
    transform: rotate(135deg);
}

.stripes-touch {
    padding-block: 10rem ;
    position: relative;
}

.stripes-touch .stripes {
    width: 100% ;
    height: 1px ;
    background-color: rgba(255,255,255,.2) ;
}

.stripes-touch .get-in-touch {
    position: absolute;
    width: 15rem ;
    height: 15rem ;
    border-radius: 50%;
    top: 2rem ;
    right: 10rem ;
    border: 1rem solid rgba(255,255,255,.1) ;
    background-image: linear-gradient(#3c2c2c 15%, #3c2c2c 25%);
    background-size: 25px 25px;
    box-shadow: inset 0 0 10px 10px rgba(0, 0, 0, .6);

    display: flex ;
    justify-content: center ;
    align-items: center ;
    font-size: 2rem ;
    color: #fff ;
}

.mail-number {
    display: flex ;
    align-items: center ;
    gap: 2rem ;
}

.mail-number .btn a , 
.mail-number .btn p {
    display: block;
    position: relative;
    text-decoration: none ;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10rem;
    padding: 1.8rem 4rem;
    font-size: 2rem;
    cursor: pointer;
}

.mail-number .btn a:hover,
.mail-number .btn p:hover {
    background-color: rgba(128,128,128,.2);
}


.footer-bottom {
    padding-top: 10rem ;
    display: flex ;
    justify-content: space-between;
    align-items: center ;
    perspective: 500px ;

}

.info {
    display: flex ;
    gap: 3rem ;
}

.info h5 {
    font-size: 1.2rem ;
    color: grey ;
    text-transform: uppercase; 
}

.info p {
    font-size: 1.6rem ;
    color: #fff ;
}


/* ///////////////////////////////////////////// */




















































/* /////////////////////////////////// */
/* LOADER */

#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;

    background-image: radial-gradient(#3c2c2c 75%, #1d1515 45%);
    background-size: 80px 80px;

    transform-origin: top;

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#loader.fade-out {
    animation: loaderanimate 1.5s linear forwards ;
}

@keyframes loaderanimate {
    100% {
        transform: scaleY(-100%);
        border-radius: 0 0 50% 50%/0 0 100% 100%;
    }
}

.loader-text {
    font-size: 7rem ;
    text-transform: capitalize;
    color: #fff ;
    text-shadow: 5px 5px 2rem rgba(0,0,0,.7);
    letter-spacing: 5px ;
}


/* /////////////////////////////////// */
/* WINDOWS HEIGHT AND BACK TO TOP% */

.back-top-btn {
    position: fixed;
    bottom: 3rem;
    right: -7rem;
    width: 7rem;
    height: 7rem;
    border: 1px dashed currentColor;
    font-weight: 700;
    color: grey ;
    font-size: 1.4rem ;
    border-radius: 50% ;
    text-decoration: none;
    display: flex ;
    justify-content: center ;
    align-items: center ;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 100;
  }

  .back-top-btn.show {
    transform: translateX(-10rem);
    visibility: visible;
  }

  /* /////////////////////////////// */
  /* CURSOR */

.cursor {
    position: fixed ;
    width: 7.5rem ;
    height: 7.5rem ;
    background-color: #fff ;
    mix-blend-mode: exclusion;
    border-radius: 50% ;
    transform: translate(-50%, -50%) scale(0.35);
    transition: all .2s;
    pointer-events: none;
    z-index: 1000;
}

.cursor.hovered {
    transform: translate(-50%, -50%) scale(1.2);
}

/* MEDIA QUERY */

@media only screen and (min-width: 1300px) {
    .card {
        max-width: 80rem;
    }

    .card .tilt-content {
        font-size: 6.5rem;
    }
}


@media only screen and (min-width: 780px) {
    .services-container {
        height: 300vh;
    }

    .scroll-container {
        width: 300vw;
    }
}

@media only screen and (min-width: 1301px) {

    .about-content {
        display: flex ;
        flex-direction: column;
        justify-content: flex-end ;
    }

    .category {
        padding: 10rem 0 2rem ;
    }

}


@media only screen and (max-width: 1330px) {

    .hero-content h1 {
        font-size: 11rem ;
    }
}

@media only screen and (max-width: 1300px) {

    .about-img_container {
        max-width: 40rem ;
    }

    .about .container {
        gap: 8rem ;
    }

    .about-content h2 {
        font-size: 7rem;
        line-height: 8rem;
    }

}



@media only screen and (max-width: 1200px) {

    .hero-content h1 {
        font-size: 8rem ;
    }

    .text-icon {
        max-width: 50rem ;
    }

    .text-icon h2 {
        font-size: 7rem ;
    }

    .hero-img {
        width: 25rem ; 
        height: 25rem ;
    }

    .hero-img img {
        width: 25rem  ;
    }

    .hero {
        padding: 0 2rem ;
    }

        .recent-work_container ul a li p:nth-child(1) {
        font-size: 6rem ;
    }
    
}

@media only screen and (max-width: 1105px) {

    .hero {
        padding: 0 3rem ;
    }

}

@media only screen and (max-width: 1050px) {

    .about-text {
        font-size: 2.5rem ;
        line-height: 4.4rem ;
    }

    .about-img_container {
        max-width: 30rem ;
    }

    .about-shape {
        margin-bottom: -5rem ;
    }
}

@media only screen and (max-width: 992px) {

    .hero {
        flex-direction: column-reverse;
        align-items: center ;
        justify-content: center ;
        margin-bottom: 4rem ;
    }

    .hero .hero-content {
        margin-top: 1.5rem ;
        text-align: center ;
    }

    .text-icon {
        margin-left: 0 ;
    }

    .hero-img {
        width: 18rem ; 
        height: 18rem ;
    }

    .hero-img img {
        width: 18rem  ;
    }

    .hero-content h1 {
        font-size: 6rem ;
    }

    .text-icon h2 {
        font-size: 5rem ;
    }

    .main  {
        padding: 4rem 0 ;
    }

    .hero-img_text {
        font-size: 7rem ;
    }

    .main .container {
        padding: 0 1rem ;
    }

    .header .container .nav-logo {
        padding: 0 2rem ;
    }



}

@media only screen and (max-width: 920px) {

    .about .container {
        flex-direction: column-reverse;
        max-width: 75rem ;
    }

    .about-img_container {
        margin: 0 auto ;
        max-width: 40rem ;
    }

    .about-content h2 {
        font-size: 6rem ;
        line-height: 7rem ;
    }

    .about-text {
        font-size: 2rem;
        line-height: 2;
    }

    .img-shape {
        display: none ;
    }

    .about .container {
        gap: 1rem ;
    }

}

@media only screen and (max-width: 780px) {

    .scroll-container {
        gap: 10rem ;
    }

    .recent-work {
        padding: 0 2rem 5rem ;
    }
}

@media only screen and (max-width: 630px) {
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 2rem ;
    }

    .mail-number {
        flex-direction: column;
        gap: 4rem ;
    }

    .mail-number .btn {
        width: 100% ;
        text-align: center ;
    }

    .recent-work_container ul a li {
        flex-direction: column;
        padding: 2rem 0 ;
        align-items: flex-start;
    }

    .recent-work_container ul a li p:nth-child(1) {
        font-size: 4.5rem ;
    }

    .cursor {
        display: none;
    }

    .stripes-touch {
        padding-block: 6rem ;
    }

    .stripes-touch .get-in-touch {
        width: 10rem ;
        height: 10rem ;
        top: 0 ;
        right: 7rem ;
        font-size: 1.2rem ;
    }

    .footer-bottom {
        padding-top: 3rem ;
    }

}

@media only screen and (max-width: 550px) {

    .row {
        margin-bottom: 2rem ;
    }

    .row .row-span {
        font-size: 5rem ;
        line-height: 4.5rem ;
    }

}

@media only screen and (max-width: 455px) {

    .footer-container {
        padding: 5rem 2rem 2rem ;
    }

    .profile-picture {
        width: 6rem ;
        height: 6rem ;
    }

    .row .row-span i {
        display: none ;
    }

    .footer-container {
        padding: 6rem 2rem 2rem ;
    }


}

@media only screen and (max-width: 432px) {

    .card .popup {
        top: 39%;
    }

}

@media only screen and (max-width: 330px) {

    .row .row-span {
        display: flex ;
        flex-direction: column;
        line-height: 2.5rem;
        font-size: 3.5rem;
    }

    .mail-number .btn a {
        font-size: 1.5rem ;
    }

    .services-container h3 {
        padding: 0 1rem ;
    }

    .card .card-img {
        opacity: 0;
    }
    
}

