/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /*   
        Purple: hsl(250, 66%, 75%)
        Blue: hsl(207, 90%, 72%)
        Pink: hsl(356, 66%, 75%)
        Teal: hsl(174, 63%, 62%)
  */
  --first-hue: 250;
  --sat: 66%;
  --lig: 75%;
  --second-hue: 219;
  --first-color: hsl(var(--first-hue), var(--sat), var(--lig));
  --first-color-alt: hsl(var(--first-hue), var(--sat), 71%); /* -4% */
  --title-color: hsl(var(--second-hue), 15%, 95%);
  --text-color: hsl(var(--second-hue), 8%, 75%);
  --text-color-light: hsl(var(--second-hue), 4%, 55%);
  --body-color: hsl(var(--second-hue), 48%, 8%);
  --container-color: hsl(var(--second-hue), 32%, 12%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  --tiny-font-size: 0.625rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semibold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: 0.4s; /* for light mode animation */
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-semibold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== THEME ===============*/
.change__theme {
  font-size: 1.25rem;
  cursor: pointer;
  transition: 0.3s;
}

.change__theme:hover {
  color: var(--first-color);
}

/*========== Variables light theme ==========*/
body.light-theme {
  --title-color: hsl(var(--second-hue), 15%, 15%);
  --text-color: hsl(var(--second-hue), 8%, 35%);
  --body-color: hsl(var(--second-hue), 100%, 99%);
  --container-color: #e9e9e9;
}

/*========== 
    Color changes in some parts of 
    the website, in light theme
==========*/
.light-theme .scroll-header {
  box-shadow: 0 2px 4px hsla(0, 0%, 1%, 0.1);
}

.light-theme .nav__menu {
  background-color: hsla(var(--second-hue), 32%, 90%, 0.8);
}

.light-theme .section__subtitle {
  color: var(--text-color);
}

.light-theme .home__social-link {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .home__social-link::after,
.light-theme .footer__social-link {
  background-color: var(--title-color);
}

.light-theme .home__social-link,
.light-theme .home__scroll,
.light-theme .button,
.light-theme .button:hover,
.light-theme .active-work,
.light-theme .footer__title,
.light-theme .footer__link,
.light-theme .footer__copy {
  color: var(--title-color);
}

.light-theme .about__box {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .button,
.light-theme .skills__content,
.light-theme .services__card,
.light-theme .work__card,
.light-theme .testimonial__card,
.light-theme .contact__card,
.light-theme .contact__form-div {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme::-webkit-scrollbar {
  background-color: hsl(var(--second-hue), 8%, 80%);
}
/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 968px;
  margin-left: 1rem;
  margin-right: 1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.main {
  overflow: hidden;
}

.section {
  padding: 4.5rem 0 1rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--body-color);
  z-index: var(--z-fixed);
  display: flex;
  align-items: center;
  justify-content: space-between; /* distribute logo, nav, theme button */
  padding: 0 2rem;
  transition: opacity 0.4s ease, box-shadow 0.4s ease;
}


/* Move header shadow on scroll */
.scroll-header {
  opacity: 0.95;
  box-shadow: 0 -4px 16px hsla(0, 0%, 4%, 0.4);
}

/* Left logo */
.nav__logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--first-color);
  text-decoration: none;
  margin-right: auto;
  z-index: var(--z-fixed);
  transition: opacity 0.3s ease;
}

.scroll-header .nav__logo {
  opacity: 0;
  pointer-events: none;
}

/* Center pill navbar */
.nav__menu {
  display: flex;
  margin:0;
  left:50%;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: hsla(var(--second-hue), 32%, 16%, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
  z-index: var(--z-fixed);
   padding: 0.75rem;        /* equal padding on all sides */
  gap: 0.75rem; 
}

/* Nav pill floats to bottom when scroll */
.scroll-header .nav__menu {
  position: fixed;
  margin: 0;
  bottom: 1rem;
  left: 40%;
  transform: translateX(-50%); /* only center horizontally */
  background-color: hsla(var(--second-hue), 32%, 16%, 0.95);
  backdrop-filter: blur(16px);
  opacity: 1;
  visibility: visible;
  z-index: 99999;
}


/* Keep list horizontal */
.nav__list {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  display: flex;
}

/* Icon links */
.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: var(--text-color);
  font-size: 1.25rem;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}

.nav__link:hover {
  background: hsla(var(--first-hue), var(--sat), var(--lig), 0.18);
  transform: translateY(-1px);
  color: var(--first-color-alt);
}

/* Active link */
.active-link {
  background: radial-gradient(circle at 50% 50%,
    hsla(var(--first-hue), var(--sat), var(--lig), .55) 0%,
    hsla(var(--first-hue), var(--sat), var(--lig), .18) 60%,
    transparent 100%);
  box-shadow: 0 0 14px hsla(var(--first-hue), var(--sat), var(--lig), .35);
  color: var(--title-color);
}

/* Right theme button */
.change-theme-button {
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  margin-left: auto;
  z-index: var(--z-fixed);
  transition: opacity 0.3s ease;
}

.scroll-header .change-theme-button {
  opacity: 0;
  pointer-events: none;
}

/*=============== HOME ===============*/
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home__container {
  display: flex;
  align-items: center;
  justify-content: center;  /* centers whole block */
  gap: 3rem;                /* spacing between text + robot */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.home__data {
  text-align: center;
  flex: 0 1 400px;
}

.home__greeting,
.home__education {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.home__greeting {
  display: block;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.home__education {
  color: var(--text-color);
  margin-bottom: 2.5rem;
}

.home__name {
  font-size: var(--biggest-font-size);
  color: var(--first-color);
}

.home__button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* Robot container */
.home__robot {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  height: 100;
  width: 500px;
  margin: 0 auto;
  padding: 20px;
  z-index: 9999; /* Bring to very front */
  background-color: rgba(255,0,0,0.3); /* Red tint for visibility */
  border: 2px solid red; /* Red border to see boundaries */
  overflow: visible;
}

.spline-robot {
  width: 100%;
  max-width: none;
  height: 100%;    /* fixed height to prevent clipping */
  border: none;
    transform: scale(1);
    object-fit: contain;
}

  .robot-chat {
  position: absolute;
  top: 0;
  left: 260px;   /* keep adjusted position */
  background: hsla(var(--second-hue), 32%, 16%, 0.9);
  color: #ffffff;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);

  /* Let width adjust to content */
  display: inline-block;
  max-width: 500px;     /* cap it so it doesn’t get too wide */
  min-width: 220px;     /* keep a decent base size */
  white-space: normal;  /* allow wrapping */
  text-align: left;     /* better readability */
  line-height: 1.5;

  /* Fade-in animation */
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards, floatChat 3s ease-in-out infinite 0.6s;
}

.robot-chat::after {
  content: "";
  position: absolute;
  top: 12px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid hsla(var(--second-hue), 32%, 16%, 0.9);
}


@keyframes floatChat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px); /* only affects first run */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Chat button styled like scroll */
.home__chat-btn {
  position: absolute;
  right: -1.5rem;
  bottom: 4rem;
  background: var(--first-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}

.home__chat-btn:hover {
  background: var(--first-color-alt);
}

/* Chat box */
.robot-chatbox {
  position: absolute;
  right: 3rem; /* sits to left of button */
  bottom: 6rem;
  background: #fff;
  color: #333;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  max-width: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: none; /* hidden until button click */
  animation: floatChat 3s ease-in-out infinite;
}

.robot-chatbox::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 20px;
  border-width: 10px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}



/* socials and scroll remain unchanged */
.home__social,
.home__scroll {
  position: absolute;
}

.home__social {
  bottom: 4rem;
  left: 0;
  display: grid;
  row-gap: 0.5rem;
}

.home__social-link {
  width: max-content;
  background-color: var(--container-color);
  color: var(--first-color);
  padding: 0.25rem;
  border-radius: 0.5rem;
  display: flex;
  font-size: 1rem;
  transition: 0.4s;
    box-shadow: 0 8px 25px #6271f366;

}

.home__social-link:hover {
  background-color: var(--first-color);
  color: #ffffff;
}

.home__social::after {
  content: "";
  width: 32px;
  height: 1px;
  background-color: var(--first-color);
  transform: rotate(90deg) translate(16px, 4px);
}

.home__scroll {
  color: var(--first-color);
  right: 1rem;
  bottom: 4rem;
  display: grid;
  row-gap: 2.25rem;
  justify-items: center;
}

.home__scroll-icon {
  font-size: 1.25rem;
}

.home__scroll-name {
  font-size: var(--smaller-font-size);
  transform: rotate(-90deg);
}


/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--body-color);
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  font-weight: var(--font-medium);
  transition: 0.4s;
}

.button:hover {
  background-color: var(--first-color-alt);
  color: var(--body-color);
}

.button--ghost {
  background-color: transparent;
  color: var(--first-color);
  border: 1px solid var(--first-color);
}

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 2.5rem;
}

