/* ============================================
   UTC Modern Index — Design System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --accent: #d4943a;
  --accent-light: #e8b06a;
  --dark: #0c1421;
  --dark-2: #141e30;
  --light: #f4f6f9;
  --white: #ffffff;
  --text: #394b5f;
  --text-light: #8a9bb5;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  display: block;
}

.container-m {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- PRELOADER ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s, visibility .6s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 56px;
  height: 56px;
  border: 4px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- TOPBAR ---------- */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar a {
  color: rgba(255, 255, 255, .7);
}

.topbar a:hover {
  color: var(--accent);
}

.topbar i {
  margin-right: 6px;
  color: var(--accent);
}

.topbar-links {
  display: flex;
  gap: 20px;
}

.topbar-contact {
  display: flex;
  gap: 30px; /* Add plenty of space between contact items */
  flex-wrap: wrap;
}

/* ---------- NAVBAR ---------- */
.navbar-m {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: box-shadow var(--transition);
}

.navbar-m.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo img {
  height: 80px;

  mix-blend-mode: multiply;
  filter: brightness(1.05) contrast(1.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--primary);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  background: var(--light);
  color: var(--accent);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown>a::after {
  content: '▾';
  margin-left: 5px;
  font-size: 10px;
}

.dropdown-menu-m {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  padding: 8px 0;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu-m {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-m a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  border-radius: 0;
}

.dropdown-menu-m a:hover {
  background: var(--light);
  color: var(--accent);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, var(--primary) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../u_img/ban_1.jpg') center/cover no-repeat;
  opacity: .18;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 20, 33, .85) 0%, rgba(26, 58, 92, .7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 148, 58, .15);
  border: 1px solid rgba(212, 148, 58, .3);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 24px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-badge i {
  font-size: 9px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .7);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-m {
  padding: 16px 36px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(212, 148, 58, .35);
}

.btn-primary-m:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 148, 58, .4);
}

.btn-outline-m {
  padding: 16px 36px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-outline-m:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.hero-stat h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.hero-stat p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- SECTION UTILITIES ---------- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 5px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--primary);
}

/* ---------- SERVICES / DIVISIONS ---------- */
.services-bg {
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 148, 58, .15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--white);
}

.div-logo {
  height: 65px;
  width: auto;
  margin-bottom: 20px;
  display: block;
  mix-blend-mode: multiply;
  /* Helps transparentize white backgrounds of the logos */
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: .92rem;
  line-height: 1.7;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--accent);
}

.service-card:hover .card-link {
  gap: 12px;
}

/* ---------- COMMITMENT (image cards) ---------- */
.commit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.commit-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, .04);
}

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

.commit-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.commit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.commit-card p {
  color: var(--text-light);
  font-size: .9rem;
  line-height: 1.7;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 148, 58, .2), transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, .65);
  max-width: 550px;
  margin: 0 auto 32px;
  position: relative;
  font-size: 1.05rem;
}

/* ---------- FOOTER ---------- */
.footer-m {
  background: var(--dark);
  color: rgba(255, 255, 255, .65);
  padding: 80px 0 0;
}

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

.footer-m h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-brand p {
  margin-top: 16px;
  line-height: 1.7;
  font-size: .9rem;
}

.footer-m ul {
  list-style: none;
}

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

.footer-m ul a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, .6);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  font-size: .85rem;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s, transform .7s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .dropdown-menu-m {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--light);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 28px;
  }

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

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

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

  .commit-card {
    flex-direction: column;
  }

  .commit-card img {
    width: 100%;
    height: 200px;
  }

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

  .topbar-links {
    display: none;
  }

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

  .hero-stats {
    gap: 20px;
  }

  .hero-stat h3 {
    font-size: 1.6rem;
  }
}

/* ---------- MODERN HERO SLIDER ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s;
}

.hero-slider .slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slider .slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 2;
}

.hero-slider .slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slider .slide-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}

.hero-slider .slide-content h1 span {
  color: var(--accent);
}

.hero-slider .slide-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
}

.hero-slider .slide.active .slide-content h1,
.hero-slider .slide.active .slide-content h3 {
  transform: translateY(0);
  opacity: 1;
}

/* Dots */
.hero-slider .slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 4;
}

.hero-slider .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-slider .dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero_slider .dot.active {
  background: var(--white);
  transform: scale(1.3);
  border-color: rgba(0, 0, 0, 0.2);
}

/* ---------- PILL TAGS ---------- */
.pill-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition);
}

.pill-tag i {
  color: var(--accent);
  font-size: 0.75rem;
}

.pill-tag:hover {
  background: var(--white);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}