/**
 * Main Stylesheet for FTEC Group Website
 */

/* ============================================
   Variables & Base Styles
   ============================================ */
:root {
  --primary-color: #013289;
  --secondary-color: #e1ecff;
  --text-color: #333;
  --text-light: #666;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-color: #f5f5f5;
  --bg40: #013289;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Topbar
   ============================================ */
#topbar {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */
#header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

#header.fixed-top {
  position: fixed;
  width: 100%;
  top: 0;
}

.header-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.logo img {
  max-height: 50px;
  width: auto;
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin: 0;
}

.navbar ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  display: block;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  color: var(--primary-color);
}

.navbar ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.navbar ul li:has(i) {
  color: var(--primary-color);
  font-weight: 600;
}

.phone-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  white-space: nowrap;
}

.phone-numbers i {
  flex-shrink: 0;
  margin-right: 5px;
}

.phone-item {
  display: inline-block;
  white-space: nowrap;
}

.phone-separator {
  color: var(--primary-color);
  margin: 0 8px;
  opacity: 0.6;
}

.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary-color);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 80vh;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero h1 span {
  display: block;
  color: var(--primary-color);
}

.hero h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-img {
  text-align: center;
}

.hero-img img {
  max-width: 100%;
  height: auto;
}

.btn-get-started {
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.btn-get-started:hover {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(1, 50, 137, 0.3);
}

.btn-get-started i {
  transition: transform 0.3s ease;
}

.btn-get-started:hover i {
  transform: translateX(5px);
}

/* ============================================
   Sections
   ============================================ */
section {
  padding: 80px 0;
}

.gray-color {
  background-color: var(--gray-color);
}

.bg40 {
  background-color: var(--bg40);
  color: var(--white);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.section-title span {
  color: var(--primary-color);
  display: inline-block;
}

.section-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ============================================
   About Section
   ============================================ */
.about2 {
  padding: 80px 0;
}

.about-img {
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about2-right ul {
  list-style: none;
  padding: 0;
}

.about2-right ul li {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.about2-right ul li i {
  font-size: 2rem;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 5px;
}

.about2-right ul li h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.about2-right ul li p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  padding: 80px 0;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.cta h2 span {
  display: block;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.btn-read-more {
  background: var(--white);
  color: var(--primary-color);
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 2px solid var(--white);
}

.btn-read-more:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-read-more i {
  transition: transform 0.3s ease;
  color: inherit;
}

.btn-read-more:hover i {
  transform: translateX(5px);
  color: inherit;
}

/* ============================================
   Services Section
   ============================================ */
.services {
  padding: 80px 0;
}

.service-box {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-box .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: block;
}

.service-box h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-box p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: 80px 0;
}

.srv-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.srv-section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.srv-section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.icon-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.icon-box i {
  font-size: 2.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.icon-box h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.icon-box p {
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

/* Ensure equal height cards in each row */
.col-xl-8 .row {
  display: flex !important;
  flex-wrap: wrap;
}

.col-xl-8 .row > .col-md-6 {
  display: flex !important;
  flex-direction: column;
}

.col-xl-8 .row > .col-md-6.icon-box {
  flex: 1 1 auto;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  padding: 80px 0;
}

.contactus-header {
  padding: 100px 0 60px;
  background: var(--bg40);
}

.contactus-header p {
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.info-box {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.info-box i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.info-box h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 600;
}

.info-box p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--secondary-color);
}

.footer-top {
  padding: 60px 0 40px;
  background: var(--gray-light);
}

.footer-info img {
  max-height: 50px;
  margin-bottom: 20px;
}

.footer-info p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.social-links {
  margin-top: 20px;
}

.folow h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--bg40);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(1, 50, 137, 0.3);
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-links ul li i {
  font-size: 0.8rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-contact .table {
  background: transparent;
}

.footer-contact .table td {
  padding: 8px 0;
  border: none;
}

.copyright {
  background: var(--primary-color);
  color: var(--white);
  padding: 20px 0;
  text-align: center;
}

.copyright a {
  color: var(--white);
  font-weight: 600;
}

.copyright a:hover {
  text-decoration: underline;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--bg40);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Utility Classes
   ============================================ */
.fit_im img,
.fit_img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.ilus img {
  max-width: 100%;
  height: auto;
}

.repres img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.text-white {
  color: var(--white) !important;
}

/* ============================================
   Box Classes
   ============================================ */
.box,
.box2,
.box3 {
  position: relative;
}

/* ============================================
   Order Classes Fix
   ============================================ */
.order-5 {
  order: 5;
}

.order-md-12 {
  order: 12;
}

@media (min-width: 768px) {
  .order-md-12 {
    order: 12;
  }
}

.order-1 {
  order: 1;
}

@media (min-width: 768px) {
  .order-1.order-md-12 {
    order: 12;
  }
}

