/* Google Font CDN Link */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
}

/* Custom Scroll Bar CSS */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #6e93f7;
  border-radius: 12px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #4070f4;
}
/* navbar styling */
/* nav{
  position: fixed;
  width: 100%;
  padding: 20px 0;
  z-index: 998;
  transition: all 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
  
} */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 13px 0;
  background: rgba(138, 167, 214, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Ubuntu', sans-serif;
  z-index: 1000; /* Make sure it's above other content */
}


nav.sticky {
  /* Add sticky-specific styles here */
  padding: 13px 0;                            /* Example: reduce padding */
  box-shadow: 0 2px 8px rgba(138, 167, 214, 0.5);     /* Example: add shadow when sticky */
  /* You can add or override any styles for sticky state */
}


/* nav.sticky{
  background: #F0F8FF;
  padding: 13px 0;
} */


nav .navbar{
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
}
nav .navbar .logo a{
  font-weight: 500;
  font-size: 35px;
  color: #4070f4;
}

nav .navbar .menu{
  display: flex;
  position: relative;
}
nav .navbar .menu li{
  list-style: none;
  margin: 0 8px;
}
.navbar .menu a{
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  padding: 6px 0;
  transition: all 0.4s ease;
}
.navbar .menu a:hover{
  color: #060f29;
}
nav.sticky .menu a{
  color: #ffffff;
}
nav.sticky .menu a:hover{
  color: #060f29;
}


/* Side Navigation Menu Button CSS */
nav .menu-btn,
.navbar .menu .cancel-btn{
  position: absolute;
  color: #fff;
  right: 30px;
  top: 20px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}
nav .menu-btn{
  color: #060f29;
}
nav.sticky .menu-btn{
  color: #060f29;
}
.navbar .menu .menu-btn{
  color: #fff;
}

