/* 
   Konstruksi Handal - Main Stylesheet
   Colors: Dark Blue (#000884), Gold (#eab700), White (#ffffff)
*/

:root {
  --primary-color: #000884;
  --primary-dark: #00055a;
  --accent-color: #eab700;
  --accent-hover: #c99d00;
  --text-dark: #1a1a1a;
  --text-gray: #555555;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  --container-width: 1200px;
  --section-spacing: 80px;
  --border-radius: 12px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-gray);
  line-height: 1.6;
  background-color: var(--bg-white);
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Utility Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}
.text-gold {
  color: var(--accent-color);
}
.text-white {
  color: var(--text-light) !important;
}
.bg-light {
  background-color: var(--bg-light);
}
.bg-blue {
  background-color: var(--primary-color);
}
.mt-50 {
  margin-top: 50px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--text-light);
  color: var(--text-light);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.btn-outline-dark {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-dark:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Navigation */
.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0; /* Removed padding to allow full-width topnav */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar.hidden {
  transform: translateY(-100%);
}

/* Top Navigation Bar */
.topnav-wrapper {
  /* background-color: var(--primary-color); */
  color: var(--text-dark);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topnav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
}

.topnav-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.topnav-socmed {
  display: flex;
  gap: 20px;
}

.topnav-socmed a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  transition: var(--transition);
  font-size: 0.9rem;
}

