/* home.css - versi yang sudah ditingkatkan */
:root {
    /* Modern color palette */
    --primary-color: #3366ff;
    --primary-dark: #2952cc;
    --secondary-color: #2d3e50;
    --accent-color: #00c6ff;
    --text-light: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c7a89;
    --card-bg: rgba(255, 255, 255, 0.95);
    
    /* Animation speeds */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  html, body {
    min-height: 100%;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
  }
  
  body {
    background-color: #f8f9fa;
    background-image: url('../image/tes.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    margin: 0;
    opacity: 0;
    transition: opacity 1s ease;
  }
  
  body.loaded {
    opacity: 1;
  }
  
  /* Main Content */
  .main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
  }
  
  /* Refined background zoom animation */
  .animate-bg {
    animation: smoothBgZoom 40s ease-in-out infinite;
  }
  
  @keyframes smoothBgZoom {
    0%, 100% {
      background-size: 100%;
      background-position: center center;
    }
    50% {
      background-size: 110%;
      background-position: center 48%;
    }
  }
  
  /* Modern Hero Section */
  .hero {
    background-color: var(--hero-bg);
    background-image: linear-gradient(135deg, rgba(27, 79, 204, 0.7) 0%, rgba(0, 112, 214, 0.8) 100%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  }
  
  .hero-content {
    max-width: 900px;
    margin: 0 15px;
    padding: 35px 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: transform var(--transition-medium), 
                box-shadow var(--transition-medium);
    animation: heroContentFadeIn 1.2s var(--transition-slow) forwards;
  }
  
  @keyframes heroContentFadeIn {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .hero-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  }
  
  .hero h2 {
    font-size: 48px;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-light);
    text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.25);
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s var(--transition-slow) 0.3s both;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .hero h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transform: translateX(-50%);
    animation: expandWidth 1.2s var(--transition-slow) 0.8s both;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
  }
  
  @keyframes expandWidth {
    from {
      width: 0;
      opacity: 0;
    }
    to {
      width: 70%;
      opacity: 1;
    }
  }
  
  .hero h2 .greeting {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    position: relative;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
  }
  
  .hero p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-light);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15);
    position: relative;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s var(--transition-slow) 0.6s both;
  }
  
  /* Enhanced Button Styles */
  .about-btn {
    display: inline-block;
    background: linear-gradient(45deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: all var(--transition-fast);
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    border: none;
    animation: fadeInUp 0.8s var(--transition-slow) 0.9s both;
  }
  
  .about-btn:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(51, 102, 255, 0.3);
    background-image: linear-gradient(45deg, #ffffff 0%, #f0f5ff 100%);
  }
  
  .about-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%) rotate(30deg);
    transition: transform 0.7s ease;
  }
  
  .about-btn:hover::after {
    transform: translateX(100%) rotate(30deg);
  }
  
  .about-btn i {
    margin-right: 10px;
    transition: transform 0.3s ease;
  }
  
  .about-btn:hover i {
    transform: translateX(-3px);
  }
  
  /* Enhanced Particles Animation */
  .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
  }
  
  .particles::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.4) 1px, transparent 2px),
        radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.3) 1px, transparent 2px),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 1px, transparent 2px),
        radial-gradient(circle at 40% 50%, rgba(255, 255, 255, 0.3) 1px, transparent 2px),
        radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.4) 1px, transparent 2px),
        radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.3) 1px, transparent 2px),
        radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.4) 1px, transparent 2px),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.3) 1px, transparent 2px),
        radial-gradient(circle at 90% 60%, rgba(255, 255, 255, 0.4) 1px, transparent 2px);
    background-size: 150px 150px;
    opacity: 0.7;
    animation: particlesMovement 50s linear infinite;
  }
  
  @keyframes particlesMovement {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: 150px 150px;
    }
  }
  
  /* TESTIMONIAL SECTION - PREMIUM REDESIGN */
  .testimonials {
    padding: 0px 0;
    background-color: var(--hero-bg);
    background-image: linear-gradient(135deg, rgba(27, 79, 204, 0.7) 0%, rgba(0, 112, 214, 0.8) 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
  }
  
  .testimonials h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-light);
    margin-top: 60px;     /* Tambahkan margin-top untuk menurunkan posisi */
    margin-bottom: 30px;  /* Kurangi margin-bottom agar lebih dekat dengan konten di bawah */
    font-weight: 700;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s var(--transition-slow) both;
  }
  
  .testimonials .separator {
    position: relative;
    height: 4px;
    width: 100px;
    margin: 0 auto 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    z-index: 1;
    animation: fadeInUp 0.8s var(--transition-slow) 0.2s both;
  }
  
  .testimonials .separator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
    background: var(--accent-color);
    border-radius: 4px;
    animation: moveLight 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.7);
  }
  
  @keyframes moveLight {
    0% {
      left: -40px;
    }
    100% {
      left: 140px;
    }
  }
  
  /* Perbaikan Animasi Slide di Section Testimonial */