.about__img {
  width: 220px;
  border-radius: 1.5rem;
  justify-self: center;
}

.about__data {
  text-align: center;
}

.about__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.about__box {
  background-color: var(--container-color);
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
}

.about__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.about__title {
  font-size: var(--medium-font-size);
}

.about__subtitle {
  font-size: var(--small-font-size);
}

.about__description {
  margin-bottom: 2rem;
}



/*=============== EDUCATION SECTION ===============*/
#education {
  padding: 4rem 1rem;
  background: var(--body-color);
}

#education .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

#education .section-header h2 {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  position: relative;
  display: inline-block;
  padding: 0.5rem 2rem;
}

#education .section-header h2::before,
#education .section-header h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--first-color);
  border-radius: 50%;
  transform: translateY(-50%);
}

#education .section-header h2::before { left: -25px; }
#education .section-header h2::after  { right: -25px; }

/* Timeline wrapper */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--first-color);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Timeline items */
.timeline-item {
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 3rem;
}

/* Circle indicator */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--first-color);
  border: 3px solid var(--white);
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

/* Date bubble */
.timeline-date {
  padding: 0.4rem 1rem;
  background-color: var(--first-color);
  color: black;
  border-radius: 2rem;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  font-size: 0.875rem;
}

/* Content box */
.timeline-content {
  background-color: var(--container-color);
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(85, 83, 223, 0.18);
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  font-size: var(--normal-font-size);
  color: var(--title-color);
}

