:root {
  --white: hsla(0, 0%, 100%, 1);
  --white_a8: hsla(0, 0%, 100%, 0.08);
  --white_a12: hsla(0, 0%, 100%, 0.12);
  --cultured: hsla(220, 20%, 97%, 1);
  --snow: hsla(345, 57%, 97%, 1);
  --manatee: hsla(219, 10%, 62%, 1);
  --black-coral: hsla(220, 12%, 43%, 1);
  --cadet-blue-crayola_a20: hsla(222, 23%, 71%, 0.2);
  --cinnamon-satin: orangered;
  --raisin-black: hsla(216, 14%, 14%, 1);
  --raisin-black_a6: hsla(216, 14%, 14%, 0.06);
  --gunmetal: hsla(214, 15%, 21%, 1);
  --charcoal: hsla(219, 22%, 26%, 1);

  --ff-manrope: 'Manrope', sans-serif;

  --fs-1: calc(2.7rem + 1.38vw);
  --fs-2: calc(2.6rem + .66vw);
  --fs-3: calc(2.6rem + .24vw);
  --fs-4: 1.9rem;
  --fs-5: 1.8rem;
  --fs-6: 1.7rem;
  --fs-7: 1.5rem;
  --fs-8: 1.4rem;

  --fw-700: 700;

  --section-padding: 90px;

  --shadow-1: 0 0 20px hsla(216, 14%, 14%, 0.05);
  --shadow-2: 0 4px 28px hsla(216, 14%, 14%, 0.07);

  --radius-circle: 50%;
  --radius-pill: 100px;
  --radius-8: 8px;
  --radius-6: 6px;

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --transition-3: 0.3s ease-in-out;

}



*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a,
img,
span,
button,
ion-icon {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
}

input,
button,
textarea {
  background: none;
  border: none;
  font: inherit;
}

input,
textarea {
  width: 100%;
}

button {
  cursor: pointer;
}

ion-icon {
  pointer-events: none;
}

html {
  font-family: var(--ff-manrope);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--black-coral);
  font-size: 1.6rem;
  line-height: 1.7;
}

body.nav-active {
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: hsl(0, 0%, 98%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 80%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 70%);
}

.container {
  padding-inline: 16px;
}

.social-list {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-link {
  font-size: 3rem;
  transition: var(--transition-1);
}

.social-link:is(:hover, :focus-visible) {
  transform: translateY(-3px);
  color: orangered;
}

.section {
  padding-block: var(--section-padding);
}

.w-100 {
  width: 100%;
}

.h1,
.h2,
.h3,
.h4 {
  color: var(--charcoal);
  line-height: 1.3;
}

.h1 {
  font-size: var(--fs-1);
}

.h2 {
  font-size: var(--fs-2);
}

.h3 {
  font-size: var(--fs-3);
}

.h4 {
  font-size: var(--fs-4);
}

.btn {
  color: var(--raisin-black);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  border: 2px solid var(--shadow-1);
  max-width: max-content;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: var(--transition-1);
  will-change: transform;
}

.btn:is(:hover, :focus-visible) {
  transform: translateY(-4px);
}

.btn-primary,
.btn-secondary:is(:hover, :focus-visible) {
  background-color: var(--raisin-black);
  color: var(--white);
}

.section-text {
  font-size: var(--fs-5);
}

.section-title {
  margin-block-end: 16px;
}

.grid-list {
  display: grid;
  gap: 30px;
}

[data-reveal] {
  opacity: 0;
  transition: 0.75s ease;
}

[data-reveal="top"] {
  transform: translateY(-30px);
}

[data-reveal="bottom"] {
  transform: translateY(30px);
}

[data-reveal="left"] {
  transform: translateX(-30px);
}

[data-reveal="right"] {
  transform: translateX(30px);
}

[data-reveal].revealed {
  transform: translate(0);
  opacity: 1;
}



.header {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--white);
  width: 100%;
  padding-block: 20px;
  box-shadow: var(--shadow-1);
  z-index: 4;
}

