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

:root {
  --header-height: 3rem;
  --font-semi: 600;
  --hue-color: 244;
  --ease-quick: cubic-bezier(0.4, 0, 0.2, 1);
  --first-color: hsl(var(--hue-color), 99%, 40%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --smaller-font-size: 0.75rem;
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  --z-back: -10;
  --z-fixed: 100;
}

* {
  box-sizing: border-box;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: 0.875rem;
  }
}


@media (max-width: 768px) {

  body {
    background: #0f172a;
    background-image: none !important;
  }

  section {
    padding: 3rem 1.2rem;
  }


  .project-card,
  .skills-card,
  .service-card {
    background: #111827;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
}

@media (max-width: 768px) {
  body {
    background: linear-gradient(
      180deg,
      #020617 0%,
      #020617 40%,
      #020617 100%
    );
  }
}

@media (max-width: 768px) {

  html, body {
    background: #ffffff !important;
    color: #111827;
  }

  section,
  header,
  footer,
  main {
    background:none;
  }


  .blob,
  .blob-box,
  .bg-shape,
  .floating-bg,
  .overlay,
  .dark-bg {
    display: none !important;
  }


  .project-card,
  .skills-card,
  .service-card,
  .contact-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  }
}


@media (max-width: 768px) {


  html, body {
    width: 100%;
    overflow-x: hidden;
  }


  section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }


  .container,
  .bd-grid,
  .wrapper,
  .content,
  .projects-container {
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center;
  }


  .projects-container,
  .skills-container,
  .services-container {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
  }


  .home,
  .home__container,
  .about__container,
  .contact__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  img {
    display: block;
    margin: 0 auto;
  }


  .btn,
  .button,
  .cta {
    margin-left: auto;
    margin-right: auto;
  }
}


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

html {
  scroll-behavior: smooth;
}

body {
  background-image: url('./Assets/bg1.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
}

body.dark {
  --first-color: #7aa2ff;
  --second-color: #f1f1f1;
  background: #0f172a;
}

body {
  font-size: 16px;
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  p {
    font-size: 0.9rem;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
   margin-right:0px;
}

h1,
h2,
p {
  margin: 0;
}

ul {
  margin-left: 20px;
  list-style: none;
}

#home1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom:57px;
  margin-top: 35px;
}

@media (max-width: 768px) {
  #home1 {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top:-20px;
  }
}

.home__social {
  margin-top: 50px;
}

a {
  text-decoration: none;
}

a:focus,
button:focus {
  outline: 2px solid var(--first-color);
  outline-offset: 3px;
}


/*--------- my photo-------- */

.blob-box {
  position: relative;
  top: 15px;
  right: 60px;
  inset: 0;
  height: 340px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}

.blob-box img {
  width: 92%;
  height: 92%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1);
  margin-left: 40px;
  margin-top: -20px;
  transition:
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-box:hover img {
  transform: scale(1.12);
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.4);
}

.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
  margin-top: 50px;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 50px;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.blob-box {
  position: relative;
  width: 320px;
  height: 340px;
  margin: auto;
  border-radius: 50%;
}

