/* Reset dan Base Styles */
/* Ukuran scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

/* Warna track (bagian belakang scrollbar) */
::-webkit-scrollbar-track {
  background: none;
}

/* Warna thumb (bagian yang digeser) */
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* Hover pada thumb */
::-webkit-scrollbar-thumb:hover {
  background: var(--dark);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #022f4c;
  --secondary: #03314d;
  --accent: #034979;
  --light: #f8fafc;
  --dark: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 0;
  height: 5px;
  background: var(--gradient);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
  transition: width 0.6s ease;
}

.section-title.visible h2::after {
  width: 80px;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 30px auto 0;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.3s;
}

.section-title.visible p {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(3, 73, 121, 0.3);
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(3, 73, 121, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  box-shadow: none;
}

.btn-outline:hover {
  background: white;
  color: var(--accent);
}

/* Header & Navigation - Diperbarui */
header {
  background: transparent;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  transition: padding 0.3s ease;
}

header.scrolled .navbar {
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  height: 40px;
  width: 120px;
  overflow: hidden;
}

.logo img {
  height: 100%;
  transition: all 0.4s ease;
  position: absolute;
  filter: blur(0);
}

/* PERUBAHAN: Transisi logo dari atas-bawah dengan motion blur */
.logo1 {
  transform: translateY(0);
}

.logo2 {
  transform: translateY(-40px);
}

header.scrolled .logo1 {
  transform: translateY(40px);
  filter: blur(5px);
  opacity: 0.5;
}

header.scrolled .logo2 {
  transform: translateY(0);
  filter: blur(0);
  opacity: 1;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  font-size: 0.95rem;
  padding: 8px 0;
}

header.scrolled .nav-links a {
  color: var(--dark);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: white;
  bottom: 0;
  left: 0;
  transition: width 0.3s;
}

header.scrolled .nav-links a::after {
  background: var(--gradient);
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

header.scrolled .nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
}

header.scrolled .hamburger {
  color: var(--primary);
}

/* Hero Section - Diperkecil */
.hero {
  background: linear-gradient(
      135deg,
      rgba(2, 47, 76, 0.9) 0%,
      rgba(3, 65, 121, 0.8) 100%
    ),
    url("../images/thres.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 200px 0 150px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  bottom: -75px;
  left: -75px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* About Section */
.about {
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(2, 47, 76, 0.03);
  border-radius: 50%;
  top: -250px;
  right: -250px;
  z-index: -1;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 25px;
  line-height: 1.3;
}

.about-text p {
  margin-bottom: 25px;
  color: var(--text-light);
  font-size: 1.05rem;
  text-align: justify;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-text {
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid var(--accent);
  border-radius: 10px;
  top: -20px;
  left: -20px;
  z-index: -1;
  transition: all 0.5s ease;
}

.about-image:hover::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid var(--accent);
  border-radius: 10px;
  top: -15px;
  left: -15px;
  z-index: -1;
}

/* Services Section - DIPERBAIKI untuk Responsif */
.services {
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  position: relative;
}

.services::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(2, 47, 76, 0.03);
  border-radius: 50%;
  bottom: -150px;
  left: -150px;
  z-index: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  padding: 40px 30px;
  text-align: center;
}

.service-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  top: 0;
  left: 0;
}

.service-card:hover {
  transform: translateY(15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 25px;
  box-shadow: 0 10px 20px rgba(3, 73, 121, 0.2);
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.service-content p {
  color: var(--text-light);
}

/* Portfolio Section - DIPERBAIKI untuk Responsif */
.portfolio {
  position: relative;
}

.portfolio-arrow {
  position: relative;
  color: white;
  transform: translateX(9.5rem);
  transition: all 0.2s ease;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  justify-items: center;
}

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 300px;
  width: 350px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-item img {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(2, 47, 76, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Desktop: Overlay hanya muncul saat hover */
@media (min-width: 769px) {
  .portfolio-overlay {
    opacity: 0;
  }

  .portfolio-item:hover .portfolio-overlay {
    opacity: 1;
  }

  .portfolio-title-mobile {
    display: none;
  }
}

/* Mobile: Judul di luar gambar */
@media (max-width: 768px) {
  .portfolio-item {
    height: 250px;
    width: 100%;
    max-width: 400px;
  }

  .portfolio-overlay {
    display: none;
  }

  .portfolio-title-mobile {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 15px auto 0;
    text-align: center;
  }

  .portfolio-title-mobile h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
  }

  .portfolio-title-mobile p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
  }
}

.portfolio-overlay h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Testimonials */
.testimonials {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -200px;
  right: -200px;
}

.testimonials::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -150px;
  left: -150px;
}

.testimonials .section-title h2 {
  color: white;
}

.testimonials .section-title h2::after {
  background: rgba(255, 255, 255, 0.5);
}

.testimonials .section-title p {
  color: rgba(255, 255, 255, 0.8);
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  margin: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  color: white;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.author-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
  display: flex;
  gap: 60px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 40px;
  color: var(--text-light);
  font-size: 1.05rem;
}

.contact-details {
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-icon {
  background: var(--gradient);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(3, 73, 121, 0.3);
}

.contact-text h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.contact-text p {
  margin-bottom: 0;
}

.contact-form {
  flex: 1;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border 0.3s;
  font-family: "Open Sans", sans-serif;
}

.form-control:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 73, 121, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* Untuk perangkat mobile */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    font-size: 28px;
  }
}

/* Untuk perangkat sangat kecil */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}