.header.active {
  position: fixed;
  animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-open-btn {
  font-size: 3.5rem;
  color: var(--gunmetal);
}

.navbar {
  position: fixed;
  top: 0;
  left: -300px;
  background-color: var(--raisin-black);
  color: var(--white);
  max-width: 300px;
  width: 100%;
  height: 100vh;
  padding: 30px;
  padding-block-end: 0px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 2;
  visibility: hidden;
  transition: var(--transition-3);
}

.navbar.active {
  visibility: visible;
  transform: translateX(300px);
}

.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-close-btn {
  background-color: var(--white_a8);
  color: var(--white);
  font-size: 2rem;
  padding: 6px;
  border-radius: var(--radius-circle);
  transition: var(--transition-1);
}

.nav-close-btn ion-icon {
  --ionicon-stroke-width: 50px;
}

.nav-close-btn:is(:hover, :focus-visible) {
  background-color: var(--white_a12);
}

.navbar-list {
  margin-block-end: auto;
}

.navbar-link {
  font-weight: var(--fw-700);
  padding-block: 6px;
}

.contact-link {
  transition: var(--transition-1);
}

.contact-link:is(:hover, :focus-visible) {
  color: var(--cinnamon-satin);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--raisin-black);
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-1);
}

.overlay.active {
  pointer-events: all;
  opacity: 0.8;
}


.hero {
  padding-block-start: calc(var(--section-padding) + 00px);
  background-color: var(--cultured);
}

.hero .container {
  display: grid;
  gap: 50px;
}

.hero-banner {
  position: relative;
  max-width: max-content;
  margin-inline: auto;
}

.hero-banner .w-100 {
  mask-image: url("Blob.svg");
  -webkit-mask-image: url("Blog.svg");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: auto;
  -webkit-mask-size: auto;
}

.hero .shape {
  position: absolute;
  bottom: 10%;
  right: 2%;
  filter: drop-shadow(var(--shadow-2));
}

.hero-content {
  text-align: center;
}

.hero .section-text {
  margin-block: 24px 36px;
}

.btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}


.about .wrapper {
  display: grid;
  gap: 50px;
  margin-block-end: 70px;
}

.progress-list .label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 4px;
}

.progress-item:not(:last-child) {
  margin-block-end: 16px;
}

.progress {
  background-color: var(--raisin-black_a6);
  height: 6px;
  width: 100%;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: inherit;
}

.about-card {
  text-align: center;
}

.about-card .card-icon {
  max-width: max-content;
  margin-inline: auto;
}

.about-card .card-title {
  margin-block: 16px 10px;
}

.project {
  border-block: 1px solid var(--cadet-blue-crayola_a20);
}

.project .title-wrapper {
  margin-block-end: 40px;
}

.project .btn {
  margin-block-start: 24px;
}

.project .grid-list {
  gap: 40px;
}

.project-card {
  --padding: 24px;

  display: flex;
  flex-direction: column;
  gap: var(--padding);
  border-radius: var(--radius-8);
  overflow: hidden;
}

.project-card-1,
.project-card-2,
:is(.project-card-3, .project-card-4) .card-content {
  padding: var(--padding);
}

.project-card-1 {
  padding-block-end: 0;
}

.project :is(.project-card-3, .project-card-4) {
  gap: 0;
}

.project-card .card-tag {
  font-size: var(--fs-8);
  font-weight: var(--fw-700);
  text-transform: uppercase;
}

.project-card .card-title {
  margin-block: 16px;
}

.project-card .card-text {
  margin-block-end: 20px;
}

.project-card .btn-text {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: var(--fw-700);
  transition: var(--transition-1);
}

.project-card .btn-text:is(:hover, :focus-visible) {
  gap: 10px;
}


.contact {
  padding-block-end: 0;
}

.contact-card {
  background-color: var(--snow);
  padding: 32px;
  border-radius: var(--radius-8);
  display: grid;
  gap: 40px;
}

.contact .section-title {
  margin-block-start: 20px;
}

.input-field {
  background-color: var(--white);
  color: var(--black-coral);
  font-size: var(--fs-7);
  padding: 14px 18px;
  border-radius: var(--radius-6);
  outline: none;
  margin-block-end: 20px;
}

.input-field::placeholder {
  color: var(--manatee);
}

textarea.input-field {
  min-height: 120px;
  height: 120px;
  max-height: 240px;
  resize: vertical;
}

.footer {
  padding-block: 40px;
}

.copyright {
  margin-block-end: 12px;
}

.footer .social-link {
  color: var(--charcoal);
}


@media (min-width: 575px) {

  .container {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }

  .project-card {
    --padding: 68px;
  }

  .contact-card {
    padding: 68px;
  }

}


@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .section-text {
    --fs-5: 2rem;
  }

  .about .grid-list {
    grid-template-columns: 1fr 1fr;
  }

  .project .title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
  }

  .project .btn {
    min-width: max-content;
  }

  .contact .section-text {
    --fs-5: 1.8rem;
  }

  .input-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .copyright {
    margin-block-end: 0;
  }

}