.institution {
  font-style: italic;
  color: var(--text-color-light); /* <-- correct variable */
  margin-bottom: 0.5rem;
  display: block;
}


.timeline-content ul {
  margin-left: 1.2rem;
  margin-top: 0.5rem;
}

.timeline-content li {
  margin-bottom: 0.4rem;
  font-size: var(--small-font-size);
  line-height: 1.5;
}

/*=============== SKILLS ===============*/
.skills__container {
  row-gap: 2rem;
  padding-top: 1rem;
}

.skills__content {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
}

.skills__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  text-align: center;
  margin-bottom: 1.5rem;
  
}

.skills__box {
  display: flex;
  justify-content: center;
  column-gap: 2.5rem;
}

.skills__group {
  display: grid;
  align-content: flex-start;
  row-gap: 1rem;
}

.skills__data {
  display: flex;
  column-gap: 0.5rem;
}

.skills .bxs-badge-check {
  font-size: 1rem;
  color: var(--first-color);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  line-height: 18px;
}

.skills__level {
  font-size: var(--small-font-size);
}


/*=============== WORK Section ===============*/
.work__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  perspective: 1000px; /* Enables 3D depth effect */
  margin-bottom: 2rem;
}
.work {
  background: linear-gradient(-45deg, rgb(28, 18, 29), rgba(11, 17, 30), #130022, #04027452);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  padding: 4rem 0 6rem 0;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Base card style */
.work__card {
  min-height: 500px;
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 1rem;
  transition: all 0.5s ease;
  z-index: 1;
  opacity: 1;
  filter: none;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.swiper-slide-active .work__card {
  box-shadow: 0 0 25px var(--first-color), 0 0 45px rgba(255, 13, 13, 0.904);
  transform: scale(1.08) translateY(-20px); /* Glow + zoom pop */
  transition: all 0.4s ease-in-out;
  z-index: 10;
}

.swiper-slide {
  opacity: 0.8;
    filter: blur(4px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}


/* Neighboring slides */
.swiper-slide-prev,
.swiper-slide-next {
  opacity: 0.8;
  transform: scale(0.95);
  z-index: 5;
}

.swiper-slide-active {
  opacity: 1;
    filter: blur(0);

}

/*=============== IMAGE CONTAINER ===============*/
.work__img-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.work__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  display: block;
  pointer-events: none;
}

.work__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0;
  text-align: center;
}

.work__button {
  width: max-content;
  color: var(--first-color);
  font-size: var(--medium-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: pointer;
  text-decoration: none;
}

.work__button:hover .work__icon {
  transform: translateX(0.25rem);
}

.work__icon {
  font-size: 1rem;
  transition: 0.4s;
}

.work__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: var(--small-font-size);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work__img-container:hover .work__overlay {
  opacity: 1;
}

.section__description {
  max-width: 700px;
 margin: 1rem auto 2rem auto;
   text-align: center;
  font-size: var(--small-font-size);
  color: rgba(255, 255, 255, 0.877);
  line-height: 1.6;
/* Animation */
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.3s; 
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: none;
  }

  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
/*=============== BACK BUTTON ===============*/
.back-button-container {
  text-align: center;
  margin: 2rem 0;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d0d0ebe0;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}


.back-button:hover {
  background: var(--first-color-alt);
  box-shadow: 0 0 15px var(--first-color), 0 0 30px var(--first-color);
  transform: translateY(-2px);
}

.back-button i {
  font-size: 1rem;
}

/*=============== SWIPER NAVIGATION & PAGINATION ===============*/
.swiper-button-next,
.swiper-button-prev {
  color: var(--first-color);
}


.swiper-pagination-bullet {
  background-color: var(--first-color);
  bottom: 20px; 
  margin-top: 20px;

}




/*=============== CERTIFICATIONS SECTION ===============*/
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;   /* center tiles horizontally */
  max-width: 1200px;         /* keeps grid from stretching edge-to-edge */
  margin: 0 auto;            /* centers the whole grid in the page */
  padding: 0 1rem;     
}

.certification-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
   position: relative;

  background: var(--container-color);
  border-radius: 1.25rem;
  /* Glow effect */
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08),
              0 0 20px rgba(100, 150, 255, 0.25);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: fit-content;   /* shrink to fit */
  max-width:fit-content;      /* don’t overflow */
}

