﻿html, body {
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
  }
/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* === NAVBAR BASE STYLES === */
.navbar {
  background-color: #000;
  padding: 0.8rem 1.5rem;
  font-family: 'Segoe UI', sans-serif;
  z-index: 999;
  position: fixed;
  width: 100%;
  top: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.navbar-brand img {
  height: 42px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* === NAV-LINK BASE === */
.nav-link {
  position: relative;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 1;
  overflow: hidden;
}

/* === GLOWING NEON BORDER === */
.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: 50px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before {
  border: 2px solid #B388EB;
  animation: glowBorder 1.5s ease-in-out forwards;
}

/* === NEON GLOW KEYFRAME === */
@keyframes glowBorder {
  0% {
    box-shadow: 0 0 0px #B388EB;
  }
  50% {
    box-shadow: 0 0 12px #B388EB, 0 0 20px rgba(179, 136, 235, 0.5);
  }
  100% {
    box-shadow: 0 0 8px #B388EB, 0 0 14px rgba(179, 136, 235, 0.3);
  }
}

/* === DROPDOWN MENU (MEGAMENU STYLING) === */
.megamenu-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  padding: 2rem 2.5rem;
  min-width: 420px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 1000;
}

.dropdown-mega:hover .megamenu-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.megamenu-column h6 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #B388EB;
  margin-bottom: 1rem;
  position: relative;
}

.megamenu-column h6::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 2px;
  background: #B388EB;
  border-radius: 2px;
}

.megamenu-column a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 12px;
  margin-bottom: 6px;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.35s ease;
}

.megamenu-column a:hover {
  background: rgba(179, 136, 235, 0.15);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(179, 136, 235, 0.2);
  transform: translateX(6px);
}

/* === RESPONSIVE MENU === */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    background-color: #000;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
  }

  .megamenu-content {
    position: static;
    flex-direction: column;
    background: #111;
    box-shadow: none;
    border-radius: 0;
    padding: 1rem 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .megamenu-column {
    width: 100%;
  }

  .megamenu-column a {
    width: 100%;
    justify-content: flex-start;
  }
}




/*flipping card start*/




.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-front {
    background-color: transparent;
    color: black;
}

.flip-card-back {
    background-color: #3F3F3F;
    color: white;
    transform: rotateY(180deg);
}
/*flipping card end*/

.title {
    text-align: center;
    font-size: 50px;
    font-family: 'Sriracha', cursive;
    font-family: 'Lemon',;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 2px;
}

.row {
    margin-right: 30px;
    margin-left: 30px;
}