.testimonial-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  min-height: 260px;
  z-index: 1;
  animation: fadeInUp 0.8s var(--transition-slow) 0.4s both;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  /* Ubah transform untuk menghindari blinking */
  transform: translateX(30px);
  /* Ubah transition agar lebih smooth */
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
  visibility: hidden;
  z-index: 1;
  /* Menambahkan backface-visibility untuk mencegah glitch */
  backface-visibility: hidden;
  /* Menambahkan will-change untuk mengoptimalkan rendering */
  will-change: opacity, transform;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  z-index: 5;
  /* Menambahkan position relative untuk memastikan layer benar */
  position: relative;
}

.testimonial-slide.prev {
  opacity: 0;
  transform: translateX(-30px);
  visibility: hidden;
  z-index: 0;
  /* Menambahkan pointer-events none saat tidak aktif */
  pointer-events: none;
}

/* Tambahkan class next untuk animasi yang lebih smooth */
.testimonial-slide.next {
  opacity: 0;
  transform: translateX(30px);
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Menambahkan perbaikan untuk animasi content di dalam slide */
.testimonial-content {
  background-color: var(--card-bg);
  border-radius: 5px;
  padding: 35px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  position: relative;
  margin: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  transition: box-shadow var(--transition-medium);
  /* Perbaikan untuk mencegah blinking */
  transform: translateZ(0);
}

/* Memperbaiki animasi content fade-in agar tidak bertabrakan */
.testimonial-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  font-weight: 400;
  text-align: justify; /* Membuat teks rata kiri-kanan */
  padding-left: 20px;
  padding-right: 20px; /* Tambahkan padding di kanan */
  text-indent: 15px;
}

/* Ubah animasi untuk testimonial author */
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Pastikan selalu rata kiri */
  margin-top: 20px;
  padding-left: 20px; /* Sejajarkan dengan paragraf */
}

