/* =====================================================
   9UNIVERSE INFRACON — PROJECTS PAGE STYLES (UNIFIED)
===================================================== */

/* ========= BASE VARIABLES (Synchronized) ========= */
:root {
  --brand-red: #e63946;    /* ACCENT (10%) */
  --brand-blue: #142854;   /* PRIMARY DARK (60%) */
  --brand-blue-2: #0f2a57;
  --primary-color: var(--brand-red);
  --secondary-color: var(--brand-blue);
  --white: #ffffff;
  --bg-soft: #fbfcff;
  --glass: rgba(255, 255, 255, .96); 
  --muted: #6b7280;        
  --text-dark: #0f172a;    
  --card-bg: rgba(255, 255, 255, .98);
  --radius: 12px;
  --shadow-1: 0 8px 28px rgba(20, 40, 84, .08); 
  --shadow-2: 0 14px 40px rgba(20, 40, 84, .12); 
  --transition: 0.35s ease;
  --font-sans: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* =======================================
   DARK THEME VARIABLES AND STYLES (UNIVERSALIZED)
   ======================================= */
body.dark-theme {
  --bg-soft: #1c1c1c;
  --glass: rgba(28, 28, 28, .96);
  --white: #fff;
  --muted: #a0a0a0;
  --text-dark: #f0f0f0; 
  --card-bg: #2d2d2d; 
  --shadow-1: 0 8px 28px rgba(0, 0, 0, .4);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, .6);
  background: #121212; 
  transition: background-color 0.5s ease;
  color: var(--text-dark);
}

body.dark-theme img {
    filter: contrast(1.1);
}

body.dark-theme header {
  background: var(--card-bg);
  box-shadow: var(--shadow-2);
}

body.dark-theme nav ul li a {
  color: var(--text-dark);
}

body.dark-theme .header-actions button {
    color: var(--text-dark) !important; 
}

body.dark-theme nav ul.show {
    background: var(--card-bg);
    box-shadow: var(--shadow-2);
}

body.dark-theme .hamburger span {
  background: var(--text-dark); 
}

/* --- Project Specific Dark Mode Fixes --- */
body.dark-theme .projects-section {
    background: var(--bg-soft) !important;
}

body.dark-theme .project-card {
    background: var(--card-bg);
    box-shadow: var(--shadow-1) !important;
}

body.dark-theme .project-text h2 {
    color: var(--text-dark); 
}
body.dark-theme .project-text .location {
    color: var(--muted);
}
body.dark-theme .project-details ul li {
    color: var(--muted);
}
body.dark-theme .project-details strong {
    color: var(--text-dark);
}
body.dark-theme .project-highlights .feature {
    background: var(--bg-soft);
    color: var(--text-dark);
    box-shadow: var(--shadow-1) !important;
}

/* Filters and CTA */
body.dark-theme .filter-bar {
    background: var(--card-bg);
    box-shadow: var(--shadow-1);
}
body.dark-theme .filter-bar button {
    color: var(--muted);
    border: 1px solid var(--muted);
}
body.dark-theme .filter-bar button.active {
    background: var(--brand-red);
    color: var(--white);
    border-color: var(--brand-red);
}
body.dark-theme .cta-section {
    background: linear-gradient(135deg, rgba(20, 40, 84, 0.4), rgba(230, 57, 70, 0.2));
    box-shadow: var(--shadow-2);
}
body.dark-theme .cta-section h2 {
    color: var(--text-dark);
}
body.dark-theme .review-cta-section {
    background: var(--bg-soft);
}
body.dark-theme .review-cta-section .review-box {
    background: var(--card-bg);
    box-shadow: var(--shadow-2);
}
body.dark-theme .review-cta-section h3 {
    color: var(--text-dark);
}

/* New: Milestones Section */
body.dark-theme .milestones-grid {
    background: var(--card-bg);
    box-shadow: var(--shadow-2);
}
body.dark-theme .milestone-item h4 {
    color: var(--text-dark);
}
body.dark-theme .milestone-item p {
    color: var(--muted);
}


/* Footer Dark Theme Styling (Universal) */
body.dark-theme footer {
    background: linear-gradient(135deg, #0e1e3b, var(--brand-blue)); 
    color: var(--white);
}

body.dark-theme .footer-section h3 {
    color: var(--white) !important; 
}

body.dark-theme .section-title h2 {
    background: none !important;
    -webkit-background-clip: unset !important;
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
}

/* =======================================
   END DARK THEME STYLES
   ======================================= */


/* ========= GLOBAL STYLES (Copied from Index.css for Header/Footer) ========= */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: var(--base);
  overflow-x: hidden
}

img {
  max-width: 100%;
  display: block;
  height: auto
}