/*  Mobile devices */
@media (max-width: 576px) {
  .blob-box {
    width: 180px;
    height: 180px;
    top: 0;
    right: 0;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .blob-box {
    width: 240px;
    height: 240px;
    top: 0;
    right: 0;
  }
}

@media (min-width: 1200px) {
  .blob-box {
    width: 360px;
    height: 360px;
  }
}

@media (max-width: 768px) {

  .blob-box {
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 220px;
    height: 220px;
    margin: 1.5rem auto;
    right: 0;
    top: 0;
  }


  .blob-box img {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
     margin-right:44px;
  }
}

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

.bd-grid {
  max-width: 1000px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
  gap: 45px;
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/*===== NAV=====*/
.header {
  position: fixed;
  top: 0;
  left: -57rem;
  width: 170%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.447);
  margin-left: 10px;
  margin-right: 0px;
}

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

/* Logo */
.nav__logo {
  font-size: 1.4rem;
  font-weight: 700;
   color: #38bdf8;
  margin-left: -400px;
  
}

.nav__logo-box {
  cursor: pointer;
}

.nav__logo-img {
  transition: transform 0.35s ease-in-out;
}

.nav__logo-box:hover .nav__logo-img {
  transform: scale(1.15); 
}


.nav__logo-box:hover .nav__logo-text {
  transform: scale(1.08);
}

.nav__logo span {
  color: var(--first-color);
}


.nav__list {
  display: flex;
  gap: 0.5rem;
  margin-right: -695px;
}

.nav__list :hover {
  cursor: pointer;
   transform: scale(1.15); 
   transition: transform 0.35s ease-in-out;
}

.nav__link {
  position: relative;
  color: #67738b;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  transition: width 0.35s ease;
}

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

.nav__link:hover::after {
  width: 100%;
}


.nav__link.active {
  color: var(--first-color);
}

.nav__link.active::after {
  width: 100%;
}




.nav__toggle {
  font-size: 1.7rem;
  color: #000000;
  cursor: pointer;
  display: none;
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(58, 62, 70, 0.95);
    backdrop-filter: blur(12px);
    transition: right 0.4s ease;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    gap: 2rem;
  }

  .show-menu {
    right: 0;
  }
}

@media (max-width: 768px) {

  /* Header & nav */
  .l-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    background: #fff;
  }

  /* ===== NAVBAR BASE FIX ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999; /* CRITICAL */
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 1rem;
}
  .nav {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    left:1%;
    width: 98%;
  }

  .nav__logo img {
    width: 40px;
  }


  .nav__menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 250px;
    height: 100vh;
    background:white;
    padding: 2rem 1.5rem;
    transition: left 0.4s ease;
    box-shadow: 5px 0 10px rgba(0,0,0,0.15);
    margin-left: -90px;
  }


  .nav__menu.show-menu {
    left: 0;
  }


  .nav__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-right: 0px;
  }

  .nav__item {
    font-size: 1.2rem;
  }

   .nav__toggle {
    font-size: 1.8rem;
    cursor: pointer;
    display: block;
  }

.nav__logo img.logo-img {
  width: 50px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.nav__logo img.logo-img:hover {
  transform: scale(1.1);
}

.nav__link,
.navv {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: color 0.3s ease;
  font-weight: bold;
}

.nav__link,
.navv i {
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.nav__link:hover,
.navv {
  color: var(--first-color);
}

.nav__link:hover,
.navv i {
  transform: translateY(-3px) scale(1.1);
}

/* nav name */
#navv {
  font-size: 24px;
  font-weight: bold;
}
.navv {
  color: var(--first-color);
  font-size: 15px;
  transition: color 0.3s ease;
}

.navv i {
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}
 
.navv:hover {
  color: var(--first-color);
}

.navv:hover i {
  transform: translateY(-3px) scale(1.1);
}
}


/*===== HOME =====*/

.home {
  position: relative;
  row-gap: 5rem;
  padding: 4rem 0 5rem;
}

.home__data {
  align-self: center;
  margin-left: 11px;
  margin-top: 60px;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-5);
  font-size: 57px;
}

.home__title-color {
  color: rgb(17, 0, 255);
}

.home__social {
  display: flex;
  flex-direction: column;
}

/* .home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--second-color);
    transition: all 0.4s ease;
}

.home__social-icon:hover {
  color: var(--first-color);
  
} */

.home__social-icon  {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: black;
  font-size: 20px;
  transition: all 0.4s ease;
}

.home__social-icon:hover {
  background: white;
  color:var(--first-color);
  transform: translateY(-6px) scale(1.1);
}

@media (max-width: 768px) {
  .home__social {
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5rem 0;
  }

  .home__social::-webkit-scrollbar {
    display: none;
  }

  .home__social-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .home__social-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }
}

