/* ===== BASE STYLES ===== */
:root {
  --primary: #1a4b8c;
  --primary-light: #4a76b8;
  --primary-dark: #0f3261;
  --secondary: #2ecc71;
  --accent: #f39c12;
  --dark: #212529;
  --light: #f8f9fa;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-light {
  background-color: var(--light) !important;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.text-highlight {
  color: var(--secondary);
}

.section-py {
  padding: 80px 0;
}

/* ===== Floating CTA ===== */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
}

.whatsapp-btn, .call-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.whatsapp-btn {
    background-color: #25D366;
}

.call-btn {
    background-color: var(--primary);
}

.whatsapp-btn:hover, .call-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}


/* ===== HEADER STYLES ===== */
.header {
  background: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.brand-text {
  font-size: 24px;
  color: var(--primary);
  font-weight: 700;
}

.menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  z-index: 1001;
}

.navbar {
  display: flex;
  gap: 25px;
}

.navbar a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar a i {
  margin-right: 8px;
  font-size: 18px;
}

.navbar a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar a:hover {
  color: var(--primary);
}

.navbar a:hover:after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 75, 140, 0.7), rgba(15, 50, 97, 0.8));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: var(--white);
  margin: 0 auto 10px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
}

/* ===== ABOUT SECTION ===== */
.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: #007bff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.about-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-cards {
    grid-template-columns: 1fr;
  }
  
  .about-stats .stat-number {
    font-size: 2rem;
  }
}

/* ===== PROJECTS SECTION ===== */
.project-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: var(--primary);
  transition: all 0.3s ease;
}

.project-card:hover::before {
  height: 100%;
}

.project-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.project-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-card p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.project-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.project-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(5px);
}

/* ===== SERVICES SECTION ===== */
.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--secondary);
  color: var(--dark);
  transform: scale(1.1);
}

.service-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card p {
  color: var(--gray);
}

/* ===== GALLERY SECTION ===== */
.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  margin: 0 0.5rem 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.gallery-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 75, 140, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  padding: 0 1rem;
}

.gallery-zoom {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.gallery-zoom:hover {
  background: var(--secondary);
  color: var(--dark);
  transform: scale(1.1);
}

/* ===== TEAM SECTION ===== */
.team-card {
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
  transform: scale(1.1);
}

.team-social {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 75, 140, 0.8);
  padding: 1rem;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.team-card:hover .team-social {
  opacity: 1;
  transform: translateY(0);
}

.team-social a {
  width: 35px;
  height: 35px;
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background: var(--secondary);
  color: var(--dark);
  transform: translateY(-3px);
}

.team-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.team-card p {
  color: var(--gray);
}

/* ===== NEWS SECTION ===== */
.news-timeline {
  position: relative;
  padding-left: 2rem;
}

.news-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10px;
  width: 2px;
  height: 100%;
  background: var(--primary-light);
}

.news-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.news-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
}

.news-badge {
  position: absolute;
  top: -10px;
  right: 0;
  background: var(--accent);
  color: var(--dark);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.news-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.news-content p {
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.news-date {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact-item {
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-item h5 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--dark);
}

.contact-item a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary);
  color: var(--dark);
  transform: translateY(-3px);
}

.contact-form .card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 75, 140, 0.25);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--white);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  margin-right: 0.75rem;
  color: var(--primary);
}

/* ===== FOOTER COPYRIGHT CENTER ===== */
.footer .row.align-items-center {
  justify-content: center; /* center horizontally */
  text-align: center;      /* text center */
}

.footer .row.align-items-center p {
  margin-bottom: 0;
}



/* ===== CARD HOVER EFFECT ===== */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .section-py {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-cards {
    grid-template-columns: 1fr;
  }
  
  .menu-btn {
    display: block;
  }
  
  .navbar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 20px 230px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    gap: 15px;
  }
  
  .navbar.active {
    right: 0;
  }
  
  .navbar a {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .navbar a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .gallery-filter {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    margin-bottom: 0.5rem;
    width: 200px;
    text-align: center;
  }
  
  .news-timeline {
    padding-left: 1rem;
  }
  
  .news-item {
    padding-left: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .section-py {
    padding: 50px 0;
  }
  
  .hero-section {
    height: 80vh;
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .about-stats .stat-number {
    font-size: 2rem;
  }
}


/* ===== PRELOADER STYLES ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    animation: logo-pulse 2s infinite;
}

.logo-loader-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.progress-bar {
    width: 220px;
    height: 5px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto 1.2rem;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    width: 0%;
    border-radius: 5px;
    transition: width 0.4s ease;
}

.loading-text {
    font-size: 1.1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes logo-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Responsive adjustments for preloader */
@media (max-width: 575.98px) {
    .preloader-logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-loader-text {
        font-size: 1.5rem;
    }
    
    .progress-bar {
        width: 180px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
}