/* ===== PORTFOLIO PAGE - ULTRA PREMIUM REDESIGN ===== */

/* Luxury Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes particles {

  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 1;
  }
}

/* Portfolio Intro - Cinematic Hero */
.portfolio-intro {
  padding: 180px 0 120px;
  background:
    linear-gradient(135deg, #05182d 0%, #0a1828 40%, #162f4e 70%, #1e3a5f 100%);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out;
}

/* Animated particle grid */
.portfolio-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(74, 111, 165, 0.12) 2px, transparent 2px),
    radial-gradient(circle at 85% 75%, rgba(91, 124, 153, 0.08) 2px, transparent 2px),
    radial-gradient(circle at 45% 50%, rgba(123, 163, 214, 0.06) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 80px 80px;
  animation: particles 15s ease-in-out infinite;
  pointer-events: none;
}

/* Radial glow overlay */
.portfolio-intro::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(74, 111, 165, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.portfolio-intro .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Luxury title with shimmer */
.portfolio-intro h1 {
  font-size: 4.5rem;
  color: white;
  margin-bottom: 35px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  background: linear-gradient(120deg,
      #ffffff 0%,
      #b8d4f1 25%,
      #ffffff 50%,
      #c8dff5 75%,
      #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  filter: drop-shadow(0 6px 25px rgba(0, 0, 0, 0.4));
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
  animation: slideInFromLeft 0.8s ease-out 0.2s both, shimmer 4s linear 1s infinite;
}

/* Premium paragraph */
.portfolio-intro p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 900px;
  margin: 0 auto;
  line-height: 2;
  font-weight: 300;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Filter Section - Minimalist Clean */
.portfolio-filters {
  padding: 30px 0;
  background: #EDECEC;
  position: sticky;
  top: 80px;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.portfolio-filters .container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 20px;
}

/* Minimalist filter buttons */
.filter-btn {
  background: transparent;
  color: #555;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.3px;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: #4a6fa5;
  transition: transform 0.3s ease;
}

.filter-btn:hover {
  color: #05182d;
  background: rgba(74, 111, 165, 0.08);
}

.filter-btn.active {
  color: #4a6fa5;
  background: rgba(74, 111, 165, 0.1);
}

.filter-btn.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Portfolio Grid - Premium Layout */
.portfolio-grid-section {
  padding: 80px 0 120px;
  background: #EDECEC;
}

.portfolio-grid-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

/* Portfolio Item - Premium Card */
.portfolio-item {
  height: 450px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1) both;
}

.portfolio-item:nth-child(1) {
  animation-delay: 0.1s;
}

.portfolio-item:nth-child(2) {
  animation-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
  animation-delay: 0.3s;
}

.portfolio-item:nth-child(4) {
  animation-delay: 0.4s;
}

.portfolio-item:nth-child(5) {
  animation-delay: 0.5s;
}

.portfolio-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Tablet/Mobile Refinements */
@media (max-width: 1100px) {
  .portfolio-intro {
    padding: 140px 0 80px;
  }

  .portfolio-intro h1 {
    font-size: 3.2rem;
    letter-spacing: -1px;
    margin-bottom: 25px;
  }

  .portfolio-intro p {
    font-size: 1.2rem;
    max-width: 90%;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px;
  }

  .portfolio-item {
    height: 380px;
    /* Slightly shorter cards for tablets */
  }
}

@media (max-width: 600px) {
  .portfolio-intro {
    padding: 120px 0 60px;
  }

  .portfolio-intro h1 {
    font-size: 2.5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 0 10px;
  }
}

/* CTA Section (Reusing or creating specific style) */
.cta-section {
  padding: 60px 20px;
  text-align: center;
}

.cta-container {
  background: linear-gradient(135deg, #05182d 0%, #162f4e 100%);
  border-radius: 30px;
  padding: 60px 40px;
  max-width: 1000px;
  margin: 0 auto;
  color: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.cta-container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-container p {
  color: #c0d4ec;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  padding: 15px 35px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hidden {
  display: none !important;
}


/* ===== ABOUT PAGE (REFINED) ===== */

/* Hero */
.about-hero {
  height: 70vh;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%, rgba(237, 236, 236, 1) 100%), url('../assets/images/hero-about.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 80px;
}

.hero-content-wrapper h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content-wrapper p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.btn-hero {
  background-color: #3b5d8f;
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
  background-color: #2a4469;
  transform: translateY(-2px);
}

/* Intro */
.about-intro {
  padding: 100px 0;
  background-color: #f4f6f9;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-text h2 {
  font-size: 2.8rem;
  color: #162f4e;
  margin-bottom: 30px;
  line-height: 1.2;
  font-weight: 700;
}

.intro-text p {
  color: #555;
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: justify;
}

.grey-box {
  width: 100%;
  height: 400px;
  background-color: #e0e0e0;
  border-radius: 30px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Features */
.about-features {
  padding: 100px 0;
  background-color: #fff;
  text-align: center;
}

.features-container {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.feature-content-card {
  background: white;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  text-align: left;
  max-width: 450px;
  border: 1px solid #f0f0f0;
  position: relative;
  z-index: 2;
}

.feature-content-card h3 {
  font-size: 1.8rem;
  color: #162f4e;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.feature-content-card p {
  color: #666;
  line-height: 1.6;
  font-size: 1.05rem;
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.circle-placeholder {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 20px solid #e0e0e0;
  /* Mimic pipe ring */
}

.rect-placeholder {
  width: 350px;
  height: 250px;
  border-radius: 20px;
  background-color: #162f4e;
  /* Mimic panel */
}

.seal-placeholder {
  width: 200px;
  height: 200px;
}

.seal-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #162f4e;
  color: #c9a256;
  /* Goldish */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 5px solid #c9a256;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Pillars */
.about-pillars {
  padding: 100px 0;
  background-color: #f4f6f9;
  text-align: center;
}

.pillars-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 80px;
}

.pillar-card {
  background: white;
  padding: 50px 40px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: left;
  flex: 1;
  max-width: 500px;
  position: relative;
}

.pillar-badge {
  background-color: #c0d4ec;
  color: #162f4e;
  padding: 8px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 25px;
}

.pillar-card p {
  color: #555;
  font-size: 1.15rem;
  line-height: 1.6;
}

.values-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.values-header-badge {
  background-color: #c0d4ec;
  color: #162f4e;
  padding: 12px 50px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 50px;
}

.values-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-box {
  background: white;
  padding: 40px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border: 1px solid #eee;
  transition: transform 0.3s;
}

.value-box:hover {
  transform: translateY(-5px);
}

.value-box i {
  font-size: 2.5rem;
  color: #3b5d8f;
}

.value-box span {
  font-weight: 700;
  color: #162f4e;
  font-size: 1.1rem;
}

/* CTA */
.about-cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-blue-box {
  background: linear-gradient(135deg, #0d233e 0%, #162f4e 100%);
  color: white;
  padding: 80px 40px;
  border-radius: 40px;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(22, 47, 78, 0.4);
  position: relative;
  overflow: hidden;
}

/* Add a subtle wave or texture if possible via CSS */
.cta-blue-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.cta-blue-box h2 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.cta-blue-box p {
  color: #d0e1f5;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
}

.btn-cta-custom {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.btn-cta-custom:hover {
  background: white;
  color: #162f4e;
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-content-card {
    text-align: center;
    margin: 0 auto;
  }

  .pillars-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .pillar-card {
    width: 100%;
  }

  .values-icons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Utility for JS filtering */
.hidden {
  display: none !important;
}

/* Empty state styling */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 100px;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

.empty-state-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.1), rgba(91, 124, 153, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.empty-state-icon i {
  font-size: 3.5rem;
  color: rgba(74, 111, 165, 0.4);
}

.empty-state h3 {
  font-size: 1.8rem;
  color: #05182d;
  margin-bottom: 12px;
  font-weight: 700;
}

.empty-state p {
  font-size: 1.1rem;
  color: #666;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}