/* =========================================================
   PROJECTS PAGE — ULTRA PREMIUM (Clean + Consistent)
   Keeps your existing class names / structure
========================================================= */

:root{
  --gradient-primary: linear-gradient(135deg, #006bd6 0%, #1a8cff 100%);
  --gradient-secondary: linear-gradient(135deg, #dbae26 0%, #f7c948 100%);
  --gradient-dark: linear-gradient(135deg, #0b1220 0%, #050a14 100%);
  --gradient-light: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);

  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.14);
  --ink: #0f172a;
  --muted: rgba(15,23,42,.70);
  --shadow-lg: 0 26px 70px rgba(2, 8, 23, .18);
  --shadow-md: 0 18px 55px rgba(2, 8, 23, .12);
  --radius-lg: 22px;
  --radius-md: 18px;
}

/* =========================
   Logo (consistent)
========================= */
.logo-image{
  height: clamp(46px, 4.6vw, 96px);
  width: auto;
  object-fit: contain;
  display:block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
  transition: height .25s ease, transform .25s ease, opacity .25s ease;
}

.header.sticky .logo-image{
  height: clamp(44px, 4.2vw, 86px);
}

.footer-logo-image{
  max-height: 150px;
  width: auto;
  margin-bottom: 20px;
}

/* WhatsApp */
.whatsapp-float{
  right: 30px;
  bottom: 30px;
  left: auto;
}

/* =========================
   HERO (Luxury, calm, clean)
========================= */
.projects-hero{
  height: 72vh;
  min-height: 520px;
  display:flex;
  align-items:center;
  color:#fff;
  position:relative;
  overflow:hidden;

  background:
    radial-gradient(circle at 15% 15%, rgba(0,107,214,.18), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(219,174,38,.14), transparent 55%),
    linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.72)),
    url("image - 2026-01-04T072020.069.webp");
  background-size:cover;
  background-position:center;
  background-attachment: fixed;

  border-bottom: 1px solid rgba(255,255,255,.10);
}

.hero-overlay-design{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 500px at 10% 30%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(255,255,255,.05), transparent 60%);
  opacity:.55;
  pointer-events:none;
}

.projects-hero-content{
  max-width: 920px;
  position:relative;
  z-index:2;
  text-align:center;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 18px;
  border-radius: 999px;

  background: #007aff;
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: rgba(255,255,255,.92);
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: .82rem;
}

.projects-hero h1{
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  margin: 18px 0 14px;
  line-height: 1.05;
  letter-spacing: -1px;
  text-shadow: 0 16px 40px rgba(0,0,0,.35);
}

.hero-subtitle{
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  opacity:.92;
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
}

.hero-stats{
  display:flex;
  justify-content:center;
  gap: 56px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-stat-number{
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  font-weight: 800;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat-label{
  font-size: .88rem;
  opacity: .85;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =========================
   FILTER (premium controls)
========================= */
.projects-filter{
  padding: 70px 0 44px;
  background: var(--gradient-light);
}

.filter-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.filter-header{
  text-align:center;
  margin-bottom: 34px;
}

.filter-header h2{
  margin-bottom: 10px;
}

.filter-buttons{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.filter-btn{
  padding: 11px 20px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 999px;
  font-weight: 700;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  font-family: 'Jost', sans-serif;
  font-size: .98rem;
  color: rgba(15,23,42,.86);
}

.filter-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(2, 8, 23, .10);
  border-color: rgba(0,107,214,.22);
}

.filter-btn.active{
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(0,107,214,.18);
}

.search-box{
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.search-input{
  width:100%;
  padding: 14px 48px 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.88);
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.search-input:focus{
  outline:none;
  border-color: rgba(0,107,214,.45);
  box-shadow: 0 0 0 4px rgba(0,107,214,.14);
  background: #fff;
}

.search-icon{
  position:absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15,23,42,.55);
  font-size: 1.1rem;
}

/* =========================
   PROJECTS GRID (Luxury Masonry)
========================= */
.premium-projects{
  padding: 92px 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(0,107,214,.14), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(219,174,38,.12), transparent 55%),
    linear-gradient(rgba(21, 17, 17, 0.92), rgba(35, 32, 32, 0.92)),
    url("HydroDrill-Solutions-favicon.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.projects-masonry{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 40px;
  margin-top: 60px;
  align-items: stretch;
}

.project-masonry-item{
  position:relative;
  border-radius: var(--radius-lg);
  overflow:hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(247,248,251,.96) 100%);
  min-height: 520px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-md);
  transition: transform .32s ease, box-shadow .32s ease, filter .32s ease;
}

.project-masonry-item::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(900px 450px at 30% 0%, rgba(255,255,255,.20), transparent 60%);
  opacity:.55;
}

.project-masonry-item:hover{
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  filter: saturate(1.02);
}

.project-masonry-item.featured{
  grid-column: span 2;
  min-height: 620px;
}

/* Image container */
.project-image-container{
  position:relative;
  aspect-ratio: 16 / 10;
  background: #fff;
  overflow:hidden;
}

.project-masonry-item.featured .project-image-container{
  aspect-ratio: 16 / 9;
}

.project-image{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1);
  transition: transform .5s ease, opacity .5s ease;
}

.project-masonry-item:hover .project-image{
  transform: scale(1.04);
  opacity: .98;
}

.project-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,.28) 100%);
  opacity: 1; /* subtle always */
  pointer-events:none;
}

/* Tags */
.project-category,
.project-featured-tag{
  position:absolute;
  top: 16px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3px;
  z-index:2;

  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color:#fff;
}

.project-category{ right: 16px; }
.project-featured-tag{ left: 16px; display:flex; gap:8px; align-items:center; }

/* Content */
.project-content{
  padding: 30px 28px 32px;
  display:flex;
  flex-direction:column;
  flex-grow:1;
}

.project-meta{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .9rem;
  color: rgba(15,23,42,.62);
}

.project-title{
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.3px;
}

.project-description{
  color: rgba(15,23,42,.72);
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-tech{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tech-tag{
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  background: rgba(0,107,214,.10);
  border: 1px solid rgba(0,107,214,.18);
  color: var(--primary-color);
}

/* CTA */
.project-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(0,107,214,.30);
  color: var(--primary-color);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.project-link:hover{
  background: var(--gradient-primary);
  color:#fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* =========================
   Modal (glass + luxury)
========================= */
.gallery-modal{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.92);
  z-index:2000;
  opacity:0;
  transition: opacity .25s ease;
}

.gallery-modal.active{
  display:flex;
  opacity:1;
  align-items:center;
  justify-content:center;
}

.modal-content{
  position:relative;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
}

.modal-image{
  max-width:100%;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.modal-close{
  position:absolute;
  top:-44px;
  right:0;
  background:none;
  border:none;
  color: rgba(255,255,255,.92);
  font-size: 2rem;
  cursor:pointer;
  transition: transform .2s ease, color .2s ease;
}

.modal-close:hover{
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.modal-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor:pointer;
  transition: transform .2s ease, background .2s ease;
}

.modal-nav:hover{
  background: rgba(255,255,255,.18);
  transform: translateY(-50%) scale(1.05);
}

.modal-prev{ left: -72px; }
.modal-next{ right: -72px; }

/* =========================
   Testimonials (premium)
========================= */
.project-testimonials{
  padding: 96px 0;
  background: var(--gradient-dark);
  color:#fff;
  position:relative;
  overflow:hidden;
}

.project-testimonials::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 15% 10%, rgba(0,107,214,.10), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(219,174,38,.08), transparent 55%);
  opacity:.9;
  pointer-events:none;
}

.testimonial-slide{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 46px;
}

.testimonial-content{
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 26px;
  font-style: italic;
  color: rgba(255,255,255,.88);
}

.author-avatar{
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
}

.author-info h4{ color:#fff; margin-bottom: 4px; }
.author-info p{ color: rgba(255,255,255,.7); font-size: .92rem; }

.swiper-pagination-bullet{
  background: rgba(255,255,255,.45);
  opacity: 1;
}
.swiper-pagination-bullet-active{
  background: var(--secondary-color);
}

/* =========================
   Impact Stats
========================= */
.impact-stats{
  padding: 96px 0;
  background: var(--gradient-light);
}

.stats-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 34px;
  margin-top: 44px;
}

.stat-card{
  text-align:center;
  padding: 46px 28px;
  background: rgba(255,255,255,.92);
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 55px rgba(2, 8, 23, .10);
  transition: transform .25s ease, box-shadow .25s ease;
  position:relative;
  overflow:hidden;
}

.stat-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height: 5px;
  background: var(--gradient-primary);
}