@media (min-width: 992px) {

  :root {
    --section-padding: 120px;
  }

  .container {
    max-width: 960px;
  }

  .nav-open-btn,
  .navbar-top,
  .navbar .wrapper,
  .overlay {
    display: none;
  }

  .navbar,
  .navbar.active {
    all: unset;
    display: flex;
    flex-grow: 1;
  }

  .navbar-list {
    display: flex;
    gap: 36px;
    margin-inline: auto;
  }

  .navbar-link {
    color: var(--charcoal);
    transition: var(--transition-1);
  }

  .navbar-link:is(:hover, :focus-visible) {
    color: var(--cinnamon-satin);
  }

  .navbar .social-link {
    color: var(--charcoal);
    font-size: 1.8rem;
  }

  .header {
    top: 45px;
    max-width: 960px;
    left: 50%;
    transform: translateX(-50%);
    padding-inline: 16px;
    border-radius: var(--radius-8);
  }

  .header.active {
    top: 0;
    left: 0;
    max-width: unset;
    border-radius: 0;
  }

  .hero {
    padding-block-start: calc(var(--section-padding) + 00px);
  }

  .hero .container {
    grid-template-columns: 0.8fr 1fr;
    align-items: center;
    gap: 100px;
  }

  .hero-content {
    text-align: left;
  }

  .hero .btn-wrapper {
    justify-content: flex-start;
  }
  .about .wrapper {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about .grid-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .project .grid-list {
    grid-template-columns: 1fr 1fr;
    row-gap: 50px;
  }

  .project .grid-list>li:nth-child(-n+2) {
    grid-column: 1 / 3;
  }

  .project-card-1,
  .project-card-2 {
    flex-direction: row;
    align-items: flex-end;
  }

  :is(.project-card-1, .project-card-2) .card-content {
    width: 33.33%;
  }

  :is(.project-card-1, .project-card-2) .card-banner {
    width: 66.66%;
  }

  .project-card-1 .card-content {
    padding-block-end: var(--padding);
  }

  .project-card-2 .card-content {
    order: 1;
  }

  .contact-card {
    grid-template-columns: 0.8fr 1fr;
    align-items: center;
    gap: 90px;
  }

}



@media (min-width: 1200px) {

  .container,
  .header {
    max-width: 1140px;
  }

  .about .grid-list {
    gap: 50px;
  }

  .contact-card {
    gap: 150px;
  }

}

@media (min-width: 1400px) {

  .container,
  .header {
    max-width: 1320px;
  }

  .hero .container {
    grid-template-columns: 1fr 0.8fr;
  }

  .hero .section-text {
    --fs-5: 2.4rem;
  }

  .about .wrapper {
    gap: 100px;
  }

  .about .grid-list {
    gap: 60px;
  }

}

/* Spline Hero */
.spline-container {
  position: relative;
  height: 100vh;
  border-radius: 10px;
  overflow: hidden;
}
.spline-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.overlay-text {
  position: absolute;
  top: 77%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  color: #fff;
}
.overlay-text h1 {
  font-size: 3rem;
  font-weight: 700;
}
.overlay-text p {
  margin-top: 10px;
  font-size: 1.2rem;
}
.overlay-text .btn {
  margin-top: 20px;
}


.skills-section {
  background: linear-gradient(135deg, #8e8e99 0%, #d7dbe9 100%);
  padding: 10rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 1200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.skills-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  font-weight: 600;
  font-family: 'Abel', sans-serif;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #000000;
  border-radius: 2px;
}

.skills-container {
  position: relative;
  width: 100%;
  height: 450px;
  perspective: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotate360 32s linear infinite;
}

.carousel__face {
  position: absolute;
  width: 220px;
  height: 160px;
  top: 35%;
  left: 50%;
   right: 10%;
  transform-origin: center;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: all 0.4s ease;
}

.carousel__face::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
}

.carousel__face:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

span {
  z-index: 2;
  font-size: 1.7rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  text-align: center;
  padding: 0.6rem;
  font-family: 'Abel', sans-serif;
}

/* Carousel face positions */
.carousel__face:nth-child(1) {
  background-image: url("./Images/3.png");
  transform: rotateY(0deg) translateZ(430px);
}
.carousel__face:nth-child(2) {
  background-image: url("./Images/2.png");
  transform: rotateY(51.43deg) translateZ(430px);
}
.carousel__face:nth-child(3) {
  background-image: url("./Images/4.png");
  transform: rotateY(102.86deg) translateZ(430px);
}
.carousel__face:nth-child(4) {
  background-image: url("./Images/6.png");
  transform: rotateY(154.29deg) translateZ(430px);
}
.carousel__face:nth-child(5) {
  background-image: url("./Images/1.webp");
  transform: rotateY(205.72deg) translateZ(430px);
}
.carousel__face:nth-child(6) {
  background-image: url("./Images/7.png");
  transform: rotateY(257.15deg) translateZ(430px);
}
.carousel__face:nth-child(7) {
  background-image: url("./Images/9.jpg");
  transform: rotateY(308.58deg) translateZ(430px);
}

 


@keyframes rotate360 {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(-360deg); }
}

