*{
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: font1;
    src: url(2GyQE1tcj0UfiymZXHQDAZBLYU.ttf);
}
@font-face {
    font-family: font2;
    src: url(Inter-Regular.latin-JLQMKCHE.ttf);
}



.Page1{
    background-color:#c8c8c8;
    height: 39vw;
    width: 100%;
    border: none;
    border-radius: 0px 0px 16vw 16vw;
    position: relative;
}
.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3.5vw 6vw;
  


    .left-side {
        display: flex;
        align-items: center;
        gap: 1vw; /* controls space between theme and left-nav */
        }


    .left-nav{
        display: flex;
        gap: 1vw;

        .mail-section{
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1vw;
            padding: 2px;
            padding-left: 1vw;
            border-radius: 50px;
            background-color: rgb(236, 232, 229);
            overflow: hidden;

        }
        .mail-section h1{
            font-family: font2;
            font-weight: 400;
            font-size: .8vw;
            text-align: center;
            color: #505050;
        }
        .mail-section button{
            padding: 1vw 2.5vw;
            font-family: font1;
            font-weight: 400;
            font-size: .8vw;
            border: 2px solid white;
            background-color: white;
            border-radius: 50px;
        }

    }
    .left-nav button{
        padding: 1vw 2.5vw;
        font-family: font1;
        font-weight: 400;
        font-size: .8vw;
        border: none;
        background-color: white;
        border-radius: 50px;
        color: #505050;
    }




    .right-nav{
        display: flex;
        align-items: center;
        gap: 1vw;
        overflow: hidden;
    }
    .right-nav a{
        text-decoration: none;
        color: #505050;
        font-family: font2;
        font-weight: 600;
        font-size: 0.8vw;
    }
    .right-nav h1{
        text-decoration: none;
        color: rgb(59, 58, 58);
        font-family: font2;
        font-weight: 600;
        font-size: 0.8vw;
    }
}
.middle-section{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: -2vw;
    gap: 0.5vw;
}
.img-section{
    height: 9vw;
    width: 10vw;
    position: relative;
    
}
.img-section img{
    object-position: top;
    object-fit: cover;
    border-radius: 80px;
    overflow: hidden;
    height: 9vw;
    width: 9vw;
    position: relative;
    border: .3vw solid white;
}
.yash-animate {
    animation: updown 1s ease-in-out infinite alternate;
}

@keyframes updown {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-16px);
    }
}

.img-section h1{
    position: absolute;
    top: 40%;
    font-size: 0.8vw;
    left: 80%;
    width: 60%;
    rotate: 350deg;
    font-weight: 300;
    font-family: font1;
    border: none;
    background-color: white;
    border-radius: 50px;
    padding: .8vw 1vw;
    letter-spacing: .5px;
    color: #505050;
    opacity: 1;
}
.main-text{
    overflow: hidden;
}
.main-text h1{
 text-align: center;
 font-family: font1;
 position: relative;
 font-weight: 400;
 font-size: 2.8vw;
 line-height: 3vw;
 background: -webkit-linear-gradient(left, #000000, #424141, #817e7e);
 background-clip : text;
 -webkit-text-fill-color: transparent;
 
}
.middle-section a{
    display: flex;
    gap: 5px;
    padding: 1.5vw 2.5vw;
    font-family: font1;
    font-weight: 400;
    font-size: .8vw;
    border: none;
    background-color: black;
    border-radius: 50px;
    color: white;
    text-decoration: none;
}

.fsd-text {
  background: #fff;
  color: #232323;
  font-family: font2, sans-serif;
  font-size: 1em;
  font-weight: 350;
  padding: 1.2vw 4vw;
  border-radius: 50vw;
  text-align: center;
  margin: 1vw auto 1vw auto;
  width: fit-content;
  box-shadow: 0 1px 8px rgba(60,60,60,0.04);
  letter-spacing: 0.01em;
}

.latest-projects-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background: #000;
  color: #fff !important;
  font-size: 1.1em;
  font-weight: 500;
  padding: 0.8em 2.0em;
  border: none;
  border-radius: 2em;
  margin: 0.5vw auto;
  text-align: center;
  width: fit-content;
  transition: background 0.18s;
  box-shadow: 0 2px 8px rgba(50,50,50,0.04);
}

