/* ================================
   BISTROI ENGINEERING AND CONSTRUCTION COMPANY WEBSITE CSS
   ================================ */

:root {
  --primary-color: #C51218;
  --secondary-color: #C51218;
  --dark-gray: #1a1a1a;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --text-dark: #000000;
  --text-light: #747d7d;
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-dark: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ================================
   GLOBAL STYLES
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

h4 {
  font-size: 1.3rem;
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.8rem;
}
.list-icon {
  color: var(--primary-color);
  margin-right: 0.5rem;
}
/* ================================
   BUTTONS
   ================================ */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 140, 66, 0.3);
}

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

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 58, 125, 0.3);
}

.btn-outline {
  background: var(--white);
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline:hover {
  background: var(--secondary-color);
  color: var(--white);
}

.btn-white-border {
  border-color: white;
  margin-top: 1rem;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--dark-gray);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: .5rem 2rem;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: var(--dark-gray);
  box-shadow: var(--box-shadow);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
    width: 40px;
    height: auto;
    border-radius: 8px;
}

.logo span {
  color: var(--secondary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s;
}

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

.nav-link:hover {
  color: var(--secondary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 62px;
}

.hero-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

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

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 52, 68, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  animation: slideInUp 1s ease-out;
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--secondary-color);
  width: 30px;
  border-radius: 6px;
}

.blog-hero-section {
  background: #000000;
  color: white; padding: 8rem 2rem;
  text-align: center; margin-top: 62px;
}

.blog-hero-section h1 {
  color: white;
}
.blog-hero-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
}

/* ================================
   SECTION STYLES
   ================================ */

section {
  padding: 5rem 2rem;
}

#blog,
#why-us,
.faq-section,
#featured-projects,
#team-preview,
.team-stats-section,
.project-category,
.careers-section,
.service-details-section,
.about-timeline-section {
  background: #f5f5f5;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 1rem;
}
/* ================================
    ABOUT SECTION
   ================================ */
.about-section,
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}
.about-section img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .about-section,
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   FEATURED SERVICES
   ================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 66, 0.1), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

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

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-card p {
  margin-bottom: 1.5rem;
}

/* ================================
   PROJECTS SECTION
   ================================ */

.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  /* group: "project"; */
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.project-btn {
  text-align: center;
  margin-top: 2rem;
}
.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 58, 125, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.project-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

/* ================================
   STATS SECTION
   ================================ */

.stats-section {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-gray));
  color: var(--white);
  padding: 5rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item h4 {
  color: var(--light-gray);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.9);
}

/* ================================
   TESTIMONIALS
   ================================ */

.testimonials-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  opacity: 0;
  position: absolute;
  width: 100%;
  transition: opacity 0.5s;
}

.testimonial-card.active {
  opacity: 1;
  position: relative;
}

.testimonial-card .stars {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-top: 1rem;
}

.testimonial-position {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.testimonial-dot.active {
  background: var(--secondary-color);
}

/* ================================
   TEAM SECTION
   ================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.team-member:hover .member-image {
  box-shadow: var(--box-shadow-dark);
}

.team-member h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.team-member p {
  color: var(--text-light);
}

.team-member-p {
  font-size: 0.85rem; color: var(--text-light);
}

.member-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.team-member:hover .member-socials {
  opacity: 1;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary-color);
  transform: scale(1.15);
}

.join-us {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.join-us div {
  background: white; padding: 2rem;
  border-radius: 8px; 
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.join-us div h3 {
  color: #000000; margin-bottom: 1rem;
}

.openings-arrow,
.fa-check {
  color: #C51218; margin-right: 0.5rem;
}

/* ================================
   FAQ SECTION
   ================================ */

.faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  background: var(--light-gray);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  font-weight: 600;
  color: var(--primary-color);
}

.faq-question:hover {
  background: rgba(255, 140, 66, 0.1);
}

.faq-toggle {
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
}

.faq-answer p {
  color: var(--text-light);
  margin: 0;
}

/* ================================
   CTA SECTION
   ================================ */

.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-gray));
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ================================
   BLOG SECTION
   ================================ */
.blog-section {
  background: #f5f5f5;
  padding: 5rem 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-dark);
}