.flip-top {
    background-color: black;
    color: white;
    border-bottom: 2px solid white;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.flip-card-front, .flip-card-back, .flip-card-inner {
    border-radius: 20px;
}


.tit-card, .p-card {
    text-align: center;
    font-family: 'Lemon';
}

.tit-card {
    font-size: 219%;
}



.flip-top p {
    margin-bottom: 0px;
}


.content1 {
    float: left;
    width: 50%;
    background-color: black;
}

.content2 {
    float: right;
    width: 50%;
    background-color: black;
    padding: 1rem 1rem;
}

.inside {
    display: inline-flex;
    border-bottom: solid #3F3F3F;
}

video {
    max-width: 100%;
}

.modal-header {
    background-color: black;
    color: white;
}

.modal-content {
    background-color: black;
    color: white;
}

.inside {
    background-color: black;
    color: white;
}

.modal-btn {
    background-color: black;
    color: white;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn-card {
    text-align: unset;
    font-weight: 400;
    border: 2px solid black;
    color: white !important;
    padding: 10px 19px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 30px;
    background-color: transparent;
    font-family: 'PT Sans', sans-serif;
}


.btn-right {
    width: 160px;
    text-align: center;
    font-weight: 400;
    border: 2px solid black;
    color: white;
    padding: 10px 0px;
    text-decoration: none;
    font-size: 16px;
    margin-top: 30%;
    border-radius: 30px;
    background-color: transparent;
}

    .btn-right:hover, .btn-card:hover {
        /*background-color: #485461;
        background-image: linear-gradient(315deg, #485461 0%, #28313b 74%);*/
        background-color: black;
        border: 2px solid #BFBFBF;
    }

.btn-modal {
    background-color: black;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.modal-top {
    border-bottom: 1px solid #737373;
    background-color: black;
    color: white;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px);
}

.conc-tit {
    font-family: 'Lemon';
}

.conc-con {
    color: #BFBFBF;
    text-align: justify;
    text-indent: 20px;
    font-family: 'Source Sans Pro';
}

.X {
    color: #ffffff;
}

.big-tit {
    text-align: center;
    margin-top: 60px;
    font-weight: 800;
}

.small-tit {
    text-align: center;
    margin-top: 15px;
}

.pfp {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
    border: 6px solid black;
}

.pfp-alg {
    text-align: center;
}

.card-icon {
    text-align: center;
    margin-top: 50px;
    font-size: 55px;
}

.left-card {
    border-bottom-left-radius: 20px !important;
    border-top-left-radius: 20px !important;
}

.right-card {
    border-bottom-right-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.card-title {
    text-align: center;
    margin-top: 30px;
    font-weight: 700;
}
.black-bg {
    background-color: black;
    color: white;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 250px;
    padding-left: 20%;
    padding-right: 20%;
    font-family: 'Roboto Condensed', sans-serif;
    word-break: break-word;
}

.black-bg p {
    margin-top: 20px;
    font-size: 20px;
    font-family: 'PT Sans', sans-serif;
}

.on-black {
    /*margin-bottom: -123.3px;*/
    margin-top: -50px;
    width: 100%;
}

.card-group {
    margin-top: -204px;
}

.card-text {
    text-align: center;
    margin-top: 20px;
}

.card-sm-tit {
    text-align: center;
    margin-top: 45px;
    font-weight: 700;
}

.card-list ul {
    margin-top: 20px;
}

.card-list li {
    text-decoration: none;
    text-align: center;
    margin-left: -40px;
    list-style: none;
}

/* footer */
.footer-modern {
    background-color: #000;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
  }
  
  .footer-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
  }
  
  .footer-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #fff, #666);
    border: none;
    margin-left: auto;
    margin-right: 0;
  }
  
  .footer-logo {
    height: 48px;
  }
  
  .social-icons .icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.4s ease;
  }
  
  .social-icons .icon:hover {
    background-color: white;
    color: black;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  }
  
  .footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0 20px;
  }
  
  .footer-link {
    color: #4dc3ff;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .footer-link:hover {
    color: #80e0ff;
    text-decoration: underline;
  }
  
  .made-by {
    color: #bbb;
  }
  
  /* Back to Top */
  #backToTop {
    position: fixed;
    bottom: 30px;
    right: 25px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(255,255,255,0.2);
    transition: all 0.3s ease;
  }
  
  #backToTop:hover {
    background-color: #f2f2f2;
    transform: translateY(-4px);
  }
/* footer end */

.p-card img {
    width: 350px;
    height: 250px;
    border-radius: 15px;
}

.p-card {
    width: 380px;
    height: 255px;
    border-radius: 15px;
}

.hover-btn {
    display: inline-flex;
}

.ca-flip {
    margin-left: 4px;
    font-size: 16px
}

.r-p {
    margin-top: 15px;
}

.col-md-4:hover .image {
    opacity: 0.3;
    background-color: black;
}

.col-md-4:hover .middle {
    opacity: 1;
}

@media (max-width:600px) {
    .sm-mg {
        margin-top: 20px;
    }

    .flip-card-front img {
        width: 100%;
        height: 75%;
        background-color: transparent;
        perspective: 1000px;
    }

    .flip-card {
        width: 300px;
        height: 300px;
        background-color: transparent;
        perspective: 700px;
    }

    .on-black {
        margin-bottom: -51.3px;
    }
}


@media (min-width:812px) {
    .flip-card-front img {
        width: 100%;
        height: 75%;
        border-bottom-left-radius: inherit;
        border-bottom-right-radius: inherit;
    }

    .flip-card {
        width: 200px;
        height: 200px;
        background-color: transparent;
        perspective: 700px;
    }

    .tit-card {
        font-size: 163%;
    }

    .big-tit {
        font-size: 55px;
    }
}

@media (min-width:813px) {
    .flip-card-front img {
        width: 100%;
        height: 75%;
        border-bottom-left-radius: inherit;
        border-bottom-right-radius: inherit;
    }

    .flip-card {
        width: 300px;
        height: 300px;
        background-color: transparent;
        perspective: 1000px;
    }

    .tit-card {
        font-size: 219%;
    }

    .card-group {
        padding-right: 80px;
        padding-left: 80px;
    }

    .on-black {
        margin-bottom: -123.3px;
        width: unset;
    }
}

