*{
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1em;
    text-decoration: none;
    font-size: 16px;
}
@font-face {
    font-family: 'reg';
    src: url('https://k-pawan.com/fonts/samsungsharpsans.otf'); 
  }
@font-face {
    font-family: 'bold';
    src: url('https://k-pawan.com/fonts/samsungsharpsans-bold.otf'); 
  }
@font-face {
    font-family: 'med';
    src: url('https://k-pawan.com/fonts/samsungsharpsans-medium.otf'); 
  }
html{
    scroll-behavior: smooth;
}

body {
    overflow-y: scroll; 
    overflow-x: hidden; 
    scrollbar-width: thin; 
    -ms-overflow-style: none;
    font-family: 'reg';
    font-weight: 100;
}
 #backgroundVideo {
    position: fixed;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

body::-webkit-scrollbar {
    width: 0.001em; 
}
/* scroll */

/* nav and header */
header{
    display: flex;
    flex-direction: row;
    position: sticky;
    margin: 0 auto;
    top: 0;
    height: 6.5vh;
    width: 100vw;
    padding-top: 1vh;
    padding-bottom: 1vh;
    box-shadow: 0px 0px 0px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: 0.5s ease; 
    background-color: white;

}
nav{
    text-align: center;
    margin: auto 3vw auto auto;
}
nav a{
    text-decoration: none;
    color: black;
    text-shadow: 1px 1px 7px rgba(0, 0, 0, 0.3);
    padding: 0px 8px;
    border-radius: 10px;
    margin: 2vw;
    transition: all 0.25s;
    font-size: 1.3vw;
    font-family: 'med';
    font-weight: 100;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}
nav a:hover, nav a:active{
    font-size: 1.4vw;
}
.logo{
    height: 6vh;
    width: auto;
    margin: 2vh auto auto 7vw;
    cursor: pointer;
    font-size: 1.3vw;
    color: black;
    text-shadow: 1px 1px 7px rgba(68, 68, 68, 0.2);
    text-decoration: none;
}
/* \nav and header */

/* main */

/* intro */
#intro{
    position: relative;
    overflow: hidden;
    height: 93.5vh;
    width: 100vw;
    margin: 0 auto;
    background-color: transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-shadow: 1px 1px 7px rgba(0, 0, 0, 0.2);
}
#intro h1{
    font-size: 8vh;
    font-family: "bold";

}
#intro h3{
    font-size: 2vh;
    text-decoration-color: black; 
    text-decoration-thickness: 1px;
    text-underline-offset: 2vh; 
    position: relative;
    top: 1vh;
}

/*  */

/* intro */
/* projeects */
#projects {
  background-color: white;
  width: 100vw;
  height: 100%;
  margin: 0 auto;    
}

