*, 
*:before, 
*:after{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    text-decoration: none;
    scroll-behavior: smooth;
    
} 
 
/* :root {
    
    --bg-color: #161c1c;
    --second-bg-color: #101010;
    
    --main-color: #ea580c;
  } */
  :root {
    /* --bg-color: #080808; */
    --bg-color: #161c1c;
    --second-bg-color: #101010;
    --text-color: rgb(203, 203, 203);
    --sub-heading-color:grey;
    --main-color: #ea580c;
    --heading-font: "Alegreya";
    --paragraph-font: "Lato";
    --about-me-font: "Roboto"
  }
html{
    font-size: 60%;
    overflow-x: hidden;   
}
body{
    background-color: var(--bg-color);
    font-family: "Demo Bitblend", serif;
}
p{
    font-family: var(--paragraph-font);
}

.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 2rem 15%;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
}
.header.darker {
  background-color: rgba(0, 0, 0, 0.6); /* Darker background when scrolling */
  transition: background-color 0.3s ease;
}

#menu-icon {
    font-size: 3.5rem;
    color: var(--main-color);
    display: none;
}
 
.logo {
    display: flex;
    align-items: center;
    font-size : 3rem;
    /* color :var(--text-color); */
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    gap: 1rem;
}

.name-logo {
    width: 70px;
}
.logo:hover {
    transform: scale(1.1);
}
span{
    background: linear-gradient(
        260deg,
        #DF8908 10%,
        #ff1d15 100%
    );
    background-clip:text ;
    color: transparent;
}
/* .role{
    font-size:2rem;
    font-weight: 700;
} */
.navbar a{
    font-size: 1.8rem;
    font-family: var(--paragraph-font);
    color: black;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}

.navbar a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}


section {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* gap: 15rem; */
    background-color: rgba(0,0,0,0.25);  
    position: relative;
    padding: 5rem ;    
}
/* Hide Mobile Video by Default */
.mobile-video {
  display: none;
}
.desktop-view {
  display: block;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    
}

.video-bg{
  position: absolute;
  top: 0;
  left: 0;
  /* width: 100vw;
  height: 100vh; */
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}
.video-bg video {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
    height: 100%;
  /* width: 100vw;
  height: 100vh;  */
}

.home-content h1{
  font-size: 8rem;
  font-family: "WindSong", cursive;
  font-weight: 700;
  margin-top: 1.5rem;
  bottom: 300px;
  right: 150px;
  line-height: 1.2;
  position: absolute;
  color: #001006;
  
}
.home-content h3{
  right: 150px;
  font-size: 2.0rem;
  position: absolute;
  /* font-family: var(--paragraph-font); */
  font-family: 'Montserrat', sans-serif;
  bottom: 270px;
  color: #001006;
  
}

 .scroll-down {
  height: 60px;
  width: 40px;
  position: absolute;
  left: 49%;
  bottom: 8%;
  border-radius: 50px;
 }
 .scroll-down::before,
 .scroll-down::after {
  content : "";
  position: absolute;
  top: 20%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid var(--main-color);
  transform: translate(-50%, -100%) rotate(45deg);
  border-top: transparent;
  border-left: transparent;
  animation: scroll-down 2s ease-in-out infinite;
 }

 .scroll-down::before {
    top: 30%;
    animation-delay: 0.5s;
 }

 @keyframes scroll-down {
    0% {
      opacity: 0;
    }
    30%, 60% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      top: 90%;
    }
 }

.btn-group {
    display: flex;
    gap: 1.5rem;
}
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 5px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: black;
    border: 2px solid transparent;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}

.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 5px var(--main-color),
    0 0 8px var(--main-color);
}

.btn-group a:nth-of-type(2){
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 15px transparent;
}
.btn-group a:nth-of-type(2):hover{
    box-shadow: 0 0 15px var(--main-color);
    background-color: var(--main-color);
    color: black;
}



