/* =========================================================
   🌐 CV ARTOMORO WEBSITE STYLESHEET
   Clean Layout • Responsive Design • Organized Structure
   ========================================================= */

/* =========================
   CSS VARIABLES FOR CONSISTENCY
   ========================= */
:root {
  --primary-color: #f59e0b;
  --secondary-color: #facc15;
  --accent-color: #eab308;
  --text-color: #222;
  --bg-color: #f9f9f9;
  --white: #fff;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* =========================
   GLOBAL STYLES
   ========================= */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px var(--shadow);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.logo img {
  height: 45px;
  width: 200px;
  display: block;
  object-fit: contain;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--text-color);
  font-weight: bold;
  text-decoration: none;
  transition: var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--accent-color);
}

/* =========================
   HAMBURGER MENU - IMPROVED
   ========================= */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  transition: var(--transition);
}

.hamburger:hover {
  background: rgba(245, 158, 11, 0.2);
  transform: scale(1.05);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 3px 0;
  transition: 0.4s;
  border-radius: 2px;
}

.hamburger.active {
  background: rgba(245, 158, 11, 0.2);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
  background: var(--primary-color);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
  background: var(--primary-color);
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 80px);
  padding: 40px 30px;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('assets/images/bore-pile/proyek-bore-pile-gudang-pupuk-riau.webp') center center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 990px;
  padding-top: 65px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: auto;
}

.hero-brand {
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 0rem;
  margin-bottom: 40px;
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.1rem);
  line-height: 1.7;
  color: #f5f5f5;
  margin-bottom: 40px;
}

/* =========================
   SECTION BASE
   ========================= */
section {
  scroll-margin-top: 100px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 2rem);
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

section::before {
  content: "";
  display: block;
  height: 100px;
  margin-top: -100px;
}

/* =========================
   ABOUT SECTION
   ========================= */
.about-section {
  min-height: auto;
  background: linear-gradient(180deg, #f5f5f5 0%, #fffaf0 100%);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 2rem);
  overflow-x: hidden;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 600px;
  min-width: 300px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.about-image {
  flex: 1 1 450px;
  display: flex;
  justify-content: center;
  height: 460px;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 25px var(--shadow);
  transition: var(--transition);
}

.about-image img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.about-text p {
  color: #444;
  line-height: 1.9;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  margin-bottom: 1.2rem;
  text-align: justify;
}

.about-vision-mission {
  text-align: justify;
  margin-top: 1rem;
  padding: 0 1rem;
}

.sub-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 1rem;
  position: relative;
}

.sub-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 0.5rem auto 1rem;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 700px;
}

.about-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-color);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.7;
  text-align: justify;
}

.about-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.closing-text {
  text-align: center;
  font-weight: 500;
  margin-top: 1.5rem;
  color: var(--text-color);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.closing-text a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
}

.closing-text a:hover {
  text-decoration: underline;
}

.tagline {
  text-align: center;
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  line-height: 1.4;
  color: var(--text-color);
}

.tagline-top {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tagline-bottom {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-container,
.about-vision-mission,
.closing-text,
.tagline {
  position: relative;
  z-index: 2;
}

/* =========================
   SERVICES SECTION
   ========================= */
#services {
  min-height: 100vh;
  background-color: #fff7e6;
  justify-content: center;
  flex-direction: column;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.card:hover i {
  transform: rotate(360deg);
}

.card h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.card p {
  text-align: justify;
  color: #000;
}

/* =========================
   PORTFOLIO SECTION
   ========================= */
#portfolio {
  min-height: 90vh;
  background-color: #fefefe;
  justify-content: center;
  flex-direction: column;
}

.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: center;
  box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.03);
}

/* Perubahan: Center align untuk h3 di dalam .portfolio-cards */
.portfolio-cards h3 {
  text-align: center;
}

.portfolio-card {
  background: var(--white);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Perubahan: Justify align untuk paragraf (p) di dalam .portfolio-card */
.portfolio-card p {
  text-align: justify;
}

.portfolio-card video,
.portfolio-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

/* =========================
   TESTIMONIALS SECTION
   ========================= */
#testimonials {
  min-height: 85vh;
  background-color: #fff7e6;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.testimonials {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.testimonial-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 0 2rem;
}