.blog-image {
  width: 100%;
  /* height: 200px; */
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  margin-top: 0;
}

.blog-card p {
  margin-bottom: 1rem;
}

.read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  gap: 1rem;
}

/*
  Trust Us in about page
*/
.trust-us {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem; margin-top: 3rem;
}

/* ===============================
  SERVICE PAGE STYLING
  ==============================*/

  .service-hero-section {
    background-image: linear-gradient(rgba(0,0,0,.5), 
    rgba(0,0,0,.5)),url(../images/hero_slide_1.webp); 
    background-size: cover; 
    background-position: center; 
    color: white; padding: 8rem 2rem;
     text-align: center; margin-top: 62px;
  }

  .service-hero-section h1 {
    color: var(--white)
  }
  .service-hero-section p {
    font-size: 1.1rem; 
    color: rgba(255,255,255,0.9);
  }

  .service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: center;
    margin-bottom: 4rem;
  }

  .service-item img {
    width: 80%;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
  }

  .service-item div h2 {
    color: #000000;
    margin-bottom: 1rem;
  }


/* ================================
   MAP SECTION
   ================================ */
.map-section {
  background: #f5f5f5;
  padding: 3rem 2rem;
}

.map-section .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.iframe {
  width: 100%;
  height: 400px;
  border:0; border-radius: 8px;
}

/* ================================
   CONTACT SECTION
   ================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--primary-color), #000000);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
}

.contact-item p {
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  gap: 1rem;
}

.form-group input {
  flex: 1;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-btn {
  width: 100%;
}

/* ================================
   FOOTER
   ================================ */
footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background: var(--text-light);
  transform: translateY(-3px);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

.newsletter-btn {
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background: #ff7a1a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.fa-chevron-right {
  font-size: 0.7rem;
  margin-right: 0.5rem;
}

.privacy-terms {
  display: flex;
  gap: 1rem;
}

.privacy,
.terms {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.pagination {
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  justify-content: center; 
  gap: 0.5rem; flex-wrap: wrap;
}

.pagination-btn{
  width: 40px; height: 40px;
  border: 1px solid var(--dark-gray);
  background: white;
  color: var(--dark-gray);
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
}

.pagination-btn-active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}
/* ================================
   BACK TO TOP BUTTON
   ================================ */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(255, 140, 66, 0.3);
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(15, 58, 125, 0.4);
}

/* ================================
   PAGE LOADER
   ================================ */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 0.8s ease-out 1.5s forwards;
}

.loader {
  width: 60px;
  height: 60px;
  position: relative;
}

.loader div {
  position: absolute;
  border: 4px solid var(--secondary-color);
  opacity: 1;
  border-radius: 50%;
  animation: ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loader div:nth-child(2) {
  animation-delay: -0.5s;
}

.loader div:nth-child(3) {
  animation-delay: -1s;
}

/* ================================
   ANIMATIONS
   ================================ */


/*  ===============================
  ABOUT PAGE STYLING
  ================================= */

.about-hero-section {
  background-image: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),url(../images/hero_slide_4.webp);
  background-size: cover;
  background-position: center;
  color: white; padding: 8rem 2rem; 
  text-align: center; margin-top: 62px;
}

.team-hero-section H1,
.project-hero-section h1,
.about-hero-section h1 {
  color: white; margin-bottom: 1rem;
}

.team-hero-section P,
.project-hero-section p,
.about-hero-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
}
.about-story-section {
  padding: 2rem;
}

.about-mission-vision-section {
  background: #f5f5f5; padding: 5rem 2rem;
}
.mission-grid-child {
  background: white; padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.mission-grid-child div {
  font-size: 2.5rem; color: #C51218; margin-bottom: 1rem;
}

.about-values-section {
  padding: 5rem 2rem;
}

.timeline {
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.timeline div {
  padding: 1.5rem; border-left: 4px solid #C51218;
  margin-bottom: 2rem; 
  background: white; border-radius: 0 8px 8px 0;
}
.timeline-h4 {
  color: #C51218;
}

.trust-us-item {
  text-align: center;
}
.trust-us-item div {
  font-size: 3rem; color: #C51218; margin-bottom: 1rem;
}

/*  ============================
  PROJECT PAGE STYLING
  ===============================*/

.project-hero-section {
  background-image: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),url(../images/hero_slide_3.webp); background-size: cover; background-position: center;
  color: white; padding: 8rem 2rem;
  text-align: center; margin-top: 62px;
}

/* ===============================
   TEAMS PAGE STYLING
   ============================= */
.team-hero-section {
  background-image: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),url(../images/hero_slide_2.webp);
  background-size: cover;
  background-position: center; color: white;
  padding: 8rem 2rem; text-align: center;
  margin-top: 62px;
}

