/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Top header styles */
.top-header {
  width: 100%;
  background: #fff;
  color: #001f5b;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.top-header .company-text {
  font-weight: 700;
  color: #001f5b;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.top-header a img {
  width: 22px;
  height: 22px;
  margin-left: 10px;
  vertical-align: middle;
}

/* Main header styles */
header {
  position: fixed;
  top: 0px; /* below top header */
  left: 0;
  width: 100%;
  background: #0a1a2f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  
}

header .logo img {
  height: 90px;
  width: 250px;
  border-radius: 10px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
}

header nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 800;
  transition: 0.3s;
}

header nav ul li a:hover {
  color: #007bff;
}

/* Body padding to avoid overlap with fixed headers */
body {
  padding-top: 180px; /* top-header (45px) + main header (~135px) */
  background: #f5f5f5;
}

/* Footer styles */
footer {
  background: #0a1a2f;
  color: #fff;
  padding: 20px 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-left img {
  width: 150px;
  height: 60px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.footer-right {
  text-align: right;
}

.footer-links a {
  color: #fff;
  margin-left: 15px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social a {
  margin-left: 10px;
}

.footer-social img {
  width: 22px;
  height: 22px;
  transition: 0.3s;
}

.footer-social img:hover {
  opacity: 0.7;
}

/* Slider styles */
.slider {
  position: relative;
  max-width: 1200px; 
  margin: 30px auto 40px; /* space between header and slider */
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); 
  height: 550px;
}

.slide {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover; 
  transition: opacity 0.5s ease-in-out;
}

.active {
  display: block;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 15px 18px;
  cursor: pointer;
  font-size: 28px;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 50px;
  text-align: center;
  background: #f8f9fa;
}

.info-cards h2 {
  grid-column: 1 / -1;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.card img {
  height: 180px;
  width: 180px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 12px;
}

.card h3 {
  font-size: 1.4rem;
  color: #002147;
  margin-bottom: 10px;
}

.card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.4;
}

/* Projects Section */
.projects {
  padding: 40px 20px;
  text-align: center;
  background: #f9f9f9;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222;
}

.project-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.project-card {
  width: 300px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  padding: 15px;
  color: #333;
}
/* Styling for the View All Projects Button */
.view-all-projects-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 30px;
    background-color: #0a1a2f; /* Dark background from your header */
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.view-all-projects-btn:hover {
    background-color: #007bff; /* Hover color from your nav links */
    transform: translateY(-2px);
}

/* Floating Icons */
.floating-icons {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.floating-icons .circle {
  background: #0a1a2f;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.floating-icons .circle:hover {
  background: #001f5b;
}

.floating-icons .circle .label {
  position: absolute;
  right: 60px;
  background: #0a1a2f;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  transition: 0.3s;
  pointer-events: none;
}

.floating-icons .circle:hover .label {
  opacity: 1;
  transform: translateX(0);
}

/* Popup Button and Form */
#openPopup { /* Using #openPopup as the default opener ID for consistency */
  padding: 12px 24px;
  background: navy;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9998;
  font-weight: 600;
}

#openPopup:hover {
  background: #001f5b;
}

body.popup-active {
  overflow: hidden; /* Prevents background scrolling */
}

.popup-overlay {
  display: none; /* Changed: We'll use JS to toggle between 'none' and 'flex' initially */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* 🛑 FIX: This CSS is crucial to hide the popup before it opens, 
   but we rely on JS to set 'display: flex' on open. */
.popup-overlay.show {
  display: flex; 
} 

.popup-box {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid navy;
  border-radius: 10px;
  width: 450px;
  max-width: 90%;
  padding: 25px;
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.5s ease;
}

.popup-overlay.show .popup-box {
  transform: translateY(0);
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.close-btn:hover {
  color: #ff5757;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid textarea,
.form-grid .submit-btn {
  grid-column: span 2;
}

.form-grid input,
.form-grid textarea {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid navy;
  border-radius: 6px;
  padding: 10px;
  color: #0a1a2f;
  font-size: 14px;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: #00c6ff;
  outline: none;
}

.submit-btn {
  background: navy;
  color: #fff;
  border-radius: 6px;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: 0.3s;
}

.submit-btn:hover {
  background: #001f5b;
}

::placeholder {
  color: #002147;
}
/* Expertise Section */
.expertise-section {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 80px 60px;
  background: url("background.jpg") no-repeat center center/cover;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
  min-height: 500px;
}

.expertise-section::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.expertise-heading {
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  z-index: 2;
}

.expertise-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  z-index: 2;
  position: relative;
}

.expertise-box {
  perspective: 1000px;
  height: 150px;
}

.expertise-card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.expertise-box:hover .expertise-card {
  transform: rotateY(180deg);
}

.expertise-front,
.expertise-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  padding: 25px 15px;
}

.expertise-front {
  background-color: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.expertise-front i {
  font-size: 35px;
  color: #0a1a2f;
  margin-bottom: 10px;
}

.expertise-back {
  background-color: #0a1a2f;
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* --- Reset & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
/* Section Container */
.why-choose-us {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f5f7fa, #e0e5ec);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Heading */
.why-choose-us h1 {
    font-size: 3rem;
    text-align: center;
    color: #0a1a2f;
    margin-bottom: 60px;
    position: relative;
}

.why-choose-us h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #007bff;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Points Container */
.point-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.point-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Icon Styling */
.icon {
    font-size: 2rem;
    color: #007bff;
    flex-shrink: 0;
    margin-top: 5px;
}

/* Point Text */
.main-point {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a1a2f;
    margin-bottom: 8px;
}

.point-detail {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .why-choose-us {
        padding: 50px 20px;
    }

    .why-choose-us h1 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .point-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .main-point {
        font-size: 1.2rem;
    }

    .point-detail {
        font-size: 0.95rem;
    }
}


