/* =========================================
    CSS Variables & Root Settings
========================================= */
:root {
  /* Colors */
  --primary-color: #f15a24;
  --primary-hover: #d94e20;
  --text-color: #333;
  --white: #fff;
  --dark-bg: #0d1b2a;
  
  /* Transitions */
  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 24px rgba(241, 90, 36, 0.15);
  
  /* Common Values */
  --card-border-radius: 10px;
  --site-bar-height: 64px; /* unified header/footer bar height */
  --header-height: var(--site-bar-height);
}

/* =========================================
    Base Styles
========================================= */
body {
  padding-top: calc(var(--header-height) + 8px); /* small buffer for fixed header */
  font-family: Arial, Helvetica, sans-serif
  line-height: 1.6;
  color: var(--text-color);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  margin: 2rem 0 0.5rem;
  font-weight: 600;
  line-height: 1.2;
}

/* =========================================
    UTILITIES
========================================= */
.text-orange { color: var(--primary-color) !important; }
.bg-orange { background-color: var(--primary-color) !important; }

.btn-orange {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  transition: background var(--transition);
  align-items: center;
  align-content: center;
}

.btn-orange:hover {
  background-color: var(--primary-hover);
  color: var(--white);
}

/* =========================================
    BUTTON ANIMATIONS
========================================= */
@keyframes buttonPop {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow-sm);
  }
  50% {
    transform: scale(1.07);
    box-shadow: var(--shadow-md);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-sm);
  }
}

button,
.btn,
.btn-orange {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  will-change: transform, box-shadow;
}

button:hover,
button:focus,
.btn:hover,
.btn:focus,
.btn-orange:hover,
.btn-orange:focus {
  animation: buttonPop 0.4s var(--transition-fast);
  outline: none;
}

/* =========================================
    NAVIGATION
========================================= */
.nav-link {
  color: var(--text-color) !important;
  font-weight: 600;
  transition: color var(--transition);
  padding: 0.5rem 1rem;
}

/* =========================================
    CARD ANIMATIONS
========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes levitate {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 4px 6px rgba(241, 90, 36, 0.1));
  }
  50% {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 15px 12px rgba(241, 90, 36, 0.2));
  }
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 4px 6px rgba(241, 90, 36, 0.1));
  }
}

@keyframes highlight {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 0 0 rgba(241, 90, 36, 0));
  }
  50% {
    transform: scale(1.1);
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(241, 90, 36, 0.3));
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(3px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(3px) rotate(-360deg);
  }
}

/* Why Choose Us Section */
.why-choose-us .col-md-3 {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.why-choose-us .col-md-3:nth-child(1) { animation-delay: 0.1s; }
.why-choose-us .col-md-3:nth-child(2) { animation-delay: 0.3s; }
.why-choose-us .col-md-3:nth-child(3) { animation-delay: 0.5s; }
.why-choose-us .col-md-3:nth-child(4) { animation-delay: 0.7s; }

.why-choose-us .border,
.services .service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-choose-us .border:hover,
.services .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Professional Icon and Card Animations */
.fa-2x.text-orange {
  display: inline-block;
  position: relative;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Services Section Card Animations */
#services .col-md-3 {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#services .col-md-3:nth-child(1) { animation-delay: 0.1s; }
#services .col-md-3:nth-child(2) { animation-delay: 0.2s; }
#services .col-md-3:nth-child(3) { animation-delay: 0.3s; }
#services .col-md-3:nth-child(4) { animation-delay: 0.4s; }
#services .col-md-3:nth-child(5) { animation-delay: 0.5s; }
#services .col-md-3:nth-child(6) { animation-delay: 0.6s; }
#services .col-md-3:nth-child(7) { animation-delay: 0.7s; }
#services .col-md-3:nth-child(8) { animation-delay: 0.8s; }
#services .col-md-3:nth-child(9) { animation-delay: 0.9s; }
#services .col-md-3:nth-child(10) { animation-delay: 1s; }
#services .col-md-3:nth-child(11) { animation-delay: 1.1s; }
#services .col-md-3:nth-child(12) { animation-delay: 1.2s; }

.service-card {
  overflow: visible;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Why Choose Us Section Card Animations */
.why-choose-us .border {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  overflow: visible;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-choose-us .border:nth-child(1) { animation-delay: 0.1s; }
.why-choose-us .border:nth-child(2) { animation-delay: 0.2s; }
.why-choose-us .border:nth-child(3) { animation-delay: 0.3s; }
.why-choose-us .border:nth-child(4) { animation-delay: 0.4s; }

/* Icon Animations */
.fa-2x.text-orange {
  animation: levitate 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Enhanced Hover Effects */
.service-card:hover .fa-2x.text-orange,
.why-choose-us .border:hover .fa-2x.text-orange {
  animation: highlight 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Card Hover Effects */
.service-card:hover,
.why-choose-us .border:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(241, 90, 36, 0.15);
  z-index: 1;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* =========================================
    HERO SECTION
========================================= */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: url('/img/bg-main.png') center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 28, 0.6);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 30px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 2rem 0 0.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero p {
    margin: 1.5rem 0;
    font-weight: 400;
    padding: 0 150px; /* Combined left and right padding */
    text-align: center; /* Center align text for better aesthetics */
}

/* =========================================
    SERVICE CARDS
========================================= */
.service-card {
  padding: 1.5rem;
  border-radius: 10px;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* =========================================
    FOOTER & HEADER
========================================= */
footer {
  font-size: 1.0rem;
  line-height: 1.8;
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 0.75rem 0; /* match header height feel */
  display: flex;
  align-items: center;
  justify-content: center;
}

footer a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

footer a:hover {
  color: var(--primary-color);
}

/* Base header styles (fixed across pages) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--site-bar-height);
  min-height: var(--site-bar-height);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  z-index: 1000;
}

.header.scrolled {
  background-color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-medium);
}

.img-fluid {
    max-width: 50%;
    height: auto;
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 0.5s ease-out forwards, gentlePulse 1.5s ease-in-out infinite 0.5s;
    border: none;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* =========================================
    ANIMATIONS
========================================= */

/* Fade-up animation for sections and cards */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger effect for service cards */


.service-card.show {
  opacity: 1;
  transform: translateY(0);
}



/* =========================================
    RESPONSIVE ADJUSTMENTS
========================================= */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.5rem; }
  .service-card { padding: 1.5rem; }
  .nav-link { font-size: 0.95rem; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 1.25rem; }
  .service-card { padding: 1rem; }
  .nav-link { font-size: 0.9rem; }
}

.hero p {
    margin: 0;
    font-weight: 400;
    padding: 0;
    text-align: center;
}

/* =========================================
    SECTION STYLES
========================================= */
/* Our OEM Partners */
.oem-partners {
  background: linear-gradient(90deg, #fff 60%, #f7f7f7 100%);
  padding: 3rem 0;
}
.oem-partners h2 {
  color: #f15a24;
  font-weight: 700;
  letter-spacing: 1px;
}
.oem-partners .partner-logo {
  max-height: 48px;
  margin: 0 1.5rem;
  filter: drop-shadow(0 2px 8px rgba(241,90,36,0.12));
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.oem-partners .partner-logo:hover {
  transform: scale(1.12) rotate(-2deg);
  filter: drop-shadow(0 4px 16px rgba(241,90,36,0.18));
}

/* Why Choose Us */
.why-choose-us {
  background: linear-gradient(90deg, #fff 70%, #fbeee6 100%);
  padding: 3rem 0;
}
.why-choose-us h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 2rem;
}
.why-choose-us .border {
  background: #fff;
  box-shadow: 0 2px 12px rgba(241,90,36,0.08);
  border: 1px solid #f3d1b8;
  transition: box-shadow 0.3s, transform 0.3s;
}
.why-choose-us .border:hover {
  box-shadow: 0 8px 24px rgba(241,90,36,0.15);
  transform: translateY(-8px) scale(1.03);
}

/* About Us */
#about {
  background: linear-gradient(90deg, #f7f7f7 60%, #fff 100%);
  padding: 3rem 0;
}
#about h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 2rem;
}
#about p {
  font-size: 1.1rem;
  color: #555;
  justify-content: center;
  padding: 10px;
}
#about .img-fluid {
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(241,90,36,0.10);
  padding: 10px 10px;

    text-align: !important;
}

/* OUR SERVICES */
#services {
  background: linear-gradient(90deg, #fff 60%, #eaf6fa 100%);
  padding: 3rem 0;
}
#services h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 2rem;
}
#services .service-card {
  background: #fff;
  border: 1px solid #cbe6f6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s, transform 0.3s;
}
#services .service-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-8px) scale(1.03);
}
