@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Common Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    font-family: "Jura", sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

.center{
    display:flex;
    justify-content: center;
    align-items: center;
}
/* Main button */
.main-btn{
    position:absolute;
    bottom: 3rem;
    left: 47%;
    width: 13rem;
    height: 13rem;
    background-color: #9b0e0e;
   border-radius: 50%;
   border: .2rem double #fff;
   padding: .1rem;
   overflow: hidden;

}

.main-btn-content{
   width:100%;
   height:100%;
   border: .2rem dotted #e7be08;
   border-radius: 50%;
   transform: rotate(40deg);
   transition: transform .2s, border .2s;
}

.main-btn:hover .main-btn-content{
   transform: rotate(60deg);
   border: .2rem double #9b0e0e;
   transition: transform .2s .5s, border .2s;
}

.mainbtn-line{
   position:absolute;
   top:4rem;
   width:3rem;
   height: .5rem;
   border: .1rem solid #fff

}

.mainbtn-line:nth-child(1){
   transform: rotateZ(-45deg) translateX(-.65rem);
   transform-origin: left center;
   border-right: none;
}
.mainbtn-line:nth-child(2){
   transform: rotateZ(45deg) translateX(.65rem);
   transform-origin: right center;
   border-left: none;
}

.mainbtn-line:nth-child(3){
   transform: rotateZ(90deg) translateX(.5rem);
   border-left: none
}

.main-btn span{
   position: absolute;
   bottom: 3rem;
   color: #fff;
   font-size: 1.1rem;
   font-weight: 600;
   text-transform: uppercase;
}

.ripple{
   position:absolute;
   width: 0%;
   height: 0%;
   background-color: #e7be08;
   border-radius:50%;
   transform: translate(-50%,-50%);
   animation:rippleanim .5s forwards;
}

@keyframes rippleanim{
   0%{
       width:0;
       height:0;

   }
   100%{
       width:210%;
       height:210%;
   }
}
/* End of Main button */
/* End of Common Styles */

/* Mouse Circle */
.mouse-circle,
 .mouse-dot {
    border-radius: 50%;
    position: fixed;
    z-index: 300;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.mouse-circle {
    width: 6rem;
    height: 6rem;
    border: 0.1rem solid #c7a622;
    animation: mousecircleanim 10s infinite linear;
}

@keyframes mousecircleanim {
    0% {
        width: 6rem;
        height: 6rem;
    }
    25% {
        width: 8rem;
        height: 8rem;
    }
    35% {
        width: 4rem;
        height: 4rem;
    }
    70% {
        width: 8rem;
        height: 8rem;
    }
    100% {
        width: 6rem;
        height: 6rem;
    }
}

.mouse-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #9b0e0e;
    animation: mousedotanim 10s
    infinite linear
}

@keyframes mousedotanim {
    0%{
        width:0.5rem;
        height:0.5rem;
    }
    55%{
        width:1.5rem;
        height:1.5rem;
    }
    100%{
        width:0.5rem;
        height:0.5rem;
    }
}
    
/* End of Mouse Circle */