.testimonial {
  flex: 1 1 300px;
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial p {
  font-style: italic;
  text-align: justify;
  margin-bottom: 3rem;
}

.testimonial cite {
  font-weight: bold;
  color: #f5a623;
}

/* =========================
   FAQ SECTION
   ========================= */
#faq {
  min-height: 80vh;
  background-color: #fefefe;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 4rem;
}

.faq-item {
  background: var(--secondary-color);
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  display: none;
  padding: 0 1rem 1rem;
  background-color: #ffefdc;
}

.faq-answer.show {
  display: block;
}

/* =========================
   CONTACT FORM
   ========================= */
#contact {
  position: relative;
  min-height: 100vh;
  padding-bottom: 4rem;
  background-color: #fff7e6;
  background-attachment: fixed;
  z-index: 0;
  scroll-margin-top: 80px;
}

.contact-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 500px;
  padding: 40px 30px;
  background: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)),
    url('assets/images/bore-pile/Bored-Piles-Process-Challenges-and-Advantages (1).jpg') center center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 3rem;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding-top: 5px;
}

.hero-text h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-text p {
  font-size: clamp(1rem, 3vw, 1.1rem);
  line-height: 1.7;
  color: #f5f5f5;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

#contact>* {
  position: relative;
  z-index: 1;
}

.contact-section {
  padding: 4rem 8%;
  background-color: transparent;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info,
.contact-form {
  background: #fff7e6;
  padding: 2.5rem 2.8rem;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.contact-info {
  background: #fffef9;
  gap: 2rem;
}

.contact-info h3 {
  color: #f59e0b;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info li i {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.contact-info p {
  margin: 0;
  color: #333;
  line-height: 1.8;
  font-size: 1rem;
}

.contact-info strong {
  color: #1e293b;
  font-weight: 600;
}

.contact-info::after {
  content: "";
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, #facc15, transparent);
  border-radius: 2px;
  margin-top: 1rem;
  align-self: flex-start;
}

.contact-info:hover {
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.18);
  transform: translateY(-3px);
  transition: all 0.35s ease;
}

.contact-form {
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  color: #333;
  max-width: 100%;
  overflow: hidden;
}

.contact-form h3 {
  margin-bottom: 1.4rem;
  color: #f59e0b;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
}

.form-group {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin-bottom: 1rem;
}

.form-group input {
  flex: 1;
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  background: #fff;
  transition: var(--transition);
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
  transform: translateY(-2px);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
  font-family: 'Montserrat', sans-serif;
}

.contact-form button {
  width: 100%;
  background: linear-gradient(90deg, #facc15 0%, #eab308 100%);
  color: #1e293b;
  font-weight: 700;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
  background: linear-gradient(90deg, #eab308 0%, #f59e0b 100%);
}

.map h3 {
  text-align: center;
  color: #f59e0b;
  margin-top: 2.5rem;
  padding-top: 1rem;
  margin-bottom: 3rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.map iframe {
  width: 100% !important;
  height: 400px !important;
  border-radius: 14px;
  margin: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 0;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background-color: #111827;
  color: var(--white);
  padding: 3rem clamp(1rem, 5vw, 2rem);
  text-align: center;
}

footer a {
  color: var(--secondary-color);
  text-decoration: none;
  margin: 0 1rem;
}

footer a:hover {
  text-decoration: underline;
}

/* =========================
   WHATSAPP FLOATING BUTTON
   ========================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  line-height: 0;
  animation: pulse 1.5s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float i {
  text-decoration: none !important;
  line-height: 0;
  font-size: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */

/* Tablet Landscape (≤1024px) */
@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .about-image img {
    max-width: 80%;
    margin: 0 auto;
  }
  
  .about-text {
    margin-left: 0;
    margin-right: 0;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-section {
    padding: 3rem 5%;
  }
}

/* Tablet Portrait (≤768px) */
@media (max-width: 768px) {
  /* Navigation */
  .hamburger {
    display: flex;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  nav ul.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
  }
  
  nav ul a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Hero */
  .hero {
    min-height: 80vh;
    padding: 60px 20px;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
  }
  
  .hero p {
    font-size: clamp(0.9rem, 2vw, 1rem);
  }
  
  /* ========== GAP FIX ONLY ========== */
  .about-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.about-image {
  flex: 1 1 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: var(--about-image-max-height, 480px);
  height: auto;
  padding-top: 1.5rem;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: inherit;
}

/* ===== MOBILE ONLY FIX ===== */
@media (max-width: 768px) {

  .about-container {
    display: block !important;
    align-items: flex-start !important;
  }

  .about-image {
    margin-bottom: 1.5rem !important;
  }

  .about-vision-mission {
    padding-top: 1.5rem !important;
    margin-top: 1rem !important;
  }
}
  /* ========== END GAP FIX ========== */
  
  /* Services & Portfolio */
  .services,
  .portfolio-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Contact */
  .form-group {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .contact-hero {
    min-height: 350px;
    background-position: center top;
  }
  
  .contact-hero .hero-text h2 {
    font-size: 1.8rem;
  }
  
  .map iframe {
    height: 300px;
  }
  
  /* WhatsApp */
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    font-size: 28px;
  }
}

/* Mobile Large (≤600px) */
@media (max-width: 600px) {
  /* Header */
  nav {
    padding: 0.8rem 1rem;
  }
  
  .logo img {
    width: 160px;
    height: auto;
  }
  
  /* Section */
  section {
    padding: 2rem 1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  /* ========== GAP FIX ONLY ========== */
  .about-vision-mission {
    margin-top: 0.1rem !important;
  }
  
  .sub-title {
    margin-top: 0.05rem !important;
  }
  /* ========== END FIX ========== */
  
  /* Contact */
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-hero {
    min-height: 300px;
    padding: 2rem 1rem;
  }
  
  .contact-hero .hero-text h2 {
    font-size: 1.6rem;
  }
  
  .map iframe {
    height: 250px;
  }
  
  /* Cards */
  .card,
  .testimonial {
    padding: 1.5rem;
  }
  
  .portfolio-card {
    padding: 10px;
  }
}

/* Mobile Small (≤480px) */
@media (max-width: 480px) {
  /* Navigation */
  nav {
    padding: 0.5rem;
  }
  
  .logo img {
    width: 140px;
  }
  
  .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Hero */
  .hero {
    min-height: 70vh;
    padding: 40px 15px;
  }
  
  .hero-content {
    padding-top: 50px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.85rem;
  }
  
  /* ========== MINIMAL GAP ========== */
  .about-vision-mission {
    margin-top: 0.05rem !important;
    padding: 0;
  }
  
  .sub-title {
    margin-top: 0.05rem !important;
  }
  /* ========== END FIX ========== */
  
  /* Contact */
  .contact-hero {
    min-height: 250px;
    padding: 1.5rem 0.8rem;
  }
  
  .contact-hero .hero-text h2 {
    font-size: 1.4rem;
  }
  
  .contact-container {
    gap: 1.5rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 1rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .map iframe {
    height: 200px;
  }
  
  /* WhatsApp */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 25px;
  }
}

/* Mobile Extra Small (≤360px) */
@media (max-width: 360px) {
  /* ========== NO GAP ========== */
  .about-vision-mission {
    margin-top: 0 !important;
  }
  
  .sub-title {
    margin-top: 0 !important;
  }
  /* ========== END FIX ========== */
  
  .contact-hero {
    min-height: 220px;
  }
  
  .contact-hero .hero-text h2 {
    font-size: 1.3rem;
  }
  
  .whatsapp-float {
    width: 45px;
    height: 45px;
    bottom: 10px;
    right: 10px;
    font-size: 22px;
  }
}

/* =========================
   HIGH DPI SCREENS
   ========================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-image: 
      linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), 
      url('Assets/Images/Bore-Pile/proyek-bore-pile-gudang-pupuk-riau.webp');
  }
  
  .contact-hero {
    background-image: 
      linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)),
      url('Assets/Images/Bore-Pile/Bored-Piles-Process-Challenges-and-Advantages (1).jpg');
  }
}

/* =========================
   ACCESSIBILITY
   ========================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .whatsapp-float {
    animation: none;
  }
}

/* =========================
   iOS SAFARI FIX
   ========================= */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}

/* =========================
   TOUCH DEVICE FIX
   ========================= */
@media (hover: none) and (pointer: coarse) {
  .card:hover,
  .btn-primary:hover,
  .whatsapp-float:hover {
    transform: none;
  }
  
  nav a:hover {
    color: inherit;
  }
}

/* =========================
   HERO TYPO RESPONSIVE FIX
   ========================= */

/* Tablet */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.25;
  }

  .hero-brand {
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 28px;
  }
}

/* Tablet Portrait & Mobile */
@media (max-width: 768px) {
  .hero-content {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 100px;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.25;
  }

  .hero-brand {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 24px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-brand {
    font-size: 1.25rem;
  }
}

/* =========================
   DROPDOWN SERVICES - IMPROVED
   ========================= */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.dropdown-toggle i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.has-dropdown.active .dropdown-toggle i {
  transform: rotate(180deg);
}

/* Dropdown container */
.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  min-width: 250px;
  padding: 12px 0;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(245, 158, 11, 0.1);
}

/* Tampilkan dropdown saat active class */
.has-dropdown.active .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(5px);
}

/* Segitiga dekoratif */
.has-dropdown .dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid rgba(245, 158, 11, 0.1);
  border-top: 1px solid rgba(245, 158, 11, 0.1);
  z-index: -1;
}

.dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown li a i {
  width: 20px;
  color: #f59e0b;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.dropdown li a:hover {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), transparent);
  color: #f59e0b;
  border-left-color: #f59e0b;
  padding-left: 25px;
}

.dropdown li a:hover i {
  transform: scale(1.1);
  color: #eab308;
}

/* Divider */
.dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
  margin: 8px 15px;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
  .has-dropdown .dropdown {
    position: static;
    transform: none;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(245, 158, 11, 0.03);
    margin-top: 0.5rem;
    transition: max-height 0.3s ease;
    border: none;
  }
  
  .has-dropdown.active .dropdown {
    max-height: 400px;
    padding: 8px 0;
    transform: none;
  }
  
  .has-dropdown .dropdown::before {
    display: none;
  }
  
  .dropdown li a {
    padding: 10px 15px 10px 25px;
  }
}

/* ================= OPTIMASI PERFORMANCE GAMBAR ================= */
    img {
      /* Mencegah layout shift */
      aspect-ratio: attr(width) / attr(height);
      
      /* Transisi halus saat load */
      opacity: 1;
      transition: opacity 0.3s ease-in-out;
    }
    
    img[loading="lazy"].loaded {
      opacity: 1;
    }
    
    /* ================= OPTIMASI VIDEO ================= */
    video {
      background-color: #f0f0f0; /* Warna saat loading */
      aspect-ratio: 16/9;
      width: 100%;
      height: auto;
      object-fit: cover;
    }
    
    /* ================= ANIMASI TAGLINE SMOOTH ================= */
    .tagline {
      text-align: center;
      margin: 3rem 0 2rem;
      line-height: 1.2;
    }
    
    .tagline-top {
      font-size: 2.2rem;
      font-weight: 400;
      letter-spacing: 4px;
      color: #666;
      display: inline-block;
      animation: slideInLeft 1.2s cubic-bezier(0.23, 1, 0.32, 1), glowPulse 3s infinite 1.2s;
      text-transform: uppercase;
    }
    
    .tagline-bottom {
      font-size: 3.5rem;
      font-weight: 800;
      color: #2c3e50;
      display: inline-block;
      animation: slideInRight 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both, scalePulse 3s infinite 1.5s;
      text-transform: uppercase;
      letter-spacing: 2px;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }
    
    @keyframes slideInLeft {
      0% {
        opacity: 0;
        transform: translateX(-50px);
      }
      100% {
        opacity: 1;
        transform: translateX(0);
      }
    }
    
    @keyframes slideInRight {
      0% {
        opacity: 0;
        transform: translateX(50px);
      }
      100% {
        opacity: 1;
        transform: translateX(0);
      }
    }
    
    @keyframes glowPulse {
      0%, 100% {
        text-shadow: 0 0 5px rgba(44, 62, 80, 0.2);
      }
      50% {
        text-shadow: 0 0 20px rgba(44, 62, 80, 0.4);
      }
    }
    
    @keyframes scalePulse {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.03);
      }
    }
    
    /* Efek hover tambahan */
    .tagline:hover .tagline-top {
      animation: none;
      transform: translateX(-5px);
      transition: transform 0.3s ease;
    }
    
    .tagline:hover .tagline-bottom {
      animation: none;
      transform: scale(1.05);
      transition: transform 0.3s ease;
    }
    