.certification-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.15),
              0 0 28px rgba(100, 150, 255, 0.4);
}

.tile-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--primary-color);
  border-bottom: 1px solid var(--primary-light);
}

.cert-logo {
  width: 45px;
  height: 45px;
  margin-right: 0.75rem;
  object-fit: contain;
}

.tile-title h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.15rem;
}

.certification-meta {
  display: flex;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.tile-body {
 flex-grow: 1;
  padding: 1.25rem;
}

.certification-desc {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Badges Section */
.badges-section h4 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.credential-box {
  background: var(--light-bg);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.credential-box:hover {
  background: var(--secondary-color);
}

.credential-box a {
  display: flex;
  flex-direction: column;
  align-items: center;
    justify-content: center;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  color: inherit;
}
.credential-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem; /* pushes text down */
}

.credential-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.credential-info {
  display: flex;
  flex-direction: column;
}

.credential-name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.05rem;
}

.credential-format {
  font-size: 0.7rem;
  color: var(--text-light);
}

.tile-footer {
   margin-top: auto;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-color);
  text-align: left;
  font-weight: bold;

  
}
.course-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5341b6;
  background: var(--primary-color);
  border: 2px solid rgb(83, 65, 182);
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.course-link:hover {
  background: black;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: 1fr;
  }
  .badges-grid {
    grid-template-columns: 1fr;
  }
}



/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3rem;
  padding-bottom: 3rem;
}

.contact__title {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.contact__info {
  display: grid;
  gap: 1rem;
}

.contact__card {
  background-color: var(--container-color);
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  text-align: center;
}

.contact__card-icon {
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.contact__card-title,
.contact__card-data {
  font-size: var(--small-font-size);
}

.contact__card-title {
  font-weight: var(--font-medium);
}

.contact__card-data {
  display: block;
  margin-bottom: 0.75rem;
}

.contact__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
  cursor: pointer;
}

.contact__button:hover .contact__button-icon {
  transform: translateX(0.25rem);
}

.contact__button-icon {
  font-size: 1rem;
  transition: 0.4s;
}

.contact__form-div {
  position: relative;
  margin-bottom: 2rem;
  height: 4rem;
}

.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-color-light);
  background: none;
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  outline: none;
  z-index: 1;
}

.contact__form-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: 0.25rem;
  background-color: var(--body-color);
  z-index: 10;
}

.contact__form-area {
  height: 17rem;
}

.contact__form-area textarea {
  resize: none;
}
/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color);
}

.footer__container {
  padding: 2rem 0 6rem;
}

.footer__title,
.footer__link {
  color: var(--body-color);
}

.footer__title {
  text-align: center;
  margin-bottom: 2rem;
}

.footer__list {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer_para{
justify-content: center;
  color:black;
}

.footer__quote {
  text-align: center;
  color: black;
  font-style: italic;
  max-width: 700px; /* optional: keeps it readable on wide screens */
  margin: 0 auto 1.5rem; /* centers and adds space below */
}



.footer__copy {
  display: block;
  margin-top: 4.5rem;
  color: var(--container-color);
  text-align: center;
  font-size: var(--smaller-font-size);
  margin-bottom: 2rem;
}



/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3rem;
  padding-bottom: 3rem;
}