#projects h2 {
  color: #008fbe;
  font-size: 1.5em;
  font-weight: 700;
  text-align: center;
  margin:0 auto;
  padding-top: 1.5em;
  font-family: 'bold';
}
.procon {
  width: 100vw;
  height: 100%;
  display: flex;
  justify-content: center;
  margin:2% auto 0 auto;
}
.prjs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2vw;
  width: 100vw;
  padding: 2vw;
  cursor: pointer;
}
.projcard {
  border-radius: 1em;
  overflow: hidden;
  transition: all 0.5s;
  margin-bottom: 30px;
  width: calc(50% - 2vw); 
  margin-bottom: 2vw;
  height: 60vh;
  background-color: black;
  background-size: cover;
  background-position: center;
  transition: all 0.5s;
  box-shadow: 1px 1px 1px rgba(0,0,0,1);
  position: relative;
  cursor: pointer;

}
/* imgs start */
.proj2{
  background-image: url('https://k-pawan.com/casestudies/retailcase/imgs/bkg1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 
}
.proj1{
  background-image: url('https://k-pawan.com/steve/Kumar_Pawan_Open_Project/img/titlepagebckgrndimg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 
}
.proj3{
  background-image: url("https://k-pawan.com/casestudies/restcase/imgs/rest.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 
  background-color: white;
}
.proj4{
  background-image: url("https://k-pawan.com/casestudies/gamecase/imgs/gamecase.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat; 
  background-color: white;
}
.proj5{
  background-image: url('https://k-pawan.com/casestudies/digital/imgs/digitalbk.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 
  background-color: white;
}
.proj6{
  background-image: url("https://k-pawan.com/casestudies/graphics/imgs/hero.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat; 
  background-color: white;
}
.proj7{
  background-image: url("https://k-pawan.com/imgs/photography.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 
  background-color: white;
}

 .projfooter {
    display: flex;
    z-index: 1;
    height: 10vh;
    width: 100%;
    position: absolute;
    bottom: 0;
    transform: translateY(100%);  /* Positioned just below its place */
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}
.cardtitle {
    font-weight: 900;
    padding-top: 5px;
    font-size: 1.1em;
}
.cardtext{
    font-size: 0.9em;
}
.info {
    background-color: #002b49;
    font-weight: 500;
    width: 100%;
    height: 92%;
    color: white;
    font-size: 11.5pt;
    padding: 10px 20px 10px 20px;
    opacity: 0;
    /* transform: translateY(0vh); */
    transition: opacity 0.3s ease-in;
}
.proj-blur {
    border-radius: 1em;
    position: absolute;
    width: 100%;
    height: 100%;
     background-color: black;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}
.projlinks {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 100;
    cursor: pointer;
    pointer-events: auto;
}

/* hover */
.projcard:hover .info {
    opacity: 1;
}

.projcard:hover {
    cursor: pointer;
    box-shadow: 0 8px 16px 0 rgba(10, 27, 36, 0.5);
    transition: all 0.5s;
}
.projcard:hover .proj-blur {
    opacity: 0.6;
}
.projcard:hover .projfooter {
    transform: translateY(0);  /* Bring it into view */
    opacity: 1;
}

/* hover */


/* ////projeects */
.txt{
  height: 93.5vh;
  width: 100vw;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  
}
.txt img{
      height: auto;
      width: 85vw;
      margin: 0 auto;
}


/* abt section */
.abt{
  height: 100vh;
  width: 100vw;
  display: flex;
  background-color: white;
  justify-content: space-evenly;
  line-height: 3vh;
}
.heroimg{
  width: 50vw;
  height: 90vh;
  background-image: url(../imgs/Asset\ 1hero.svg);
  background-repeat: no-repeat;
  /* background-size: cover; */
  background-position: center;
  background-size: 65% auto;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.9);

}
.aside{
  width: 50vw;
  height: 90vh;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 3vh 5vw;
  box-sizing: border-box;
  gap: 5vh;
}
.aside h2{
  font-family: "bold";
}
.aside div:nth-child(1) h2 {
  font-size: 4vh;
}
.aside p{
  font-size: 2vh;
  font-family: "reg";
  
}
.aside div{
  display: flex;
  flex-direction: column;
  gap: 2vh;
}

/* skills */
.skills-section {
      padding: 6vh 8vw;
      background-color: rgb(0, 0, 0);
      color: white;
    }

    .skills-title {
      font-size: 2.8rem;
      text-align: center;
      margin-bottom: 4vh;
      letter-spacing: 1px;
      color: white;
    }

    .skills-columns {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 4vw;
    }

    .skills-column {
      flex: 1;
      min-width: 240px;
      max-width: 30%;
    }

    .skills-column h3 {
      font-size: 1.4rem;
      margin-bottom: 1rem;
      border-bottom: 2px solid #ff6600;
      padding-bottom: 6px;
      color: #ff6600;
    }

    .skills-column ul {
      list-style: none;
      padding: 0;
    }

    .skills-column li {
      margin-bottom: 0.6rem;
      font-size: 1.05rem;
      opacity: 0.85;
      transition: color 0.3s ease;
    }

    .skills-column li:hover {
      color: #ff6600;
    }

    /* Optional icon support */
    .skills-column li img.icon {
      width: 20px;
      height: 20px;
      margin-right: 8px;
      vertical-align: middle;
    }

    /* Responsive layout */
    @media (max-width: 768px) {
      .skills-columns {
        flex-direction: column;
        align-items: center;
      }

      .skills-column {
        max-width: 100%;
        margin-bottom: 3vh;
      }
    }


/* footer */
.footer {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  padding: 5vh 5vw;
  min-height: 30vh;
  font-family: Arial, sans-serif;
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  position: relative;
  border-top-left-radius: 10vw;
  border-top-right-radius: 10vw;
}

.footer-left {
  flex: 1;
}

.project-text {
  font-size: 1.2vw;
  margin-bottom: 1vh;
}

.lets-talk {
  font-size: 5vw;
  font-weight: bold;
  margin: 0;
}

.underline {
  width: 40%;
  height: 0.5vh;
  background-color: rgb(255, 255, 255);
  margin-top: 1vh;
}

.footer-right {
  /* flex: 1; */
  display: flex;
  flex-direction: row;
  text-align: left;
  font-size: 1.2vw;
  gap: 2vw;
  margin-right: 5vw;
}
  .copyright{
    color: white;
    padding: 5vh;
    box-sizing: border-box;
    text-align: center;
    position: absolute;
    bottom: 0;
  }
/* hover */
  footer a, .mail-text {
  color: white;             
  transition: color 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

footer a:hover, .mail-text:hover {
  color: #ff6600;           
  text-decoration: underline; 
}


/* \footer */


/* other arrow code */
.top img{
  position: fixed;
  bottom: 5%;
  right: 3%;
  z-index: 1000;
  height: 3vh;
  width: auto;
  transition: opacity 0.3s ease;
  animation: pulse 2s infinite ease-in-out; 
}
.top.visible {
  opacity: 1;
  transition: opacity 0.5s ease;
}
.top{
  opacity: 0; 
  transition: opacity 0.3s ease;
}
.down img{
  height: 3vh;
  width: auto;
  position: relative;
  top: 30vh;
  animation: pulse 2s infinite ease-in-out; 
  /* display: block;  */
}

@keyframes pulse {
  0% {
    transform: scale(1); /* Normal size */
  }
  50% {
    transform: scale(1.1); /* Scaled up */
  }
  100% {
    transform: scale(1); /* Back to normal */
  }
}
/*  */



/* ================= MOBILE RESPONSIVE STYLES ================= */
@media (max-width: 768px) {
  /* Header & Navigation */
  header {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 1vh 0;
  }

  .logo {
    margin: 1vh auto;
    font-size: 5vw;
    height: auto;
    text-decoration: none;  }

  nav {
    margin: 1vh auto;
  }

  nav a {
    font-size: 4vw;
    margin: 1vw;
    padding: 1vw 3vw;
  }

  nav a:hover, nav a:active {
    font-size: 4.2vw;
  }

  /* Intro */
  #intro h1 {
    font-size: 6vh;
  }
  #intro{
    height: 75vh;
  }
  .down img{
  height: 3vh;
  top: 15vh;
}

  #intro h3 {
    font-size: 2.2vh;
  }

  /* Project Cards */
  #projects h2 {
  font-size: 3vh;
  font-weight: 200;
}

  .projcard {
    width: 90vw;
    height: 40vh;
  }

  /* Always show footer & info on project cards */
  .projcard .projfooter {
    transform: translateY(0);
    opacity: 1;
  }

  .projcard .info {
    opacity: 1;
  }

  .projcard .proj-blur {
    opacity: 0;
  }

  .projcard:hover .info,
  .projcard:hover .projfooter,
  .projcard:hover .proj-blur {
    transform: none;
    opacity: 1;
  }
  .projcard:hover .proj-blur {
    opacity: 0;
}

  /* Text Section */
  .txt {
    height: auto;
    padding: 2vh 0;
  }

  .txt img {
    width: 80%;
  }

  /* About Section */
  .abt {
    flex-direction: column;
    height: auto;
  }

  .heroimg {
    width: auto;
    height: 60vh;
    background-size: contain;
    box-shadow:none;
  }

  .aside {
    width: 100vw;
    height: auto;
    padding: 5vh 8vw;
  }

  .aside h2 {
    font-size: 3vh;
    text-align: left;
    font-family: "reg";
  }

  .aside p {
    font-size: 2vh;
    text-align: left;
  }
  .aside li {
    font-size: 2vh;
    text-align: left;
  }

  /* Skills Section */
  .skills-title {
    font-size: 4vh;
  }

  .skills-column h3 {
    font-size: 3vh;
    text-align: center;
  }

  .skills-column li {
    font-size: 1rem;
    text-align: left;
  }
/* footer */
.footer {
  min-height: 15vh;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6vh 4vw;
  position: relative;
}
.underline{
  display: none;
}
.footer-left,
.footer-right {
  width: 100%;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.lets-talk{
  font-size: 8vw;
}
.project-text{
  font-size: 5vw;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 1vh;
  font-size: 4vw;
  margin-top: -8vh; /* Pulls it upward */
  z-index: 2;
  position: relative;
}

.copyright {
  order: 3;
  font-size: 3vw;
  text-align: center;
  width: 100%;
  margin-top: 4vh;
  z-index: 1;
  pointer-events: none;
}

.footer-right p {
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

.footer-right a {
  color: #ff6600;           
  text-decoration: none;
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

.footer-right a:hover {
  /* color: #ff6600; */
  text-decoration: underline;
}

  .top img{
    display: none;
  }
  a, .mail-text {
  color: #ff6600;           
  /* text-decoration: underline;  */
}
}