/* Footer - Diperbarui dengan Logo2 */
footer {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo img {
  height: 50px;
}

.footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  color: white;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--accent);
  bottom: 0;
  left: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links a i {
  margin-right: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s;
  font-size: 1rem;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Animasi */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* Animasi tambahan yang baru */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Animasi untuk logo */
.logo h1 {
  position: relative;
  overflow: hidden;
}

.logo h1::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.logo:hover h1::after {
  left: 100%;
}

/* Animasi untuk tombol */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Animasi untuk ikon layanan */
.service-icon {
  position: relative;
  overflow: hidden;
}

.service-icon::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.service-card:hover .service-icon::before {
  opacity: 1;
  top: -30%;
  left: -30%;
}

/* Animasi untuk form input */
.form-control {
  transition: all 0.3s ease;
}

.form-control:focus {
  transform: translateY(-2px);
}

/* Animasi untuk gambar portfolio */
.portfolio-item {
  overflow: hidden;
}

.portfolio-overlay {
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

/* Floating particles di background */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

/* Animasi untuk testimonial */
.testimonial {
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Animasi scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-indicator::before {
  content: "";
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

/* Animasi baru yang lebih halus */
@keyframes subtleGlow {
  0%,
  100% {
    box-shadow: 0 5px 15px rgba(3, 73, 121, 0.3);
  }
  50% {
    box-shadow: 0 5px 20px rgba(3, 73, 121, 0.5);
  }
}

@keyframes textShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

/* Animasi untuk service cards */
.service-card {
  animation: subtleGlow 3s ease-in-out infinite;
}

/* Animasi untuk about image */
.about-image::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: 10px;
  top: 10px;
  left: 10px;
  z-index: -2;
  animation: morph 8s ease-in-out infinite;
}

/* Responsive - DIPERBAIKI untuk Portfolio dan Layanan */
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
  }

  .about-image::before {
    display: none;
  }
}

@media (max-width: 768px) {
  html {
    overflow-x: hidden;
  }

  .navbar {
    padding: 20px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    transition: right 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .nav-links a {
    color: var(--dark);
    font-size: 1.1rem;
  }

  .hamburger {
    display: block;
    z-index: 1002;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .particles {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  /* PERBAIKAN UTAMA: Portfolio di mobile */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }

  .portfolio-item {
    max-width: 100%;
    height: 250px;
    width: 100%;
    max-width: 400px;
  }

  .portfolio-overlay {
    display: none;
  }

  .portfolio-title-mobile {
    display: block;
    margin-top: 15px;
    text-align: center;
    width: 100%;
    max-width: 400px;
  }

  .portfolio-title-mobile h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
  }

  .portfolio-title-mobile p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Perbaikan untuk layanan di mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  .portfolio-grid {
    gap: 15px;
  }

  .portfolio-item {
    height: 220px;
  }

  .portfolio-title-mobile h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .portfolio-title-mobile p {
    font-size: 0.85rem;
  }

  .service-card {
    padding: 25px 15px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.7rem;
  }

  .service-content h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 360px) {
  .portfolio-item {
    height: 200px;
  }

  .services-grid {
    gap: 15px;
  }
}