.contact__title {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.contact__info {
  display: grid;
  gap: 1rem;
}

.contact__card {
  background-color: var(--container-color);
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  text-align: center;
}

.contact__card-icon {
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.contact__card-title,
.contact__card-data {
  font-size: var(--small-font-size);
}

.contact__card-title {
  font-weight: var(--font-medium);
}

.contact__card-data {
  display: block;
  margin-bottom: 0.75rem;
}

.contact__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
  cursor: pointer;
}

.contact__button:hover .contact__button-icon {
  transform: translateX(0.25rem);
}

.contact__button-icon {
  font-size: 1rem;
  transition: 0.4s;
}

.contact__form-div {
  position: relative;
  margin-bottom: 2rem;
  height: 4rem;
}

.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-color-light);
  background: none;
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  outline: none;
  z-index: 1;
}

.contact__form-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: 0.25rem;
  background-color: var(--body-color);
  z-index: 10;
}

.contact__form-area {
  height: 17rem;
}

.contact__form-area textarea {
  resize: none;
}
/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color);
}

.footer__container {
  padding: 2rem 0 6rem;
}

.footer__title,
.footer__link {
  color: var(--body-color);
}

.footer__title {
  text-align: center;
  margin-bottom: 2rem;
}

.footer__list {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer_para{
justify-content: center;
  color:black;
}

.footer__quote {
  text-align: center;
  color: black;
  font-style: italic;
  max-width: 700px; /* optional: keeps it readable on wide screens */
  margin: 0 auto 1.5rem; /* centers and adds space below */
}



.footer__copy {
  display: block;
  margin-top: 4.5rem;
  color: var(--container-color);
  text-align: center;
  font-size: var(--smaller-font-size);
  margin-bottom: 2rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--container-color);
}

::-webkit-scrollbar-track {
  border-radius: 1.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color-alt);
}

/*=============== BREAKPOINTS ===============*/

/* Hide nav menu on small devices */
@media screen and (max-width: 768px) {
  .nav__menu {
    display: none;
  }
}

/* For small devices */
@media screen and (max-width: 320px) {
  .nav__menu {
    padding: 1rem 1.5rem;
  }

  .home__button {
    flex-direction: column;
  }

  .home__handle {
    width: 150px;
    height: 253px;
  }

  .home__img {
    width: 130px;
  }

  .about__info {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills__box {
    column-gap: 1rem;
  }

  .skills__name {
    font-size: var(--small-font-size);
  }

  .skills__level {
    font-size: var(--smaller-font-size);
  }

  .services__container {
    grid-template-columns: 145px;
    justify-content: center;
  }

  .work__item {
    font-size: var(--small-font-size);
  }

  .work__filters {
    column-gap: 0.25rem;
  }
}

@media screen and (min-width: 435px) {
  .work__container {
    justify-content: center;
    grid-template-columns: repeat(2, max-content);
  }

  .work__img {
    width: 165px;
  }
}

/* For medium devices */
@media screen and (min-width: 630px) {
  .nav__menu {
    width: 328px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  .about__info {
    grid-template-columns: repeat(3, 180px);
    justify-content: center;
  }

  .about__description {
    padding: 1rem 5rem;
    width: 600px;
    margin: 0 auto 2rem auto;
  }

  .about__box {
    padding: 1.75rem 0.95rem;
  }

  .skills__container {
    justify-content: center;
  }

  .skills__content {
    padding: 4rem 8.8rem;
  }

  .skills__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
  }

  .skills__box {
    column-gap: 5.5rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 177px);
    justify-content: center;
  }

  .services__modal-content {
    width: 500px;
    padding: 4.5rem 2.5rem 2.5rem;
  }

  .services__modal-description {
    padding: 0 3.5rem;
  }

  .work__container {
    justify-content: center;
    grid-template-columns: repeat(2, max-content);
  }

  .work__img {
    width: 250px;
  }

  .testimonial__container {
    width: 600px;
    margin: auto;
  }

  .contact__container {
    display: grid;
    grid-template-columns: 220px 340px;
    column-gap: 2rem;
    justify-content: center;
  }

  .contact__info {
    grid-template-columns: 200px;
    gap: 1rem;
  }

  .contact__form {
    width: 340px;
  }
  /* .contact__info {
    grid-template-columns: 350px;
    justify-content: center;
  }

  .contact__form {
    width: 360px;
    margin: 0 auto;
  } */
}