/* Typing text effect */

.typing {
  font-size: 25px;
  font-weight: 700;
  color: rgb(0, 0, 0);
  border-right: 3px solid rgb(0, 0, 0);
  white-space: nowrap;
  overflow: hidden;
  animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: rgb(57, 39, 39);
  }
}

/*BUTTONS*/

.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #e4e4e4;
  padding: 0.75rem 1.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  transition: 0.3s;
}

.button:hover {
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.3);
}

/* ===== ABOUT =====*/

.main {
  margin-top: -13px;
}

.about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
}

.about .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--first-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.about__subtitle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000000;
  margin-bottom: 1rem;
  text-align: center;
}
.aboutdesc {
  text-align: center;
  margin-bottom: 20px;
}

#about__text {
  font-size: 1rem;
  font-weight: 500;
  color: #000000;
  line-height: 1.6;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.about__text span {
  color: var(--first-color);
  font-weight: 600;
}

.about-details,
.hobby {
  margin-top: 1.5rem;
  text-align: left;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.about-details h3,
.hobby h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgb(90, 2, 2);
}

.about-details p,
.hobby p {
  font-size: 0.95rem;
  color: #1a1a1a;
  line-height: 1.6;
}

/* About Image */

.about__img img {
  width: 220px;
  border-radius: 1.5rem;
  margin-left: 5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.about__img img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

@media screen and (min-width: 768px) {
  .about__container {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    text-align: left;
  }
}

#collage {
  font-size: 24px;
  color: var(--first-color);
  margin-right: 8px;
}

/* ===== SKILLS =====*/

/* ===== SKILLS SECTION ===== */
.skills {
  padding: 80px 20px;
  background:transparent;
  color: #fff;
}

/* Title */
.section-title {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 50px;
  font-weight: 600;
  color: var(--first-color);
  letter-spacing: 1px;
}

.ski{
  font-size: 1.5rem;
    font-weight: bold;
     color: rgb(90, 2, 2);
    margin-bottom: 70px;
    margin-top: 70px;
    text-align: center;
}

/* Grid Layout */
.skills-container {
  max-width: 950px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
}

/* Skill Card */
.skill-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 28px 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.45s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;

}


.skill-card:hover::before {
  opacity: 1;
}

/* Icon */
.skill-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 15px;
  transition: transform 0.45s ease;
}

/* Skill name */
.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: black;
}

/* Hover Animation */
.skill-card:hover {
  transform: translateY(-12px) scale(1.06);
}

.skill-card:hover img {
  transform: rotate(10deg) scale(1.2);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .skills {
  row-gap: 0px;
  }

  .section-title {
    font-size: 1.9rem;
    margin-bottom: 0px;
  }

  .skills-container {
    gap: 0px;
  }

  .skill-card {
    padding: 22px 10px;
  }

  .skill-card img {
    width: 100px;
    height: 48px;
  }

  .skill-card h3 {
    font-size: 0.95rem;
  }
}

/* ===== project=====*/

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.project-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.08);
}

.project-content {
  padding: 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
   color: rgb(90, 2, 2);
}

.project-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 70%;
  margin: auto;
  padding: 0.65rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--first-color);
  background: transparent;
  border: 1.5px solid var(--first-color);
  cursor: pointer;
  text-decoration: none;

  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.project-btn:hover {
  background: var(--first-color);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.project-btn:active {
  transform: scale(0.96);
}

section {
  padding: 2rem 1rem;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1rem;
}

.projects__container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .projects__container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .project-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .project-content {
    padding: 1.2rem;
  }

  .project-content h3 {
    font-size: 1.1rem;
  }

  .project-content p {
    font-size: 0.9rem;
  }

  .project-btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== CONTACT =====*/

#contact {
  background: transparent;
  margin-top: 10px;
}
#sec {
  margin-top: 10px;
}