.stat-card:hover{
  transform: translateY(-10px);
  box-shadow: 0 26px 70px rgba(2, 8, 23, .16);
}

.stat-icon{
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.stat-number{
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label{
  color: rgba(15,23,42,.70);
  font-size: 1.05rem;
}

/* =========================
   CTA (clean, not loud)
========================= */
.project-cta{
  padding: 96px 0;
  background: var(--gradient-primary);
  color:#fff;
  text-align:center;
  position:relative;
  overflow:hidden;
}

.project-cta::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.12), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.08), transparent 55%);
  opacity:.85;
  pointer-events:none;
}

.project-cta h2{
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 16px;
  color:#fff;
}

.project-cta p{
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 70ch;
  margin: 0 auto 38px;
  opacity: .92;
  line-height: 1.7;
}

.cta-buttons{
  display:flex;
  justify-content:center;
  gap: 18px;
  flex-wrap:wrap;
}

.btn-gold{
  background: var(--gradient-secondary);
  color:#111;
  border:none;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.btn-gold:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(219, 174, 38, .28);
}

/* =========================
   MOBILE NAV FIX (visibility)
========================= */
.nav-toggle{
  display:none;
  flex-direction: column;
  cursor:pointer;
  gap: 6px;
  z-index: 1001;
}

.nav-toggle span{
  width: 26px;
  height: 3px;
  background-color: rgba(255,255,255,.95); /* WHITE sticks */
  border-radius: 999px;
  transition: var(--transition);
  transform-origin: center;
}

.header.sticky .nav-toggle span{
  background-color: rgba(255,255,255,.95);
}

/* Toggle animation */
.nav-toggle.active span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

/* =========================
   Solar Gallery (image-only)
========================= */
.solar-gallery{ padding: 90px 0; }
.gallery-slider{ margin-top: 40px; }
.gallery-content{ display:none !important; }
.gallery-slider .swiper-slide{ height:auto; }

.gallery-slide{
  position:relative;
  width:100%;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow:hidden;
  background:#000;
  box-shadow: 0 22px 55px rgba(0,0,0,.28);
  transition: transform .35s ease, box-shadow .35s ease;
  transform: translateZ(0);
}

.gallery-image{ width:100%; height:100%; }

.gallery-image img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.05);
  transition: transform .85s ease;
}

.gallery-slide::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.42), rgba(0,0,0,.12) 40%, rgba(0,0,0,.05));
  opacity: 0;
  transition: opacity .35s ease;
}

.gallery-slide:hover{
  transform: translateY(-8px);
  box-shadow: 0 34px 80px rgba(0,0,0,.38);
}
.gallery-slide:hover img{ transform: scale(1.14); }
.gallery-slide:hover::after{ opacity: 1; }

/* =========================
   Responsive
========================= */
@media (max-width: 1200px){
  .project-masonry-item.featured{
    grid-column: span 1;
    min-height: 520px;
  }
}

@media (max-width: 992px){
  .projects-hero{
    height: 62vh;
    min-height: 440px;
    background-attachment: scroll;
  }

  .nav-toggle{ display:flex; }

  .nav-menu{
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: black;
    flex-direction: column;
    padding: 110px 26px 26px;
    transition: right .35s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,.12);
    z-index: 1000;

    /* JS-friendly (no display:none) */
    display: flex;
  }

  .nav-menu.active{ right: 0; }

  .projects-masonry{
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
  }

  .modal-prev{ left: -62px; }
  .modal-next{ right: -62px; }
}

@media (max-width: 768px){
  .hero-stats{
    flex-direction: column;
    gap: 20px;
  }

  .filter-btn{
    padding: 10px 16px;
    font-size: .92rem;
  }

  .projects-masonry{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-content{ padding: 22px; }
  .project-title{ font-size: 1.32rem; }

  .cta-buttons{
    flex-direction: column;
    align-items: center;
  }

  .whatsapp-float{
    right: 20px;
    bottom: 20px;
  }

  .modal-nav{ display:none; }

  .gallery-slide{ height: 260px; border-radius: 18px; }
}

@media (max-width: 420px){
  .gallery-slide{ height: 220px; border-radius: 16px; }
}

@media (max-width: 576px){
  .testimonial-slide{ padding: 30px; }
  .testimonial-content{ font-size: 1.08rem; }
}