.hovereffect {
    width: 100%;
    height: 100%;
    float: left;
    overflow: hidden;
    position: relative;
    text-align: center;
    cursor: default;
    border-radius: 20px;
}

    .hovereffect .overlay {
        width: 100%;
        height: 100%;
        position: absolute;
        overflow: hidden;
        left: 0;
        background-color: rgba(255, 255, 255, 0.7);
        top: -200px;
        opacity: 0;
        filter: alpha(opacity=0);
        -webkit-transition: all 0.1s ease-out 0.5s;
        transition: all 0.1s ease-out 0.5s;
    }

    .hovereffect:hover .overlay {
        opacity: 1;
        filter: alpha(opacity=100);
        top: 0px;
        -webkit-transition-delay: 0s;
        transition-delay: 0s;
    }

    .hovereffect img {
        display: block;
        position: relative;
    }

    .hovereffect h2 {
        text-transform: uppercase;
        color: #fff;
        text-align: center;
        position: relative;
        font-size: 17px;
        padding: 10px;
        background: rgba(0, 0, 0, 0.6);
        -webkit-transform: translateY(-200px);
        -ms-transform: translateY(-200px);
        transform: translateY(-200px);
        -webkit-transition: all ease-in-out 0.1s;
        transition: all ease-in-out 0.1s;
        -webkit-transition-delay: 0.3s;
        transition-delay: 0.3s;
    }

    .hovereffect:hover h2 {
        -webkit-transform: translateY(0px);
        -ms-transform: translateY(0px);
        transform: translateY(0px);
        -webkit-transition-delay: 0.3s;
        transition-delay: 0.3s;
    }

    .hovereffect a.info {
        display: inline-block;
        text-decoration: none;
        padding: 7px 14px;
        text-transform: uppercase;
        margin: 50px 0 0 0;
        background-color: transparent;
        -webkit-transform: translateY(-200px);
        -ms-transform: translateY(-200px);
        transform: translateY(-200px);
        color: #000;
        border: 1px solid #000;
        -webkit-transition: all ease-in-out 0.3s;
        transition: all ease-in-out 0.3s;
    }

        .hovereffect a.info:hover {
            box-shadow: 0 0 5px #fff;
        }

    .hovereffect:hover a.info {
        -webkit-transform: translateY(0px);
        -ms-transform: translateY(0px);
        transform: translateY(0px);
        box-shadow: 0 0 5px #000;
        color: #000;
        border: 1px solid #000;
        -webkit-transition-delay: 0.3s;
        transition-delay: 0.3s;
    }

    /* project cards */
    .project-card {
        width: 100%;
        aspect-ratio: 16 / 11; /* Wider than tall */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .project-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
      }
      
      .project-card:hover {
        transform: scale(1.03) translateY(-10px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
      }
      
      .project-card .overlay {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(6px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        opacity: 0;
        transition: opacity 0.4s ease;
        padding: 20px;
        text-align: center;
      }
      
      .project-card:hover .overlay {
        opacity: 1;
      }
      
      .project-card .overlay h5 {
        font-weight: 700;
        font-size: 1.25rem;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s ease 0.1s;
      }
      
      .project-card .overlay p {
        font-size: 0.95rem;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s ease 0.2s;
      }
      
      .project-card .overlay a.btn {
        margin-top: 15px;
        transform: scale(0.9);
        transition: all 0.3s ease 0.3s;
      }
      
      .project-card:hover .overlay h5,
      .project-card:hover .overlay p,
      .project-card:hover .overlay a.btn {
        transform: translateY(0) scale(1);
        opacity: 1;
      }
      
      .project-card .btn {
        background: white;
        color: black;
        border-radius: 30px;
        padding: 10px 25px;
        font-weight: 600;
        border: none;
      }
      
      .project-card .btn:hover {
        background: #f2f2f2;
        transform: scale(1.05);
      }


    #certifications {
  padding: 80px 20px;
  background-color: #f9fbfc;
  text-align: center;
}

#certifications h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: fadeInUp 0.8s ease;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.cert-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 30px 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  animation: fadeInUp 1s ease;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.cert-img {
  position: relative;
  height: 200px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 12px;
}