a {
  text-decoration: none;
  color: inherit
}

button {
  font-family: inherit
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem
}
/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(2, 6, 23, .12)
}

.logo img {
  height: 52px
}

nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0
}

nav ul li a {
  color: var(--brand-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color var(--transition)
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--brand-red)
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--brand-blue);
  border-radius: 3px
}

#theme-toggle-btn:hover {
  color: var(--brand-red) !important; 
  transform: scale(1.1);
}

@media(max-width:920px) {
  .hamburger {
    display: flex
  }

  nav ul {
    position: fixed;
    top: 72px;
    right: 12px;
    background: linear-gradient(180deg, var(--white), var(--bg-soft));
    flex-direction: column;
    color: var(--text-dark);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    display: none;
    width: 220px
  }

  nav ul.show {
    display: flex
  }
}

/* SECTION TITLE (Adjusted for Projects Page) */
.section-title {
  text-align: center;
  padding: 3rem 0 1.5rem;
}

.section-title h2 {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  padding: 0 .25rem
}

/* =====================
     HERO
  ====================== */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 72px;
  overflow: hidden;
  background: var(--secondary-color);
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(20, 40, 84, 0.75), 
    rgba(230, 57, 70, 0.55)
  ); 
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem); 
  margin: 0 0 .6rem;
  font-weight: 700;
  text-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

.hero-text p {
  font-size: 1.15rem;
  opacity: .95;
}


/* =====================
   PROJECTS SECTION (Enhanced)
===================== */
.projects-section {
  padding: 0; 
  background: var(--bg-soft);
}

/* --- Project Filters --- */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 72px; 
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-bar button {
    background: none;
    border: 1px solid var(--muted);
    color: var(--muted);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-bar button:hover:not(.active) {
    color: var(--brand-red);
    border-color: var(--brand-red);
}

.filter-bar button.active {
    background: var(--brand-blue);
    color: var(--white);
    border-color: var(--brand-blue);
}


/* Project Card */
.project-card {
  position: relative; 
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 3.5rem; 
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: translateY(30px);
  display: flex; 
}
.project-card.hidden {
    display: none;
}
.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-8px); 
  box-shadow: var(--shadow-2);
}

/* Gradient top border */
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px; 
  width: 100%;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue), #00aaff); 
  opacity: 0.95;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.project-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem; 
  width: 100%; 
}

.project-content.reverse {
  flex-direction: row-reverse;
}

.project-text {
  flex: 1;
  min-width: 300px;
}

.project-text h2 {
  font-size: 2.2rem; 
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 0.8rem;
  position: relative;
  padding-top: 1.5rem; 
}

/* 🔴 Red line above project title */
.project-text h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70px; 
  height: 4px; 
  background: var(--primary-color);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.project-text .location {
  color: var(--muted);
  font-size: 1rem; 
  margin-bottom: 0.8rem;
}

.status {
  display: inline-block;
  padding: 0.35rem 1.1rem; 
  border-radius: 20px;
  font-size: 0.85rem; 
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.7px; 
  margin: 0.4rem 0 1.5rem; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); 
}

.status.completed { background: #28a745; }
.status.ongoing { background: #ff9800; } 

.description {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* Highlights */
.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; 
  margin-bottom: 1.5rem;
}

.project-highlights .feature {
  background: var(--bg-soft);
  border-radius: 50px;
  padding: 0.5rem 1.2rem; 
  font-size: 0.95rem; 
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem; 
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


.project-highlights .feature i {
  color: var(--primary-color);
}

/* Project Details */
.project-details ul {
  list-style: none;
  margin: 1.5rem 0; 
  padding-left: 0;
  border-left: 3px solid var(--primary-color); 
  padding-left: 15px;
}

.project-details ul li {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.project-details ul li i {
    color: var(--primary-color);
    margin-right: 5px;
}

.project-details strong {
  color: var(--secondary-color);
}

/* Buttons */
.project-buttons {
  margin-top: 1.5rem;
}

.project-buttons .btn {
  display: inline-flex; 
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 50px; 
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3); 
  border: none;
}

.project-buttons .btn:hover {
  background: #c92c3a;
  transform: translateY(-4px); 
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.45);
}

.call-btn {
  background: #007bff;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
  margin-left: 1rem;
}

.call-btn:hover {
  background: var(--secondary-color);
  box-shadow: 0 10px 30px rgba(20, 40, 84, 0.4);
}

/* Swiper */
.project-swiper {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  max-width: 45%; 
  display: flex;
  align-items: center;
}

/* FIX: Image containment and remove fixed height */
.project-swiper .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-swiper .swiper-wrapper {
    height: 100%;
}
.project-swiper .swiper-slide img {
  width: 100%;
  max-height: 400px;
  height: auto; 
  object-fit: contain; /* FIX: Ensure full image is visible */
  transition: transform 0.5s ease;
}

.project-swiper .swiper-slide img:hover {
  transform: scale(1.03); 
}


/* --- Project Enquiry CTA --- */
.cta-section {
    padding: 3rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(20, 40, 84, 0.05), rgba(230, 57, 70, 0.05));
    border-radius: var(--radius);
    margin: 4rem auto;
    max-width: 90%;
    box-shadow: var(--shadow-1);
}

.cta-section h2 {
    font-size: 1.8rem;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cta-section p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-section .btn {
    margin-top: 0;
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

/* --- Review CTA Section --- */
.review-cta-section {
    padding: 4rem 1rem;
    background: #f8fbfc; 
    text-align: center;
}

.review-box {
    max-width: 450px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
}

.review-box h3 {
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.review-box p {
    color: var(--muted);
    font-size: 1rem;
}

/* --- Project Milestones Section --- */
.project-milestones {
    padding: 4rem 1rem;
    background: var(--bg-soft);
    text-align: center;
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}

.milestone-item {
    text-align: center;
}

.milestone-item i {
    font-size: 3rem;
    color: var(--brand-red);
    margin-bottom: 0.5rem;
}

.milestone-item h4 {
    font-size: 1.8rem;
    color: var(--brand-blue);
    font-weight: 800;
    margin: 0;
}

.milestone-item p {
    color: var(--muted);
    font-weight: 600;
    margin-top: 0.2rem;
}


@media (max-width: 992px) {
  .project-content {
    flex-direction: column;
    padding: 1.5rem;
  }
  .project-swiper {
      max-width: 100%; 
      height: 300px; 
  }
  .project-swiper .swiper-slide img {
    height: auto;
    max-height: 280px;
  }
  .project-text h2 {
      padding-top: 1rem;
  }
  .project-card {
      margin-bottom: 2.5rem;
  }
  .project-content.reverse {
      flex-direction: column;
  }
}



/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 50px;
  right: 22px;
  width: 50px;
  height: 50px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1200;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform .3s ease;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #1ebe57;
}

/* Nice pulse animation */
@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Hide on small phones if needed */
@media(max-width:600px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
  }
}



/* FOOTER */
footer {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: var(--white);
  padding: 3rem 1rem 1rem;
  margin-top: 1.5rem
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, .08);
  padding-bottom: .5rem
}

.footer-section p,
.footer-section ul {
  font-size: .95rem;
  color: rgba(255, 255, 255, .9)
}

.footer-section ul {
  list-style: none;
  padding: 0
}

.footer-section ul li {
  margin-bottom: .5rem
}

.footer-section a {
  color: rgba(255, 255, 255, .9);
  transition: color .3s
}

.footer-section a:hover {
  color: var(--brand-red)
}

.footer-social a {
  font-size: 1.4rem;
  margin-right: 1.2rem;
  transition: color .3s, transform .3s
}

.footer-social a:hover {
  color: var(--brand-red);
  transform: scale(1.08)
}


.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12)
}

.footer-bottom p {
  font-size: .85rem;
  margin: 0;
  color: rgba(255, 255, 255, .75)
}
/* Footer Map Responsive Fix */
.footer .map-section iframe {
  width: 100% !important;
  height: 220px;
  border-radius: 10px;
  border: 0;
  display: block;
}

/* Focus */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(20, 40, 84, .06);
  border-radius: 8px
}

/* RESPONSIVE */
@media(max-width:1100px) {
  .hero-text h1 {
    font-size: 2.05rem
  }

  .project-card img {
    height: 220px
  }

  .gallery-swiper .swiper-slide img {
    height: 340px
  }
}

@media(max-width:920px) {
  .about-container {
    grid-template-columns: 1fr
  }

  .usp-grid {
    grid-template-columns: 1fr
  }

  nav ul {
    display: none
  }

  .hamburger {
    display: flex
  }

  nav ul.show {
    display: flex;
    position: fixed;
    top: 72px;
    right: 12px;
    background: var(--card-bg);
    flex-direction: column;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    width: 220px
  }

  .search-bar input,
  .search-bar select {
    width: 100%
  }

  .search-card {
    flex-direction: column;
    text-align: center
  }

  .search-card img {
    max-height: 220px;
    width: 100%
  }

  .search-card-actions {
    justify-content: center
  }
}

@media(max-width:600px) {
  .logo img {
    height: 40px
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center
  }

  .footer-bottom p:first-child {
    order: 2
  }

  .masonry-grid {
    column-count: 1
  }

  .hero {
    min-height: 62vh
  }
}