/* home section styling */
.home{
  height: 100vh;
  width: 100%;
  background: url("Images/background.jpg") no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Ubuntu', sans-serif;
}
.home .home-content{
  width: 90%;
  height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home .text-one{
  font-size: 25px;
  color: #4070f4;
}
.home .text-two{
  color: #060f29;
  font-size: 75px;
  font-weight: 600;
  margin-left: -3px;
}
.home .text-three{
  font-size: 40px;
  margin: 5px 0;
  color: #4070f4;
}
.home .text-four{
  font-size: 23px;
  margin: 5px 0;
  color: #0E2431;
}

.home .button button{
  font-family: 'Ubuntu', sans-serif;
  outline: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 25px;
  font-weight: 400;
  background: #668df6;
  color: #fff;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.4s ease;
  margin-top: -200px;
}
.home .button button:hover{
  border-color: #4070f4;
  background-color: #4070f4;
  color: #ffffff;
}

/* About Section Styling */
/* Those Elements Where I Have Apply Same CSS,
 I'm Selecting Directly 'Section Tag' and 'Class'  */
 section{
  padding-top: 40px;
}
section .content{
  width: 80%;
  margin: 40px auto;
  font-family: 'Poppins', sans-serif;
}
.about .about-details{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
section .title{
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
section .title span{
  color: #0E2431;
  font-size: 30px;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}
section .title span::before,
section .title span::after{
  content: '';
  position: absolute;
  height: 3px;
  width: 100%;
  background: #4070f4;
  left: 0;
  bottom: 0;
}
section .title span::after{
  bottom: -7px;
  width: 70%;
  left: 50%;
  transform: translateX(-50%);
}
.about .about-details .left{
  width: 45%;
}
.about .left img{
  height: 400px;
  width: 400px;
  object-fit: cover;
  border-radius: 12px;
}
.about-details .right{
  width: 55%;
}
section  .topic{
  color: #0E2431;
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 10px;
}
.about-details .right p{
  text-align: justify;
  color: #0E2431;
}

section .button{
  margin: 16px 0;
}
section .button button{
  outline: none;
  padding: 8px 16px;
  border-radius: 4px;  
  font-family: 'Ubuntu', sans-serif;
  font-size: 25px;
  font-weight: 400;
  background: #668df6;
  color: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.4s ease;
}

section .button button:hover{
  border-color: #4070f4;
  background-color: #4070f4;
  color: #ffffff;
}


/* test */
.table-container{
  display: flex;
  justify-content: center;
  
}
table {
  width: 75%;
  border-spacing: 0;
  border-collapse: collapse; 
}

th, td {
  border: 1px solid #4070f4;
  text-align: left;
  padding: 15px;
}
th {
  background-color: #4070f4;
  color: #fff;
  height: 60px;
}


 /* My Skills CSS */
.skills{
  
  background: #F0F8FF;
  display: flex;
  
  
  font-size: 15px;

}
.category{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* My Projects CSS */
.services .boxes{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 40px;
  font-weight: 600;
}
.services .boxes .box{
  margin: 20px 0;
  width: calc(100% / 3 - 20px);
  text-align: center;
  border-radius: 12px;
  padding: 30px 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
  cursor: default;
  transition: all 0.4s ease;
  
  
}
.services .boxes .box:hover{
  background: #668df6;
  color: #fff;
}


.services .boxes .box:hover .topic,
.services .boxes .box:hover p{
  color: #0E2431;
  transition: all 0.4s ease;
}
.services .boxes .box:hover .topic,
.services .boxes .box:hover p{
  color: #fff;
}

/* animation */
.home-content .content{
  width: 100%;
  font-family: 'Ubuntu', sans-serif;
  color: #060f29;
  display: flex;
  font-size: 18px;
  margin-top: 10px;
  font-weight: 100;
}

span{
  color: #4070f4;
}

/* Contact Me CSS */
.contact{
  background: #F0F8FF;
}
.contact .content{
  margin: 0 auto;
  padding: 30px 0;
}
.contact .text{
  width: 80%;
  text-align: center;
  margin: auto;
}
.topic{
  font-size: 20px;
}
.contact button{
  font-family: 'Ubuntu', sans-serif;
  color: #ffffff;
  outline: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 400;
  background: #668df6;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.4s ease;
  margin-top: 15px;
}
.contact button:hover{
  border-color: #4070f4;
  background-color: #4070f4;
  color: #ffffff;
}

/* Footer CSS */
.footer {
  display: flex;
  flex-flow: row wrap;
  padding: 30px 30px 20px 30px;
  font-family: 'Ubuntu', sans-serif;
  color: #999;
  background-color: #060f29;
  border-top: 1px solid #e5e5e5;
  font-size: 13px;
}

.footer > * {
  flex:  1 100%;
}

.footer__addr {
  margin-right: 1.25em;
  margin-bottom: 2em;
}


.footer__addr h2 {
  margin-top: 1.3em;
  font-size: 18px;
  font-weight: 400;
  color: #f0efef;
}

.nav__title {
  font-weight: 400;
  font-size: 18px;
  color: #f0efef;
  white-space: nowrap;
}

.footer address {
  font-style: normal;
}

.footer .contact-icon i{
  color: #668df6;
  font-size: 12px;
}

.nav__ul--extra i{
  color: #668df6;

}

.footer ul {
  list-style: none;
  padding-left: 0;
}

.footer li {
  line-height: 2em;
}

.footer a {
  text-decoration: none;
}

.footer__nav {
  display: flex;
	flex-flow: row wrap;
}

.footer__nav > * {
  flex: 1 50%;
  margin-right: 1.25em;
}

.nav__ul a {
  color: #a2a2a2;
}


.legal {
  display: center;
  font-family: 'Ubuntu', sans-serif;
  color: #f0efef;
  text-align: center;
  background-color: #040a1a;
  padding: 20px 0px 20px 0px;
}

.media-icons a{
  color:#668df6;
  font-size: 22px;
  margin: 0 6px;
  
}
.media-icons :hover{
  color: #4070f4;
}

.footer-contact{
  justify-content: space-between;
}

/*footer contact icon*/
.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex; /* Ensures icon and text stay in one line */
  align-items: center; /* Vertically aligns icon and text */
  gap: 4px;/* Adds spacing between icon and text */
  margin-bottom: 2px;
}

.footer-contact li p {
  margin: 0;
  font-size: 14px; /* Adjust font size for better mobile display */
  white-space: nowrap; /* Prevents text from wrapping */
}

.footer-contact i {
  font-size: 12px;/* Icon size */
  min-width: 20px; /* Ensures consistent space for the icon */
}


@media screen and (min-width: 24.375em) {
  .legal .legal__links {
    margin-left: auto;
  }
}

@media screen and (min-width: 40.375em) {
  .footer__nav > * {
    flex: 1;
  }
  
  .nav__item--extra {
    flex-grow: 2;
  }
  
  .footer__addr {
    flex: 1 0px;
  }
  
  .footer__nav {
    flex: 2 0px;
  }
}
/* Scroll TO Top Button CSS */
.scroll-button a{
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #fff;
  background: #4070f4;
  padding: 7px 12px;;
  font-size: 18px;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.15);
  display: none;
}

/* Responsive Media Query */
@media (max-width: 1190px) {
  section .content{
    width: 85%;
  }
}
@media (max-width: 1000px) {
  .about .about-details{
    justify-content: center;
    flex-direction: column;
  }
  .about .about-details .left{
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .about-details .right{
    width: 90%;
    margin: 40px 0;
  }
  .services .boxes .box{
    margin: 20px 0;
    width: calc(100% / 2 - 20px);
  }
}
@media (max-width: 900px) {
  .about .left img{
    height: 350px;
    width: 350px;
  }
}

@media (max-width: 750px) {
  nav .navbar{
    width: 90%;
  }
  nav .navbar .menu{
    position: fixed;
    left: -100%;
    top: 0;
    background: #0E2431;
    height: 100vh;
    max-width: 400px;
    width: 100%;
    padding-top: 60px;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
  }
  .navbar.active .menu{
    left: 0;
  }
  nav .navbar .menu a{
    font-size: 23px;
    display: block;
    color: #fff;
    margin: 10px 0;
  }
  nav.sticky .menu a:hover{
    color: #4070f4;
  }
  nav .navbar .media-icons{
    display: none;
  }
  nav .menu-btn,
  .navbar .menu .cancel-btn{
    display: block;
  }
  .home .text-two{
    font-size: 65px;
  }
  .home .text-three{
    font-size: 35px;
  }
  .skills .skills-details{
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .skills-details .text{
    width: 100%;
    margin-bottom: 50px;
  }
  .skills-details .boxes{
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .services .boxes .box{
    margin: 20px 0;
    width: 100%;
  }
  .contact .text{
    width: 100%;
}
}

@media (max-width: 500px){
  .home .text-two{
    font-size: 55px;
  }
  .home .text-three{
    font-size: 33px;
  }
  .skills-details .boxes .per{
    font-size: 50px;
    color: #4070f4;
  }
}

@media (max-width: 768px) {
  .content .text h1 {
    font-size: 20px;
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Hides overflow */
    text-overflow: ellipsis; /* Adds '...' if text overflows */
  }

  .content .text {
    text-align: center; /* Centers the text for better alignment */
  }
}

/* owl carosal*/
.owl-carousel .item {
  text-align: center;
  font-family: 'Ubuntu', sans-serif;
}

.owl-carousel .item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.owl-carousel .box {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  transition: transform 0.3s;
}

.owl-carousel .box:hover {
  transform: scale(1.05);
}

/* Project Card Styling */
.box {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.box .description{
  font-size: 14px;
  padding-left: 20px;
  padding-right: 20px;
  color: whitesmoke;
}

.box img {
  width: 100%;
  height: auto;
  display: block;
}

.box .topic {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
}

.box a{
  color: #060f29;
}

.box .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(128, 128, 128, 0.9); /* Grey color with transparency */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.box .overlay p {
  margin-bottom: 10px;
  margin-top: 10px;
  padding-left: 10px;
  padding-right: 5px;
}

.box .overlay button {
  background-color: #555; 
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
}

.box .overlay button:hover {
  background-color: #4070f4; /* Lighter grey on hover */
}

.box .overlay a {
  text-decoration: none;
}

/* Hover Effect */
.box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.box:hover .overlay {
  opacity: 1;
}