.cert-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.cert-card:hover .cert-img img {
  filter: brightness(0.8) blur(2px);
  transform: scale(1.05);
}

.cert-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.cert-icon img {
  width: 24px;
  height: 24px;
}

.cert-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cert-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 14px;
  padding: 0 10px;
}

.cert-card .issuer {
  font-size: 0.85rem;
  color: #888;
  display: block;
  margin-bottom: 16px;
}

/* Buttons */
.cert-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}

.cert-card:hover .cert-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cert-actions .btn {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #222;
  position: relative;
  transition: all 0.3s ease;
  background-color: transparent;
}

/* View Button */
.btn.view {
  background-color: #111;
  color: #fff;
}

.btn.view:hover {
  background-color: #fff;
  color: #111;
}

/* Download Button (opposite) */
.btn.download {
  background-color: #fff;
  color: #111;
}

.btn.download:hover {
  background-color: #111;
  color: #fff;
}

/* Tooltip Styling */
.btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 10;
}

.btn:hover::after {
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 👇 Animation Delay Based on Card Index */
.cert-card:nth-child(1) {
  animation-delay: 0.1s;
}
.cert-card:nth-child(2) {
  animation-delay: 0.2s;
}
.cert-card:nth-child(3) {
  animation-delay: 0.3s;
}
.cert-card:nth-child(4) {
  animation-delay: 0.4s;
}
/* Extend as needed for more cards */

/* 👇 Fade-in Scroll Reveal (Optional Lazy Load Enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .cert-card {
    will-change: transform, opacity;
  }
}

/* 👇 Smooth iframe entry (lightbox polish) */
.lightbox iframe {
  animation: fadeIframe 0.4s ease-in-out;
}

@keyframes fadeIframe {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
  padding: 20px;
}

/* ✅ Show class to trigger fadeIn animation */
.lightbox.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* Lightbox Content */
.lightbox-content {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  max-width: 90%;
  max-height: 90%;
  width: 700px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  animation: fadeIframe 0.4s ease-in-out;
  transform: scale(1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
  background: #fff;
}

/* Close Button */
.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  background: #fff;
  border-radius: 50%;
  padding: 5px 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  line-height: 1;
}

.close:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* === Animations === */

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* iframe entrance */
@keyframes fadeIframe {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fade Out */
.lightbox.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* === Responsive Design === */

@media (max-width: 768px) {
  .lightbox-content {
    width: 100%;
    height: 90%;
    border-radius: 8px;
  }

  .lightbox iframe {
    height: 100%;
  }

  .close {
    top: 10px;
    right: 12px;
    font-size: 24px;
  }
}

/* Timeline Section */
#journey {
  background: #0a0a0a;
  color: #f4f4f4;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#journey h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

/* Timeline Structure */
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding: 0 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(255,255,255,0.5);
}

/* Timeline Entries */
.timeline-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 70px;
  position: relative;
  z-index: 2;
}

.timeline-entry.left {
  flex-direction: row-reverse;
}

.timeline-entry.right {
  flex-direction: row;
}

/* Icon Styling */
.timeline-icon {
  position: relative;
  background: #111;
  padding: 14px;
  font-size: 22px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
  z-index: 2;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.timeline-icon:hover {
  box-shadow: 0 0 22px rgba(255,255,255,0.7);
  transform: scale(1.05);
}

/* Optional glowing dot behind icon */
.timeline-icon::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  z-index: -1;
}

/* Card Styling */
.timeline-content {
  background: #1a1a1a;
  padding: 20px 25px;
  border-radius: 16px;
  width: 44%;
  box-shadow: 0 0 20px rgba(255,255,255,0.03);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline-content:hover {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

/* Typography */
.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.timeline-content p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.75;
  font-weight: 300;
}

/* Animations (AOS-ready) */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: 0.8s;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .timeline::before {
    left: 20px;
    transform: none;
  }

  .timeline-entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-entry.left,
  .timeline-entry.right {
    flex-direction: column;
  }

  .timeline-icon {
    margin-bottom: 15px;
    margin-left: 0;
  }

  .timeline-content {
    width: 100%;
  }
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

/* Dark Custom Modal Content */
.cert-modal-content {
  background: rgba(15, 15, 15, 0.96) !important;
  color: #f0f0f0 !important;
  margin: 8% auto;
  padding: 30px 40px;
  border-radius: 18px;
  width: 90%;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.7;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.05), inset 0 0 15px rgba(255, 255, 255, 0.02);
  position: relative;
  animation: fadeIn 0.35s ease;
  backdrop-filter: blur(4px);
}

/* Close Button */
.close {
  color: #ffffff;
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 28px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Content styles */
.cert-modal-content h3 {
  color: #ffffff;
}

.cert-modal-content p {
  color: #dddddd;
}

/* Cursor on clickable timeline content */
.timeline-content {
  cursor: pointer;
}

/* Fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* visual resume */

#services {
  background: #f9f9f9;
  color: #111;
  text-align: center;
  padding: 100px 20px;
}

#services h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #0077b6; /* use your accent if needed */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: #0077b6; /* consistent with h2 */
}

.service-card p {
  font-size: 1rem;
  color: #444;
}

/* CTA */

#cta {
  background: #000;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  border-top: 1px solid #222;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

#cta h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #fff;
}

#cta p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease;
}

.form-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  padding: 14px 18px;
  color: #eee;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00bcd4;
  outline: none;
}

.cta-btn {
  background: #00bcd4;
  color: #000;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
}

.cta-btn:hover {
  background: #009cb3;
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.25);
}

.cta-links a {
  color: #fff;
  margin: 0 15px;
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.cta-links a:hover {
  color: #00bcd4;
}

/* FAQ Section */
#faq {
  background: #fff;
  color: #111;
  padding: 100px 20px;
  text-align: center;
}

#faq h2 {
  font-size: 2.4rem;
  margin-bottom: 60px;
  color: #111;
}

.faq-container {
  max-width: 800px;
  margin: auto;
  text-align: left;
}
/* ===== Scroll Animations for Services & CTA ===== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional staggered delays */
.fade-delay-1 { animation-delay: 0.3s; }
.fade-delay-2 { animation-delay: 0.5s; }
.fade-delay-3 { animation-delay: 0.7s; }
.fade-delay-4 { animation-delay: 0.9s; }
/* FAQ Section */
#faq {
  background: #fff;
  color: #111;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
}

#faq h2 {
  font-size: 2.4rem;
  margin-bottom: 60px;
  color: #111;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.3s;
}

#faq h2 .icon {
  font-size: 2.5rem;
  color: red;
  margin-right: 10px;
  filter: drop-shadow(0 0 4px #ff0000);
}

.faq-container {
  max-width: 800px;
  margin: auto;
  text-align: left;
}

/* FAQ Item Base */
.faq-item {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  margin-bottom: 28px;
  overflow: hidden;
  transform: translateY(30px);
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

/* FAQ Item Delay Sequence */
.faq-item:nth-child(1) { animation-delay: 0.6s; }
.faq-item:nth-child(2) { animation-delay: 0.8s; }
.faq-item:nth-child(3) { animation-delay: 1s; }

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.faq-item.open {
  border-radius: 20px;
}

/* Question Button */
.faq-question {
  width: 100%;
  padding: 24px 28px;
  font-size: 1.15rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111;
  transition: background 0.3s ease;
}

.faq-question:hover .toggle-icon {
  filter: drop-shadow(0 0 6px #ff3c3c);
}

/* Toggle Icon */
.toggle-icon {
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

.faq-item.open .toggle-icon {
  transform: rotate(45deg);
  color: #ff3c3c;
}

/* Answer Section */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 28px;
  color: #333;
  font-size: 1rem;
  line-height: 1.65;
  border-top: 1px solid #f0f0f0;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 28px 32px 60px;
}

/* Scroll Animation Keyframes */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Starting hidden state */
.slide-zoom-pop {
  opacity: 0;
  transform: scale(0.95) translateY(30px);
  transition: all 0.8s ease-in-out;
  will-change: opacity, transform;
}

/* Visible state — AFTER scroll into view */
.slide-zoom-pop.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Optional stagger effect (you already have these, just ensure timing fits) */
.faq-item:nth-child(1) { transition-delay: 0.1s; }
.faq-item:nth-child(2) { transition-delay: 0.3s; }
.faq-item:nth-child(3) { transition-delay: 0.5s; }