/* Page BG */
.page-bg {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url("./images/bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
/* End of Page BG */
/* Progress Bar */
/* Progress Bar */
.progress-bar {
    position: fixed;
    bottom: 8rem;
    right: 8rem;
    width: 8rem;
    height: 8rem;
    background-color: #fff;
    border-radius: 50%;
    z-index: 200;
    overflow: hidden;
    cursor: pointer;
    /* Smooth transition for the magnetic effect */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .half-circle,
  .half-circle-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    transform-origin: right center;
  }
  
  .half-circle:nth-child(1),
  .half-circle:nth-child(2) {
    background-color: #b60000;
  }
  
  .half-circle-top {
    background-color: #fff;
    /* This transition allows the "mask" to disappear smoothly when JS changes opacity */
    transition: opacity 0s; 
  }
  
  /* Inner Circle & Arrow */
  .progress-bar-circle {
    width: 7.8rem;
    height: 7.8rem;
    background-color: #000;
    border-radius: 50%;
    color: #fff;
    font-size: 4rem;
    z-index: 200;
    position: absolute;
    top: 50%;
    left: 50%;
    /* translate keeps it centered, while JS adds the rotation */
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    /* This creates the smooth arrow flip animation from your 'good code' image */
    transition: transform 0.5s; 
  }
  
  /* Cleaned up: Arrow rotation is handled by JS transform now, 
     so we don't need the .at-bottom CSS class anymore */

/* This class will be added by JS when you reach the bottom */
.progress-bar.at-bottom .progress-bar-circle i,
.progress-bar.at-bottom .progress-bar-circle span {
  transform: rotate(180deg);
}
/* Navigation */
/* Menu Icon */
.menu-icon {
    position: fixed;
    top: 3.5rem;
    right: 0rem;
    width: 12rem;
    height: 7rem;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    cursor: pointer;
    transform: none(-50%, -50%);
    transition: opacity .2s;
}

.menu-icon-line {
    width: 4rem;
    height: .3rem;
    background-color: #fff;
    margin: 1rem 0;
    box-shadow: 0 0.3rem 0.5rem #000;
}

.show-menu-icon{
    opacity:1;
    visibility: visible;
}
/* End of Menu Icon */
/* Navbar */
.navbar {
    position: fixed;
    top: 2.5rem;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 3rem;
    z-index: 100;
    transition: opacity .5s,
    visibility .5s, transform 0.5s;

}

.navbar-link {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: 0 2.5rem;
    
    text-shadow: 0 0.3rem 0.5rem #000;
   
}

.hide-navbar{
    opacity:0;
    visibility: hidden;
    transform: translateX(10rem);
}
/* Navbar */
/* End of Navigation */

/* section1 */
.section-1{
    position: relative;
    width: 100%;
    height:100vh;
   
}

/* logo */
.logo{
    position:absolute;
    top: 2rem;
    left: 5rem;
    font-size: 2rem;
    text-transform: uppercase;
    color: white;
}
/* End of logo */
/* Animated Circles */
.circles {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: repeat(2,1fr);
    
}

.circle{
    width:22rem;
    height:22rem;
    border-radius: 50%;
    background-color: #9b0e0e;
    align-self: center;
    justify-self: center;
    opacity: 50%;
    position: relative;
    top: 0;
    left: 0;
    transition: left 3s, top 3s;

}

.circle-1{
    background: url(images/landing/circle-1-img.jpg) center no-repeat;
    background-size: cover;
    background-clip: content-box;
    border: 0.5rem dotted #fd7526;
    margin-left: -10rem
}

.circle-2{
    background: url(images/landing/circle-2-img.jpg) center no-repeat;
    background-size: cover;
    background-clip: content-box;
    border: 0.5rem dashed #2c06c5;
    margin-right: -10rem
}.circle-3{
    background: url(images/landing/circle-3-img.jpg) center no-repeat;
    background-size: cover;
    background-clip: content-box;
    border: 0.5rem double #005e0e;
    margin-left: -10rem
}.circle-4{
    background: url(images/landing/circle-4-img.jpg) center no-repeat;
    background-size: cover;
    background-clip: content-box;
    border: 0.5rem double #ad0909;
    margin-right: -10rem
}

.main-circle{
    width:55rem;
    height:55rem;
    position:absolute;
    overflow: hidden;
    border-radius: 50%;
    border: 0.2rem double #ffe600;
    transition: width .2s, height .2s;
}


.main-circle:hover{
    width: 75rem;
    height: 75rem;
}
.main-circle img{
    mix-blend-mode: hard-light;
    position:relative;
    top: 0;
    left: 0;
    transition: left 3s, top 3s;
}
/* End of animated circles */

/* featured text */
.featured-text{
    font-size: 2rem;
    color: #faefef;
    text-transform: uppercase;
    width: 0;
    word-wrap:break-word;
    line-height: 2.5;
    position: sticky;
    top: 0;
}

.featured-text-1{
    margin: 0 auto 0 10rem
}
.featured-text-2{
    margin: 0 10rem 5rem 10rem;
}

/* end of featured text */

/* Main button */
.main-btn{
     position:absolute;
     bottom: 3rem;
     width: 13rem;
     height: 13rem;
     background-color: #9b0e0e;
    border-radius: 50%;
    border: .2rem double #fff;
    padding: .1rem;
    overflow: hidden;

}

.main-btn-content{
    width:100%;
    height:100%;
    border: .2rem dotted #e7be08;
    border-radius: 50%;
    transform: rotate(40deg);
    transition: transform .2s, border .2s;
}

.main-btn:hover .main-btn-content{
    transform: rotate(60deg);
    border: .2rem double #9b0e0e;
    transition: transform .2s .5s, border .2s;
}

.mainbtn-line{
    position:absolute;
    top:4rem;
    width:3rem;
    height: .5rem;
    border: .1rem solid #fff

}

.mainbtn-line:nth-child(1){
    transform: rotateZ(-45deg) translateX(-.65rem);
    transform-origin: left center;
    border-right: none;
}
.mainbtn-line:nth-child(2){
    transform: rotateZ(45deg) translateX(.65rem);
    transform-origin: right center;
    border-left: none;
}

.mainbtn-line:nth-child(3){
    transform: rotateZ(90deg) translateX(.5rem);
    border-left: none
}

.main-btn span{
    position: absolute;
    bottom: 3rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ripple{
    position:absolute;
    width: 0%;
    height: 0%;
    background-color: #e7be08;
    border-radius:50%;
    transform: translate(-50%,-50%);
    animation:rippleanim .5s forwards;
}

@keyframes rippleanim{
    0%{
        width:0;
        height:0;

    }
    100%{
        width:210%;
        height:210%;
    }
}
/* End of Main button */
/* End of section1 */

/* Section 2 */
.section-2{
    position:relative;
    padding:10rem 10rem 15rem 10rem
}


/* About me text */
.about-me-text{
    width:80%;
    margin: auto;
}

/* section2 Heading */
.section-2-heading{
    font-size: 2rem;
    font-weight: 300;
    color: #fff;
    text-transform: uppercase;
    position:absolute;
    top: 400px;
    left:10rem;
    transform: translateY(-50%);
    width:0;
    word-break: break-all;
    line-height: 3;
    

    
}
/* end ofsection2 Heading */

.about-me-text span{
    font-family: "Poppins", sans-serif;
    font-size: 15rem;
    font-weight: bold;
    color: #aaa;
    letter-spacing: .5;
    line-height: 1.05;
    text-shadow: 0 0 1rem #9b0e0e;
    position: relative;
    mix-blend-mode: lighten;

}

@keyframes aboutmetextanim{
    0%{
        color: #aaa;
        top: 0;
    }
    10%,
    90%{
        color: #fff;
        top:2rem
    }
    100%{
        color: #aaa;
        top: 0;
    }
}
/* end of About me text */

/* Section 2 Main Button */
.section-2 .main-btn{
    left:50%;
    bottom: -5rem;
    transform: translateX(-50%)

}
/* End of Section 2 Main Button */
/* End ofSection 2 */

/* Section3 */
.section-3{
    width: 100%;
    height: 100%;
    padding: 10rem 0;
    margin-top: 10rem;
    position: relative;
}

/* projects */
.Projects {
    display: flex;
    flex-wrap: wrap;  /* Allows multiple rows */
    justify-content: center; /* Centers projects */
    gap: 2rem; /* Adds spacing between projects */
}


.project {
    width: 40rem;
    max-width: 1200px;
    height: 45rem;
    overflow: hidden;
    margin: 8rem;
    background-color: #000;
    display: flex;
    justify-content: center;
    position: relative;
    border: 0.2rem double #9b0e0e;
    border-radius: 0.5rem;
    cursor: pointer;
    perspective: 20rem;
}

.project img {
    width: 90%;
    object-fit: cover;
    position: absolute;
    top: 2rem;
    opacity:.5;
    transition: top 4s .2s;
}


.project:nth-child(odd):hover img{
    animation: oddimganim 4s 0.2s;
    opacity: 1;
}

@keyframes oddimganim{
    0%{
        transform:rotateY(0);
    }
    25% {
        transform:rotateY(-2deg) rotateX(2deg);
    }
    50% {
        transform:rotateY(2deg) rotateX(-2deg);
    }
    100% {
        transform:rotateY(0);
    }
}

.project:nth-child(even):hover img {
    animation: evenImgAnim 4s 0.2s;
    opacity:1;
}

@keyframes evenImgAnim {
    0% {
        transform: rotateY(0);
    }
    25% {
        transform: rotateY(2deg) rotateX(-2deg);
    }
    50% {
        transform: rotateY(-2deg) rotateX(2deg);
    }
    100% {
        transform: rotateY(0);
    }
}
/* Big Project Image */
.project-img-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden scroll;
    animation: imgWrapperAnim 1s forwards;
}

@keyframes imgWrapperAnim {
    0% {
        height: 0;
    }
    100% {
        height: 100%;
    }
}

.project-img {
    width: 100%;
    border-radius: 0.5rem;
    padding: 7rem 20rem;
    opacity: 0.9;
    transform-origin: top center;
    animation: imgAnim 1s 1s both;
}

@keyframes imgAnim {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

/* End of Big Project Image */


/* project hide button */
.project-hide-btn {
    position: fixed;
    top: 5rem;
    right: 5rem;
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    z-index: 10;
    transform: scale(0);
    visibility: hidden;
}


.change.project-hide-btn{
    transform: scale(1);
    visibility: visible;
    transition: transform .5s;
}
/* end ofproject hide button */
/* end of projects */

/* projects button */
.project-btn{
    left:50%;
    bottom: 5rem;
    transform: translateX(-50%);

}

.change > .main-btn-line:nth-child(1) {
    transform: rotateZ(45deg) translateX(-.65rem);
}

.change > .main-btn-line:nth-child(2) {
    transform: rotateZ(-45deg) translateX(.65rem);
}

.change > .main-btn-line:nth-child(3) {
    transform: rotateZ(90deg) translateX(-.5rem);
    border-left: .1rem solid #fff;
    border-right: none;
}

/* end of projects button */
/* End of Section3 */

/* section 5 */
.section-5{
    position:relative;
    height: 100vh;
    flex-direction: column;
    

}

/* Form */
.form-heading{
    font-family: "poppins",
    sans-serif;
    font-size:6rem;
    font-weight: 400;
    color: #9b0e0e;
    letter-spacing: 0.3rem;
    margin-bottom: 3rem;
    transition: opacity .3s;
}

.contact-form{
    display: flex;
    flex-direction: column;
}

.contact-form-input{
    width: 60rem;
    padding:0.5;
    margin: 1rem 0;
    background-color: rgba(255,255,255,.1);
    border: .1rem solid #9b0e0e;
    font-size: 1.7rem;
    font-weight:bold;
    color: #aaa;
    letter-spacing: .1rem;
    height:5rem;

}

.contact-form-textarea{
    height:20rem;
    resize: none;
}

.form-submit-btn{
    width: 20rem;
    height: 5rem;
    background-color: #9b0e0e;
    border: none;
    align-self: flex-start;
    font-size: 1.8rem;
    color: #fff;

}

/* form validation */
.message {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f55e5e;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin: 0 auto 1rem 0;
    visibility: hidden;
    opacity: 1;
    transition: opacity 0.3s;
}

.error.message{
    visibility: visible;
    opacity: 1;
}

/* end of form validation */
/* End of Form */

/*slideshow */
.slideshow {
    position: relative;
    display: flex;
    width: 50rem;
    margin: 2rem auto 0;
    padding: 0 2rem;
    top: -7rem;
  }
  
  
  .slideshow-link {
    width: 20%;
    flex-shrink: 0;
    filter: brightness(0.5);
    transition:
      opacity 0.5s ease,
      width 0.5s ease,
      filter 0.5s ease;
  }
  
  .slideshow-link:nth-child(3) {
    filter: brightness(1);
  }
  
  .slideshow-link img {
    width: 100%;
    padding: 0 1rem;
  }
  
  .faded-out {
    opacity: 0;
    width: 0;
  }
  /* end of slidshow*/
/* END OF section 5 */

/* reponsive */

@media (max-width: 1500px) {
    .circle {
        width: 15rem;
        height: 15rem;
    }

    .main-circle {
        width: 45rem;
        height: 45rem;
    }

    .main-circle:hover {
        width: 55rem;
        height: 55rem;
    }

    .main-circle img{
        width:160%;
        height:160%;
    }

    .about-me-text{
        font-size: 2rem;
    }
}
@media (max-width: 1350px) {
    .main-btn {
        width: 12.5rem;
        height: 12.5rem;
    }

    .circle {
        display: none;
    }

    .progress-bar {
        right: 1rem;
        bottom: 0;
    }

    .about-me-text span {
        font-size: 10rem;
    }
}
@media (max-width: 1150px) {
    html {
        font-size: 55%;
    }

    .mouse-circle,
    .mouse-dot {
        display: none;
    pointer-events: none; /* This allows the mouse to "see through" the cursor to the button */
    transition: transform 0.1s ease-out; /* Makes the cursor movement smoother */
    position: fixed;
    transform: translate(-50%, -50%); /* Centers the cursor on the pointer */
    z-index: 999;
}

    .navbar-link {
        margin: 0 2rem;
    }

    .main-circle{
        width:40rem;
        height:40rem;
    }
    .main-circle :hover{
        width:45rem;
        height:45rem;
    }
    .about-me-text span{
        font-size: 7.5rem;
    }

    .project-img{
        padding: 7rem 11rem;
    }

    .project-hide-btn{
        right:2rem;
    }
}

@media(max-width: 900px) {
    .menu-icon{
        right:-4rem;
    }

    .navbar-link{
        font-size:1.5;
        margin: 0 1rem
    }

    .featured-text-1{
        margin: 0 auto 0 5rem;
    }
    .featured-text-2{
        margin: 0 5rem 0 auto;
    }

    .section-2-heading{
        left:5rem;
    }
    .about-me-text span{
        font-size: 5.5rem;
        color:#ccc
    }
}

@media(max-width:700px){
    html{
        font-size: 50%;
    }

    .contact-form-input{
        width: 50rem;
    }
}

@media (max-width:550px){
    html{
        font-size: 40%;
    }

    .main-circle img{
        width: 180%;
        height: 180%;
    }

    .contact-form-input {
        width: 40rem;
    }

    .slideshow{
        width: 45rem;
    }

    .slideshow-link img{
        padding:0 1.1rem;
    }
}

@media (max-width:400px){
    html{
        font-size: 35%;
    }

    .logo{
        font-size: 1.7rem;
        top:13rem;
        left:50%;
        transform: translateX(-50%);
    }

    .navbar{
        justify-content: center;
        padding: 0;
    }

    .main-circle{
        width:38rem;
    }

    .main-circle:hover{
        width:42rem;
    }

    .main-circle img{
        width:200%;
        height: 200%;

    }

    .form-heading{
        font-size:5rem
    }
}
/* end of reponsive */