.latest-projects-btn i {
  font-size: 1.1em;
  vertical-align: middle;
}
.copy-btn {
    background: #fff;
    color: #333;
    border: 2px solid #eceae8;
    border-radius: 50px;
    font-family: font1;
    font-weight: 600;
    font-size: 1.1em;
    padding: 1vw 2.5vw;
    transition: 
        border-color 0.2s,
        color 0.2s,
        background 0.2s;
    cursor: pointer;
    outline: none;
}


.cv-btn {
    font-weight: 500;
    padding: 1vw 2.5vw;
    border-radius: 50px;
    border: none;
    background: white;
    color: #232323;
    font-family: font1;
    font-size: .8vw;
    text-decoration: none;
    transition: 
        background 0.2s,
        color 0.2s,
        border 0.2s;
    box-shadow: none;
    outline: none;
    border: 2px solid transparent; /* for border animation on hover */
    display: inline-block;
    cursor: pointer;
}

.cv-btn:hover, .cv-btn:focus {
    background: transparent;
    color: white;
    border: 2px solid #fbf8f8;
    text-decoration: none;
}



/* Hide .mobile-cv on desktop */
.cv-btn.mobile-cv {
  display: none;
}


.mail-section h1, .main-text h1, .right-nav a {
  opacity: 1;
}

.page2{  /* Try -8vw to -12vw for desktop, adjust as needed */
    z-index: 10;
  position: relative;
    width: 100%;
    border-bottom: 50%;
    border-radius: 0 0 15vw 15vw;
}
.scrolling-img{
    z-index: 111;
    position: relative;
    background-color: white;
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
    height: 15vw;
    border-radius: 0px 0px 8vw 8vw;
}
.scroll{
    display: inline-block;
    animation: scroll 25s linear infinite;
}
.scroll img{
    padding-top: 6vw;
    padding-right: 10vw;
    height: 4vw;
    filter: grayscale(100%);
   
}
@keyframes scroll {
    from{
        transform: translateX(0);
    }
    to{
        transform: translateX(-100%);
    }
}