#contact .container {
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.15);
}

.contact-form input,
.contact-form textarea {
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4da3ff;
  background: rgba(255, 255, 255, 0.12);
}

.container {
  width: 328px;
}

.contact-form .input-group {
  margin-bottom: 15px;
  font-weight: var(--font-semi);
}

.contact-form label {
  font-size: 15px;
   color: rgb(90, 2, 2);
}

.contact-form input,
.contact-form textarea {
  text-align: start;
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007bff;
}

.btn {
  width: 50%;
  display: block;
  margin: 20px auto;
  background-color: var(--first-color);
  color: #f5eeee;
  padding: 0.75rem 2.3rem;
  font-size: medium;
  border: none;
  border-radius: 10px;
  font-weight: var(--font-semi);
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.3);
}

.contact-form .btn {
  transition: transform 0.35s ease;
}

.contact-form .btn:hover {
  transform: scale(1.08);
}

.co {
  margin-top: -18px;
}

@media (max-width: 768px) {


  .contact,
  .contact-section {
    width: 100%;
    padding: 3rem 1rem;
    box-sizing: border-box;
  }

  
  .contact__container,
  .contact-container,
  .contact-content {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }


  .contact form,
  .contact__form {
    width: 100%;
    margin: 0 auto;
  }

  .contact input,
  .contact textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }


  .contact button,
  .contact .btn {
    margin: 1.5rem auto 0;
    display: block;
  }
}


/* ===== CERTIFICATES ===== */

.certificates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.certificate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.certificate-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.certificate-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.certificate-card:hover .certificate-img img {
  transform: scale(1.08);
}

.certificate-content {
  padding: 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.certificate-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
   color: rgb(90, 2, 2);
}

.certificate-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 70%;
  margin: auto;
  padding: 0.65rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--first-color);
  background: transparent;
  border: 1.5px solid var(--first-color);
  cursor: pointer;
  text-decoration: none;

  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.cert-btn:hover {
  background: var(--first-color);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.cert-btn:active {
  transform: scale(0.96);
}

@media (max-width: 480px) {
  .certificate-content {
    padding: 1.2rem;
  }

  .certificate-content h3 {
    font-size: 1.1rem;
  }

  .certificate-content p {
    font-size: 0.9rem;
  }

  .cert-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
  }
}

/* ===== FOOTER =====*/
.footer {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  padding: 60px 20px 30px;
  position: relative;
  margin-top: 30px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer h2,
.footer h3 {
  margin-bottom: 15px;
  font-weight: 600;
}

.footer p {
  line-height: 1.6;
  opacity: 0.85;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #00eaff;
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #00eaff;
}

.footer-links a:hover::after {
  width: 100%;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  transition: all 0.4s ease;
}

.social-icons a:hover {
  background: #00eaff;
  color: #000;
  transform: translateY(-6px) scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  opacity: 0.7;
}

/* BACK TO TOP BUTTON */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #00eaff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  color: #000;
  cursor: pointer;
  display: none;
  box-shadow: 0 10px 25px rgba(0, 234, 255, 0.5);
  transition: all 0.4s ease;
  z-index: 1000;
}

#backToTop:hover {
  transform: translateY(-8px) scale(1.1);
  background: #fff;
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 15px 20px;
    background-color: #0f2027;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .social-icons {
    justify-content: center;
  }

  #backToTop {
    right: 20px;
    bottom: 20px;
  }
}

@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }
  .home__img {
    width: 300px;
    bottom: 25%;
  }
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }

  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }
  .container {
    justify-items: center;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }
  .section-title::after {
    width: 80px;
    top: 50px;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
    padding-top: 0;
  }
  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .nav__link {
    color: var(--second-color);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    bottom: 10%;
  }
  .about__container {
    padding-top: 2rem;
  }
  .about__img img {
    width: 275px;
  }
  .skills__container {
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}

@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 450px;
  }
}
