/* 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 */
::-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 */
nav {
  position: fixed;
  width: 100%;
  padding: 20px 0;
  z-index: 998;
  transition: all 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
}
nav.sticky {
  background: #4070f4;
  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.sticky .navbar .logo a {
  color: #fff;
}
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: #0e2431;
  padding: 6px 0;
  transition: all 0.4s ease;
}
.navbar .menu a:hover {
  color: #4070f4;
}
nav.sticky .menu a {
  color: #fff;
}
nav.sticky .menu a:hover {
  color: #0e2431;
}
.navbar .media-icons a {
  color: #4070f4;
  font-size: 18px;
  margin: 0 6px;
}
nav.sticky .media-icons a {
  color: #fff;
}

.navbar .menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #4070f4;
  z-index: 1000;
  transition: color 0.3s ease;
}
nav.sticky .menu-btn {
  color: #fff;
}

.navbar .menu .cancel-btn {
  display: none; /* shown only in mobile via media query */
  position: absolute;
  color: #fff;
  right: 20px;
  top: 20px;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Navbar Slide-in Animation 
nav.slide-down {
  animation: slideDown 0.5s ease-in-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Navbar Fade-in Animation 
nav.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}*/


/* Home Section */
.home {
  height: 100vh;
  width: 100%;
  background: url("https://e0.pxfuel.com/wallpapers/846/344/desktop-wallpaper-portfolio.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: #4070f4;
}
.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: #4070f4;
  color: #fff;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.4s ease;
}
.home .button button:hover {
  border-color: #4070f4;
  background-color: #fff;
  color: #4070f4;
}

/* About Section */
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-size: 25px;
  font-weight: 400;
  background: #4070f4;
  color: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.4s ease;
}
section .button button:hover {
  border-color: #4070f4;
  background-color: #fff;
  color: #4070f4;
}

/* My Skills */
/* Styles for the Skills and Certifications Section */

/* General styles for the section */
.skills {
  padding: 50px 0;
  background-color: #f4f4f4;
}

.skills .content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.skills .title {
  text-align: center;
  margin-bottom: 30px;
}

.skills .title span {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

/* Skills Section */
.skills-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-details .text {
  text-align: center;
  margin-bottom: 30px;
}

.skills-details .text .topic {
  font-size: 1.5rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 15px;
}

.skills-details .text p {
  font-size: 1.1rem;
  color: #666;
}

.skill-bars {
  width: 100%;
}

.skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.skill .info {
  width: 25%;
  font-weight: bold;
}

.skill .progress-bar {
  width: 70%;
  background-color: #e0e0e0;
  border-radius: 20px;
  height: 15px;
  overflow: hidden;
}

.skill .progress {
  height: 100%;
  border-radius: 20px;
}

.skill .progress.html {
  width: 90%;
  background-color: #e34c26;
}

.skill .progress.css {
  width: 85%;
  background-color: #1572b6;
}

.skill .progress.js {
  width: 75%;
  background-color: #f0db4f;
}

.skill .progress.node {
  width: 80%;
  background-color: #8cc84b;
}

.skill .progress.python {
  width: 60%;
  background-color: #3776ab;
}

.skill .progress.sql {
  width: 70%;
  background-color: #00618a;
}

.skill .progress.mongodb {
  width: 65%;
  background-color: #47a248;
}

/* Certifications Section */
.certifications {
  margin-top: 50px;
}

.certifications h3 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
}

.cert-carousel {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cert {
  text-align: center;
  width: 200px;
}

.cert img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.cert p {
  font-size: 1rem;
  color: #555;
}


/* Projects Section */
.projects .title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.projects .boxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.projects .box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.projects .box .icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: #333;
}

.projects .box .topic {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.projects .box p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

.projects .box .project-link {
  font-size: 1rem;
  color: #3498db;
  text-decoration: none;
}

.projects .box .project-link:hover {
  text-decoration: underline;
}

/* Contact Me Section */


.contact {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact h2 {
  text-align: center;
  color: #333;
}

form input, form textarea, form button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}

form button {
  background-color: #3498db;
  color: white;
  cursor: pointer;
}

form button:hover {
  background-color: #2980b9;
}

/* Add any other customizations if needed */


/* Footer */
footer {
  background: #4070f4;
  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 */
.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;
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */

@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);
  }
}

/* ---- Mobile Navbar (≤ 750px) ---- */
@media (max-width: 750px) {

  /* Show hamburger icon */
  .navbar .menu-btn {
    display: block;
  }

  /* Hide social icons to keep navbar clean */
  .navbar .media-icons {
    display: none;
  }

  /* Full-height slide-in menu panel */
  nav .navbar .menu {
    position: fixed;
    top: 0;
    left: -100%;          /* hidden off-screen by default */
    width: 270px;
    height: 100vh;
    background: #4070f4;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 10px;
    z-index: 999;
    transition: left 0.35s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
  }

  /* Slide menu in when active */
  .navbar.active .menu {
    left: 0;
  }

  /* Show cancel (✕) button inside menu */
  .navbar .menu .cancel-btn {
    display: block;
  }

  /* Style menu links for mobile */
  nav .navbar .menu li {
    margin: 8px 0;
    width: 100%;
  }
  .navbar .menu a {
    font-size: 20px;
    color: #fff;
    display: block;
    padding: 10px 0;
  }
  .navbar .menu a:hover {
    color: #0e2431;
  }

  /* Dark backdrop when menu is open */
  .navbar.active::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
  }

  /* Page content adjustments */
  nav .navbar {
    width: 90%;
  }
  .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;
  }
}

/* Fade-in Effect 
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}*/

/* Slide-in Effect 
.slide-in-left {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
} 

/* CSS for Button Animation: 
.home .button button {
  position: relative;
  overflow: hidden;
}

.home .button button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.home .button button:hover::before {
  left: 0;
}
*/

/* Glow Hover Button */
.home-content .button button {
  margin-top: 20px;
  padding: 10px 30px;
  background: #5243c7;
  color: #333;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  box-shadow: 0 0 5px #848df5;
}

.home-content .button button:hover {
  background: #2e66d8;
  color: #fff;
  box-shadow: 0 0 15px #72b5e5, 0 0 30px #6bedf4;
}


/* General Navbar Style */
.navbar ul.menu li a {
  display: inline-block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

/* Highlight Animation for Active Link */
.navbar ul.menu li a.active {
  color: #add8e6; /* Light Blue on active */
}

.navbar ul.menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffc0cb; /* Pink underline */
  transition: width 0.3s ease-in-out;
}

.navbar ul.menu li a:hover::after,
.navbar ul.menu li a.active::after {
  width: 100%; /* Show underline fully */
}


/* Overlay Animation */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e6e6fa, #cfd8dc); /* Light Blue to Pink */
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 1s ease;
  transform: scaleY(0);
  transform-origin: top;
}

.overlay.active {
  opacity: 1;
  transform: scaleY(1);
}