.page2-bg {
  background: #c8c8c8;
  width: 100%;
  position: relative;
  /* Optional: set height or let content define it */
}


 .page3 {
    z-index: -1;
    margin-top: -20px;
    height: 80vh;
    padding-top: 115px;
    width: 100%;
    background-color: #c8c8c8;
    display: flex;               /* add this */
    flex-direction: column;      /* add this */
    align-items: center;         /* centers children horizontally */
    justify-content: flex-start; /* keep this if you want content at top */
}
.heading{
    padding-top: 8vw;
    font-family: font1;
    font-weight: 500;
    text-align: center;
    font-size: 2.5vw;
    background: -webkit-linear-gradient(left, #000000, #424141, #817e7e);
    background-clip : text;
    -webkit-text-fill-color: transparent;
    background-color: red;
}

.card{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 100px;
    margin-right: 100px;
}
.box-layout{
    align-items: center;
    display: flex;
    justify-content: center;
}
.box{
    height: 120px;
    width: 150px;
    padding: 2vw 3vw;
    display: flex;
    gap: .5vw;
    flex-direction: column;
}
.box i{
    font-weight: 100;
    font-size: 20px;
}
.box h1{
    font-weight: 100;
    font-size: 20px;
    font-family: font1;
    background: -webkit-linear-gradient(left, #000000, #424141, #817e7e);
    background-clip : text;
    -webkit-text-fill-color: transparent;
}
.box p{
    font-size: 13px;
    font-weight: 100;
    font-family: font2;
    background: -webkit-linear-gradient(left, #000000, #424141, #817e7e);
    background-clip : text;
    -webkit-text-fill-color: transparent;
}

.services-btn {
    background-color: #fff;
    color: #222;
    border: 2px solid white;
    font-family: font1;
    font-size: 1.5vw;
    font-weight: 500;
    border-radius: 50px;
    padding: 1vw 2vw;
    transition: 
        background 0.18s,
        color 0.18s,
        border-color 0.18s,
        box-shadow 0.18s;
    box-shadow: none;
    cursor: pointer;
    outline: none;
    margin: 2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    justify-self: center;
  
}

.services-btn:hover, .services-btn:focus {
    background-color: #c8c8c8;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 2px 8px rgba(30,30,30,0.10);
}



.page4{
    width: 100%;
    height: 50vw;
    background-color: white;
    position: relative;
    z-index: 16868668;
    margin-top: -115px;
    border-radius: 8vw 8vw 8vw 8vw;
}
.projects-heading {
  font-size: 4vw;
  text-align: center;
  font-family: font1;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 2VH;
  padding-top: 4vw;
  background: -webkit-linear-gradient(left, #232323, #747474);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2vw;
  padding: 2vw 4vw;
  margin-top: 2vw;
}

.project-card {
  background: #c8c8c8;
  border-radius: 2vw;
  box-shadow: 0 4px 24px rgba(100,100,100,0.06);
  padding: 2vw;
  text-align: left;
  height: 30vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}



.project-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1vw;
  border-radius: 1vw;
}

.project-card h2 {
  font-size: 1.2em;
  margin: 0.5vw 0 0.5vw 0;
}

.project-card p {
  font-size: 1em;
  margin-bottom: 1vw;
  color: #484848;
}

.project-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.19), 0 1.5px 6px rgba(60,60,60,0.05);
  background: #fff;
  transform: translateY(-8px) scale(1.035);
}

.tech-stack {
  display: flex;
  gap: 1vw;
  margin-bottom: 1vw;
}

.tech-stack span {
  background: #f0f0f0;
  color: #232323;
  padding: 0.2em 0.8em;
  border-radius: 1vw;
  font-size: 0.9em;
}

.project-link {
  margin-top: auto;
  padding: 0.5em 1.2em;
  background: #232323;
  color: #fff !important;
  border-radius: 1vw;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.project-link:hover {
  background: #000;
}


.page5 {
   
    width: 100%;
    background-color: #c8c8c8;
    margin-top: -115px;
    padding-top: 115px;
    font-family: font1;
  
}

.hand-png i{
    text-align: center;
    font-size: 4vw;
}
.hand-png{
    display: flex;
  justify-content: center;  /* <-- centers the icon horizontally */
  align-items: center;
  margin: 4vw auto;
  padding: 3.5vw;
  background-color: white;
  border-radius: 10vw;
  width: fit-content;
}
.heading-text5{
    text-align: center;
    font-size: 3vw;
    background: -webkit-linear-gradient(left, #000000, #424141, #817e7e);
    background-clip : text;
    -webkit-text-fill-color: transparent;
}
.Contact-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    margin-top: 2vw;
}
.contact{
    font-size: 0.7vw;
    text-decoration: none;
    background-color: white;
    padding: 1.5vw 2.5vw;
    border-radius: 10vw;
    color: white;
}
.email-btn:hover, .email-btn:focus {
    background-color: wheat;
    color: #f1ebeb;
    border: 2px solid #000;
}

.email-btn:hover, .email-btn:focus {
    background-color: wheat;
    color: #f1ebeb;
    border: 2px solid #000;
}

.whatsapp-btn {
    background-color: #fff;
    color: black;
    border: 2px solid #25D366;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.whatsapp-btn:hover, .whatsapp-btn:focus {
    background: #25D366;
    color: #f0f1f0;
    border: 2px solid #25D366;
    font-weight: 500;
}

.contact:nth-child(1){
    background-color: #000000;
}



.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1vw 2vw;           /* Smaller padding */
    margin-top: 2vw;            /* Smaller top margin */
    border-top: 2px dashed #fcfcfc;
    background: transparent;    /* Or match your design */
}

.footer-text {
    font-size: 0.85vw;          /* Smaller text on desktop */
    color: #505050;
    letter-spacing: 0.02em;
}

.contact-info {
    display: flex;
    gap: .7vw;
}
.contact-info a,h1 {
    font-size: 0.9vw;
    color: #505050;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}


.contact-info a:hover {
    opacity: 2;
}

@media screen and (max-width: 600px) {
        


    .right-nav {
    display: flex;
    align-items: center;
    justify-content: right !important;
    width: 100%;
    gap: 1vw !important;
    margin: 0;
    padding: 0;
  }
  .right-nav a {
    font-size: 0.5rem !important;
    color: #232323 !important;
    padding: 0;
    font-weight: 500;
    opacity: 1;
  }
  .right-nav h1 {
    display: block !important;
    font-size: 2vw !important;
    margin: 0 1vw;
    font-weight: 500;
    color: #2d2d2d !important;
  }
  .right-nav i {
    font-size: 3vw !important;
    margin-right: 0.5vw;
    vertical-align: middle;
  }

    .left-nav {
    display: none !important;
  }

  .Page1 {
    height: auto;
    padding-bottom: 5vw;
    border-radius: 0 0 10vw 10vw;
  }
  .middle-section {
    margin-top: 8vw;
    gap: 3vw;
    padding: 0 5vw;
  }
  .img-section {
    height: 20vw;
    width: 20vw;
    margin: 0 auto;
  }
  .img-section img {
    height: 18vw;
    width: 18vw;
    border-radius: 50vw;
    border-width: 1vw;
  }
  .img-section h1 {
    top: 20%;
    left: 80%;
    font-size: 2.2vw;
    padding: 1vw 2vw;
    width: max-content;
  }
  .fsd-text {
    font-size: 2vw;
    padding: 2.5vw 6vw;
    margin: 1vw auto 1vw auto;
  }
  .main-text h1 {
    font-size: 6vw;
    line-height: 7vw;
    margin-bottom: 2vw;
  }
  .middle-section a.latest-projects-btn {
    font-size: 2vw;
    padding: 1.5em 0;
    border-radius: 5vw;
    width: 20%;
    margin-top: 1vw;
    text-align: center;
    justify-content: center;
  }
    .left-nav .cv-btn {
    display: none !important;
  }
  .cv-btn.mobile-cv {
    display: block;
    background: #fff;
    color: #232323;
    font-family: font1, sans-serif;
    font-weight: 400;
    font-size: 1.5vh;
    padding: 2vw 0;
    border-radius: 50vw;
    border: 3px solid #e5e2e2;
    text-align: center;
    margin: 1vw auto 0 auto;
    width: 20vw;
  }
.Page1 {
        border-radius: 0 0 24vw 24vw !important; /*bigger curve for small screens */
    }
.page2 {
        border-radius: 0 0 16vw 16vw !important; /*bottom-left and bottom-right curves */
        overflow: hidden;
        background-color: #efeeed;
    }
   
  .scrolling-img {
    border-radius: 0 !important; /* Remove border radius from inside */
  }


  .services-btn {
    font-size: 4vw;
    padding: 3vw 9vw;
    border-radius: 5vw;
    margin: 5vw auto 3vw auto;
    width: auto;
  }

  .page3{
    margin-top: 0;
    padding-top: 7vw;
    height: auto;
    border-radius: 0 0 8vw 8vw;
  }
    
  
  .page4{
     margin-top: 0;
    padding-top: 7vw;
    height: auto;
    background :#faf9f6;;

}

    .page5 {
    margin-top: 0;
    padding-top: 2vw;
    border-radius: 8vw 8vw 0 0 ;
    background-color: #c8c8c8;
    height: 26vh;
    margin-bottom: 1vh;
  }
  

  .contact:nth-child(1){
    background-color: #000000;
}
.contact:nth-child(2){
   color: #000000;
}
  .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px 6px 8px;
    margin-top: 4;
    margin-bottom: 2vh;
    border-top: 1px solid #9b9292;
    gap: 6px; /* Adds space between copyright and links */
}

.footer-text {
    font-size: 10px;
    color: #505050;
    text-align: center;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}

.footer {
    background: #c5c4c4; /* Use your section's grey */
    border-top: 2px dashed #fcfcfc;
  }

  .footer-text,
 .contact-info a,h1 {
    font-size: 2vw;
    color: #505050;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.contact{
    font-size: 2.5vw;
    text-decoration: none;
    background-color: white;
    padding: 1.5vw 2.5vw;
    border-radius: 10vw;
    color: white;
}

  .heading, .projects-heading, .heading-text5 {
    font-size: 6vw;
    padding-top: 2vw;
  }
}



/*Theme Changer */
#theme-icon {
  font-size: 2rem;
  color: black;
  cursor: pointer;
  transition: color 0.2s;
}