/* Update quote-icon untuk memberikan jarak dengan teks */
.quote-icon {
  font-size: 80px;
  color: var(--primary-color);
  position: absolute;
  top: 8px;
  left: 18px;
  opacity: 0.1;
  font-family: Georgia, serif;
  animation: quoteGlow 4s ease-in-out infinite;
  z-index: 0; /* Memastikan icon berada di belakang teks */
}
  
  @keyframes quoteGlow {
    0%, 100% {
      opacity: 0.1;
      text-shadow: none;
    }
    50% {
      opacity: 0.2;
      text-shadow: 0 0 20px rgba(51, 102, 255, 0.5);
    }
  }
  
  .testimonial-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    font-weight: 400;
    opacity: 0;
    transform: translateY(15px);
    animation: contentFadeIn 0.5s var(--transition-medium) forwards;
    animation-delay: 0.3s;
  }
  
  @keyframes contentFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(15px);
    animation: contentFadeIn 0.5s var(--transition-medium) forwards;
    animation-delay: 0.5s;
  }
  
  .author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    /* Menghapus transition */
  }
  
  .testimonial-content:hover .author-img {
    /* Menghapus transformasi dan perubahan saat hover */
    border-color: var(--primary-color);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  }
  
  .author-info {
    display: flex;
    flex-direction: column;
  }
  
  .author-info h4 {
    margin: 0;
    font-size: 18px;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0; /* Pastikan tidak ada padding */
    text-align: left;
  }
  
  .author-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    padding: 0; /* Pastikan tidak ada padding */
    text-align: left;
    text-indent: 0; /* Sangat penting - hilangkan text-indent */
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s var(--transition-slow) 0.6s both;
  }
  
  .testimonial-dots {
    display: flex;
    justify-content: center;
    margin-right: 25px;
  }
  
  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
  }
  
  .dot::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-fast);
  }
  
  .dot:hover {
    /* Menghapus efek transform scale */
    background-color: rgba(255, 255, 255, 0.7);
  }
  
  .dot:hover::after {
    opacity: 1;
    transform: scale(1);
  }
  
  .dot.active {
    background-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.8);
    /* Menghapus efek transform scale */
  }
  
  .dot.active::after {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(0, 198, 255, 0.6);
  }
  
  .testimonial-arrows {
    display: flex;
  }
  
  .arrow {
    background-color: rgba(255, 255, 255, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0 6px;
    transition: all var(--transition-fast);
    font-size: 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  
  .arrow:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    /* Menghapus transform scale */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 198, 255, 0.5);
  }
  
  .arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff00 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%) rotate(30deg);
    transition: transform 0.7s ease;
  }
  
  .arrow:hover::before {
    transform: translateX(100%) rotate(30deg);
  }
  
  /* Footer sparkle effects */
  footer {
    margin-top: auto;
    width: 100%;
    position: relative;
    background-color: rgba(237, 237, 237, 0.9);
    padding: 20px 0;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(255, 254, 254, 0.1);
  }
  
  footer .container {
    position: relative;
    z-index: 1;
  }
  
  footer p {
    color: #000000;
    opacity: 0.9;
    text-align: center;
    margin: 0;
    font-size: 15px;
    position: relative;
    z-index: 2;
  }
  
  footer .sparkle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 4px;
    height: 4px;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  }
  
  footer .sparkle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation: sparkle 4s linear infinite;
  }
  
  footer .sparkle:nth-child(2) {
    top: 60%;
    left: 40%;
    width: 5px;
    height: 5px;
    animation: sparkle 5s linear infinite;
  }
  
  footer .sparkle:nth-child(3) {
    top: 30%;
    left: 60%;
    width: 3px;
    height: 3px;
    animation: sparkle 7s linear infinite;
  }
  
  footer .sparkle:nth-child(4) {
    top: 70%;
    left: 80%;
    width: 6px;
    height: 6px;
    animation: sparkle 6s linear infinite;
  }
  
  @keyframes sparkle {
    0% { transform: scale(0); opacity: 0; }
    25% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.5); opacity: 0.5; }
    75% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
  }
  
  /* Page load effect */
  @keyframes pageLoad {
    from { 
      opacity: 0;
      transform: translateY(20px);
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Media queries for responsiveness */
  @media (max-width: 992px) {
    .hero {
      min-height: 460px;
      padding: 100px 0;
    }
  
    
  
    .hero h2 {
      font-size: 42px;
    }
  
    .hero p {
      font-size: 17px;
    }
  
    .testimonials {
      padding: 60px 0;
    }
  
    .testimonial-content {
      padding: 30px;
    }
  }
  
  @media (max-width: 768px) {
    body {
      background-position: center center;
    }
    
    .hero {
      padding: 80px 0;
      min-height: 400px;
    }
    
    
    .hero h2 {
      font-size: 36px;
      margin-bottom: 20px;
    }
    
    .hero h2 .greeting {
      font-size: 28px;
    }
    
    .hero h2::after {
      bottom: -8px;
      height: 2px;
    }
    
    .hero p {
      font-size: 16px;
      line-height: 1.7;
      margin-bottom: 25px;
    }
    
    .about-btn {
      font-size: 14px;
      padding: 12px 28px;
    }
    
    .testimonials {
      padding: 50px 0;
    }
    
    .testimonial-slider {
      min-height: 240px;
    }
    
    .testimonial-content {
      padding: 25px;
    }
    
    .testimonial-content p {
      font-size: 15px;
      line-height: 1.7;
    }
    
    .author-img {
      width: 50px;
      height: 50px;
    }
    
    .author-info h4 {
      font-size: 16px;
    }
    
    .testimonial-controls {
      margin-top: 30px;
    }
    
    .dot {
      width: 10px;
      height: 10px;
      margin: 0 5px;
    }
    
    .arrow {
      width: 40px;
      height: 40px;
      font-size: 16px;
    }
  }
  
  @media (max-width: 576px) {
    .hero {
      padding: 60px 0;
      min-height: 350px;
    }
    
   
    .hero h2 {
      font-size: 28px;
      margin-bottom: 15px;
    }
    
    .hero h2 .greeting {
      font-size: 22px;
    }
}

.services {
  padding: 80px 0 30px; /* Kurangi padding-bottom */
  margin-bottom: -20px; /* Tambahkan margin-bottom negatif moderat */
  background-color: rgba(248, 249, 250, 0.97); /* Nilai alpha 0.95 untuk transparansi sangat sedikit */
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-medium), 
              box-shadow var(--transition-medium);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 32px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 0 15px rgba(51, 102, 255, 0.3);
  transition: all var(--transition-medium);
}

.service-card:hover .service-icon {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.service-card h3::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.service-card:hover h3::after {
  width: 70px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Media queries untuk responsivitas */
@media (max-width: 992px) {
  .services {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .services {
    padding: 50px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .service-card {
    padding: 30px 25px;
  }
}

/* SKILL BADGES SECTION */
.skills-section {
  padding: 80px 0 60px; /* Tambahkan padding-top yang lebih besar */
  margin-top: -20px; /* Tambahkan margin-top negatif moderat */
  background-color: rgba(248, 249, 250, 0.97);
  position: relative;
  overflow: hidden;
}

.skills-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 0h1v1H9V0zm11 0h1v1h-1V0zm0 11h1v1h-1v-1zm-11 0h1v1H9v-1zm0 11h1v1H9v-1zm11 0h1v1h-1v-1zm-11 11h1v1H9v-1zm11 0h1v1h-1v-1zm0 11h1v1h-1v-1zm-11 0h1v1H9v-1z' fill='%233366ff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.skills-title {
  text-align: center;
  margin-bottom: 40px;
  margin-top: -30px; /* Nilai negatif yang moderat */
  position: relative;
}

.skills-title h2 {
  font-size: 36px;
  color: var(--text-dark);
  font-weight: 700;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.skills-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: translateX(-50%);
  border-radius: 3px;
}

.skills-container {
  display: flex;
  justify-content: flex-start; /* Ubah dari center agar bergerak dari kiri */
  flex-wrap: nowrap;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
  overflow-x: auto; /* Kembalikan overflow agar bisa di-scroll manual */
  cursor: grab; /* Tambahkan cursor grab untuk indikasi bisa di-drag */
  scroll-behavior: smooth; /* Smooth scrolling */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Sembunyikan scrollbar Firefox */
  -ms-overflow-style: none; /* Sembunyikan scrollbar IE dan Edge */
  position: relative;
  /* Konfigurasi untuk animasi */
  animation: scrollSkills 20s linear infinite; /* Animasi 20 detik bergerak horizontal */
  animation-play-state: running;
}

.skills-container::-webkit-scrollbar {
  height: 4px;
}

.skills-container::-webkit-scrollbar-thumb {
  background-color: rgba(51, 102, 255, 0.2);
  border-radius: 4px;
}

.skill-badge {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInSkill 0.8s forwards;
  animation-delay: calc(var(--skill-index) * 0.1s);
}

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

.skill-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  opacity: 0.07;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.skill-badge:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(var(--hover-glow), 0.3);
}

.skill-badge:hover::before {
  opacity: 0.15;
}

.skill-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  overflow: hidden; 
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Pastikan gambar tampil penuh tanpa terpotong */
  transition: all 0.4s ease;
}

.skill-badge:hover .skill-icon img {
  transform: scale(1.15) rotate(5deg);
}

.skill-badge:hover .skill-icon {
  transform: scale(1.15) rotate(5deg);
}

.skill-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.skill-badge:hover .skill-name {
  transform: translateX(5px);
  color: var(--icon-color);
}

/* Specific styles for each skill */
.skill-html {
  --gradient-start: #E44D26;
  --gradient-end: #F16529;
  --icon-color: #E44D26;
  --hover-glow: 228, 77, 38;
}

.skill-css {
  --gradient-start: #264DE4;
  --gradient-end: #2965F1;
  --icon-color: #264DE4;
  --hover-glow: 38, 77, 228;
}

.skill-figma {
  --gradient-start: #F24E1E;
  --gradient-end: #FF7262;
  --icon-color: #F24E1E;
  --hover-glow: 242, 78, 30;
}

.skill-canva {
  --gradient-start: #00C4CC;
  --gradient-end: #7D2AE8;
  --icon-color: #00C4CC;
  --hover-glow: 0, 196, 204;
}

.skill-lightroom {
  --gradient-start: #31A8FF;
  --gradient-end: #2B67DE;
  --icon-color: #31A8FF;
  --hover-glow: 49, 168, 255;
}

.skill-capcut {
  --gradient-start: #00F2EA;
  --gradient-end: #FF3E3E;
  --icon-color: #00F2EA;
  --hover-glow: 0, 242, 234;
}

/* Responsive design */
@media (max-width: 768px) {
  .skills-section {
    padding: 40px 0;
  }
  
  .skills-title h2 {
    font-size: 28px;
  }
  
  .skills-container {
    gap: 15px;
  }
  
  .skill-badge {
    padding: 12px 20px;
  }
  
  .skill-icon {
    width: 30px;
    height: 30px;
    font-size: 18px;
    margin-right: 10px;
  }
  
  .skill-name {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .skills-container {
    flex-direction: column;
    align-items: center;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .skill-badge {
    width: 100%;
    justify-content: center;
  }
}

/* Hanya modifikasi untuk menghilangkan scrollbar */
.skills-container {
  /* Pertahankan semua property yang sudah ada */
  overflow-x: hidden; /* Ubah dari auto ke hidden untuk menghilangkan scrollbar */
}

/* Hilangkan styling scrollbar */
.skills-container::-webkit-scrollbar {
  display: none;
}

.skills-container {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE dan Edge */
}

.services-title {
  text-align: center;
  margin-bottom: 40px;
  margin-top: -50px; /* Menambahkan margin negatif untuk mendorong judul ke atas */
  position: relative;
}
.services-title h2 {
  font-size: 36px;
  color: var(--text-dark);
  font-weight: 700;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.services-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: translateX(-50%);
  border-radius: 3px;
}

@media (max-width: 768px) {
  body {
    background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    background-size: initial;
    background-position: initial;
    background-attachment: initial;
  }
  
  .animate-bg {
    animation: none;
  }
}

/* Definisi animasi simpleFadeIn untuk header */
@keyframes simpleFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animasi untuk header saat halaman dimuat */
body.loaded header {
  opacity: 0;
  animation: simpleFadeIn 0.8s ease-out forwards;
}

