@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Barlow+Condensed:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   CSS VARIABLES — Custodo-Inspired Blue Palette
   ============================================ */
:root {
  --primary: #001A57;
  --primary-dark: #000f33;
  --primary-light: #0b2a6f;
  --accent: #0066cc;
  --accent-light: #3399ff;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --light-gray: #d9d9d9;
  --medium-gray: #6b7280;
  --dark-gray: #374151;
  --text-dark: #1f2937;
  --text-body: #4b5563;
  --red-accent: #ee1d22;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 26, 87, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 26, 87, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 26, 87, 0.18);
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}

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

a:hover { color: var(--primary-light); }

ul { list-style: none; }

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.spinner {
  display: flex;
  gap: 8px;
}

.spinner div {
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.spinner div:nth-child(1) { animation-delay: -0.32s; }
.spinner div:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

#site-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  transition: var(--transition);
}

#site-header.transparent {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

#site-header.scrolled {
  background: rgba(217, 217, 217, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

#site-header.scrolled .header-inner {
  padding: 8px 5%;
}

.site-logo img {
  max-height: 80px;
  width: auto;
  transition: var(--transition);
}

#site-header.scrolled .site-logo img {
  max-height: 55px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 5px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile menu button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 8px 10px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 650px;
}

.slide-content .subtitle {
  color: var(--light-gray);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s 0.3s forwards;
}

.slide.active .slide-content .subtitle {
  animation: slideInLeft 1s 0.3s forwards;
}

.slide-content h1 {
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s 0.5s forwards;
}

.slide.active .slide-content h1 {
  animation: slideInLeft 1s 0.5s forwards;
}

.slide-content .btn-slide {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  padding: 18px 40px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s 0.7s forwards;
}

.slide.active .slide-content .btn-slide {
  animation: slideInLeft 1s 0.7s forwards;
}

.slide-content .btn-slide:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slider progress bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(238, 29, 34, 0.5);
  z-index: 10;
  animation: sliderProgress 8s linear infinite;
}

@keyframes sliderProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ============================================
   FEATURES BAR (Professional Service / Fast Response)
   ============================================ */
.features-bar {
  background: var(--off-white);
  padding: 30px 0;
  border-bottom: 1px solid var(--light-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
}

.feature-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
}

.feature-item h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-body);
}

/* ============================================
   ABOUT / WELCOME SECTION
   ============================================ */
.about-section {
  padding: 80px 0;
  background: var(--white);
}

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

.about-content .section-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.about-content h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.15;
}

.about-content p {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 25px;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  padding: 15px 35px;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}

.about-image .badge-overlay {
  position: absolute;
  bottom: -15px;
  left: -15px;
  background: var(--primary);
  color: var(--white);
  padding: 20px 25px;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}

.badge-overlay h4 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--white);
  font-weight: 700;
}

.badge-overlay p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   STATS COUNTER BAR
   ============================================ */
.stats-bar {
  background: var(--primary);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 5px;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  padding: 80px 0;
  background: var(--off-white);
}

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

.section-header .section-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Services Carousel */
.services-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  gap: 25px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card {
  min-width: calc(33.333% - 17px);
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex-shrink: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  margin: 25px auto 0;
}

.service-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
  transform: scale(1.08);
}

.service-card .card-body {
  padding: 25px 20px;
  text-align: center;
}

.service-card .card-body h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.service-card .card-body ul {
  text-align: left;
  padding: 0 10px;
}

.service-card .card-body ul li {
  font-size: 14px;
  color: var(--text-body);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card .card-body ul li i {
  color: var(--primary);
  font-size: 12px;
}

/* Carousel navigation arrows */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 4px;
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-section {
  padding: 80px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.why-card {
  text-align: center;
  padding: 40px 30px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

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

.why-card .icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card .icon-circle img {
  width: 64px;
  height: 64px;
}

.why-card .icon-circle i {
  font-size: 40px;
  color: var(--primary);
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-body);
}

/* ============================================
   WHY CHOOSE - TEXT + IMAGE
   ============================================ */
.why-choose-detail {
  padding: 60px 0;
  background: var(--off-white);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-choose-text h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

.why-choose-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
}

.why-choose-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  max-height: 350px;
  width: 100%;
  object-fit: cover;
}

/* ============================================
   CTA / SUPPORT BANNER
   ============================================ */
.cta-banner {
  padding: 60px 0;
  background: var(--primary);
  text-align: center;
}

.cta-banner .section-sub {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.cta-banner h2 {
  font-size: 40px;
  color: var(--white);
  font-weight: 700;
}

/* ============================================
   CONTACT / GET IN TOUCH
   ============================================ */
.contact-section {
  padding: 80px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info .section-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 25px;
}

.contact-info .star-desc {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-info .star-desc i {
  color: var(--primary);
  font-size: 24px;
  margin-top: 4px;
}

.contact-info .star-desc p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}

.contact-right .btn-primary {
  margin-bottom: 30px;
}

.testimonial-box {
  background: var(--off-white);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.testimonial-stars {
  color: #f5a623;
  font-size: 16px;
  margin-bottom: 10px;
}

.testimonial-box h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.testimonial-box p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ============================================
   EXPERTISE / MAINTENANCE WORK
   ============================================ */
.expertise-section {
  padding: 80px 0;
  background: var(--off-white);
  background-image: linear-gradient(135deg, var(--off-white) 0%, #e8edf5 100%);
}

.expertise-section .section-sub {
  text-align: center;
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.expertise-section h2 {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--primary-dark);
  padding: 50px 0 0;
  color: rgba(255,255,255,0.7);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer-col .footer-logo {
  max-height: 60px;
  margin-bottom: 15px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-contact-item i {
  color: var(--accent-light);
  font-size: 16px;
  min-width: 20px;
}

.footer-contact-item a,
.footer-contact-item span {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  background: rgba(0,0,0,0.2);
  margin-top: 0;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .service-card {
    min-width: calc(50% - 13px);
  }

  .slide-content h1 {
    font-size: 55px;
  }

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

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--light-gray);
    padding: 20px 5%;
    gap: 15px;
    box-shadow: var(--shadow-md);
  }

  .slide-content h1 {
    font-size: 42px;
  }

  .slide-content .subtitle {
    font-size: 15px;
  }

  .features-grid,
  .about-grid,
  .stats-grid,
  .why-grid,
  .why-choose-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-width: 100%;
  }

  .section-header h2,
  .about-content h2,
  .contact-info h2,
  .why-choose-text h2,
  .cta-banner h2,
  .expertise-section h2 {
    font-size: 30px;
  }

  .stat-item h3 {
    font-size: 38px;
  }

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

  .site-logo img {
    max-height: 60px;
  }

  #site-header.scrolled .site-logo img {
    max-height: 45px;
  }
}

@media (max-width: 480px) {
  .slide-content h1 {
    font-size: 34px;
  }

  .slide-content .btn-slide {
    padding: 14px 28px;
    font-size: 13px;
  }

  .hero-slider {
    min-height: 500px;
  }
}