/* skills section */
.about {
  display: flex;
  flex-direction: column;
  background-color: var(--second-bg-color);
  text-align: center;
  align-items: center;
  justify-content: center;
 
  /* position: relative; */
}
.section-title{
  font-size: 7rem;
  color: var(--text-color);
  font-family: var(--paragraph-font);
  margin-bottom: 100px;
  /* position: absolute; */
  
}
.allaboutme {
  display: flex;
  flex-direction: row;
  /* border: 1px solid red; */
  
}
.my-img {
  flex: 1; 
  display: flex;
  justify-content: center;
  align-items: center;
}
.skill-box{
  width: 90%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.skills-image {
  width: 50%;
  border-radius: 50%;
  mix-blend-mode: lighten;
  opacity: 0.7;
} 
.designer {
  display: flex;
  text-align: left;
  flex-direction: column;
  max-width: 500px;
  font-family: var(--paragraph-font);
}

.coder {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: var(--paragraph-font);
  max-width: 500px;
}
table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  
  border-radius: 8px;
}

td {
  padding: 10px 10px;
  text-align: left;
  font-size: 16px;
  font-family: var(--paragraph-font);
  color: var(--text-color);
  
}

td:first-child {
  font-weight: bold;
}
.designer h1, .coder h1 {
  margin-bottom: 20px;
  font-family: var(--paragraph-font);
}

.skill-box h1{
  font-size : 50px;
  /* display: flex; */
  align-items: left;
}

.skill-box p {
  margin-top: 10px;
  line-height: 40px;
  font-size: 2rem;
  text-align: justify;
  color: var(--text-color);
  font-family: var(--paragraph-font);
}
.slider{
  margin-top: 100px;
  width: 50%;
  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(
      to right,
      transparent,
      #000 10% 90%,
      transparent
  );
}
.slider .list{
  display: flex;
  width: 100%;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
}
.slider .list .item{
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 10s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc( (10s / var(--quantity)) * (var(--position) - 1) - 10s)!important;
}
.slider .list .item img{
  width: 100%;
}
@keyframes autoRun{
  from{
      left: 100%;
  }to{
      left: calc(var(--width) * -1);
  }
}
.slider:hover .item{
  animation-play-state: paused!important;
  filter: grayscale(1);
}
.slider .item:hover{
  filter: grayscale(0);
}
.slider[reverse="true"] .item{
  animation: reversePlay 10s linear infinite;
}
@keyframes reversePlay{
  from{
      left: calc(var(--width) * -1);
  }to{
      left: 100%;
  }}


::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}
::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}



/* PROJECT SECTION CSS */
.projects{
    /* background-color: var(--bg-color); */
    background-color: aliceblue;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}
 .projects h2{
  color: var(--text-color);
  
}.heading{
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
}

.portfolio {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  width: 100vw; 
  /* new changes */
  gap: 2rem;
  width: 100vw;
  padding-top: 20px;
  padding-bottom: 20px;
  
}
.portfolio-item {
  position: relative;
  width:100%;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  justify-content: center; 
  align-items: center;
  background-color: rgb(239, 239, 239);
  /* new changes */
  border-radius: 20px; /* Rounded borders */
  box-shadow: 0 4px 8px rgba(234, 88, 12, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Adds smooth transition for effects */
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers the box while maintaining aspect ratio */
  transition: transform 0.3s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-item:hover {
  transform: translateY(-5px); /* Slight upward movement on hover */
  box-shadow: 0 0 30px 5px rgba(234, 88, 12, 0.6); /* Stronger shadow for glow effect */
}
.overlay h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  font-family: var(--paragraph-font);
  color: #333;
}
.overlay p {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  text-align: center;
}


/* contact form css */
.contact{
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;

}
.contact h2 {
  margin-bottom: 3rem;
  margin-top: 10rem;
  color: var(--text-color);
  font-family: var(--paragraph-font);
}
.contact p{
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  line-height: 3rem;
  color: var(--text-color);
  font-family: var(--paragraph-font);
}
.contact-me2 {
  display: none;
}
.contact-me form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 5rem 0;
  text-align: center;

}

.message{
  margin-top: 10px;
}

.contact-me form .input-box input,
.contact-me form  textarea {
  width: 100%;
  padding: 2.5rem;
  font-size: 1.8rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  border-radius: 2rem;
  border: 2px solid var(--main-color);
  margin: 1.5rem 0;
  resize: none;
}

  .submit {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: black;
    border: 2px solid transparent;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}

.submit:hover{
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--main-color),
    0 0 25px var(--main-color);
}



.footer{
  background-color: var(--second-bg-color );
  padding: 30px 0;
  /* margin-top: 15px; */
}
.footer .copyright {
  text-align: center;
  color: var(--text-color);
  font-size: 16px;
  
}

