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

/* BODY – COOL BLUE BACKGROUND, DARK TEXT */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111111;
  background: url('slide1.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}

/* PAGE WRAPPER */
.page-overlay {
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.92);
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER / NAV */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* LEFT SIDE: LOGO + TEXT */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

/* PMIC logo */
.logo-wrapper {
  display: flex;
  align-items: center;
}

.pmic-logo {
  height: 55px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
}

/* Brand text next to logo */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #111111;
}

.brand-tagline {
  font-size: 0.75rem;
  color: #4b5563;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: #111111;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
  opacity: 0.9;
}

.nav-links a:hover {
  color: #000000;
  opacity: 1;
  text-decoration: underline;
}

/* MAIN NAV CTA BUTTON – SOFT BLUE TAB */
.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #3b82f6;
  color: #ffffff;
  background: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* HERO SECTION WITH SLIDER */
.hero {
  padding-top: 1.5rem;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

/* SLIDES */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* DIMMER OVER SLIDES */
.hero-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.75)
  );
}

/* HERO CONTENT LAYOUT */
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  padding: 2.5rem 1.5rem 2.2rem;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

/* FLOATING HERO CARD */
.hero-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1rem;
  padding: 1.5rem 1.7rem 1.7rem;
  border: 1px solid #e5e7eb;
}

/* HERO BADGE */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  color: #111111;
  background: #f9fafb;
}

/* HERO TITLE / SUBTITLE */
.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 800;
  color: #111111;
}

.hero-title span {
  color: #111111;
}

.hero-subtitle {
  font-size: 0.95rem;
  max-width: 34rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

/* HERO META ROW */
.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* HERO BUTTONS */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.btn-primary {
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  border: none;
  background: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary {
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  border: 1px solid #111111;
  color: #111111;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  background: transparent;
}

/* HERO RIGHT PANEL */
.hero-panel {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1rem;
  padding: 1.5rem 1.7rem 1.7rem;
  border: 1px solid #e5e7eb;
  color: #111111;
}

.hero-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111111;
}

.hero-panel-subtitle {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.hero-panel-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.hero-panel-label {
  color: #6b7280;
}

.hero-panel-value {
  font-weight: 600;
  color: #111111;
}

.hero-panel-divider {
  margin: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

.hero-panel-note {
  font-size: 0.75rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.hero-panel-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.hero-panel-cta a {
  color: #111111;
  text-decoration: none;
}

.hero-panel-cta a:hover {
  text-decoration: underline;
}

/* SLIDER DOTS */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #9ca3af;
  background: #ffffff;
  opacity: 0.6;
  cursor: pointer;
}

.slider-dots .dot.active {
  background: #3b82f6;
  border-color: #3b82f6;
  opacity: 1;
}

/* QUICK LINKS STRIP */
.quick-links-section {
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 0 1.75rem;
}

.quick-links-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.quick-link {
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
}

.quick-link.primary {
  border-color: #3b82f6;
  color: #1d4ed8;
}

/* GENERIC SECTIONS */
section {
  padding: 2.5rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #111111;
}

.section-subtitle {
  font-size: 0.85rem;
  color: #4b5563;
}

/* CARD GRIDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .pmic-logo {
    height: 45px;
  }
}

/* SERVICE & PROJECT CARDS */
.service-card,
.project-card {
  background: #f9fafb;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1.1rem 1.1rem 1.2rem;
  color: #111111;
}

.service-title,
.project-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #111111;
}

.service-text,
.project-text {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

/* CTA SECTION */
.cta-section {
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cta-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111111;
}

.cta-text {
  font-size: 0.85rem;
  color: #4b5563;
}

/* ABOUT & CONTACT TEXT */
.about-text,
.contact-text {
  color: #111111;
  font-size: 0.9rem;
  max-width: 50rem;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

/* Gallery hover + clickable */
.gallery-img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-img:hover {
  transform: scale(1.04);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  border: 2px solid #ffffff;
}

/* FOOTER */
footer {
  padding: 1.5rem 0 2rem;
  color: #4b5563;
  font-size: 0.75rem;
  background: transparent;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}