.topnav-socmed a:hover {
  color: var(--primary-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px; /* Added padding here */
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  padding-right: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a.active {
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 50px;
  border: 1px solid var(--primary-color);
}

.nav-links .btn-nav {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 25px;
  border-radius: 50px;
}

.nav-links .btn-nav:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 50vh;
  min-height: 500px;
  background-color: var(--primary-color); /* Fallback */
  background-image: url("../img/headers/home.avif");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Neutral shade with subtle blue and gold accents */
  background: linear-gradient(
    120deg,
    rgba(20, 20, 20, 0.95) 0%,
    rgba(40, 45, 60, 0.85) 60%,
    rgba(234, 183, 0, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* Sections General */
.section {
  padding: var(--section-spacing) 0;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
}

/* Features / Why Choose Us */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--accent-color);
}

.icon-box {
  width: 70px;
  height: 70px;
  background-color: rgba(0, 8, 132, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--primary-color);
  font-size: 1.8rem;
  transition: var(--transition);
}

.feature-card:hover .icon-box {
  background-color: var(--primary-color);
  color: var(--accent-color);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-gray);
}

/* Services Preview */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-img {
  height: 240px;
  background-color: #ddd;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  background-image: linear-gradient(
      45deg,
      #f0f0f0 25%,
      transparent 25%,
      transparent 75%,
      #f0f0f0 75%,
      #f0f0f0
    ),
    linear-gradient(
      45deg,
      #f0f0f0 25%,
      transparent 25%,
      transparent 75%,
      #f0f0f0 75%,
      #f0f0f0
    );
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.service-content p,
.service-content ul {
  font-size: 0.95rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 15px;
}

.read-more:hover {
  gap: 12px;
}

/* Portfolio Preview */
.portfolio-grid {
  margin-bottom: 40px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 300px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.portfolio-item .portfolio-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.portfolio-item .portfolio-img .img-placeholder {
  background-color: #ccc;
  object-fit: cover;
  object-position: center;
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--text-light);
  transform: translateY(0);
  transition: var(--transition);
}

.portfolio-info h4 {
  color: var(--text-light);
  margin-bottom: 5px;
}

.portfolio-info p {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Testimonials */
.testimonials {
  position: relative;
  overflow: hidden;
  padding-bottom: 160px; /* Increased padding for CTA overlap */
}

.testimonials .container {
  padding-bottom: 50px;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border: 20px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

/* Marquee Container */
.testimonial-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

/* Marquee Track */
.testimonial-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: var(--border-radius);
  width: 400px; /* Fixed width for consistent sizing */
  flex-shrink: 0; /* Prevent shrinking */
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.stars {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.client-info h4 {
  color: var(--text-light);
  margin-bottom: 5px;
}

.client-info p {
  color: var(--accent-color);
  font-size: 0.9rem;
}

.client-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.client-img img {
  width: 100%; /* Lebar gambar mengikuti wadah */
  height: 100%; /* Tinggi gambar mengikuti wadah */
  object-fit: cover; /* KUNCI UTAMA: Memotong gambar agar pas tanpa gepeng */
}

/* CTA Section */
.cta-section {
  padding: 0;
  margin-top: -120px; /* Pull up into Testimonials */
  margin-bottom: -120px; /* Pull Footer up */
  position: relative;
  z-index: 10;
  /* background: linear-gradient(to bottom, var(--primary-color) 50%, #000435 50%); */
}

.index-cta-section {
  background: linear-gradient(to bottom, var(--primary-color) 50%, #000435 50%);
}

.cta-box {
  background-color: var(--accent-color);
  border-radius: var(--border-radius);
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.cta-content p {
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.cta-btn .btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
}

.cta-btn .btn:hover {
  background-color: var(--primary-dark);
}

/* Footer */
.footer {
  background-color: #000435; /* Darker than primary */
  color: rgba(255, 255, 255, 0.7);
  padding-top: 120px; /* Space for CTA overlap */
  padding-bottom: 30px;
}

.footer-contact {
  padding-top: 30px;
}

.footer .container {
  padding-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 20px;
}

.footer-col p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.footer-col h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-list li i {
  color: var(--accent-color);
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
}

/* Page Header (for other pages) */
.page-header {
  background-color: var(--primary-color);
  /* Default background */
  background-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  padding: 140px 0 80px;
  text-align: center;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

/* Specific Page Headers */
.header-about {
  background-image: url("../img/headers/aboutus.avif");
}

.header-services {
  background-image: url("../img/headers/services.avif");
}

.header-portfolio {
  background-image: url("../img/headers/portofolio.avif");
}

.header-gallery {
  background-image: url("../img/headers/gallery.avif");
}

.header-client {
  background-image: url("../img/headers/client.avif");
}

.header-contact {
  background-image: url("../img/headers/contact.avif");
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  z-index: -1;
}

/* Creative Header Overrides */
.header-about::before {
  background: linear-gradient(
    to right,
    rgba(20, 20, 20, 0.9),
    rgba(50, 50, 50, 0.7)
  );
}

.header-services::before {
  background: linear-gradient(135deg, rgba(0, 8, 132, 0.8), rgba(0, 0, 0, 0.9));
}

.header-portfolio::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.9)
  );
}

.header-gallery::before {
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.header-client::before {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8),
    rgba(234, 183, 0, 0.15)
  );
}

.header-contact::before {
  background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(30, 30, 30, 0.9));
}

.page-header h1 {
  color: var(--text-light);
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb span {
  margin: 0 10px;
}

/* Contact Form */
.contact-form-container {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 8, 132, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Responsive Design */
@media (max-width: 1150px) {
  /* Navigation adjustments for smaller screens */
  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .nav-links .btn-nav {
    padding: 8px 15px;
  }
}

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 950px) and (min-width: 769px) {
  /* Navigation adjustments for smaller screens */
  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .nav-links .btn-nav {
    padding: 6px 12px;
  }
}

@media (max-width: 768px) {
  .topnav-wrapper {
    display: none; /* Hide topnav on mobile */
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    height: auto;
    padding: 70px 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

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

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .about-img {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col:nth-child(1),
  .footer-col:nth-child(4) {
    grid-column: 1 / -1;
  }

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

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cta-box {
    padding: 40px 20px;
  }
}

.vision .container {
  padding-bottom: 100px;
}

.testi .container {
  padding-bottom: 100px;
}

.process .container {
  padding-bottom: 100px;
}

.process-steps p {
  font-size: 0.95rem;
}

.portfolio .container {
  padding-bottom: 100px;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  color: white;
}

/* Gallery Masonry Layout (Pinterest Style) */
.gallery-masonry {
  column-count: 3;
  column-gap: 24px;
  padding-bottom: 40px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background-color: var(--bg-white);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 4px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 0;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.05s;
}

.gallery-item:hover .gallery-overlay h4,
.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

/* Responsive Gallery */
@media (max-width: 992px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 300px) {
  .gallery-masonry {
    column-count: 1;
  }
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg-white);
  border: 4px solid var(--accent-color);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--bg-white);
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.timeline-date {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-content h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-gray);
}

/* Timeline Responsive */
@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-item.left::after,
  .timeline-item.right::after {
    left: 21px;
  }
}

/* Timeline Client List */
.timeline-client-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.timeline-client-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}
.delay-500 {
  transition-delay: 0.5s;
}

/* Hero Animation Override */
.hero-content.animate-on-scroll {
  transform: translateY(0); /* Start centered */
}

.section-tukang {
  padding-bottom: 80px;
}

/* Compact Vision Mission (Home Page) */
.vision-mission-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: var(--border-radius);
  margin-top: 50px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.vm-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1;
}

.vm-icon {
  background-color: var(--primary-color);
  color: var(--accent-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.vm-content h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.vm-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.4;
  color: var(--text-gray);
}

.vm-divider {
  width: 1px;
  height: 60px;
  background-color: var(--border-color);
  margin: 0 30px;
}

@media (max-width: 768px) {
  .vision-mission-compact {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    padding: 25px;
  }

  .vm-divider {
    display: none;
  }

  .vm-item {
    width: 100%;
  }
}

/* =========================================
   PORTFOLIO MODAL STYLES
   ========================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 9999; /* Increased z-index */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1000px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-media {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-media img,
.carousel-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* Navigation Buttons */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-dark);
}

.prev-btn {
  left: 0;
}
.next-btn {
  right: 0;
}

/* Caption */
.modal-caption {
  text-align: center;
  color: white;
  margin-top: 20px;
}

.modal-caption h3 {
  color: var(--accent-color);
  margin-bottom: 5px;
}

/* Close Button */
.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--accent-color);
  text-decoration: none;
  cursor: pointer;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .carousel-container {
    height: 50vh;
  }
  .prev-btn,
  .next-btn {
    padding: 10px;
    font-size: 18px;
  }
}
