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

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    padding-top: 0;
    /* No padding - slides reach to top */
    margin: 0;
    background-color: #ffffff;
  }

  #navbar-placeholder {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 10000;
  }

  .slides-container {
    display: flex;
    width: 300vw;
    height: 100vh;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
    scroll-snap-align: start;
    margin-top: 0;
    padding-top: 0;
  }

  .slide {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
    margin-top: 0;
    padding-top: 0;
  }

  .slide-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 1200px;
  }

  .slide h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .slide p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }

  .btn {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

  .btn:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
  }

  .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: 1;
    display: block;
  }

  /* Responsive background attachment for mobile */
  @media (max-width: 768px) {
    .slide-bg {
      background-attachment: scroll;
      /* Better performance on mobile */
    }
  }

  .slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: #000;
  }

  .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }

  /* Individual slide backgrounds */
  .slide-1 .slide-bg {
    background-image: url('10.png');
  }

  .slide-2 .slide-bg {
    background-image: url('11.png');
  }

  .slide-3 .slide-bg {
    background-image: none;
    /* Video slide doesn't need background image */
  }

  .slide-4 .slide-bg {
    background-image: url('12.png');
  }

  .slide-5 .slide-bg {
    background-image: url('13.png');
  }


  /* 📱 Gambar khas untuk mobile (bawah 768px) */


  @media (max-width: 1024px) {
    .slide-1 .slide-bg {
      background-image: url('Tablet/1.png');
      /* versi tablet */
    }

    .slide-2 .slide-bg {
      background-image: url('Tablet/2.png');
    }

    .slide-4 .slide-bg {
      background-image: url('Tablet/3.png');
    }

    .slide-5 .slide-bg {
      background-image: url('Tablet/4.png');
    }


  }

  @media (max-width: 768px) {
    .slide-1 .slide-bg {
      background-image: url('Mobile website/1.png');
      /* versi mobile */
    }

    .slide-2 .slide-bg {
      background-image: url('Mobile website/2.png');
    }

    .slide-4 .slide-bg {
      background-image: url('Mobile website/3.png');
    }

    .slide-5 .slide-bg {
      background-image: url('Mobile website/4.png');
    }

    .slide-6 .slide-bg {
      background-image: url('Mobile website/6.png');
    }
  }

  /* Content sections below slides */
  .content-sections {
    background: #ffffff;
  }

  .content-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem;
    position: relative;
    scroll-snap-align: start;
  }

  @media (max-width: 768px) {
    .content-section {
      min-height: auto;
      padding: 2rem 1rem;
    }

    .nav-arrow,
    .nav-arrow.prev,
    .nav-arrow.next {
      display: none !important;
    }

    .slide-dots {
      display: flex !important;
    }
  }

  /* Slide Dots - Hidden on Desktop, Shown on Mobile */
  .slide-dots {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    gap: 10px;
  }

  .slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .slide-dot.active {
    background: white;
  }

  .slide-dot:hover {
    background: rgba(255, 255, 255, 0.8);
  }

  .content-section h2 {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
  }

  .content-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    text-align: center;
  }

  .content-section .btn {
    margin-top: 2rem;
    background: linear-gradient(135deg, #0A2F5C 0%, #1E3A8A 100%);
    border: none;
    color: white;
  }

  .content-section .btn:hover {
    background: linear-gradient(135deg, #0A2F5C 0%, #1E3A8A 100%);
    color: white;
  }

  /* Pengenalan section backgrounds */
  .intro-section {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95)),
      url("Gambar bangunan.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
  }

  /* Responsive intro section background */
  @media (max-width: 768px) {
    .intro-section {
      background-size: cover;
      background-position: center;
    }
  }

  @media (max-width: 480px) {
    .intro-section {
      background-size: cover;
      background-position: center;
    }
  }

  .intro-section h2,
  .intro-section p {
    color: #333;
  }

  /* Intro Section Layout */
  .intro-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex-wrap: wrap;
    /* stack on small screens */
  }

  .intro-text {
    flex: 1;
    min-width: 300px;
    text-align: justify;
  }

  .intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .intro-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
  }

  @media (max-width: 768px) {
    .content-section h2 {
      font-size: 2rem;
    }

    .intro-text h2 {
      font-size: 2rem;
      /* same as content-section h2 */
    }

    .map-section h2 {
      font-size: 2rem;
      /* same as content-section h2 */
    }

    .intro-text p {
      font-size: 1rem;
      /* lebih kecil */
      line-height: 1.6;
    }
  }

  /* Extra Small Mobile (max 480px) */
  @media (max-width: 480px) {
    .content-section h2 {
      font-size: 1.5rem;
    }

    .intro-text h2 {
      font-size: 1.5rem;
      /* same as content-section h2 */
    }

    .map-section h2 {
      font-size: 1.5rem;
      /* same as content-section h2 */
    }

    .intro-text p {
      font-size: 0.9rem;
      line-height: 1.5;
    }
  }

  .card-section h2 {
    color: black;
    margin-bottom: 2rem;
    text-decoration: none;
    /* Match other content-section h2 margins */
  }

  .portfolio-section h2 {
    color: #333;
    margin-bottom: 2rem;
    text-decoration: none;
    /* Match other content-section h2 margins */
  }

  .client-section h2 {
    color: #ffffff;
    margin-bottom: 2rem;
    text-decoration: none;
  }

  /* Responsive h2 for card, portfolio and client sections */
  @media (max-width: 768px) {

    .card-section h2,
    .portfolio-section h2,
    .client-section h2 {
      font-size: 2rem;
      margin-bottom: 1.5rem;
    }
  }

  @media (max-width: 480px) {

    .card-section h2,
    .portfolio-section h2,
    .client-section h2 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }
  }

  @media (max-width: 360px) {

    .card-section h2,
    .portfolio-section h2,
    .client-section h2 {
      font-size: 1.25rem;
      margin-bottom: 0.75rem;
    }
  }

  @media (max-width: 344px) {
    .card-section h2,
    .portfolio-section h2,
    .client-section h2 {
      font-size: 1.1rem;
      margin-bottom: 0.6rem;
    }
  }

  .card-section {
    background-color: #ffffff;
    padding: 0px !important;
    font-family: 'Segoe UI', sans-serif;
    max-width: 100%;
    width: 100%;
    padding-left: 0px !important;
    padding-right: 0px !important;
    padding-bottom: 2% !important;
    padding-top: 2% !important;
    display: block !important;
  }

  .card-section .slide-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 2rem !important;
    padding-top: 1% !important;
    box-sizing: border-box !important;
  }

  /* Responsive padding for card section */
  @media (max-width: 768px) {
    .card-section .slide-content {
      padding-top: 3rem !important;
      padding-bottom: 1.5rem !important;
    }
  }

  @media (max-width: 480px) {
    .card-section .slide-content {
      padding-top: 2rem !important;
      padding-bottom: 1rem !important;
    }
  }

  .card-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0px auto;
    box-sizing: border-box;
  }

  @media (min-width: 769px) {
    .card-container {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
      grid-auto-flow: row !important;
    }
  }

  .card {
    position: relative;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #e0e0eb;
    /* Card box background color */
  }

  .card img {
    width: 100%;
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    box-sizing: border-box;
  }

  .card:hover img {
    transform: scale(1.1);
  }

  .card .overlay {
    position: static;
    height: auto;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    opacity: 1;
    padding: 12px 8px;
    transition: none;
  }

  .overlay h3 {
    font-size: 18px;
    margin: 0;
  }

  .overlay p {
    font-size: 14px;
    margin: 6px 0 0;
  }

  /* Large Desktop (min 1440px) */
  @media (min-width: 1440px) {
    .card-container {
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .card img {
      height: 380px;
    }
  }

  /* Desktop (max 1439px) */
  @media (max-width: 1439px) {
    .card-container {
      grid-template-columns: repeat(4, 1fr);
      gap: 15px;
    }

    .card img {
      height: 350px;
    }
  }

  /* Laptop (max 1024px) */
  @media (max-width: 1024px) {
    .card-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      height: auto;
    }

    .card img {
      height: 300px;
    }

    .overlay h3 {
      font-size: 16px;
    }
  }

  /* Tablet (max 768px) */
  @media (max-width: 768px) {
    .card-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      padding: 1rem;
      height: auto;
    }

    .card img {
      height: 250px;
    }

    .overlay h3 {
      font-size: 15px;
    }

    .overlay p {
      font-size: 13px;
    }
  }

  /* Small Mobile (max 600px) */
  @media (max-width: 600px) {
    .card-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      padding: 0.75rem;
    }

    .card img {
      height: 200px;
    }

    .overlay {
      padding: 10px 6px;
    }

    .overlay h3 {
      font-size: 14px;
    }

    .overlay p {
      font-size: 12px;
    }
  }

  /* Extra Small Mobile (max 480px) */
  @media (max-width: 480px) {
    .card-container {
      grid-template-columns: 1fr;
      gap: 15px;
      padding: 1rem;
    }

    .card img {
      height: 200px;
    }

    .overlay {
      padding: 12px 8px;
    }

    .overlay h3 {
      font-size: 16px;
    }

    .overlay p {
      font-size: 13px;
    }
  }

  /* Very Small Mobile (max 360px) */
  @media (max-width: 360px) {
    .card-container {
      gap: 10px;
      padding: 0.5rem;
    }

    .card img {
      height: 180px;
    }

    .overlay h3 {
      font-size: 14px;
    }

    .overlay p {
      font-size: 12px;
    }
  }

  @media (max-width: 344px) {
    .card-container {
      gap: 8px;
      padding: 0.4rem;
    }

    .card img {
      height: 160px;
    }

    .overlay h3 {
      font-size: 13px;
    }

    .overlay p {
      font-size: 11px;
    }
  }

  .overlay-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
  }

  .overlay-link:hover {
    color: #FFB703;
  }

  /* Portfolio Section Styling */
  .portfolio-section {
    background: #f8f8f8;
    padding: 0 !important;
  }

  .portfolio-section {
    min-height: auto !important;
  }

  .portfolio-section .slide-content {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
    padding-top: 2% !important;
    padding-bottom: 4% !important;
    box-sizing: border-box !important;
  }

  .qna .slide-content {
    text-align: left;
  }

  .portfolio-container {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    align-items: stretch;
    justify-items: center;
  }

  /* Main Image */
  .main-image {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    height: clamp(200px, 30vw, 500px);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .main-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
  }

  .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 5%;
  }

  /* Side Images - always one row, centered */
  .side-images {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-height: 420px;
    overflow-x: hidden;
    align-items: stretch;
    justify-content: center;
  }

  .image-box {
    flex: 0 0 32%;
    max-width: 32%;
    min-height: 420px;
    height: 420px;
    background: #142882 !important;
    background-color: #142882 !important;
    border: 3px solid #142882;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .image-box.image-box--white {
    background: #ffffff !important;
    background-color: #ffffff !important;
  }

  .image-box a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
  }

  .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Image Overlay - frosted glass */
  .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 15px;
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .main-image:hover .image-overlay,
  .image-box:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .image-overlay h3 {
    margin: 0;
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 600;
    line-height: 1.35;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .image-box.in-view .image-overlay h3,
  .image-box:hover .image-overlay h3 {
    opacity: 1;
  }

  .main-image .image-overlay h3 {
    font-size: clamp(18px, 1.5vw, 24px);
    -webkit-line-clamp: 2;
    opacity: 1;
  }

  /* PJK 6 and RFP MBIP: show full h3 text (no line-clamp) */
  .image-box--full-title .image-overlay h3 {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }
  .image-box--full-title .image-overlay {
    max-height: none;
    overflow-y: auto;
  }

  /* Overlay + text appear one by one when boxes scroll into view (stagger) */
  .image-box.in-view .image-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .image-box.in-view:nth-child(1) .image-overlay {
    transition-delay: 0s;
  }
  .image-box.in-view:nth-child(1) .image-overlay h3 {
    transition-delay: 0.08s;
  }
  .image-box.in-view:nth-child(2) .image-overlay {
    transition-delay: 0.15s;
  }
  .image-box.in-view:nth-child(2) .image-overlay h3 {
    transition-delay: 0.23s;
  }
  .image-box.in-view:nth-child(3) .image-overlay {
    transition-delay: 0.3s;
  }
  .image-box.in-view:nth-child(3) .image-overlay h3 {
    transition-delay: 0.38s;
  }
  .image-box.in-view:nth-child(4) .image-overlay {
    transition-delay: 0.45s;
  }
  .image-box.in-view:nth-child(4) .image-overlay h3 {
    transition-delay: 0.53s;
  }
  .image-box.in-view:nth-child(5) .image-overlay {
    transition-delay: 0.6s;
  }
  .image-box.in-view:nth-child(5) .image-overlay h3 {
    transition-delay: 0.68s;
  }

  /* Responsive */
  @media (max-width: 1024px) {
    .portfolio-container {
      
      padding: 0 15px;
      gap: 15px;
    }

    .portfolio-section .slide-content {
      padding-top: 2rem !important;
      padding-bottom: 1rem !important;
      height: auto !important;
    }

    .main-image {
      height: clamp(180px, 28vw, 350px);
    }

    .side-images {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
    }

    .image-box {
      flex: 0 0 100%;
      max-width: 100%;
      min-height: 360px;
      height: clamp(320px, 50vw, 420px);
    }

    .image-overlay h3 {
      font-size: 13px;
      line-height: 1.3;
      -webkit-line-clamp: 3;
      color: #000;
    }
    .image-overlay {
      padding: 10px 12px;
      max-height: 35%;
      transform: translateY(12px);
    }
    .portfolio-section .image-box .image-overlay {
      opacity: 0;
      transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .portfolio-section .image-box.in-view .image-overlay {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 768px) {
    .portfolio-container {
      padding: 0 10px;
      gap: 12px;
    }

    .portfolio-section .slide-content {
      padding-top: 1.5rem !important;
      padding-bottom: 1rem !important;
    }

    .main-image {
      height: clamp(150px, 35vw, 280px);
    }

    .side-images {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .image-box {
      flex: 0 0 100%;
      max-width: 100%;
      min-height: 300px;
      height: clamp(280px, 55vw, 380px);
    }

    .image-overlay h3 {
      font-size: 12px;
      line-height: 1.28;
      -webkit-line-clamp: 3;
      color: #000;
    }
    .image-overlay {
      padding: 8px 10px;
      max-height: 38%;
      transform: translateY(12px);
    }
    .portfolio-section .image-box .image-overlay {
      opacity: 0;
      transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .portfolio-section .image-box.in-view .image-overlay {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 480px) {
    .portfolio-section {
      min-height: auto !important;
      height: auto !important;
    }

    .portfolio-container {
      padding: 0 10px;
      gap: 10px;
      height: auto;
    }

    .portfolio-section .slide-content {
      padding-top: 1.5rem !important;
      padding-bottom: 2rem !important;
      height: auto !important;
    }

    .side-images {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      height: auto;
    }

    .main-image {
      display: none;
    }

    .image-box {
      flex: 0 0 100%;
      max-width: 100%;
      min-height: 260px;
      height: clamp(260px, 60vw, 340px);
    }

    .image-overlay h3 {
      font-size: 11px;
      line-height: 1.25;
      -webkit-line-clamp: 3;
      color: #000;
    }
    .image-overlay {
      padding: 6px 8px;
      max-height: 40%;
      transform: translateY(10px);
    }
    .portfolio-section .image-box .image-overlay {
      opacity: 0;
      transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .portfolio-section .image-box.in-view .image-overlay {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 360px) {
    .portfolio-section {
      min-height: auto !important;
      padding-bottom: 2rem !important;
      height: auto !important;
    }

    .portfolio-container {
      padding: 0 8px;
      gap: 8px;
      height: auto;
    }

    .portfolio-section .slide-content {
      padding-top: 1.5rem !important;
      padding-bottom: 2rem !important;
      height: auto !important;
    }

    .side-images {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      height: auto;
    }

    .main-image {
      display: none;
    }

    .image-box {
      flex: 0 0 100%;
      max-width: 100%;
      min-height: 220px;
      height: clamp(220px, 55vw, 300px);
    }

    .image-overlay h3 {
      font-size: 10px;
      line-height: 1.22;
      -webkit-line-clamp: 3;
      color: #000;
    }
    .image-overlay {
      padding: 5px 6px;
      max-height: 42%;
      transform: translateY(10px);
    }
    .portfolio-section .image-box .image-overlay {
      opacity: 0;
      transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .portfolio-section .image-box.in-view .image-overlay {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 344px) {
    .portfolio-container {
      padding: 0 6px;
      gap: 6px;
    }

    .main-image {
      height: clamp(130px, 50vw, 180px);
    }

    .image-box {
      height: 100%;
    }
  }

  /* Key Features Section (5 features) */
  .key-features-section {
    background: linear-gradient(0deg, #6699ff 0%, #f4faf0 100%);
    padding: 4vw 7vw 5vw;
    overflow: hidden;
  }

  .key-features-inner {
    max-width: 86vw;
    margin: 0 auto;
  }

  .key-features-label {
    font-size: 0.875rem;
    letter-spacing: 0.1vw;
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
    color: #0A2F5C;
    margin-bottom: 1rem;
  }

  .key-features-title {
    font-size: clamp(1.75rem, 5vw, 3.2rem);
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 2.5rem 0;
  }

  .key-features-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
    justify-content: center;
    align-items: stretch;
  }

  .key-feature-box {
    background: linear-gradient(145deg, #1e3c72 0%, #2a5298 100%);
    padding: 2vw 1.5vw 2vw 1.8vw;
    border-radius: 8px;
    overflow: hidden;
    width: calc((100% - 4vw) / 5);
    min-width: 0;
    min-height: 200px;
    height: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .key-feature-box:first-child {
    background: #002b80 url('integriti.png') center / cover no-repeat;
  }

  .key-feature-box:nth-child(2) {
    background: #002b80 url('cemerlang.jpeg') center / cover no-repeat;
  }

  .key-feature-box:nth-child(3) {
    background: #002b80 url('teknologi.jpeg') center / cover no-repeat;
  }

  .key-feature-box:nth-child(4) {
    background: #002b80 url('lestari.jpeg') center / cover no-repeat;
  }

  .key-feature-box:nth-child(5) {
    background: #002b80 url('kolaborasi.jpg') center / cover no-repeat;
  }

  /* Dim overlay so text is readable on all card backgrounds */
  .key-feature-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    pointer-events: none;
    z-index: 0;
  }

  .key-feature-box .key-feature-icon-wrap,
  .key-feature-box .key-feature-heading,
  .key-feature-box .key-feature-desc {
    position: relative;
    z-index: 1;
  }

  .key-feature-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .key-feature-icon-wrap {
    width: 5vw;
    height: 5vw;
    min-width: 55px;
    min-height: 55px;
    margin-bottom: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: transform 0.5s ease;
    background: transparent;
  }

  .key-feature-box.active .key-feature-icon-wrap {
    transform: scale(1.2);
  }

  .key-feature-icon {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    opacity: 0;
  }

  .key-feature-heading {
    font-size: clamp(1.2rem, 1.25vw, 1.2rem);
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 0.5em 0;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
    text-align: center;
  }

  .key-feature-desc,
  .key-features-section .key-feature-desc,
  .key-feature-box p.key-feature-desc {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #ffffff !important;
    flex: 1;
    word-break: break-word;
    text-align: center;
    opacity: 1;
    visibility: visible;
  }

  .key-features-boxes.flip .key-feature-box {
    transform: translateY(25px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    visibility: hidden;
  }

  .key-features-boxes.flip.active .key-feature-box {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  /* One by one appearance when scrolling into view */
  .key-features-boxes.flip .key-feature-box:nth-child(1) { transition-delay: 0s; }
  .key-features-boxes.flip .key-feature-box:nth-child(2) { transition-delay: 0.2s; }
  .key-features-boxes.flip .key-feature-box:nth-child(3) { transition-delay: 0.4s; }
  .key-features-boxes.flip .key-feature-box:nth-child(4) { transition-delay: 0.6s; }
  .key-features-boxes.flip .key-feature-box:nth-child(5) { transition-delay: 0.8s; }

  @media (max-width: 1024px) {
    .key-feature-box {
      width: calc((100% - 2vw) / 3);
    }
  }

  @media (max-width: 768px) {
    .key-features-section {
      padding: 3rem 1.5rem;
    }
    .key-features-boxes {
      gap: 12px;
    }
    .key-feature-box {
      width: calc((100% - 12px) / 2);
      padding: 1.5rem 1.25rem;
      min-height: 180px;
      height: auto;
    }
    .key-feature-heading {
      -webkit-line-clamp: 2;
    }
  }

  @media (max-width: 480px) {
    .key-features-section {
      padding: 2rem 1rem;
    }
    .key-features-title {
      font-size: 1.5rem;
      margin-bottom: 1.5rem;
    }
    .key-features-boxes {
      gap: 10px;
    }
    .key-feature-box {
      width: 100%;
      padding: 1.25rem 1rem;
      min-height: 160px;
      height: auto;
    }
    .key-feature-heading {
      -webkit-line-clamp: 2;
    }
    .key-feature-icon-wrap {
      margin-bottom: 0.75rem;
    }
  }

  /* ePerolehan Training Section */
  .training-section {
    width: 95%;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    min-height: 450px;
    font-family: 'Poppins', sans-serif;
  }

  .training-left {
    flex: 1;
    background: url('training.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px;
  }

  .training-left h1 {
    color: #ffffff;
    font-size: 60px;
    font-weight: 600;
    line-height: 1.1;
    max-width: 400px;
  }

  .training-right {
    flex: 1;
    background: linear-gradient(135deg, #4657d5, #4657d5);
    color: white;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }

  .training-right p {
    font-size: 18px;
    line-height: 1.6;
    color: #d6e5df;
    max-width: 500px;
  }

  .training-right::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
  }

  .training-btn {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: white;
    color: #062c1f;
    padding: 18px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    width: 280px;
    transition: 0.3s ease;
  }

  .training-btn span {
    background: #1c38b2;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s ease;
  }

  .training-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

  .training-btn:hover span {
    transform: translateX(5px);
  }

  @media (max-width: 900px) {
    .training-section {
      flex-direction: column;
    }

    .training-left {
      padding: 40px;
    }

    .training-left h1 {
      font-size: 40px;
    }

    .training-right {
      padding: 50px 30px;
    }
  }

  .banner-section {
    background: none;
    color: white;
    position: relative;
    overflow: hidden;
    height: auto;
    padding: 0;
    display: block;
  }

  .banner-section h2,
  .banner-section p {
    color: white;
  }

  .banner-image {
    width: 100vw;
    margin: 0;
    margin-left: calc(-50vw + 50%);
  }

  .banner-image img {
    width: 100%;
    height: 100%;
    display: block;
  }

  .banner-section .slide-content {
    position: relative;
    z-index: 1;
  }

  .client-section {
    height: auto;
    font-family: 'Segoe UI', sans-serif;
    max-width: 100%;
    padding-left: clamp(16px, 4vw, 48px);
    padding-right: clamp(16px, 4vw, 48px);
    background: linear-gradient(rgba(33, 33, 33, 0.6), rgba(33, 33, 33, 0.6)), url('johor peta.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
  }

  /* Responsive padding for client section */
  @media (max-width: 768px) {
    .client-section {
      padding: 2rem 1rem;
      padding-left: clamp(12px, 3vw, 24px);
      padding-right: clamp(12px, 3vw, 24px);
    }
  }

  @media (max-width: 480px) {
    .client-section {
      padding: 1.5rem 0.75rem;
      padding-left: clamp(10px, 2vw, 16px);
      padding-right: clamp(10px, 2vw, 16px);
    }
  }

  @media (max-width: 360px) {
    .client-section {
      padding: 1rem 0.5rem;
    }
  }

  @media (max-width: 344px) {
    .client-section {
      padding: 0.8rem 0.4rem;
    }
  }

  .client-section .slide-content {
    max-width: 100%;
    padding-left: 5%;
    padding-right: 5%;
    width: 100%;
    padding-bottom: 4%;
    box-sizing: border-box;
  }

  .client-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 100%;
    margin: 0px auto;
    align-items: start;
  }

  /* Center the last 2 cards (cards 10 and 11) - Desktop only (4 columns) */
  @media (min-width: 1025px) {
    .client-container .client:nth-last-child(-n+2) {
      grid-column: span 1;
    }

    .client-container .client:nth-last-child(2) {
      grid-column: 2;
    }

    .client-container .client:nth-last-child(1) {
      grid-column: 3;
    }
  }

  .client {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .client:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  }

  .client-image-wrapper {
    width: 100%;
    padding: 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
  }

  .client img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    display: block;
    transition: transform 0.3s ease;
  }

  .client:hover img {
    transform: scale(1.05);
  }

  .text-overlay {
    padding: 12px 16px;
    text-align: center;
    background: #ffffff;
    color: #1e3c72;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #e9ecef;
  }

  .text-overlay h4 {
    margin: 0;
    padding: 0;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
  }

  .client:hover .text-overlay h4 {
    color: #0d2a5a;
  }

  .text-overlay p {
    margin: 0;
    padding: 0;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .client .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    padding: 1px;
    transition: opacity 0.5s ease;
  }

  .client:hover .overlay {
    opacity: 1;
  }

  .overlay h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .overlay p {
    font-size: 14px;
  }

  /* Large Desktop (min 1440px) */
  @media (min-width: 1440px) {
    .client-container {
      grid-template-columns: repeat(4, 1fr);
      gap: 30px;
    }
  }

  /* Desktop (max 1439px) */
  @media (max-width: 1439px) and (min-width: 1025px) {
    .client-container {
      grid-template-columns: repeat(4, 1fr);
      gap: 25px;
    }
  }

  /* Laptop (max 1024px) */
  @media (max-width: 1024px) {
    .client-container {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
  }

  /* Tablet (max 768px) */
  @media (max-width: 768px) {
    .client-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      padding: 1rem;
      align-items: start;
    }

    .client {
      max-height: none;
      height: auto;
    }

    .client-image-wrapper {
      max-height: 180px;
    }

    .text-overlay {
      padding: 10px 12px;
    }

    .text-overlay h4 {
      font-size: 0.9rem;
    }
  }

  /* Small Mobile (max 600px) */
  @media (max-width: 600px) {
    .client-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      padding: 0.75rem;
      align-items: start;
    }

    .client-image-wrapper {
      max-height: 160px;
    }

    .text-overlay {
      padding: 10px 10px;
    }

    .text-overlay h4 {
      font-size: 0.85rem;
    }
  }

  /* Extra Small Mobile (max 480px) */
  @media (max-width: 480px) {
    .client-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      padding: 0.5rem;
      align-items: start;
    }

    .client-image-wrapper {
      max-height: 140px;
    }

    .text-overlay {
      padding: 8px 8px;
    }

    .text-overlay h4 {
      font-size: 0.8rem;
    }
  }

  /* Very Small Mobile (max 360px) */
  @media (max-width: 360px) {
    .client-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      padding: 0.5rem;
      align-items: start;
    }

    .client-image-wrapper {
      max-height: 120px;
    }

    .text-overlay {
      padding: 8px 6px;
    }

    .text-overlay h4 {
      font-size: 0.75rem;
    }
  }

  @media (max-width: 344px) {
    .client-container {
      gap: 10px;
      padding: 0.4rem;
    }

    .text-overlay {
      padding: 0.65rem 0.5rem;
    }

    .text-overlay h4 {
      font-size: 0.8rem;
    }
  }

  .faq-section h2 {
    color: #333;
  }

  .bg-faq {
    background-color: #e8f0ff;
    /* Light blue background */
    background-image: none;
    /* Remove background image */
  }

  .faq-section {

    height: auto;
    font-family: 'Segoe UI', sans-serif;
    max-width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
  }

  /* Combined FAQ and Maps Landscape Layout */
  .faq-map-combined {
    background-color: #e8f0ff;
  }

  .faq-map-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: min(95vw, 800px);
    margin: 0 auto;
    align-items: stretch;
  }

  .faq-section-side {
    width: 100%;
  }

  .faq-section-side h2 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
  }

  .map-section-side {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }

  .map-section-side h2 {
    color: #000;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  /* Map container (Soalan Lazim section) – 1:1 aspect ratio, 100% width, no fixed sizes */
  .map-section-side .map-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    flex: 1;
    min-height: 0;
    aspect-ratio: 1.2 / 1;
  }

  .map-section-side .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    display: block;
  }

  /* Responsive - Stack on mobile */
  @media (max-width: 1024px) {
    .faq-map-container {
      gap: 2rem;
    }
  }

  @media (max-width: 768px) {
    .faq-map-combined {
      padding: 2rem 1rem;
    }

    .faq-map-container {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }
  }

  @media (max-width: 480px) {
    .faq-map-combined {
      padding: 1.5rem 0.75rem;
    }

    .faq-map-container {
      gap: 2rem;
    }
  }

  @media (max-width: 344px) {
    .faq-map-combined {
      padding: 1rem 0.5rem;
    }
  }

  .faq-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0px;

  }

  .faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8ecef;
  }

  .faq-question {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: left;
    color: #333;
    transition: color 0.3s ease;
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.8rem;
    line-height: 1.5;
  }

  .faq-question.active+.faq-answer {
    max-height: 500px;
    opacity: 1;
  }

  .faq-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
  }

  .faq-question.active .faq-icon {
    transform: rotate(45deg);
  }

  /* Responsive */
  @media (max-width: 768px) {
    .faq-item {
      padding: 1rem 1.2rem;
      margin-bottom: 1rem;
    }

    .faq-question {
      font-size: 0.95rem;
      padding: 10px 0;
      /* Larger touch target */
    }

    .faq-answer {
      font-size: 0.9rem;
    }
  }

  @media (max-width: 480px) {
    .faq-item {
      padding: 0.8rem 1rem;
    }

    .faq-question {
      font-size: 0.9rem;
      line-height: 1.4;
    }

    .faq-answer {
      font-size: 0.85rem;
    }
  }

  .social-media-section {
    background: #f8f9fa;
    padding: 2rem 1rem;
  }

  .social-media-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    max-width: min(95vw, 800px);
    margin: 0 auto;
    width: 100%;
  }

  .social-media-image-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: min(95vw, 500px);
    aspect-ratio: 1 / 1;
    max-height: min(95vw, 500px);
  }

  .social-media-image-panel h2,
  .social-media-image-panel h3 {
    margin: 0;
    color: #333;
    font-size: 2rem;
    text-align: center;
  }

  .social-media-image-panel a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
  }

  .social-promo-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
  }

  .social-media-embeds-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    max-height: min(95vw, 800px);
  }

  .social-media-embeds-panel h2,
  .social-media-embeds-panel h3 {
    margin: 0;
    color: #333;
    font-size: 2rem;
    text-align: center;
  }

  .social-platform-selector {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 0px;
    justify-content: center;
  }

  .platform-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
  }

  .platform-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .platform-btn.active {
    background: #f0f0f0;
    border-color: #1877F2;
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.2);
  }

  .platform-btn.active[data-platform="instagram"] {
    border-color: #E4405F;
    box-shadow: 0 2px 4px rgba(228, 64, 95, 0.2);
  }

  .platform-btn svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .social-media-embed-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    text-align: center;
    min-height: 0;
    max-width: 100%;
    max-height: min(95vw, 800px);
  }

  .social-media-embed {
    display: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    justify-content: center;
    align-items: center;
  }

  .social-media-embed.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
  }

  .facebook-embed-tap-overlay {
    display: none;
  }

  .social-media-embed iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
  }

  .fb-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .fb-page {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    margin: 0 auto;
  }

  .fb-page iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    flex-shrink: 0;
  }

  /* Center Facebook widget when SDK injects wrapper/iframe */
  .fb-page > span,
  .fb-page > div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .social-media-embed .instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  /* Social media section: single column, same width and 1:1 for both panels */
  @media (min-width: 1200px) {
    .social-media-wrapper {
      max-width: min(95vw, 800px);
    }
  }

  @media (max-width: 768px) {
    .social-media-section {
      padding: 2rem 1rem;
    }

    .social-media-wrapper {
      gap: 2rem;
      padding: 0;
      margin: 0 auto;
      max-width: min(95vw, 100%);
    }

    .social-media-image-panel,
    .social-media-embeds-panel {
      max-width: min(95vw, 500px);
      max-height: min(95vw, 500px);
    }

    .social-media-embed-container {
      max-height: min(95vw, 500px);
    }

    .social-media-image-panel h2,
    .social-media-embeds-panel h2,
    .social-media-image-panel h3,
    .social-media-embeds-panel h3 {
      font-size: 1.75rem;
      text-align: center;
      color: #333;
    }

    .social-media-image-panel {
      align-items: center;
      width: 100%;
    }

    .social-platform-selector {
      flex-direction: row;
      gap: 0.75rem;
    }

    .platform-btn {
      width: 100%;
      justify-content: center;
    }

    .social-media-embeds-panel {
      padding: 0 1rem;
      align-items: center;
    }

    .social-media-embed-container {
      overflow: hidden;
      width: 100%;
      padding: 0;
      margin: 0;
      aspect-ratio: 1 / 1;
      max-width: min(95vw, 500px);
      max-height: min(95vw, 500px);
    }

    .facebook-embed-tap-overlay {
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 10;
    }

    .fb-page-container,
    .fb-page,
    .fb-page iframe {
      pointer-events: none;
    }

    .fb-page-container {
      padding: 0;
      margin: 0 auto;
      display: flex;
      justify-content: center;
      max-width: 100%;
      max-height: 100%;
    }

    .fb-page {
      overflow: hidden !important;
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      margin: 0 auto;
    }

    .fb-page iframe {
      overflow: hidden !important;
      width: 100% !important;
      height: 100% !important;
      max-width: 100% !important;
      max-height: 100% !important;
    }
  }

  @media (max-width: 480px) {
    .social-media-section {
      padding: 1.5rem 0.5rem;
    }

    .social-media-wrapper {
      gap: 1.5rem;
      max-width: min(95vw, 100%);
    }

    .social-media-image-panel,
    .social-media-embeds-panel {
      max-width: min(95vw, 100%);
      max-height: min(95vw, 420px);
    }

    .social-media-image-panel h2,
    .social-media-embeds-panel h2,
    .social-media-image-panel h3,
    .social-media-embeds-panel h3 {
      font-size: 1.5rem;
      color: #333;
    }

    .social-media-image-panel {
      width: 100%;
    }

    .social-media-embeds-panel {
      padding: 0 0.5rem;
      align-items: center;
    }

    .social-media-embed-container {
      overflow: hidden;
      width: 100%;
      padding: 0;
      margin: 0;
      aspect-ratio: 1 / 1;
      padding-left: 12%;
      padding-right: 12%;
      max-width: min(95vw, 420px);
      max-height: min(95vw, 420px);
    }
  }

  @media (max-width: 380px) {
    .social-media-section {
      padding: 1.2rem 0.5rem;
    }

    .social-media-wrapper {
      gap: 1.2rem;
      max-width: min(95vw, 100%);
    }

    .social-media-image-panel,
    .social-media-embeds-panel {
      max-width: min(95vw, 360px);
      max-height: min(95vw, 360px);
    }

    .social-media-image-panel h2,
    .social-media-embeds-panel h2,
    .social-media-image-panel h3,
    .social-media-embeds-panel h3 {
      font-size: 1.3rem;
      color: #333;
    }

    .social-promo-image {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      margin: 0 auto;
      display: block;
    }

    .social-media-image-panel {
      width: 100%;
      align-items: center;
      justify-content: center;
    }
    
    .social-media-image-panel a {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
    }

    .social-media-embeds-panel {
      padding: 0 0.4rem;
      align-items: center;
    }

    .social-media-embed-container {
      overflow: hidden;
      width: 100%;
      padding: 0;
      margin: 0;
      aspect-ratio: 1 / 1;
      max-width: min(95vw, 360px);
      max-height: min(95vw, 360px);
    }

    .fb-page-container {
      padding: 0;
      margin: 0 auto;
      display: flex;
      justify-content: center;
      max-width: 100%;
      max-height: 100%;
    }

    .fb-page {
      overflow: hidden !important;
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      margin: 0 auto;
    }

    .fb-page iframe {
      overflow: hidden !important;
      width: 100% !important;
      height: 100% !important;
      max-width: 100% !important;
      max-height: 100% !important;
      pointer-events: auto;
    }
  }

  @media (max-width: 344px) {
    .social-media-section {
      padding: 1rem 0.4rem;
    }

    .social-media-wrapper {
      gap: 1rem;
      max-width: min(95vw, 100%);
    }

    .social-media-image-panel,
    .social-media-embeds-panel {
      max-width: min(95vw, 320px);
      max-height: min(95vw, 320px);
    }

    .social-media-image-panel h2,
    .social-media-embeds-panel h2,
    .social-media-image-panel h3,
    .social-media-embeds-panel h3 {
      font-size: 1.2rem;
      color: #333;
    }

    .social-promo-image {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      margin: 0 auto;
      display: block;
    }

    .social-media-image-panel {
      width: 100%;
      align-items: center;
      justify-content: center;
    }
    
    .social-media-image-panel a {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
    }

    .social-media-embeds-panel {
      padding: 0 0.3rem;
      align-items: center;
    }

    .social-media-embed-container {
      overflow: hidden;
      width: 100%;
      padding: 0;
      margin: 0;
      aspect-ratio: 1 / 1;
      max-width: min(95vw, 320px);
      max-height: min(95vw, 320px);
    }

    .fb-page-container {
      padding: 0;
      margin: 0 auto;
      display: flex;
      justify-content: center;
      max-width: 100%;
      max-height: 100%;
    }

    .fb-page {
      overflow: hidden !important;
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      margin: 0 auto;
    }

    .fb-page iframe {
      overflow: hidden !important;
      width: 100% !important;
      height: 100% !important;
      max-width: 100% !important;
      max-height: 100% !important;
      pointer-events: auto;
    }
  }

  .contact-section {
    background: #ccd9ff !important;
    color: #000;
  }

  .content-section.contact-section {
    background: #ccd9ff !important;
  }

  .contact-section h2,
  .contact-section p {
    color: #000;
  }

  .content-section.contact-section h2,
  .content-section.contact-section p {
    color: #000;
  }

  .contact-info {
    margin: 2rem 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-item {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid #e8ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #000;
  }

  .contact-item strong {
    color: #000;
  }

  @media (max-width: 768px) {
    .contact-section {
      padding: 2rem 1rem;
    }

    .contact-info {
      margin: 1rem 0;
      padding: 0 1rem;
    }

    .contact-item {
      margin: 0.8rem 0;
      padding: 0.8rem;
    }
  }

  /* Section Maps */
  .map-section {
    /* Remove top padding; keep side/bottom padding */
    padding: 0 1rem 3rem 1rem;
    background: #e8f0ff;
    text-align: center;
  }

  /* Override for combined layout */
  .faq-map-wrapper .map-section-side {
    padding: 0;
    background: transparent;
  }

  .lokasi-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .lokasi-image-container {
    flex: 0 0 auto;
    width: 400px;
    max-width: 100%;
    text-align: center;
  }

  .lokasi-image-container h2 {
    margin-bottom: 1.5rem;
    color: #000;
    font-size: 2rem;
  }

  .lokasi-side-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .lokasi-content {
    flex: 1;
    min-width: 0;
  }

  .map-section h2 {

    margin-bottom: 1.5rem;
    color: #000;
  }

  /* Container Map */
  .map-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    /* increased max-width for laptops */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }

  /* Responsive iFrame */
  .map-container iframe {
    height: 1px;
    width: 100%;
    /* increased height for better visibility on laptops */
    border: 0;
    display: block;
  }

  /* Improve map size for larger screens */
  @media (max-width: 1024px) {
    .map-container iframe {
      height: 700px;
      width: 100%;
    }
  }

  /* Mobile responsive */
  @media (max-width: 768px) {
    .lokasi-wrapper {
      flex-direction: column;
      gap: 1.5rem;
    }

    .lokasi-image-container {
      width: 100%;
      max-width: 100%;
    }

    .lokasi-image-container h2 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }

    .map-container iframe {
      height: 400px;
      /* lebih kecil untuk tablet/mobile */
      width: 500px;
    }
  }

  @media (max-width: 565px) {
    .lokasi-wrapper {
      gap: 1rem;
    }

    .lokasi-image-container h2 {
      font-size: 1.25rem;
    }

    .map-container iframe {
      height: 400px;
      width: 100%;
    }
  }

  @media (max-width: 344px) {
    .lokasi-wrapper {
      gap: 0.8rem;
    }

    .lokasi-image-container h2 {
      font-size: 1.1rem;
    }

    .map-container iframe {
      height: 300px;
      width: 100%;
    }
  }


  @keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
      transform: translateY(-50%) translateX(0);
    }

    40% {
      transform: translateY(-50%) translateX(-10px);
    }

    60% {
      transform: translateY(-50%) translateX(-5px);
    }
  }

  /* Responsive design */
  @media (max-width: 768px) {
    .slide h1 {
      font-size: 2.5rem;
    }

    .slide p {
      font-size: 1rem;
    }

    .scroll-indicator {
      right: 15px;
    }

    .slide-content {
      padding: 1rem;
    }

    /* Improve mobile slides */
    .slides-container {
      width: 300vw;
    }

    .nav-arrow.prev {
      left: 15px;
    }

    .nav-arrow.next {
      right: 15px;
    }

    .nav-arrow {
      width: 40px;
      height: 40px;
      font-size: 1rem;
    }

    .scroll-down-btn {
      width: 40px;
      height: 40px;
      bottom: 20px;
      font-size: 1rem;
    }
  }

  @media (max-width: 480px) {
    .slide h1 {
      font-size: 2rem;
    }

    .slide p {
      font-size: 0.9rem;
    }

    .slide-content {
      padding: 0.5rem;
    }

    .nav-arrow {
      display: none;
    }

    .scroll-down-btn {
      width: 35px;
      height: 35px;
      bottom: 15px;
    }
  }

  /* Smooth animations */
  .slide {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Ensure consistent behavior across slides */

  .slides-wrapper {
    position: relative;
    /* important: keeps arrows inside this section */
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
  }

  /* Buttons now absolute to .slides-wrapper */
  .nav-arrow,
  .scroll-down-btn {
    position: absolute;
    z-index: 1000;
  }

  /* Arrows positioning */
  .nav-arrow {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
  }

  .nav-arrow.prev {
    left: 30px;
    transform: translateY(-50%);
  }

  .nav-arrow.next {
    right: 30px;
    transform: translateY(-50%);
  }

  /* Scroll down button positioning */
  .scroll-down-btn {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    font-weight: bold;
  }

  .scroll-down-btn:hover {
    background: white;
    color: #333;
    transform: translateX(-50%) translateY(-5px);
  }

  /* Show buttons when slides are visible */
  .nav-arrow.visible,
  .scroll-down-btn.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  /* Footer styles moved to footer.css so all pages share the same footer (index, Contact Us, etc.) */

  /* ============================================
         COMPREHENSIVE RESPONSIVE STYLES FOR ALL DEVICES
         ============================================ */

  /* Base responsive image styles */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Exclude navbar logo from global img styles to prevent distortion */
  .navbar .logo img {
    height: 70px !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
  }
  
  @media (max-width: 768px) {
    .navbar .logo img {
      height: 50px !important;
      width: auto !important;
      max-width: none !important;
    }
  }
  
  @media (max-width: 480px) {
    .navbar .logo img {
      height: 40px !important;
      width: auto !important;
      max-width: none !important;
    }
  }
  
  @media (max-width: 344px) {
    .navbar .logo img {
      height: 35px !important;
      width: auto !important;
      max-width: none !important;
    }
  }

  /* Responsive video */
  .slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Responsive banner image */
  .banner-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* ========== LARGE DESKTOP (1440px and above) ========== */
  @media (min-width: 1440px) {
    .slide h1 {
      font-size: 4rem;
    }

    .slide p {
      font-size: 1.4rem;
    }

    .content-section h2 {
      font-size: 3rem;
    }

    .content-section p {
      font-size: 1.3rem;
    }

    .btn {
      padding: 14px 35px;
      font-size: 1.1rem;
    }

    .intro-text h2 {
      font-size: 3rem;
    }

    .intro-text p {
      font-size: 1.3rem;
    }
  }

  /* ========== DESKTOP (1025px - 1439px) ========== */
  @media (max-width: 1439px) and (min-width: 1025px) {
    .slide h1 {
      font-size: 3.5rem;
    }

    .slide p {
      font-size: 1.2rem;
    }

    .content-section h2 {
      font-size: 3rem;
    }

    .content-section p {
      font-size: 1.2rem;
    }
  }

  /* ========== LAPTOP (769px - 1024px) ========== */
  @media (max-width: 1024px) and (min-width: 769px) {
    .slide h1 {
      font-size: 3rem;
    }

    .slide p {
      font-size: 1.1rem;
    }

    .content-section h2 {
      font-size: 2.5rem;
    }

    .content-section p {
      font-size: 1.1rem;
    }

    .btn {
      padding: 12px 28px;
      font-size: 1rem;
    }

    .intro-text h2 {
      font-size: 2.5rem;
    }

    .intro-text p {
      font-size: 1.1rem;
    }

    .slide-content {
      max-width: 700px;
      padding: 1.5rem;
    }

    .banner-image img {
      max-height: 500px;
    }
  }

  /* ========== TABLET (481px - 768px) ========== */
  @media (max-width: 768px) and (min-width: 481px) {
    .slide h1 {
      font-size: 2.5rem;
    }

    .slide p {
      font-size: 1rem;
    }

    .content-section h2 {
      font-size: 2rem;
    }

    .content-section p {
      font-size: 1rem;
    }

    .btn {
      padding: 10px 24px;
      font-size: 0.95rem;
    }

    .intro-text h2 {
      font-size: 2rem;
    }

    .intro-text p {
      font-size: 1rem;
    }

    .slide-content {
      max-width: 600px;
      padding: 1rem;
    }

    .banner-image img {
      max-height: 400px;
    }
  }

  /* ========== SMALL MOBILE (361px - 480px) ========== */
  @media (max-width: 480px) and (min-width: 361px) {
    .slide h1 {
      font-size: 2rem;
    }

    .slide p {
      font-size: 0.9rem;
    }

    .content-section h2 {
      font-size: 1.5rem;
    }

    .content-section p {
      font-size: 0.95rem;
      line-height: 1.6;
    }

    .btn {
      padding: 10px 20px;
      font-size: 0.9rem;
    }

    .intro-text h2 {
      font-size: 1.5rem;
    }

    .intro-text p {
      font-size: 0.95rem;
    }

    .slide-content {
      max-width: 90%;
      padding: 0.75rem;
    }

    .banner-image img {
      max-height: 300px;
    }
  }

  /* ========== VERY SMALL MOBILE (max 360px) ========== */
  @media (max-width: 360px) {
    .slide h1 {
      font-size: 1.75rem;
    }

    .slide p {
      font-size: 0.85rem;
    }

    .content-section h2 {
      font-size: 1.25rem;
    }

    .content-section p {
      font-size: 0.9rem;
      line-height: 1.5;
    }

    .btn {
      padding: 8px 18px;
      font-size: 0.85rem;
    }

    .intro-text h2 {
      font-size: 1.25rem;
    }

    .intro-text p {
      font-size: 0.9rem;
    }

    .slide-content {
      max-width: 95%;
      padding: 0.5rem;
    }

    .banner-image img {
      max-height: 250px;
    }
  }

  /* ========== EXTRA SMALL MOBILE (max 344px) ========== */
  @media (max-width: 344px) {
    .slide h1 {
      font-size: 1.5rem;
    }

    .slide p {
      font-size: 0.8rem;
    }

    .content-section h2 {
      font-size: 1.15rem;
    }

    .content-section p {
      font-size: 0.85rem;
      line-height: 1.4;
    }

    .btn {
      padding: 7px 16px;
      font-size: 0.8rem;
      border-radius: 20px;
    }

    .intro-text h2 {
      font-size: 1.15rem;
    }

    .intro-text p {
      font-size: 0.85rem;
      line-height: 1.4;
    }

    .slide-content {
      max-width: 98%;
      padding: 0.4rem;
    }

    .banner-image img {
      max-height: 220px;
    }

    .card-container {
      gap: 8px;
      padding: 0.4rem;
    }

    .card img {
      height: 160px;
    }

    .overlay h3 {
      font-size: 13px;
    }

    .overlay p {
      font-size: 11px;
    }

    .client-container {
      gap: 10px;
      padding: 0.4rem;
    }

    .text-overlay {
      padding: 0.65rem 0.5rem;
    }

    .text-overlay h4 {
      font-size: 0.8rem;
    }

    .faq-item {
      padding: 0.7rem 0.9rem;
    }

    .faq-question {
      font-size: 0.8rem;
    }

    .faq-answer {
      font-size: 0.75rem;
    }

    .nav-arrow {
      display: none;
    }

    .scroll-down-btn {
      width: 32px;
      height: 32px;
      font-size: 0.9rem;
    }

    .social-media-image-panel h2,
    .social-media-embeds-panel h2 {
      font-size: 1.3rem;
      color: #333;
    }

    .portfolio-container {
      padding: 0 6px;
      gap: 8px;
    }

    .main-image {
      height: clamp(130px, 50vw, 180px);
    }

    .image-box {
      height: 100%;
    }

    .map-container iframe {
      height: 300px;
      width: 100%;
    }

    .intro-container {
      padding: 0.8rem;
      gap: 1rem;
    }

    .contact-item {
      padding: 0.5rem;
      font-size: 0.85rem;
    }
  }

  /* ========== FAQ RESPONSIVE TEXT ========== */
  @media (max-width: 768px) {
    .faq-question {
      font-size: 0.95rem;
    }

    .faq-answer {
      font-size: 0.9rem;
    }
  }

  @media (max-width: 480px) {
    .faq-question {
      font-size: 0.9rem;
    }

    .faq-answer {
      font-size: 0.85rem;
    }
  }

  @media (max-width: 360px) {
    .faq-question {
      font-size: 0.85rem;
    }

    .faq-answer {
      font-size: 0.8rem;
    }
  }

  @media (max-width: 344px) {
    .faq-item {
      padding: 0.7rem 0.9rem;
    }

    .faq-question {
      font-size: 0.8rem;
    }

    .faq-answer {
      font-size: 0.75rem;
    }
  }

  /* ========== CONTACT SECTION RESPONSIVE ========== */
  @media (max-width: 768px) {
    .contact-item {
      padding: 0.8rem;
    }

    .contact-info {
      font-size: 0.95rem;
    }
  }

  @media (max-width: 480px) {
    .contact-item {
      padding: 0.6rem;
      font-size: 0.9rem;
    }

    .contact-info {
      font-size: 0.9rem;
    }
  }

  /* ========== INTRO SECTION RESPONSIVE ========== */
  @media (max-width: 768px) {
    .intro-container {
      flex-direction: column;
      gap: 2rem;
      padding: 1.5rem;
    }

    .intro-text {
      min-width: 100%;
    }
  }

  @media (max-width: 480px) {
    .intro-container {
      padding: 1rem;
      gap: 1.5rem;
    }
  }

  /* ========== BUTTON RESPONSIVE ========== */
  @media (max-width: 480px) {
    .btn {
      padding: 8px 16px;
      font-size: 0.85rem;
      border-radius: 25px;
    }
  }

  /* ========== OVERLAY TEXT RESPONSIVE ========== */
  @media (max-width: 768px) {
    .overlay h3 {
      font-size: 16px;
    }

    .overlay p {
      font-size: 13px;
    }
  }

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

    .overlay p {
      font-size: 12px;
    }
  }

  /* ========== GENERAL TEXT RESPONSIVE ========== */
  @media (max-width: 768px) {
    body {
      font-size: 15px;
    }
  }

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

  @media (max-width: 360px) {
    body {
      font-size: 13px;
    }
  }

  @media (max-width: 344px) {
    body {
      font-size: 12px;
    }
  }

  /* Responsive images for project cards - adjust with container ratio */
  .project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: transform 300ms ease, opacity 300ms ease;
  }

  /* Disable transitions on mobile */
  @media (max-width: 768px) {
    .project-card img {
      transition: none;
    }
  }

  /* Footer .social-media etc. live in footer.css only */

  /* ============================================
         REPLACEMENT CSS FOR TAILWIND CLASSES
         ============================================ */

  /* Typography */
  .font-bold {
    font-weight: 700;
  }

  .text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .text-white {
    color: #ffffff;
  }

  .text-gray-800 {
    color: #1f2937;
  }

  /* Spacing */
  .py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .pb-20 {
    padding-bottom: 5rem;
  }

  .mb-12 {
    margin-bottom: 3rem;
  }

  .mb-2 {
    margin-bottom: 0.5rem;
  }

  .p-1 {
    padding: 0.25rem;
  }

  .bottom-4 {
    bottom: 1rem;
  }

  .right-4 {
    right: 1rem;
  }

  /* Layout */
  .flex {
    display: flex;
  }

  .flex-col {
    flex-direction: column;
  }

  .flex-1 {
    flex: 1 1 0%;
  }

  .items-center {
    align-items: center;
  }

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

  .w-full {
    width: 100%;
  }

  .h-full {
    height: 100%;
  }

  .h-80 {
    height: 20rem;
  }

  .h-430px {
    height: 430px;
  }

  .block {
    display: block;
  }

  .hidden {
    display: none;
  }

  /* Positioning */
  .relative {
    position: relative;
  }

  .absolute {
    position: absolute;
  }

  .inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .z-10 {
    z-index: 10;
  }

  /* Backgrounds */
  .bg-gray-800 {
    background-color: #1f2937;
  }

  .bg-black {
    background-color: #000000;
  }

  .bg-black-60 {
    background-color: rgba(0, 0, 0, 0.6);
  }

  .bg-gradient-to-t.from-black-30.to-transparent {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  }

  /* Effects */
  .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  .backdrop-blur-sm {
    backdrop-filter: blur(4px);
  }

  .rounded-full {
    border-radius: 9999px;
  }

  .overflow-hidden {
    overflow: hidden;
  }

  .object-cover {
    object-fit: cover;
  }

  .opacity-0 {
    opacity: 0;
  }

  /* Transitions */
  .transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }

  .transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }

  .transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }

  .transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }

  .duration-300 {
    transition-duration: 300ms;
  }

  .cursor-pointer {
    cursor: pointer;
  }

  /* Group hover effects */
  .group:hover .group-hover\:shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }

  .group:hover .group-hover\:opacity-100 {
    opacity: 1;
  }

  .group:hover .group-hover\:opacity-90 {
    opacity: 0.9;
  }

  .group:hover .group-hover\:text-yellow-500 {
    color: #eab308;
  }

  .group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
  }

  /* Hover effects */
  .hover-shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }

  /* Media query for md:group-hover */
  @media (min-width: 768px) {
    .group:hover .md-group-hover-scale-110 {
      transform: scale(1.1);
    }
  }

  /* Project card specific styles */
  .project-card {
    background-color: #1f2937;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    height: 430px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 300ms;
    text-decoration: none;
  }

  .project-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }

  .project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
    transition: transform 300ms ease, opacity 300ms ease;
  }

  .project-card:hover img {
    transform: scale(1.1) !important;
    opacity: 0.7 !important;
  }

  /* Disable hover animations on mobile */
  @media (max-width: 768px) {
    .project-card img {
      transition: none !important;
    }

    .project-card:hover img {
      transform: none !important;
      opacity: 1 !important;
    }

    .project-card:hover {
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

    .project-card:hover .gradient-overlay {
      opacity: 0 !important;
    }

    .project-card:hover .icon-overlay {
      opacity: 0 !important;
    }

    .project-card:hover h3 {
      color: #ffffff !important;
    }
  }

  @media (min-width: 769px) {
    .project-card:hover img {
      transform: scale(1.1) !important;
      opacity: 0.7 !important;
    }
  }

  .project-card .gradient-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 300ms;
  }

  .project-card:hover .gradient-overlay {
    opacity: 0.3;
  }

  .project-card .icon-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    opacity: 0;
    z-index: 10;
    transition: opacity 300ms;
  }

  .project-card:hover .icon-overlay {
    opacity: 1;
  }

  .project-card .icon-container {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    padding: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  .project-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    color: #ffffff;
    transition: color 300ms;
  }

  .project-card:hover h3 {
    color: #eab308;
  }