/* @media screen and (min-width: 767px) {
  /* .work__container {
    grid-template-columns: repeat(2, max-content);
  } */

/* .contact__info {
    grid-template-columns: 300px;
  }

  .contact__container {
    grid-template-columns: repeat(2, 325px);
    justify-content: center;
  }
} */

/* For large devices */
@media screen and (min-width: 992px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 6.5rem 0 1rem;
  }

  .section__title {
    margin-bottom: 3.5rem;
  }

  .nav {
    height: calc(var(--header-height) + 1rem);
  }

  .home__handle {
    width: 290px;
    height: 400px;
  }

  .home__img {
    width: 220px;
  }
  .home__social-link {
    padding: 0.4rem;
    font-size: 1.25rem;
  }

  .home__social::after {
    transform: rotate(90deg) translate(16px, -1px);
  }

  .home__scroll-icon {
    font-size: 2rem;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 4rem;
  }

  .about__img {
    width: 350px;
  }

  .about__data {
    text-align: initial;
  }

  .about__info {
    justify-content: initial;
    gap: 2rem;
  }

  .about__box {
    text-align: center;
    padding: 1rem 1.25rem;
  }

  .about__description {
    padding: 0 4rem 0 0;
    margin-bottom: 2.5rem;
  }

  .skills__container {
    grid-template-columns: repeat(2, 460px);
    column-gap: 3rem;
  }

  .skills__title {
    margin-bottom: 3.5rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 300px);
    column-gap: 2rem;
  }

  .services__card {
    padding: 5rem 2rem 1.5rem;
  }

  .work__container {
    grid-template-columns: repeat(3, max-content);
    gap: 3rem;
  }

  .work__card {
    padding: 1.25rem;
  }

  .work__img {
    margin-bottom: 2rem;
  }

  .work__title {
    margin-bottom: 0.5rem;
  }

  .testimonial__container {
    width: 970px;
  }

  .testimonial__card {
    padding: 1.5rem 2rem;
  }

  .contact__info {
    grid-template-columns: 430px;
    gap: 1rem;
  }

  .contact__form {
    width: 430px;
  }

  .contact__form-area {
    height: 18rem;
  }

  .contact__container {
    grid-template-columns: repeat(2, 430px);
    column-gap: 6rem;
  }

  .footer__social-link {
    font-size: 1.25rem;
    padding: 0.4rem;
    border-radius: 0.5rem;
  }
}



/* For tablets and smaller devices */
@media screen and (max-width: 768px) {
  /* Inner page grid responsiveness */
  .work__container.container.grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .work__card {
    min-height: auto;
    margin: 0 1rem;
  }
  
  /* Mobile header/footer adjustments */
  header.inner-header {
    padding: 1rem 0.5rem;
  }
  
  header.inner-header .section__title {
    font-size: var(--h1-font-size);
  }
  
  footer.inner-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1rem;
  }
  
  .back-button-container, 
  .next-button {
    width: 100%;
    justify-content: center;
  }
  
  /* Text readability */
  .section__description {
    font-size: var(--normal-font-size);
    padding: 0 1rem;
    line-height: 1.6;
  }
  
  .work__title {
    font-size: var(--h3-font-size);
  }
  
  /* Image/Video responsiveness */
  .work__img {
    height: 200px;
  }
  
  .work__overlay p {
    font-size: var(--small-font-size);
    padding: 0.5rem;
  }
  
  /* Touch-friendly sizing */
  .work__button, 
  .back-button, 
  .next-button {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }
  
  /* Mobile navigation */
  footer.inner-footer {
    position: sticky;
    bottom: 0;
    background: var(--body-color);
    z-index: 100;
  }
  
  /* Optimize animations */
  .work__card {
    transform: none;
    transition: opacity 0.3s ease;
  }
  
  .work__card:hover {
    transform: none;
  }
}

/* For very small phones */
@media screen and (max-width: 480px) {
  header.inner-header .section__title {
    font-size: var(--h2-font-size);
  }
  
  .work__img {
    height: 180px;
  }
  
  .back-button, 
  .next-button {
    font-size: var(--small-font-size);
    padding: 0.6rem 1rem;
  }
  
  .section__description {
    font-size: var(--small-font-size);
  }
}

/* For landscape orientation on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .work__card {
    min-height: 300px;
  }
  
  .work__img {
    height: 150px;
  }
}