:root {
  --smdc-blue:      #002d72;
  --smdc-blue-dark: #001a4d;
  --smdc-blue-mid:  #003d99;
  --smdc-blue-light:#0055ff;
  --accent-gold:    #b8860b;
  --accent-light:   #daa520;
  --accent-pale:    #f5edd8;
  --white:          #FFFFFF;
  --off-white:      #F7F9FC;
  --cream:          #F0F4F9;
  --dark:           #0D1117;
  --gray:           #6B7A8D;
  --gray-light:     #DDE5EF;
  --text:           #1A2332;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  margin: 0;
  padding: 0;
}

section {
  width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-serif {
  font-family: 'Plus Jakarta Sans', 'Playfair Display', serif;
  font-weight: 700;
}

/* Helper Classes */
.hover-accent { transition: color 0.2s; }
.hover-accent:hover { color: var(--accent-gold) !important; }

.transition-link { transition: all 0.3s ease; border-radius: 12px; padding: 10px; margin: -10px; }
.transition-link:hover { background: rgba(0, 45, 114, 0.05); }

.input-group-custom {
  position: relative;
  display: flex;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--smdc-blue);
  font-size: 18px;
  z-index: 5;
}

.input-group-custom.align-items-start .input-icon {
  top: 16px;
  transform: none;
  margin-top: 0 !important;
}

.input-group-custom .form-control,
.input-group-custom .form-select {
  padding: 14px 18px 14px 50px;
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s;
}

.input-group-custom .form-control:focus,
.input-group-custom .form-select:focus {
  background: #fff;
  border-color: var(--smdc-blue);
  box-shadow: 0 0 0 4px rgba(0, 45, 114, 0.1);
  outline: none;
}

.contact-form-styled .form-label {
  color: var(--smdc-blue);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.fw-800 { font-weight: 800; }

/* ══════════ NAVBAR ══════════ */
.navbar-custom {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--gray-light);
  padding: 0;
  z-index: 1030;
  transition: box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.navbar-brand { 
  padding: 0.8rem 0; 
  font-size: 1.25rem !important; 
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--smdc-blue) !important;
}

.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text) !important;
  padding: 1.4rem 0.8rem !important;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--smdc-blue);
  transition: width 0.3s;
}
.nav-link:hover { color: var(--smdc-blue) !important; }
.nav-link:hover::after,
.nav-link.active::after { width: 65%; }
.nav-link.active { color: var(--smdc-blue) !important; }

.nav-cta {
  background: var(--smdc-blue);
  color: var(--white) !important;
  padding: 0.5rem 1.4rem !important;
  letter-spacing: 1.5px;
  font-size: 0.7rem !important;
  font-weight: 600;
  margin-left: 0.5rem;
  align-self: center;
  transition: background 0.2s, transform 0.2s;
  border-radius: 4px;
}
.nav-cta:hover { background: var(--smdc-blue-dark) !important; transform: translateY(-1px); }

@media (max-width: 991px) {
  .nav-link { padding: 0.7rem 1rem !important; }
  .nav-cta { margin: 0.5rem 1rem; display: inline-block; }
  .navbar-collapse { border-top: 1px solid var(--gray-light); }
}

/* ══════════ HERO ══════════ */
#home { padding: 0 !important; }
.hero-slide {
  min-height: 100vh;
  background: var(--smdc-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: clip;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transition: transform 8s ease;
}
.carousel-item.active .hero-bg { transform: scale(1.1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 45, 114, 0.3), rgba(0, 45, 114, 0.7));
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  max-width: 860px; padding: 2rem;
}
.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.9;
  font-weight: 600;
  margin-bottom: 1.4rem;
  display: block;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  letter-spacing: -0.5px;
  color: #ffffff !important;
}
.hero-title em { font-style: italic; color: var(--accent-light); }
.hero-divider { width: 60px; height: 3px; background: var(--accent-gold); margin: 0 auto 1.4rem; }
.hero-sub {
  font-size: 1.1rem; font-weight: 400;
  letter-spacing: 0.5px; opacity: 0.9; margin-bottom: 2.5rem;
  color: #ffffff !important;
}
.btn-hero {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-size: 0.7rem; letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.9rem 2.4rem; margin: 0.4rem;
  text-decoration: none; transition: all 0.3s;
  font-weight: 700;
  border-radius: 4px;
}
.btn-hero:hover { background: rgba(255,255,255,0.15); color: var(--white); border-color: var(--white); }
.btn-hero-solid {
  background: var(--smdc-blue); color: var(--white) !important;
  border-color: var(--smdc-blue);
}
.btn-hero-solid:hover { background: var(--smdc-blue-mid); border-color: var(--smdc-blue-mid); }

.carousel-control-prev,
.carousel-control-next {
  width: 50px; height: 50px;
  background: rgba(0, 45, 114, 0.6);
  top: 50%; transform: translateY(-50%);
  opacity: 1; transition: background 0.2s;
  border-radius: 50%;
  margin: 0 20px;
}
.carousel-control-prev:hover,
.carousel-control-next:hover { background: var(--smdc-blue); }

@media (max-width: 768px) {
  .hero-slide { min-height: 65vh; }
}

/* ══════════ STATS BAR ══════════ */
#statsBar {
  background: var(--smdc-blue);
  padding: 1.5rem 0;
  position: relative;
  z-index: 10;
  margin-top: -100px;
  border-radius: 0;
  box-shadow: 0 -15px 35px rgba(0,0,0,0.2);
}
.stat-item {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  color: white;
  padding: 0.5rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.stat-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}
.stat-item:last-child { border-right: none; }
.stat-item i { color: var(--accent-gold); font-size: 1.5rem; }
.stat-item h3 { font-size: 1.8rem; margin: 0; color: #ffffff !important; }
.stat-item p { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; margin: 0; color: #ffffff !important; opacity: 1; }

@media (max-width: 768px) {
  #statsBar { margin-top: 0; border-radius: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
}

/* ══════════ SECTION COMMON ══════════ */
.section-padding { padding: 6rem 0; }
.section-tag {
  font-size: 0.65rem; letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--smdc-blue); font-weight: 700;
  margin-bottom: 0.8rem; display: block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--smdc-blue); margin-bottom: 1rem;
  font-weight: 800;
}
.divider-line {
  width: 50px; height: 3px;
  background: var(--accent-gold);
  margin-bottom: 1.5rem;
}
.section-lead { color: var(--gray); font-size: 1rem; line-height: 1.8; }

/* ══════════ ABOUT ══════════ */
#about { padding-top: 50px !important; }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap::after {
  content: ''; position: absolute;
  bottom: -15px; right: -15px;
  width: 70%; height: 70%;
  border: 4px solid var(--accent-gold); z-index: 0;
}

@media (max-width: 576px) {
  .about-img-wrap::after {
    right: -5px;
    bottom: -5px;
  }
}
.feature-img {
  position: relative; z-index: 1;
  width: 100%; border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ══════════ PORTFOLIO CARDS ══════════ */
.project-interactive-card {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--smdc-blue);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  transition: all 0.5s ease;
  cursor: pointer;
}
.project-interactive-card .project-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  transition: all 0.6s ease;
  transform: scale(1.05);
}
.project-interactive-card:hover .project-bg {
  opacity: 0.8;
  transform: scale(1);
}
.project-interactive-card .project-content {
  position: relative; z-index: 2;
  transition: all 0.4s ease;
}
.project-logo {
  max-width: 80%;
  filter: brightness(0) invert(1);
}
.project-interactive-card:hover .project-content {
  transform: translateY(-10px);
}

/* ══════════ ACCREDITATION ══════════ */
#accreditation { background: var(--smdc-blue); color: white; }
#accreditation .section-title, 
#accreditation .section-lead, 
#accreditation h5 { color: white !important; }
#accreditation .section-tag { color: var(--accent-light); }
.acred-step {
  display: flex; gap: 1.5rem;
  padding: 2rem; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.2rem; border-radius: 12px;
  transition: all 0.3s;
}
.acred-step p { color: rgba(255,255,255,0.8); }
.acred-step:hover { background: rgba(255,255,255,0.1); border-color: var(--accent-gold); }
.step-num {
  font-size: 2.5rem; font-weight: 800; color: var(--accent-gold);
  line-height: 1; opacity: 0.8;
}

/* ══════════ CONTACT ══════════ */
#contact { padding-bottom: 50px !important; }
.contact-card {
  background: white; border-radius: 16px;
  padding: 2.5rem; height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-light);
  transition: transform 0.3s;
}
.contact-card:hover { transform: translateY(-5px); border-color: var(--smdc-blue); }
.contact-info-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.contact-info-list li {
  display: flex; gap: 12px; padding: 1rem 0;
  border-bottom: 1px solid var(--gray-light);
}
.contact-info-list i { color: var(--smdc-blue); font-size: 1.2rem; }

/* ══════════ FOOTER ══════════ */
.bg-smdc-blue { background: var(--smdc-blue) !important; }
footer.bg-smdc-blue, 
footer.bg-smdc-blue p,
footer.bg-smdc-blue .small,
footer.bg-smdc-blue .x-small { color: #ffffff !important; opacity: 1 !important; }
footer.bg-smdc-blue h4, 
footer.bg-smdc-blue h6, 
footer.bg-smdc-blue .text-white { color: #ffffff !important; }
footer.bg-smdc-blue a { color: #ffffff !important; opacity: 0.9; transition: all 0.2s; }
footer.bg-smdc-blue a:hover { opacity: 1; text-decoration: underline !important; }
footer.bg-smdc-blue .border-top { border-top-color: rgba(255,255,255,0.3) !important; }

/* ══════════ PRODUCT CARDS (New Structure) ══════════ */
.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-light);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,45,114,0.12);
  border-color: var(--smdc-blue);
}
.product-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-img img { transform: scale(1.1); }

.product-badge {
  position: absolute;
  top: 15px; left: 15px;
  background: var(--smdc-blue);
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.product-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-sub {
  color: var(--accent-gold);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}
.product-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--smdc-blue);
  margin-bottom: 0.8rem;
}
.product-desc {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-light);
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text);
}
.spec-item i { color: var(--smdc-blue); }

.btn-product-inquire {
  margin-top: auto;
  background: var(--smdc-blue);
  color: white !important;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-product-inquire:hover { background: var(--smdc-blue-dark); }

/* ══════════ FILTER BAR ══════════ */
.filter-bar {
  background: white;
  border-bottom: 1px solid var(--gray-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--smdc-blue);
}
.filter-select {
  border: 1px solid var(--gray-light);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
  cursor: pointer;
}
.filter-select:focus { border-color: var(--smdc-blue); }

.filter-reset {
  background: none;
  border: 1px solid var(--smdc-blue);
  color: var(--smdc-blue);
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-reset:hover, .filter-reset.active {
  background: var(--smdc-blue);
  color: white;
}

/* ══════════ UTILS ══════════ */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── BACK TO TOP ────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: var(--smdc-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(0,45,114,0.3);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; bottom: 40px; }
.back-to-top:hover { background: var(--smdc-blue-mid); transform: translateY(-5px); color: white; }