.team-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-top: 3rem;
  text-align: center;
}
.team-stats-grid div h3 {
  color: #C51218;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.team-stats-grid div p {
  color: var(--text-dark);
}


/* =======================
  CONTACT PAGE STYLING
 ======================== */
.contact-hero-section {
  background-image: linear-gradient(rgba(0,0,0,.5), 
  rgba(0,0,0,.5)),url(../images/contact-hero.jpg); 
  background-size: cover; background-position: center; 
  color: white; padding: 8rem 2rem; 
  text-align: center; margin-top: 62px;
}

.contact-hero-section h1 {
  color: white; margin-bottom: 1rem;
}
.contact-hero-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
}

.quick-p {
  font-weight: 600; color: #000000; margin-top: 1rem;
}
.quick-p-red {
  font-weight: 600; 
  color: red; margin-top: 1rem;
}

.social-media-section {
  padding: 3rem 2rem; text-align: center;
}

.social-media-section .container h3 {
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.social-media-section .container div {
  display: flex; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
}

/* =============================
  404 PAGE STYLIN
 ==============================*/

.section-404 {
  min-height: calc(100vh - 70px); 
  display: flex; align-items: center; 
  justify-content: center; 
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
   padding: 2rem; margin-top: 70px;
}

.section-404-container {
  text-align: center; max-width: 600px;
}

.section-404-container h1 {
  color: var(--text-dark);
   margin-bottom: 1rem;
}

.section-404-container p {
  color: var(--text-light); 
  font-size: 1.2rem; 
  margin-bottom: 2rem;
}
.number-404 {
  font-size: 8rem; 
  font-weight: 700; 
  color: #0f3a7d; 
  opacity: 0.1; 
  line-height: 1;
}
.error-icon {
  font-size: 5rem; 
  color: var(--primary-color); 
  margin: -3rem 0 2rem;
}

.search-bar {
  display: flex; 
  gap: 0.5rem; 
  margin-bottom: 3rem;
}

.search-bar input {
  flex: 1; padding: 12px; 
  border: 2px solid var(--dark-gray); 
  border-radius: 6px; font-size: 1rem;
}

.action-btn {
  display: flex; 
  gap: 1rem; 
  justify-content: center; 
  flex-wrap: wrap; 
  margin-bottom: 3rem;
}

.fa-home,
.fa-envelope {
  margin-right: 0.5rem;
}

.helpful-links {
  background: white; 
  padding: 2rem; 
  border-radius: 8px; 
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.helpful-links h3 {
  color: var(--dark-gray); 
  margin-bottom: 1.5rem;
}

.helpful-links div {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 1rem; 
  text-align: left;
}

.helpful-links div a {
  color: var(--dark-gray); 
  text-decoration: none; 
  padding: 0.8rem; 
  border-left: 3px solid var(--dark-gray); 
  padding-left: 1rem;
}


@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0;
    left: 0;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.scroll-animation {
  animation: fadeInUp 0.8s ease-out;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 62px;
    flex-direction: column;
    background-color: var(--dark-gray);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link::after {
    display: none;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .services-grid,
  .projects-grid,
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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

  .form-group {
    flex-direction: column;
  }

  .form-group input {
    width: 100%;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    margin-top: 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    gap: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

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

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

  .trust-us {
    grid-template-columns: 1fr;
  }

  .join-us {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .service-item img {
    width: 100%;
  }

  .item1 {
    order: 2;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.8rem 1rem;
  }

  .logo {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero {
    margin-top: 60px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
  }

  .services-grid,
  .projects-grid,
  .blog-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .stat-item h4 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .projects-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100%;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
  }
}

/* ================================
   UTILITY CLASSES
   ================================ */

.container-small {
  max-width: 900px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }

.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }
