@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/* BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: #0ef;

  /* Certeficates */
  --bg: white;
  --card-bg: var(--second-bg-color);
  --card-hover: white;
  --border: dimgray;
  --border-hover: gray;
  --text-main: var(--main-color);
  --text-muted: red;
  --accent: var(--main-color);
  --card-width: 85vw;
}

*::selection {
  background: var(--main-color);
  color: var(--bg-color);
}

body::-webkit-scrollbar {
  display: none;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/*==================== LOADING SCREEN ====================*/
body.loading {
  overflow: hidden;
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, var(--second-bg-color) 0%, var(--bg-color) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
  overflow: hidden;
}

#loader-wrapper.fade-out {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo {
  width: 150px;
  margin-bottom: 1.5rem;
  animation: floatLogo 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0, 238, 255, 0.4));
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
    filter: drop-shadow(0 0 30px rgba(0, 238, 255, 0.8));
  }
}

.progress-text {
  color: var(--text-color);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.loader-wave {
  position: absolute;
  top: 100vh;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 5;
  transition: transform 0.08s linear;
}

.wave-container {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 12vh;
  min-height: 80px;
}

.wave-back,
.wave-mid,
.wave-front {
  position: absolute;
  bottom: -1px;
  /* Prevents visual gaps between wave and filler */
  left: 0;
  width: 200%;
  height: 100%;
  display: block;
  transform-origin: bottom center;
}

.wave-back {
  animation: wave-anim 6s linear infinite;
}

.wave-mid {
  animation: wave-anim 4.5s linear infinite reverse;
}

.wave-front {
  animation: wave-anim 3s linear infinite;
  filter: drop-shadow(0 -10px 20px rgba(0, 238, 255, 0.5));
}

@keyframes wave-anim {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.wave-filler {
  width: 100%;
  height: 100vh;
  background-color: var(--main-color);
}

/* Top wave styling */
.top-wave {
  top: 0;
  transform: translateY(-100%);
}

.top-wave .wave-container {
  bottom: auto;
  top: 100%;
  transform: scaleY(-1);
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

span {
  color: var(--main-color);
}

.heading {
  text-align: center;
  font-size: 4.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--second-bg-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  box-shadow: none;
  background-color: var(--main-color);
  color: var(--text-color);
}

.button--small {
  padding: 0.75rem 1rem;
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

/* HEADER SECTION */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.header.sticky {
  border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 600;
  cursor: default;
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-icon.bx-x {
  transform: rotate(180deg);
}

.navbar a {
  font-size: 1.7rem;
  color: var(--text-color);
  margin-left: 4rem;
  transition: all 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}

/* HOME SECTION */
.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
  display: inline;
  margin-right: 10px;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 0.5rem;
}

.home-content h1 {
  font-size: 5.6rem;
  font-weight: 800;
  line-height: 1.3;
}

.home-content p {
  margin-top: 1rem;
  font-size: 1.6rem;
}

.wave {
  animation-name: wave-animation;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(14deg);
  }

  20% {
    transform: rotate(-8deg);
  }

  30% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(10deg);
  }

  60% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: all 0.3s ease;
}

.social-media a:hover {
  color: white;
  box-shadow: 0 0 1rem var(--main-color);
}

.home-img img {
  width: 30vw;
  animation: floatImage 4s ease-in-out infinite;
  max-width: 100%;
  height: auto;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2.4rem);
  }

  100% {
    transform: translateY(0);
  }
}

/* The Player Container */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #1e1e1e;
  color: white;
  padding: 10px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  font-family: sans-serif;
  transition: all 0.3s ease;
}

/* Expanded state */
.music-player.expanded {
  padding: 10px 20px 10px 10px;
  gap: 15px;
}

/* Styles the mini photo */
.album-art {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #555;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s ease;
  /* Smooth fade when photo changes */
}

/* The spinning animation */
.spin {
  animation: rotate-photo 4s linear infinite;
}

@keyframes rotate-photo {
  100% {
    transform: rotate(360deg);
  }
}

/* Controls Container */
.controls {
  display: none;
  align-items: center;
  gap: 15px;
}

/* Show controls only when expanded */
.music-player.expanded .controls {
  display: flex;
  animation: fade-in 0.3s ease forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Button styles */
.controls button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.controls button:hover {
  transform: scale(1.2);
}

/* ABOUT SECTION */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: var(--second-bg-color);
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
}

.about-content h3 {
  font-size: 2.6rem;
}

.about-content p {
  font-size: 1.6rem;
  line-height: 1.5;
  margin: 2rem 0 3rem;
}

.about img {
  width: 100vw;
  max-width: 100%;
  height: auto;
}

/* SKILLS SECTION */
.skills-section {
  min-height: 100vh;
  background: var(--first-bg-color);
}


.skills-section .image {
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  width: 600px;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -0%);
  margin-top: 50px;
  margin-bottom: 50px;
}

.skills__container {
  row-gap: 0;
}

.skills__header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  cursor: pointer;
}

.skills__header:hover {
  color: var(--main-color);
  transition: color 0.3s ease;
}

.skills__icon,
.skills__arrow {
  font-size: 2rem;
  color: var(--main-color);
}

.skills__icon {
  margin-right: 1rem;
  font-size: 50px;
  transition: transform 0.3s ease;
}

.skills__icon:hover {
  transform: scale(1.1);
}

.skills__title {
  font-size: 20px;
}

.skills__subtitle {
  font-size: 16px;
  color: var(--text-color-light);
}

.skills__arrow {
  margin-left: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills__list {
  row-gap: 1.5rem;
  padding-left: 2.7rem;
}

.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skills__name {
  font-size: 1.6rem;
  font-weight: 500;
}

.skills__bar,
.skills__percentage {
  height: 5px;
  border-radius: 0.25rem;
}

.skills__bar {
  background-color: rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.skills__percentage {
  display: block;
  background-color: var(--main-color);
  transition: width 0.5s ease-in-out;
}

.skills__html {
  width: 90%;
}

.skills__css {
  width: 70%;
}

.skills__js {
  width: 60%;
}

.skills__react {
  width: 40%;
}

.skills__python {
  width: 70%;
}

.skills__node {
  width: 60%;
}

.skills__php {
  width: 60%;
}

.skills__mysql {
  width: 50%;
}

.skills__red {
  width: 80%;
}

.skills__p-t {
  width: 60%;
}

.skills__fw {
  width: 50%;
}

.skills__i-f {
  width: 40%;
}

.skills__vs {
  width: 90%;
}

.skills__gb {
  width: 85%;
}

.skills__git {
  width: 70%;
}

.skills__docker {
  width: 60%;
}

.skills__close .skills__list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills__open .skills__list {
  max-height: 1000px;
  margin-bottom: 2rem;
  animation: listFadeIn 1s ease forwards;
}

.skills__open .skills__arrow {
  transform: rotate(-180deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes listFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*==================== Qualifications ====================*/
.qualification__section .heading {
  margin-bottom: 5rem;
}

.qualification__container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-color);
  padding: 4rem 2rem;
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.qualification__section {
  min-height: auto !important;
  background-color: var(--second-bg-color);
}

.qualification__section p {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.qualification__section .button {
  padding: 0.5rem 1rem;
}

.qualification__tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.qualification__button {
  font-size: 1.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.qualification__button:hover {
  color: var(--main-color);
}

.qualification__data {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.qualification__data>div:nth-child(1) {
  text-align: right;
  padding-right: 1.5rem;
}

.qualification__data>div:nth-child(3) {
  text-align: left;
  padding-left: 1.5rem;
}

.qualification__data>div:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qualification__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.qualification__subtitle {
  display: inline-block;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #b0b8c4;
}

.qualification__section ul {
  list-style: none;
}

.qualification__icon {
  font-size: 4rem;
  color: var(--main-color);
  text-align: center;
  display: block;
  margin-bottom: 3rem;
}

.qualification__icon span {
  font-size: 2.2rem;
  color: var(--text-color);
  display: block;
  margin-top: 1rem;
}

.qualification__calender {
  font-size: 1.2rem;
  color: #b0b8c4;
  margin-bottom: 1.5rem;
}

.qualification__rounder {
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: var(--main-color);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0, 238, 255, 0.6);
}

.qualification__line {
  display: block;
  width: 2px;
  height: 100%;
  background-color: rgba(0, 238, 255, 0.3);
  transform: translateY(-5px);
  z-index: 1;
}

.qualification__section [data-content] {
  display: none;
}

.qualification__section .qualification__active[data-content] {
  display: block;
}

.qualification__button.qualification__active {
  color: var(--main-color);
}

/* CERTIFICATES SECTION */
.certificate-section {
  padding: 7rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min-content;
  background-color: var(--second-bg-color);
}

.slider-section {
  position: relative;
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-container {
  width: 100%;
  padding: 2.5rem calc(50vw - (var(--card-width) / 2));
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-arrow:hover {
  background: var(--text-main);
  color: var(--bg);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.prev-arrow {
  left: 0.5rem;
}

.next-arrow {
  right: 0.5rem;
}

.cert-card {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: var(--card-width);
  background: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
  opacity: 0.5;
  transform: scale(0.9);
  cursor: pointer;
}

.cert-card.active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);

}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 10;
}

.cert-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(80%) brightness(0.8);
  transition: filter 0.4s ease;
}

.cert-card.active .cert-image {
  filter: grayscale(0%) brightness(1);
}

.cert-content {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.cert-issuer {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 1.5rem 0;
  letter-spacing: -0.02em;
}

.cert-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cert-btn:hover {
  background: var(--text-main);
  color: var(--bg);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  transition: transform 0.3s ease;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.cert-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1010;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.5rem;
  pointer-events: none;
}

.lightbox-nav button {
  pointer-events: auto;
}

/* SERVICES SECTION */
.services__container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: auto;
  margin-bottom: auto;
}

.services-section {
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
}

.services-section p {
  font-size: 1.6rem;
  line-height: 1.5;
  margin: 2rem 0 3rem;
}





.services-section li {
  list-style: none;
}

.services__content {
  flex: 1 1 30rem;
  background: var(--second-bg-color);
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  text-align: center;
  border: 0.2rem solid var(--bg-color);
  transition: all 0.3s ease;
}

.services__content:hover {
  border: solid var(--main-color);
}

.services__icon {
  font-size: 7rem;
  color: var(--main-color);
}

.services__title {
  font-size: 2.6rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.services__button {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  font-size: 1.6rem;
  border-radius: 4rem;
  background: var(--main-color);
  box-shadow: 0 0 1rem var(--main-color);
  color: var(--second-bg-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.5s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.services__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.uil-arrow-right:before {
  color: var(--bg-color);
}

.services__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(31, 36, 45, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services__modal-content {
  position: relative;
  width: 100%;
  max-width: 50rem;
  background-color: var(--bg-color);
  padding: 4.5rem 3.5rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}

.services__modal-services {
  row-gap: 1rem;
  display: flex;
  flex-direction: column;
}

.services__modal-service {
  display: flex;
  align-items: flex-start;
  padding: 1.2rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.services__modal-service:hover {
  background: rgba(0, 238, 255, 0.05);
  border-color: rgba(0, 238, 255, 0.2);
  transform: translateX(8px);
}

.services__modal-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--main-color);
}

.services__modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--main-color);
  background: rgba(255, 255, 255, 0.05);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.services__modal-close:hover {
  background: var(--main-color);
  color: var(--bg-color);
  transform: rotate(90deg);
}

.services__modal-icon {
  color: var(--main-color);
  font-size: 2.4rem;
  margin-right: 1.5rem;
  margin-top: 0.2rem;
}

.services__modal-service p {
  font-size: 1.4rem;
  color: #b0b8c4;
  line-height: 1.6;
  margin: 0;

}

.active-modal {
  opacity: 1;
  visibility: visible;
}

.active-modal .services__modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* PROJECTS SECTION */
.projects-section {
  padding: 5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: var(--second-bg-color);
}

.projects-section h2 {
  margin-top: 3rem;
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 1200px;
}

.project-card {
  background: var(--bg-color);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 0 20px rgba(0, 238, 255, 0.2);
  transform: translateY(-8px);
}

.hidden-project {
  display: none;
}

@keyframes revealCard {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-card.reveal-anim {
  display: flex;
  animation: revealCard 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 36, 45, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.overlay-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.project-card:hover .overlay-btn {
  transform: translateY(0);
  transition-delay: 0.05s;
}

.overlay-btn:hover {
  background: var(--main-color);
  color: var(--bg-color);
  border-color: var(--main-color);
  box-shadow: 0 0 15px var(--main-color);
}

.overlay-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.project-desc {
  font-size: 0.95rem;
  color: #b0b8c4;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--main-color);
  background: rgba(0, 238, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(0, 238, 255, 0.2);
  transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
  background: rgba(0, 238, 255, 0.15);
  border-color: rgba(0, 238, 255, 0.4);
}

.load-more-container {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.load-more-btn {
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--main-color);
  border: 1px solid var(--main-color);
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.load-more-btn:hover {
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 20px rgba(0, 238, 255, 0.4);
}

.load-more-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
  transform: translateY(3px);
}

/* CONTACT SECTION */
.contact {
  background-color: var(--bg-color);
}

.contact h2 {
  margin-bottom: 3rem;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto 3rem;
  text-align: center;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  border-radius: 0.8rem;
  background: var(--second-bg-color);
  color: var(--text-color);
  margin: 0.7rem 0;
}

.contact form .input-box input {
  width: 49%;
}

.contact form textarea {
  resize: none;
}

.contact form .btn {
  margin-top: 2rem;
  cursor: pointer;
}

/* FOOTER SECTION */
footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--second-bg-color);
}

.footer-text p {
  font-size: 1.6rem;
}

.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  background: var(--main-color);
  border-radius: 0.8rem;
  transition: 0.5s ease;
}

.footer-iconTop a:hover {
  box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--second-bg-color);
}



/* BREAKPOINTS */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media screen and (min-width: 1024px) {
  .services__container {
    grid-template-columns: repeat(3, 238px);
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }

  .contact {
    min-height: auto;
  }

  .services-section {
    min-height: auto;
    display: block;
  }

  .footer {
    padding: 2rem 3%;
  }
}

@media screen and (min-width: 768px) {
  :root {
    --card-width: 380px;
  }

  .slider-container {
    padding: 2.5rem 1rem;
    gap: 2rem;
  }

  .cert-card {
    scroll-snap-align: start;
  }

  .nav-arrow {
    width: 54px;
    height: 54px;
  }

  .nav-arrow svg {
    width: 24px;
    height: 24px;
  }

  .prev-arrow {
    left: 2rem;
  }

  .next-arrow {
    right: 2rem;
  }

  .lightbox-controls {
    top: 2rem;
    right: 2rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 218px);
    justify-content: center;
  }

  .services__content {
    padding: 50px;
  }

  .services__modal-content {
    width: 450px;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s linear;
    will-change: transform, opacity;
  }

  .navbar.active {
    display: flex;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .home,
  .about {
    flex-direction: column;
  }

  .home-content h3 {
    font-size: 2.6rem;
    display: block;
  }

  .home-content h1 {
    font-size: 3.5rem;
  }

  .home-img img,
  .about img {
    width: 70vw;
    margin-top: 4rem;
    max-width: 100%;
    height: auto;
  }

  .home .home-content {
    margin: auto;
    text-align: center;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  :root {
    --card-width: 340px;
  }
}

@media screen and (min-width: 568px) {
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 500px) {
  .certificate-section {
    min-height: auto !important;
  }
}

@media screen and (max-width: 768px) {
  .certificate-section {
    min-height: auto !important;
  }
}

@media screen and (max-width: 991px) {
  .certificate-section {
    min-height: auto !important;
  }
}

@media (max-width: 480px) {
  .skills-section .image {
    width: 300px;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }

  .contact form .input-box input {
    width: 100%;
  }
}

@media (max-width: 365px) {

  .home-img img,
  .about img {
    width: 90vw;
  }

  .footer {
    flex-direction: column-reverse;
    text-align: center;
  }

  .footer p {
    text-align: center;
    margin-top: 2rem;
  }
}

@media screen and (max-width: 350px) {
  .skills__title {
    font-size: 1.6rem;
  }

  .services__container {
    grid-template-columns: max-content;
    justify-content: center;
  }

  .services__content {
    padding-right: 3.5rem;
  }

  .services__modal {
    padding: 0 0.5rem;
  }
}



@media screen and (max-width: 768px) {
  .certificate-section {
    min-height: auto !important;
  }
}

@media screen and (max-width: 991px) {
  .certificate-section {
    min-height: auto !important;
  }
}

@media (max-width: 480px) {
  .skills-section .image {
    width: 300px;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }

  .contact form .input-box input {
    width: 100%;
  }
}

@media (max-width: 365px) {

  .home-img img,
  .about img {
    width: 90vw;
  }

  .footer {
    flex-direction: column-reverse;
    text-align: center;
  }

  .footer p {
    text-align: center;
    margin-top: 2rem;
  }
}

@media screen and (max-width: 350px) {
  .skills__title {
    font-size: 1.6rem;
  }

  .services__container {
    grid-template-columns: max-content;
    justify-content: center;
  }

  .services__content {
    padding-right: 3.5rem;
  }

  .services__modal {
    padding: 0 0.5rem;
  }
}



/* 📱 Default styles for Mobile Phones (auto height) */
section {
  min-height: auto;
  /* Adds breathing room around the content */
}

/* 💻 Styles for Laptops and larger screens (100vh) */
/* 992px is a standard breakpoint for laptops */
@media (min-width: 992px) {
  section {
    min-height: 100vh;

    /* Modern trick: Flexbox helps center your content vertically */
  }
}