/* 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;
}

body {
  background-color: #efecf9;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0E2431;
  border-radius: 12px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #0e2431;
}

nav {
  position: fixed;
  width: 100%;
  padding: 20px 0;
  z-index: 998;
  transition: all 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


nav.sticky {
  background: #0e2431;
  padding: 13px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Navbar Container */
nav .navbar {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  max-width: 1200px;
  cursor: pointer;
}

/* Logo Styling */
nav .navbar .logo a {
  font-weight: 600;
  font-size: 36px;
  color: #0e2431;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

nav.sticky .navbar .logo a {
  color: #f1f1f1;
}

/* Menu Items */
nav .navbar .menu {
  display: flex;
  position: relative;
  gap: 15px;
}

nav .navbar .menu li {
  list-style: none;
}

.navbar .menu a {
  font-size: 18px;
  font-weight: 500;
  color: #0e2431;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
}

.navbar .menu a:hover {
  color: #fff;
  background-color: #0e2431;
}

nav.sticky .menu a {
  color: #f1f1f1;
}

nav.sticky .menu a:hover {
  color: #0e2431;
  background-color: #f1f1f1;
}

/* Media Icons */
.navbar .media-icons a {
  color: #0e2431;
  font-size: 20px;
  margin: 0 6px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar .media-icons a:hover {
  color: #0e2431;
  background-color: #fff;
  transform: scale(1.2);
}

nav.sticky .media-icons a {
  color: #fff;
}

nav.sticky .media-icons a:hover {
  color: #0e2431;
}

/* Side Navigation Menu Button CSS */
nav .menu-btn,
.navbar .menu .cancel-btn {
  position: absolute;
  color: #fff;
  right: 30px;
  top: 20px;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}

nav .menu-btn {
  color: #0e2431;
  ;
}

nav.sticky .menu-btn {
  color: #fff;
}

/* home section styling */
.home {
  height: 100vh;
  width: 100%;
  background: url("dark\ bg.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: #0E2431;
}

.home .text-two {
  color: #0E2431;
  font-size: 75px;
  font-weight: 600;
  margin-left: -3px;
}

.home .text-three {
  font-size: 40px;
  margin: 5px 0;
  color: #0e2431;
}

.home .text-four {
  font-size: 23px;
  margin: 5px 0;
  color: #0E2431;
}

.home .button {
  margin: 14px 0;
}

.home .button button {
  outline: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 25px;
  font-weight: 400;
  background: #0e2431;
  color: #fff;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.4s ease;
}

.home .button button:hover {
  border-color: #0e2431;
  background-color: #fff;
  color: #0e2431;
}

/* About Section Styling */
/* Those Elements Where We Have Apply Same CSS,
 I'm Selecting Directly 'Section Tag' and 'Class'  */
section {
  padding-top: 40px;
  width: 100%;

}

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: #0e2431;
  left: 0;
  bottom: 0;
}

section .title span::after {
  bottom: -7px;
  width: 70%;
  left: 50%;
  transform: translateX(-50%);
}

.experience .title span {
  color: white;
  font-size: 30px;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

.experience .title span::before,
.experience .title span::after {
  content: '';
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  left: 0;
  bottom: 0;
}

.experience .title span::after {
  bottom: -7px;
  width: 70%;
  left: 50%;
  transform: translateX(-50%);
}

/* Contact Section Styles */
.contact {
  background: linear-gradient(90deg, #3b82f6, #14b8a6);
}

.contact h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Button Styles */
.contact a {
  background-color: #efecf9;
  color: #3b82f6;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Button Hover Effects */
.contact a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


.contact a:active {
  transform: scale(0.95);
}


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-size: 25px;
  font-weight: 400;
  background: #0e2431;
  color: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.4s ease;
}

section .button button:hover {
  border-color: #0e2431;
  background-color: #fff;
  color: #0e2431;
}

/* My Skills CSS */
.skills {
  background: #F0F8FF;
}

.skills .content {
  padding: 40px 0;
}

.skills .skills-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skills-details .text {
  width: 50%;
}

.skills-details p {
  color: #0E2431;
  text-align: justify;
}

.skills .skills-details .experience {
  display: flex;
  align-items: center;
  margin: 0 10px;
}

.skills-details .experience .num {
  color: #0E2431;
  font-size: 80px;
}

.skills-details .experience .exp {
  color: #0E2431;
  margin-left: 20px;
  font-size: 18px;
  font-weight: 500;
  margin: 0 6px;
}

.skills-details .boxes {
  width: 45%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.skills-details .box {
  width: calc(100% / 2 - 20px);
  margin: 20px 0;
}

.skills-details .boxes .topic {
  font-size: 20px;
  color: #0e2431;
}

.skills-details .boxes .per {
  font-size: 60px;
  color: #0e2431;
}

/* My Services CSS */
.services .boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.services .boxes  .box p{
    color:#0E2431;
}

.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: #0e2431;
  color: #fff;
}

.services .boxes .box .icon {
  height: 50px;
  width: 50px;
  background: #0e2431;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 18px;
  color: #fff;
  margin: 0 auto 10px auto;
  transition: all 0.4s ease;
}

.boxes .box:hover .icon {
  background-color: #fff;
  color: #0e2341;
}

.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;
}


/* Contact Me CSS */
.contact {
  background: #F0F8FF;
}

.contact .content {
  margin: 0 auto;
  padding: 30px 0;
}

.contact .text {
  width: 80%;
  text-align: center;
  margin: auto;
}

/* Footer CSS */
footer {
  background: #0e2431;
  padding: 15px 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

footer .text span {
  font-size: 17px;
  font-weight: 400;
  color: #fff;
}

footer .text span a {
  font-weight: 500;
  color: #FFF;
}

footer .text span a:hover {
  text-decoration: underline;
}

/* Scroll TO Top Button CSS */
.scroll-button a {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #fff;
  background: #0E2431;
  padding: 7px 12px;
  ;
  font-size: 18px;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.15);
  display: none;
}

/* Responsive Design for Different Breakpoints */
@media (max-width: 1190px) {
  section .content {
    width: 85%;
    margin: 0 auto; /* Centers content */
  }
  .navbar.active .menu {
    left: 0; /* Slide menu into view */
}
}

@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) {
  /* General Navbar Styling */
  nav .navbar {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    max-width: 1200px;
  }

  /* Mobile Sliding Menu Styling */
  nav .navbar .menu {
    position: fixed;
    left: -100%; /* Hidden off-screen initially */
    top: 0;
    background: #0e2431;
    height: 100vh; /* Full screen height */
    max-width: 400px;
    width: 100%;
    padding-top: 60px;
    flex-direction: column; /* Stack menu items vertically */
    align-items: center;
    transition: all 0.5s ease; /* Smooth slide-in effect */
    z-index: 999; /* Ensure it appears above other content */
    overflow-y: auto; /* Allows scrolling within the menu */
  }

  /* Menu Items */
  nav .navbar .menu a {
    font-size: 23px;
    display: block;
    color: #fff;
    margin: 10px 0;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  nav.sticky .menu a:hover {
    color: #4070f4; /* Blue highlight when hovering */
  }
  .navbar.active {
    left: 0;
  }

  /* Hiding Social Media Icons */
  nav .navbar .media-icons {
    display: none;
  }

  /* Menu Buttons (Hamburger & Close Icon) */
  nav .menu-btn,
  .navbar .menu .cancel-btn {
    display: block;
    position: absolute;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  nav .menu-btn {
    right: 20px;
    top: 20px;
  }

  .navbar .menu .cancel-btn {
    top: 20px;
    right: 20px;
  }

  .home .text-two {
    font-size: 65px;
  }

  .home .text-three {
    font-size: 35px;
  }

  .skills {
    margin-bottom: 0;
  }

  .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: #0e2431;
  }
}

/* Fix for Scrolling Issues */
body, html {
  overflow: auto; /* Ensures scrolling is enabled globally */
}


.contact {
  background: #efecf9;
  padding: 50px 0;
}

.contact .content {
  max-width: 800px;
  margin: auto;
  text-align: center;

}

.contact .wrapper {
  background: #efecf9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact .title {
  font-size: 32px;
  margin-bottom: 20px;
  color: #0e2431;
}

.contact .topic {
  font-size: 24px;
  margin-bottom: 20px;
  color: #0e2431;
}

/* Button Styles */
.contact .contact-button {
  background-color: #0e2431;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

/* Button Hover Effects */
.contact .contact-button:hover {
  background-color: #efecf9;
  color: #0e2431;
  /* Darker shade on hover */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .contact .title {
    font-size: 28px;
    /* Reduce title font size for smaller screens */
  }

  .contact .topic {
    font-size: 20px;
    /* Reduce topic font size for smaller screens */
  }

  .contact .contact-button {
    padding: 10px 20px;
    /* Reduce button padding for smaller screens */
    font-size: 16px;
    /* Reduce button font size for smaller screens */
  }
}

@media (max-width: 480px) {
  .contact .title {
    font-size: 24px;
    /* Further reduce title font size for mobile */
  }

  .contact .topic {
    font-size: 18px;
    /* Further reduce topic font size for mobile */
  }

  .contact .contact-button {
    padding: 8px 16px;
    /* Further reduce button padding for mobile */
    font-size: 14px;
    /* Further reduce button font size for mobile */
  }
}


.dbl-field {
  display: flex;
  justify-content: space-between;
}

.field {
  flex: 1;
  margin: 0 10px;
  position: relative;
}

.field input,
.message textarea {
  width: 100%;
  padding: 10px 40px;
  border: 2px solid #0E2431;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
}

.field input:focus,
.message textarea:focus {
  border-color: #0E2431;
}

.field i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #0E2431;
}

.message {
  margin: 20px 0;
}

.message textarea {
  height: 100px;
  resize: none;
}

.button-area {
  margin-top: 20px;
}

.button-area button {
  background: #3498db;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button-area button:hover {
  background: #2980b9;
}

.button-area span {
  display: none;
  margin-top: 10px;
  font-size: 14px;
}
.experience {
  color: #f7f7f7;
  margin-top: 0;
}

.experience .timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.experience .timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #f7f7f7;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.experience .timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.experience .timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: #f7f7f7;
  border: 4px solid #0E2431;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.experience .timeline-item:nth-child(odd) {
  left: 0;
}

.experience .timeline-item:nth-child(odd)::after {
  right: -17px;
}

.experience .timeline-item:nth-child(even) {
  left: 50%;
}

.experience .timeline-item:nth-child(even)::after {
  left: -16px;
}

.experience .timeline-content {
  padding: 20px 30px;
  background-color: #0E2431;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.experience .timeline-date {
  font-weight: bold;
  margin-bottom: 10px;
  color: #f7f7f7;
}

.experience .timeline-content h3 {
  margin-top: 0;
  color: #f7f7f7;
}

.experience .timeline-content .company {
  font-style: italic;
  color: #f7f7f7;
  margin-bottom: 10px;
}

.experience .timeline-content ul {
  padding-left: 20px;
  color: #f7f7f7;
}

/* Mobile-first adjustments */
@media screen and (max-width: 600px) {
  .experience .timeline::after {
    left: 31px;
  }

  .experience .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .experience .timeline-item:nth-child(odd) {
    left: 0;
  }

  .experience .timeline-item:nth-child(odd)::after {
    left: 15px;
    right: auto;
  }

  .experience .timeline-item:nth-child(even) {
    left: 0;
  }

  .experience .timeline-item:nth-child(even)::after {
    left: 15px;
  }
}

@media screen and (max-width: 600px) {
  .wrapper header {
    text-align: center;
  }

  .wrapper form {
    margin: 35px 20px;
  }

  form .dbl-field {
    flex-direction: column;
    margin-bottom: 0px;
  }

  form .dbl-field .field {
    width: 100%;
    height: 45px;
    margin-bottom: 20px;
  }

  form .message textarea {
    resize: none;
  }

  form .button-area {
    margin-top: 20px;
    flex-direction: column;
  }

  .button-area button {
    width: 100%;
    padding: 11px 0;
    font-size: 16px;
  }

  .button-area span {
    margin: 20px 0 0;
    text-align: center;
  }
}
  /* Ensure text and content inside the boxes are clearly visible */
  .box .topic {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
  }

  .box .per {
    font-size: 1em;
    color: #555;
  }

  .quote-box, .skills-box {
    background-color:rgba(255, 255, 255, 0.9); /* Fully opaque white */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px; /* Rounded corners for modern look */
  }

  /* Specific styles for quote box */
  .quote-box .topic {
    font-style: italic;
    font-size: 1.2em;
    color: #555; /* Slightly darker text for better contrast */
    text-align: center;
  }

  /* Specific styles for skills box */
  .skills-box h4 {
    font-size: 1.2em;
    margin-top: 10px;
    color: #333;
  }

  .skills-box p {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
  }

  /* Responsive design */
  @media screen and (max-width: 768px) {
    .quote-box, .skills-box {
      padding: 15px; /* Adjust padding for smaller screens */
      margin-bottom: 15px;
    }

    .quote-box .topic, .skills-box h4 {
      font-size: 1em; /* Slightly smaller font sizes for readability */
    }

    .skills-box p {
      font-size: 0.9em; /* Adjust text size */
    }
  }

  @media screen and (max-width: 480px) {
    .quote-box, .skills-box {
      padding: 10px; /* Further adjust padding for very small screens */
      margin-bottom: 10px;
    }

    .quote-box .topic, .skills-box h4 {
      font-size: 0.9em;
    }

    .skills-box p {
      font-size: 0.8em;
    }
  }


  .more-projects {
    text-align: center;
    margin-top: 30px;
  }
  
  .github-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #efecf9;
    color: #0E2431;
    font: 1em bold;
    
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(14, 36, 49, 0.1);
  }
  
  .github-button:hover {
    color: #efecf9;
    background-color: #0e2431;
    box-shadow: 0 4px 8px rgba(14, 36, 49, 0.2);
    transform: translateY(-2px);
  }
  
  .github-button i {
    margin-right: 10px;
  }