/* Responsive Tweaks Without Shrinking Elements Too Much */
@media (max-width: 1200px) {
  .skills-container {
    height: 420px;
  }
  .carousel__face {
    width: 200px;
    height: 140px;
  }
}

@media (max-width: 992px) {
  .skills-container {
    height: 380px;
  }
  .carousel__face {
    width: 180px;
    height: 130px;
  }
  span {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .skills-section {
    padding: 4rem 1.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .skills-container {
    height: 340px;
    perspective: 1000px;
  }
  .carousel__face {
    width: 160px;
    height: 110px;
  }
  span {
    font-size: 1.2rem;
  }
  .carousel__face:hover {
    transform: scale(1.05) translateZ(240px) !important;
  }
}

@media (max-width: 480px) {
  .skills-container {
    height: 300px;
    perspective: 800px;
  }
  .carousel__face {
    width: 140px;
    height: 90px;
  }
  span {
    font-size: 1rem;
  }
}


.certification-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  background: #ffffff;
}

.certification-section h1 {
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 10px;
  font-family: "Abel", sans-serif;
}

.certification-section p {
  font-size: 1.2rem;
  color: #7f8c8d;
  margin-top: 10px;
  margin-bottom: 50px;
  line-height: 1.6;
}

.cert-sec {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 0 auto 40px;
}

.cards {
  position: relative;
  width: 100%;
  height: 100%;
}

input[type="radio"] {
  display: none;
}

.card {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  right: 0;
  margin: auto;
  transition: transform 0.5s ease;
  cursor: pointer;
  opacity: 0.4;
  transform: scale(0.8);
  z-index: 0;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

/* Active image */
#item-1:checked ~ .cards #cert-1,
#item-2:checked ~ .cards #cert-2,
#item-3:checked ~ .cards #cert-3,
#item-4:checked ~ .cards #cert-4,
#item-5:checked ~ .cards #cert-5 {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 3;
}

#item-1:checked ~ .cards #cert-2,
#item-2:checked ~ .cards #cert-3,
#item-3:checked ~ .cards #cert-4,
#item-4:checked ~ .cards #cert-5,
#item-5:checked ~ .cards #cert-1 {
  transform: translateX(40%) scale(0.8);
  z-index: 2;
}

#item-1:checked ~ .cards #cert-5,
#item-2:checked ~ .cards #cert-1,
#item-3:checked ~ .cards #cert-2,
#item-4:checked ~ .cards #cert-3,
#item-5:checked ~ .cards #cert-4 {
  transform: translateX(-40%) scale(0.8);
  z-index: 2;
}

.see-more {
  background-color: #000000;
  color: white;
  border: none;
  padding: 10px 32px;
  border-radius: 30px;
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.see-more:hover {
  background-color: #b97b29;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(41, 128, 185, 0.4);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .card {
    width: 90%;
    height: 300px;
  }

  .certification-section h1 {
    font-size: 2.2rem;
  }

  .certification-section p {
    font-size: 1rem;
  }

  .cert-sec {
    height: 360px;
  }
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.whatsapp-button,
.scroll-top-button {
  background: #000000;
  color: white;
  padding: 0.6rem 0.8rem;
  border-radius: 50%;
  border: none;
  font-size: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-button:hover,
.scroll-top-button:hover {
  background-color: #000000;
}


.card-banner:hover img {
  transform: scale(0.98);
}
.card-banner:hover img:hover {
  transform: scale(1.08) translateY(-8px);
}

.card-banner img:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.2), 
              0 0 0 2px rgba(255,255,255,0.8),
              0 0 20px rgba(255,255,255,0.5);
}

.card-banner img:hover {
  transform: scale(1.08) translateY(-8px) rotateX(5deg);
}


 @media (max-width: 768px) {
    .card-event {
      gap: 10px;
      max-height: 140px;
    }
    .card-event img {
      max-height: 120px !important;
      max-width: 100px !important;
    }
  }
  @media (max-width: 480px) {
    .card-event {
      gap: 6px;
      max-height: 110px;
    }
    .card-event img {
      max-height: 90px !important;
      max-width: 75px !important;
    }
  }
  .card-event::-webkit-scrollbar {
    display: none;
  }
  .card-event {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }