/* ===== CSS Custom Properties ===== */
:root {
  --orange: #c4501a;
  --blue: #2b5da6;
  --dark: #1a1a2e;
  --darker: #0a0a0a;
  --light: #f5f5f5;
  --text-dark: #333333;
  --text-muted: #8892b0;
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* ===== Navbar ===== */
.navbar-faceone {
  transition: background-color 0.3s ease;
  padding: 1rem 0;
}

.navbar-faceone.scrolled {
  background-color: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
}

.navbar-faceone .nav-link {
  color: #999;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.navbar-faceone .nav-link:hover,
.navbar-faceone .nav-link:focus {
  color: var(--orange);
}

.navbar-faceone .navbar-brand img {
  height: 65px;
  transition: height 0.3s;
}

.navbar-faceone.scrolled .navbar-brand img {
  height: 49px;
}

@media (max-width: 991.98px) {
  .navbar-faceone .navbar-collapse {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
  }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(26, 26, 46, 0.8) 40%, rgba(15, 52, 96, 0.75) 100%),
    url('https://images.unsplash.com/photo-1558002038-1055907df827?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--blue);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.3;
}

.hero p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 1.5rem auto;
  line-height: 1.6;
}

.btn-faceone {
  background-color: var(--orange);
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
  display: inline-block;
}

.btn-faceone:hover {
  background-color: #a33d10;
  color: #fff;
  transform: translateY(-2px);
}

/* Circuit decorative lines */
.circuit-line {
  position: absolute;
  border-color: rgba(43, 93, 166, 0.15);
  border-style: solid;
  border-width: 0;
}

.circuit-line-1 {
  top: 60px;
  right: 5%;
  width: 120px;
  height: 120px;
  border-right-width: 1px;
  border-top-width: 1px;
}

.circuit-line-1::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(43, 93, 166, 0.3);
}

.circuit-line-2 {
  bottom: 80px;
  left: 5%;
  width: 80px;
  height: 80px;
  border-left-width: 1px;
  border-bottom-width: 1px;
}

.circuit-line-2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(43, 93, 166, 0.3);
}

.circuit-line-3 {
  top: 30%;
  left: 10%;
  width: 1px;
  height: 100px;
  border-left-width: 1px;
}

.circuit-line-4 {
  top: 20%;
  right: 15%;
  width: 60px;
  height: 1px;
  border-top-width: 1px;
}

/* ===== Services ===== */
.services {
  background: var(--light);
  padding: 5rem 0;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  border-left: 4px solid var(--orange);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.service-card.border-blue {
  border-left-color: var(--blue);
}

.service-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.service-card .more-link {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 500;
}

.service-card.border-blue .more-link {
  color: var(--blue);
}

/* ===== Why Us ===== */
.why-us {
  background: #fff;
  padding: 5rem 0;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
}

.stat-number.orange { color: var(--orange); }
.stat-number.blue { color: var(--blue); }
.stat-number.dark { color: var(--text-dark); }

.stat-label {
  font-size: 0.85rem;
  color: #888;
}

/* ===== References ===== */
.references {
  background: var(--light);
  padding: 5rem 0;
}

.reference-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.reference-card:hover {
  transform: translateY(-4px);
}

.reference-card .img-placeholder {
  background: linear-gradient(135deg, #ddd, #eee);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.85rem;
}

.reference-card .card-body {
  padding: 1.25rem;
}

.reference-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.reference-card p {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

/* ===== Contact ===== */
.contact {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  padding: 5rem 0;
  color: #fff;
}

.contact-lead {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-faceone-secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-faceone-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--orange);
}

/* ===== Footer ===== */
.footer {
  background: var(--darker);
  padding: 1.5rem 0;
  color: #555;
  font-size: 0.85rem;
}

.footer a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--orange);
}

/* ===== Sub-page Hero ===== */
.subpage-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 40%, #0f3460 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}

.subpage-hero h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.subpage-hero p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 1rem auto 0;
}

/* ===== Sub-page Content ===== */
.subpage-content {
  padding: 4rem 0;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--light);
  border-radius: 8px;
  height: 100%;
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--orange);
  padding: 3rem 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-weight: 300;
  margin-bottom: 1rem;
}

.btn-cta-white {
  background: #fff;
  color: var(--orange);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s;
  display: inline-block;
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  color: var(--orange);
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .circuit-line {
    display: none;
  }
}