body.dark-mode #theme-icon {
  color: white;
}

body.dark-mode {
  background: #111;
  color: #f1f1f1;
}
body.dark-mode .scroll img {
  filter: none !important;
}

body.dark-mode .Page1,
body.dark-mode .page2-bg,
body.dark-mode .page2,
body.dark-mode .page3,
body.dark-mode .page4,
body.dark-mode .page5 {
  background: #222 !important;
}

body.dark-mode .navbar {
  background: #222222 !important;
}

body.dark-mode .mail-section {
  background: #292727 !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.09);
}
body.dark-mode .mail-section h1 {
  color: #fff !important;
}

body.dark-mode .mail-section button:hover,
body.dark-mode .left-nav button:hover,
body.dark-mode .cv-btn:hover {
  background: #232323 !important;
  color: #fff !important;
  border-color: #fff !important;   /* White border on hover */
  cursor: pointer;
}




body.dark-mode .main-text h1 {
  background: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.dark-mode .right-nav a,
body.dark-mode .right-nav h1 {
  color: #fff !important;
}

body.dark-mode .img-section h1 {
  background: #020202 !important;
  color: #fff !important;
}

body.dark-mode .fsd-text {
  background: #111 !important;
  color: #fff !important;
}

body.dark-mode .scrolling-img {
  background: #111 !important;
}




body.dark-mode .card,
body.dark-mode .box-layout,
body.dark-mode .box {
    background: transparent !important; /* Keep cards transparent if needed */
}

body.dark-mode .box h1,
body.dark-mode .box p {
    color: #fff !important; /* Make titles and descriptions white */
    -webkit-text-fill-color: #fff !important;
    background: none !important; /* Remove light gradients */
}

body.dark-mode .box i {
    color: #ffd700 !important; /* Example: gold icons (choose any color) */
    /* Or use #00c3ff, #2affd5, or your favorite for color variety */
}

body.dark-mode .main-text h1,
body.dark-mode .projects-heading,
body.dark-mode .heading,
body.dark-mode .heading-text5 {
    background: -webkit-linear-gradient(left, #fff, #eee, #bbb);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .project-card {
  background: #373737;
  color: #fafafa;
  border: 1px solid white; /* Optional: make text darker for readability */
}

body.dark-mode .project-card p {
  color: #fff;
}

body.dark-mode .hand-png i {
    color: #111 !important;         /* Black icon in dark mode */
}

body.dark-mode .footer {
  background: #191919 !important;
  color: #f1f1f1 !important;
  border-top: 2px dashed #3e3e3e;
}

body.dark-mode .footer-text,
body.dark-mode .contact-info a,
body.dark-mode .contact-info h1 {
  color: #e2e2e2 !important;
}


.mail-section .copy-btn:hover,
.mail-section .copy-btn:focus {
    background: #c8c8c8 !important;
    border-color: #fff !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(40,40,40,0.10) !important;
    cursor: pointer;
}

