* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
  }

  .body-margin {
    margin: 0 150px;
  }
  
  :root {
    --bg-color:linear-gradient(to left, #850101, #000);
    --main-color2: rgb(231, 226, 226);
    --text: white;
    --shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    --exra-color: rgb(185, 185, 185);
    --bg-color2: white;
    --text-color2: black;
    --main-color: #7D0000;
    --primary_color: white;
    --button: rgb(139, 8, 8);
    --secondry: rgb(219, 87, 10);
    --head: "Poppins", sans-serif;
  }
  
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.8rem;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
    background: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  }
  
  .header.sticky {
    background: var(--text);
  }
  
  .logo {
    position: relative;
    font-size: 2.5rem;
    color: var(--text);
    font-weight: 600;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  }
  
  .navbar {
    position: relative;
  
  }
  
  .navbar a {
    font-size: 1.2rem;
    color: black;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-left: 3.5rem;
    transition: .3s;
  }
  
  
  
  .navbar a:hover,
  .navbar a.active {
    color: rgb(104, 101, 101);
  }
  
  .navbar a.active:hover {
    color: var(--text);
  }
  
  #menu-icon {
    position: relative;
    font-size: 2.6rem;
    color: black;
    cursor: pointer;
    display: none;
  }
  
  .logo .animate,
  .navbar .animate,
  #menu-icon .animate {
    animation: showRight 1s ease forwards;
    animation-delay: calc(0.3s * var(--i));
  }
  
  
  .logo .animate,
  .navbar .animate,
  #menu-icon .animate {
    animation: showRight 4s ease forwards;
    animation-delay: calc(0.3s * var(--i));
  }
  
  @media (max-width: 768px) {
    .header {
      background: white;
    }
    
    #menu-icon {
      display: block;
    }
    
    .navbar {
      position: absolute;
      top: 100%;
      left: -100%;
      width: 100%;
      padding: 1rem 4%;
      background: white;
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
      z-index: 1;
      transition: 0.25s ease;
      transition-delay: 0.25s;
    }
    
    .navbar.active {
      left: 0;
      transition-delay: 0s;
    }
    
    .navbar .active-nav {
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: white;
      border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
      z-index: -1;
      transition: 0.25s ease;
      transition-delay: 0s;
    }
    
    .navbar.active .active-nav {
      left: 0;
      transition-delay: 0.25s;
    }
    
    .navbar a {
      display: block;
      font-size: 1.2rem;
      margin: 3rem 0;
      transform: translateX(-20rem);
      transition: 0.25s ease;
      transition-delay: 0s;
    }
    
    .navbar.active a {
      transform: translateX(0);
      transition-delay: 0.25s;
    }
  }

  .cover{
    width: 100%;
    height: 90vh;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .hero{
    background-image: url(../assets/HeroImg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 90vh;   
 }
 
 .backdrop{
   width: 100%;
   height: 90vh;
   background-color: rgba(0, 0, 0, 0.5);
 }

 .textmove{
  position: relative;
  top: 40%;
 }
 
 .hero-p{
   color: whitesmoke;
   text-align: center;
   font-size: 3em; 
   text-transform: capitalize;
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }
 
 span{
   color: orange;
 }
 
 .description{
   color: whitesmoke;
   text-align: center;
   font-size: 1em;
   padding: 0 10%; 
   line-height: 1.6;
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }
 
 @media (max-width: 768px) {
   .hero-p {
       font-size: 2.5em; 
   }
 
   .description {
       font-size: 0.9em;
       padding: 0 5%;
   }
 
   .hero, .backdrop{
       height: 70vh; 
   }
 }
 
 @media (max-width: 480px) {
   .hero-p {
       font-size: 2em; 
   }
 
   .description {
       font-size: 20px;
   }
   .hero, .backdrop{
       height: 60vh;
   }
 }

 .card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center cards on larger screens */
  max-width: 1200px; /* Limit overall card width */
  margin: 20px auto; /* Center the card horizontally */
}

.about-section1, .about-section, .about-section3 {
  background-color: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 10px;
  padding: 20px;
  flex: 1 1 300px; /* Grow and shrink, base width 300px */
  min-width: 250px; /* Ensure cards don't get too small */
  box-sizing: border-box; /* Include padding in width calculation */
}

.inner-container1, .inner-container {
  text-align: left; /* Align text left */
}

h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin-bottom: 10px;
  font-size: 1.8em; /* Adjust font size */
}

.text {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.skills span {
  background-color: #e0e0e0;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #444;
}

@media (max-width: 768px) {
  .card {
      flex-direction: column; /* Stack cards vertically on smaller screens */
      align-items: center; /* Center cards when stacked */
  }
}

footer {
  width: 100%;
  position: relative; /* change from absolute to relative */
  background: linear-gradient(to left, #850101, #000);
  color: #fff;
  padding: 100px 0 30px;
  border-top-left-radius: 125px;
  font-size: 13px;
  line-height: 20px;
  margin-top: 5rem;
  /* top: -20rem;
  bottom: 100rem; */
}

.row {
  width: 85%;
  max-width: 1200px; /* Limit maximum width */
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
#log{
  margin-top:-5% ;

}

.col {
  flex-basis: 25%;
  padding: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.col:nth-child(2), .col:nth-child(3) {
  flex-basis: 15%;
}

.logo {
  width: 80px;
  margin-top: 20px; /* Adjust margin for smaller screens */
}

.col h3 {
  margin-bottom: 20px;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.email-id {
  border-bottom: 1px solid #ccc;
  margin: 10px 0;
}
#hr{
  border: 0;
  border-bottom: 2px solid #ccc;
  margin: 20px auto;
  margin-left: 5px;

}

ul li {
  margin-bottom: 12px;
}

ul li a {
  text-decoration: none;
  color: #ccc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

form {
  margin-bottom: 30px; /* Adjust margin for smaller screens */
}

form input {
  width: 100%;
  background: transparent;
  color: #ccc;
  border: 0;
  outline: none;
}

hr {
  width: 90%;
  border: 0;
  border-bottom: 1px solid #ccc;
  margin: 20px auto;
}

.copyright {
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.underline {
  width: 100%;
  height: 5px;
  background: #767676;
  border-radius: 3px;
  position: absolute;
  top: 25px;
  left: 0;
  overflow: hidden;
}

.underline span {
  width: 15px;
  height: 100%;
  background: #fff;
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 10px;
  animation: moving 2s linear infinite;
}

@keyframes moving {
  0% {
      left: -20px;
  }
  100% {
      left: 100%;
  }
}

@media (max-width: 900px) {
  .row {
      justify-content: center;
  }
}

@media (max-width: 700px) {
  .col {
      flex-basis: 45%; /* Adjust column width for smaller screens */
      text-align: center;
  }
}

@media (max-width: 500px) {
  .col {
      flex-basis: 100%; /* Full width for smallest screens */
      margin-bottom: 30px;
  }

  .logo {
      width: 60px;
  }

  .underline {
      top: 20px;
  }
  #col2{
      margin-left: -10%;
  }
  #col1{
      margin-left: 30%;
  }
}