/* Tablet View */
@media (max-width: 1024px) {
    
  html {
      font-size: 55%; 
  }

  .header {
      padding: 2rem 8%;  
  }

  .logo {
      font-size: 2.5rem; 
  }

  .name-logo {
      width: 60px; 
  }

  #menu-icon {
      display: block; 
      cursor: pointer;
  }

  nav {
      position: absolute;
      top: 100%;
      right: 0;
      width: 100%;
      background-color: var(--second-bg-color);
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 2rem;
      padding: 2rem 0;
      transition: all 0.3s ease;
  }

  nav.active {
      display: flex;  
  }

  nav a {
      font-size: 2rem;
      color: var(--text-color);
  }
  .video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
}


/* responsive for mobile */
@media (max-width: 1285px) {
  #menu-icon {
    display: block;
  }

  .navbar{
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3rem;
    background: rgba(51, 51, 51, 0.8);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
  }
  .navbar a{
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
    font-size: 500;
  }
  .navbar.active {
    display: block;
  }

  section {
    padding: 0rem 15%;
}
   .home{
    flex-direction: column;
    text-align: right;
    margin: 5rem 0;
    gap: 2rem;
   }
   .home-content {
    text-align: center;
    align-items: center;
  }
  .video-bg {
    top: 0;
    left: 0;
    overflow: hidden;
    object-fit: cover;
    min-width: 100%;
    height: 100%;
    z-index: -1;
  }
  .video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
  
  .portfolio {
    grid-template-columns: 1fr; /* One item per row on small screens */
}
.portfolio-item {
    width: 100%; /* Make portfolio items full-width on small screens */
    height: 100%;
    overflow: hidden;
}
.portfolio-item img {
  object-fit: cover; /* Ensure the image covers the entire box */
  height: 100%; /* Make the image fill the height */
  width: 100%
}

.contact form {
  flex-direction: column;
}
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .desktop-video {
    display: none;
}
section {
  padding: 0rem 15%;
}
.home-content {
  align-items: center;
  text-align: center;
}

.home-content h1 {
  font-size: 4.5rem; /* Smaller font size */
  /* text-align: center; */
  right: 75px;
  bottom:40%;
}
.home-content h3 {
  font-size: 1.6rem;
  right: 90px;
  bottom:36%;
  /* text-align: center; */
}
.scroll-down {
  height: 60px;
  width: 40px;
  position: absolute;
  left: 49%;
  bottom: 8%;
  border-radius: 50px;
  cursor: pointer;
 }
.mobile-video {
    display: block;
}
.video-bg {
  /* position: fixed; */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  object-fit: cover;
  min-width: 100%;
  /* height: 100%; */
  /* height: 100vh; */
  z-index: -1;
}
.video-bg iframe {
  position: absolute;
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
}

  .portfolio {
    grid-template-columns: 1fr; /* One item per row on small screens */
}
.portfolio-item {
    width: 100%; /* Make portfolio items full-width on small screens */
    /* height: 400px;  */
    height: 100%;
    overflow: hidden;
}
.portfolio-item img {
  object-fit: cover; /* Ensure the image covers the entire box */
  height: 285px; /* Make the image fill the height */
  width: 100%
}
.overlay h3 {
  margin: 0;
  font-size: 25px;
  text-align: center;
  font-weight: 800;
  font-family: var(--paragraph-font);
  color: #333;
}
.overlay p {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.section-title{
  font-size: 6rem;
  color: var(--text-color);
  font-family: var(--paragraph-font);  
  margin-top: 50px;
  margin-bottom: 60px;
}
.allaboutme {
  flex-direction: column;
  text-align: center;
}
table {
  width: 100%;
  line-height: 1.9rem;
  /* max-width: 800px; */
  /* margin: 0 auto; */
  border-collapse: collapse;
}
.designer, .coder {
  max-width: 100%;
  text-align: left;
}
.coder {
  margin-top: 5rem;
}
.skill-box {
  padding-bottom:20px;
  width: 100%;
}
.skills-image {
  width: 80%;
}

.skill-box h1 {
  font-size: 2.5rem;
}

.skill-box p {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.slider {
  margin-top: 70px;
  width: 100%;
  
}


  
}
