:root {
  /*========== Colors ==========*/
  --Primary: #bb86fc;
  --PrimaryVariant: #3700b3;
  --Secondary: #03dac6;
  --Background: #121212;
  --Error: #cf6679;
  --on: #ffffff;
  --on-medium: rgba(255, 255, 255, 0.6);
  --hover-color: rgba(187, 134, 252, 0.12);
  --Bar: rgba(187, 134, 252, 0.5);
  --SecondaryBar: rgba(3, 218, 198, 0.5);
  --Disabled: rgba(255, 255, 255, 0.38);

  /*========== Font and typography ==========*/
  --body-font: "Poppins", sans-serif;
  --font1: "Roboto Mono", sans-serif;
  --h1-font-size: 3rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.3rem;
  --h4-font-size: 1.25rem;
  --h5-font-size: 1rem;
  --normal-font-size: 0.9rem;
  --small-font-size: 0.8rem;
}

/*==================== REUSABLE CSS CLASSES ====================*/
/*==================== BASE CSS ====================*/
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background-color: var(--Background);
  color: var(--on);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  font-size: var(--h1-font-size);
  font-family: "Roboto Mono", sans-serif;
  font-style: normal;
  font-weight: 700;
}

h2 {
  font-size: var(--h2-font-size);
  font-family: "Roboto Mono", sans-serif;
}

h3 {
  font-size: var(--h3-font-size);
  font-family: "Roboto Mono", sans-serif;
}

p {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--on-medium);
  line-height: 2;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
}

section {
  padding-top: 10rem;
  flex: 1;
  padding: 2rem;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.section__title,
.section__subtitle {
  text-align: center;
  padding: 0;
  margin-bottom: 0.5rem;
}

.section__bar {
  height: 5px;
  border-radius: 0.25rem;
  background-color: var(--SecondaryBar);
  margin: 1rem auto;
  width: 50px;
}

/*==================== LAYOUT ====================*/

header {
  top: 0;
  width: 100%;
  position: fixed;
  left: 0;
  z-index: 100;
  background-color: var(--Background);
  padding: 1rem;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 90%;
}

/*==================== NAV ====================*/
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__link {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  position: relative;
  transition: color 0.3s;
}

.nav__link:hover {
  color: var(--Secondary);
}

.nav__link:active,
.nav__link.active-link {
  color: var(--Primary);
}

.nav__link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--Primary);
  transition: width 0.3s ease;
}

.nav__link:hover:after,
.nav__link.active-link:after {
  width: 100%;
}

.nav__list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.nav__item {
  margin: 0 1rem;
}

.nav__logo {
  margin-left: 2rem;
  color: var(--Primary);
  font-family: var(--font1);
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.nav__logo:hover {
  transform: scale(1.05);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  margin-right: 1rem;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--on);
  transition: all 0.3s linear;
  border-radius: 10px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile responsive nav */
@media screen and (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav__list {
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 60px; /* Adjusted to account for header height */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(18, 18, 18, 0.95);
    padding: 20px 0;
    z-index: 999;
    overflow-y: auto;
  }

  .nav__list.active {
    display: flex;
  }

  .nav__item {
    margin: 1rem 0;
  }

  .nav__logo {
    margin-left: 1rem;
  }
    .nav__link {
    font-size: 1.2rem;
    padding: 10px 0;
  }
}

/*==================== HOME ====================*/
/*==================== HOME ====================*/
#home {
  padding-top: 15rem;
  padding-left: 3rem;
  margin-bottom: 5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

button {
  border-radius: 5px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  margin-right: 20px;
  padding: 10px 20px;
  background: var(--Background);
  transition: all 0.3s ease;
  color: var(--Primary);
  text-transform: uppercase;
  font-family: var(--font1);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
}

button:hover,
button:focus {
  background: var(--hover-color);
  transform: translateY(-2px);
}

#noPadP,
#noPadH {
  margin: 0;
  padding: 0;
}

.Green {
  color: var(--Secondary);
}

/*==================== SKILLS ====================*/
/*==================== SKILLS ====================*/
.skills__container {
  padding-top: 15px;
  justify-content: center;
  display: grid;
  grid-gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.skills__content {
  background-color: transparent;
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skills__content:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.skills__header {
  display: flex;
  cursor: pointer;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info h3,
.info p {
  margin: 0;
  padding: 0;
}

.skills__close .skills__list {
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease-in-out;
}

.skills__open .skills__list {
  height: max-content;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.skills__open .skills__arrow {
  transform: rotate(-180deg);
}

.skills__arrow {
  margin-left: auto;
  transition: transform 0.4s;
}
/* Skills arrow */
.skills__arrow:hover {
  color: var(--Secondary);
}
.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  align-items: baseline;
}

.skills__name {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.skills__number {
  font-size: 0.8rem;
  color: var(--on-medium);
}

.skills__bar,
.skills__percentage {
  height: 5px;
  border-radius: 0.25rem;
}

.skills__bar {
  background-color: var(--Bar);
  margin-bottom: 1.5rem;
}

.skills__percentage {
  display: block;
  background-color: var(--Primary);
  transition: width 1s ease-in-out;
}

.skills__list li {
  margin-bottom: 0.5rem;
}

/* Skill percentages */
.number20 {
  width: 20%;
}

.number30 {
  width: 30%;
}

.number35 {
  width: 35%;
}

.number40 {
  width: 40%;
}

.number45 {
  width: 45%;
}

.number50 {
  width: 50%;
}

.number60 {
  width: 60%;
}

.number70 {
  width: 70%;
}

.number80 {
  width: 80%;
}

/*==================== PATH ====================*/
.path__tabs {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.path__data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s;
}

.path__data:hover {
  transform: translateY(-5px);
}

.path__calendar {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.path__calendar object {
  margin-right: 10px;
}

.path__rounder {
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: var(--Primary);
  border-radius: 50%;
}

.path__line {
  display: block;
  width: 2px;
  height: 100%;
  background-color: var(--Primary);
  margin: 0 auto;
}

.path [data-content] {
  display: none;
}

.path__active[data-content] {
  display: block;
}

.path__section {
  color: var(--Disabled);
  transition: color 0.3s;
}

.path__icon path {
  fill: var(--Disabled);
  transition: fill 0.3s;
}

.path__button {
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.path__button.path__active .path__section
{
  color: var(--Primary);
}
.path__button:hover .path__section {
  color: var(--Secondary);
}

.path__button.path__active .path__icon path
{
  fill: var(--Primary);
}
.path__button:hover .path__icon path {
  fill: var(--Secondary);
}

.path__icon {
  margin-right: 10px;
}

.path__content {
  display: none;
}

.path__content.path__active {
  display: grid;
  grid-template-columns: 1fr 10px 1fr;
  grid-column-gap: 2rem;
}

.path__data h5,
.path__data h4,
.path__data p {
  margin: 0;
  padding: 0;
}

.path__data h5 {
  color: var(--on-medium);
}

.path__data h4 {
  color: var(--Primary);
}

.path__sections {
  margin-top: 2rem;
  display: grid;
  justify-content: center;
}

.line__rounder {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.path-svg-icon {
  pointer-events: none;
  display: inline-block;
  width: 30px;
  height: 30px;
  color: var(--Disabled);
  transition: color 0.3s;
}

.path__button:hover .path-svg-icon {
  color: var(--Secondary);
  filter: invert(71%) sepia(72%) saturate(1672%) hue-rotate(131deg) brightness(95%) contrast(101%);
}

.path__button.path__active .path-svg-icon {
  color: var(--Primary);
  filter: invert(52%) sepia(99%) saturate(1264%) hue-rotate(232deg) brightness(97%) contrast(96%);
}

.path-svg-icon svg * {
  fill: currentColor;
}

/*==================== PROJECTS ====================*/


.slideshow-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px; /* Make space for arrows */
}

.slider-content,
.project-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.slides {
  width: 100%;
  position: relative;
}

.project-slide,
.certification-slide,
.mySlides,
.certificationSlides {
  display: none;
}

/* Navigation arrows */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(18, 18, 18, 0.7);
  padding: 15px;
  border-radius: 50%; /* Both arrows will have circular shape */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.prev { left: 0; }
.next { right: 0; } /* Only position differs */

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

/* Dots container */
.dots-container {
  text-align: center;
  padding: 1rem 0;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #717171;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active{
  background-color: var(--Primary);
}
.dot:hover {
  background-color: var(--Secondary);
}

/* Fade animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

.image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

.image__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.image:hover .image__img {
  transform: scale(1.05);
  will-change: transform;
}

.image__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 2rem;
}

.image__overlay--blur {
  backdrop-filter: blur(5px);
}

.image__overlay>* {
  transform: translateY(20px);
  transition: transform 0.3s;
}

.image__overlay:hover {
  opacity: 1;
}

.image__overlay:hover>* {
  transform: translateY(0);
}

.my_project {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.project_info {
  padding: 0 2rem;
  text-align: center;
}

.project_info h3 {
  margin-bottom: 1rem;
  color: var(--Primary);
}

.project_info p {
  margin-bottom: 1.5rem;
}

.Technologies {
  font-weight: bold;
  color: var(--Secondary);
  margin-bottom: 1rem;
}

.project_info a {
  display: inline-block;
  transition: transform 0.3s;
}

.project_info a:hover {
  transform: scale(1.2);
}

/* Navigation arrows */
.nav-arrow {
  width: 40px;
  height: 45px;
  display: block;
  transition: transform 0.3s ease;
}

.prev:hover .nav-arrow,
.next:hover .nav-arrow {
  transform: scale(1.1);
}

/* Social icons */
.social-icon {
  width: 45px;
  height: 45px;
  transition: transform 0.3s ease;
}

.project_info a:hover .social-icon {
  transform: scale(1.2);
  filter: invert(71%) sepia(72%) saturate(1672%) hue-rotate(131deg) brightness(95%) contrast(101%);
}

.project_info a:hover svg path {
  fill: var(--Secondary);
  transition: fill 0.3s ease;
}

/* Certification Page Specific Styles */


#certification .image__img {
  max-height: 500px;
  object-fit: contain;
  margin: 0 auto 1.5rem auto;
}

/* FOOTER SECTION */
footer {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 3rem;
  background-color: var(--Background);
}

.footer-bg {
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
}

.footer-pattern-bg img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-container {
  position: relative;
  z-index: 2;
}

.footer-container .container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.footer-text {
  margin: 0 auto;
  text-align: center;
}

.footer-container .container .footer-text h2 {
  padding: 0;
  font-family: var(--font1);
  font-weight: 600;
  font-size: 2rem;
  color: #fff;
  max-width: 100%;
  margin-bottom: 2rem;
}

.footer-text button {
  width: 220px;
  margin: 20px auto;
  display: block;
}

.footer-btn {
  height: 50px;
  padding: 16px 32px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.688rem;
  line-height: 18px;
  letter-spacing: 1.54px;
  text-transform: uppercase;
  border-radius: 25px;
  color: #121212;
  background-color: var(--Primary);
  border: 0;
  transition: all 0.3s ease;
}

.footer-btn:hover {
  cursor: pointer;
  background-color: var(--Secondary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(3, 218, 198, 0.3);
}

.footer-social {
  margin: 5% 0 0;
}

.footer-container .container .footer-social .social-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-wrapper a {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-wrapper a:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.1);
}

.social-wrapper img.social-icon {
  height: 60%;
  width: 60%;
  transition: filter 0.3s ease;
}

.social-wrapper a:hover .social-icon {
  filter: invert(71%) sepia(72%) saturate(1672%) hue-rotate(131deg) brightness(95%) contrast(101%);
}

.social-wrapper a:hover svg path {
  fill: var(--Secondary);
  transition: fill 0.3s ease;
}

.footer-social svg {
  height: 60%;
  width: 60%;
}

/* Contact Form Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--Background);
  color: var(--on);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalopen 0.5s;
}

@keyframes modalopen {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-button {
  color: var(--on-medium);
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
  color: var(--Secondary);
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--Primary);
}

#contactForm {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-medium);
  margin-bottom: 0.5rem;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--on);
  background-color: rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s;
}

input:focus,
textarea:focus {
  border-color: var(--Secondary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(3, 218, 198, 0.2);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

#contactForm button {
  background-color: var(--Primary);
  color: #121212;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  margin: 0 0 0 auto;
  display: block;
}

#contactForm button:hover {
  background-color: var(--Secondary);
  transform: translateY(-2px);
}

/*==================== RESPONSIVE MEDIA QUERIES ====================*/
@media screen and (max-width: 992px) {
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .path__content.path__active {
    grid-template-columns: 1fr;
  }

  .line__rounder {
    display: none;
  }

  .path__data {
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding-top: 5rem;
  }

  #home {
    padding-top: 8rem;
    padding-left: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .slideshow-container {
    padding: 0 40px;
  }

    .prev, .next {
    padding: 10px;
  }

    .nav-arrow {
    width: 30px;
    height: 35px;
  }
  
    #certification .image__img {
    max-height: 400px;
  }

  .image {
    max-width: 90%;
  }

  .project_info {
    padding: 0 1rem;
  }

  .my_project {
    margin: 0 auto;
  }

  .footer-container .container .footer-text h2 {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  .skills__container {
    grid-template-columns: 1fr;
  }

  #home {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .path__tabs {
    gap: 1rem;
  }

  .path__button {
    padding: 0.3rem 0.5rem;
  }

  /* The text section already has good styling, but let's make sure it's consistent */
  .path__section {
    color: var(--Disabled);
    transition: color 0.3s;
    margin: 0;
    padding: 0;
  }

  .image {
    max-width: 100%;
  }

  .project_info {
    padding: 0 0.5rem;
  }

  .project_info h3 {
    font-size: 1.1rem;
  }

  .project_info p {
    font-size: 0.8rem;
  }

   .slideshow-container {
    padding: 0 30px;
  }
  
  .prev, .next {
    padding: 8px;
  }
  
  .nav-arrow {
    width: 25px;
    height: 30px;
  }
  
  #certification .image__img {
    max-height: 300px;
  }

  .modal-content {
    margin: 20% auto;
    padding: 1.5rem;
  }
}

/* All social icons */
.social-wrapper a:hover .social-icon,
.project_info a:hover .social-icon,
.nav__social a:hover .social-icon,
.social-links a:hover .social-icon {
  filter: invert(71%) sepia(72%) saturate(1672%) hue-rotate(131deg) brightness(95%) contrast(101%);
}

/* All SVG paths */
.social-wrapper a:hover svg path,
.project_info a:hover svg path,
.nav__social a:hover svg path,
.social-links a:hover svg path {
  fill: var(--Secondary);
}

/* Active link styling */
.nav__link.active-link {
  color: var(--Primary);
  position: relative;
}

.nav__link.active-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--Primary);
}