/* ===== ABOUT PAGE - PREMIUM REDESIGN ===== */

/* Hero Section - Premium */
.about-hero {
  height: 85vh;
  min-height: 600px;
  background: linear-gradient(rgba(5, 24, 45, 0.6), rgba(5, 24, 45, 0.8)), url('../assets/images/piscina-home.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect for desktop */
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 150px;
  /* Slight increase for desktop */
  overflow: hidden;
}

/* Animated particles background */
/* Overlay darker gradient for readability */
.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 0;
}


.about-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #EDECEC);
  pointer-events: none;
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
  }

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

.hero-content-wrapper h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #ffffff 0%, #b8d4f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero-content-wrapper p {
  font-size: 1.3rem;
  max-width: 750px;
  margin: 0 auto 45px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-hero {
  background: linear-gradient(135deg, #4a6fa5 0%, #5b7c99 100%);
  color: white;
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(74, 111, 165, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn-hero:hover::before {
  left: 100%;
}

.btn-hero:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(74, 111, 165, 0.6);
  background: linear-gradient(135deg, #5b7c99 0%, #4a6fa5 100%);
}

/* Intro Section - Premium */
.about-intro {
  padding: 120px 0;
  background: #EDECEC;
  position: relative;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-text h2 {
  font-size: 3.2rem;
  color: #05182d;
  margin-bottom: 35px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.intro-text p {
  color: #555;
  line-height: 1.9;
  font-size: 1.15rem;
  text-align: left;
  font-weight: 300;
}

.intro-visual {
  position: relative;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.grey-box {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(192, 212, 236, 0.3) 100%);
  border-radius: 35px;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.grey-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 111, 165, 0.1) 0%, transparent 70%);
  animation: rotate-slow 30s linear infinite;
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Features Section - MINIMAL PREMIUM REDESIGN */
.about-features {
  padding: 140px 0;
  background: linear-gradient(to bottom, #0a1828 0%, #05182d 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern */
.about-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(74, 111, 165, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 111, 165, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  pointer-events: none;
}

.about-features .container {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.about-features .section-title {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 100px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.text-blue {
  background: linear-gradient(135deg, #4a6fa5 0%, #7ba3d6 50%, #9ec5e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

/* Grid Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Feature Card - Minimal Design */
.feature-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  padding: 50px 40px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

/* Large Number */
.feature-number {
  position: absolute;
  top: -40px;
  right: 20px;
  font-size: 12rem;
  font-weight: 900;
  color: rgba(74, 111, 165, 0.08);
  line-height: 1;
  pointer-events: none;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -10px;
}

.feature-card h3 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 2;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  font-size: 1.05rem;
  font-weight: 300;
  position: relative;
  z-index: 2;
  margin: 0;
}

/* Accent Line */
.feature-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #4a6fa5 0%, #7ba3d6 100%);
  border-radius: 0 4px 4px 0;
  transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1);
}

/* Hover States */
.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(74, 111, 165, 0.3);
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.feature-card:hover .feature-accent {
  width: 100%;
}

.feature-card:hover .feature-number {
  color: rgba(74, 111, 165, 0.15);
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 100%;
  }

  .about-features .section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
  }

  .feature-number {
    font-size: 8rem;
    top: -20px;
    right: 15px;
  }

  .feature-card {
    padding: 40px 35px;
  }

  .feature-card h3 {
    font-size: 1.6rem;
  }

  .feature-card p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .about-features {
    padding: 100px 0;
  }

  .about-features .section-title {
    font-size: 2rem;
  }

  .feature-number {
    font-size: 6rem;
    opacity: 0.5;
  }
}

/* Pillars Section - Premium */
.about-pillars {
  padding: 120px 0;
  background: #EDECEC;
  /* Solid color to match footer */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-pillars::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(74, 111, 165, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(91, 124, 153, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.about-pillars .container {
  position: relative;
  z-index: 1;
}

.about-pillars .section-title {
  font-size: 3rem;
  color: #05182d;
  margin-bottom: 70px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.pillars-wrapper {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 100px;
  flex-wrap: wrap;
}

.pillar-card {
  background: white;
  padding: 60px 50px;
  border-radius: 35px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: center;
  /* Changed from left to center */
  flex: 1;
  max-width: 550px;
  min-width: 320px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4a6fa5 0%, #7ba3d6 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.pillar-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 30px 80px rgba(74, 111, 165, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(74, 111, 165, 0.2);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-badge {
  background: linear-gradient(135deg, #4a6fa5 0%, #5b7c99 100%);
  color: white;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(74, 111, 165, 0.3);
  letter-spacing: 0.5px;
}

.pillar-card p {
  color: #444;
  font-size: 1.2rem;
  line-height: 1.8;
  font-weight: 300;
  margin: 0;
}

/* Values Section - Premium */
.values-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.values-header-badge {
  background: linear-gradient(135deg, #c0d4ec 0%, #e8f0f8 100%);
  color: #162f4e;
  padding: 15px 55px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(192, 212, 236, 0.4);
  border: 2px solid rgba(74, 111, 165, 0.1);
  letter-spacing: 0.5px;
}

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

.value-box {
  background: white;
  padding: 50px 25px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.value-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.value-box:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 60px rgba(74, 111, 165, 0.2);
  border-color: rgba(74, 111, 165, 0.2);
}

.value-box:hover::before {
  opacity: 1;
}

.value-box i {
  font-size: 3rem;
  color: #4a6fa5;
  transition: all 0.4s ease;
  filter: drop-shadow(0 4px 10px rgba(74, 111, 165, 0.2));
  position: relative;
  z-index: 1;
}

.value-box:hover i {
  transform: scale(1.15) rotate(5deg);
  color: #3a5f95;
}

.value-box span {
  font-weight: 700;
  color: #162f4e;
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}

/* Tablet */
@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 0 20px;
  }

  .intro-text h2 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .grey-box {
    height: 400px;
    width: 100%;
    border-radius: 30px;
  }

  .values-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 800px;
    margin: 0 auto;
  }

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

  /* Keep features in columns on tablet */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 100%;
  }

  /* Mission and Vision side-by-side on tablet */
  .pillars-wrapper {
    flex-direction: row !important;
    gap: 30px;
  }

  .pillar-card {
    flex: 1;
    min-width: 300px;
  }

  .about-hero {
    min-height: 60vh;
    height: auto;
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .hero-content-wrapper p {
    font-size: 1.1rem;
    max-width: 90%;
    margin-bottom: 35px;
  }

  .about-features .section-title {
    font-size: 2.8rem;
    margin-bottom: 80px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .about-hero {
    min-height: 80vh;
    /* Taller on mobile for better impression */
    height: auto;
    padding-top: 140px !important;
    /* Increased to match index spacing */
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
    background-attachment: scroll;
    /* Fix mobile jitter */
  }

  .hero-content-wrapper h1 {
    font-size: 2.2rem;
    line-height: 1.25;
    text-wrap: balance;
    margin-bottom: 25px;
    font-weight: 900;
    /* Matching index mobile boldness */
    letter-spacing: -1px;
  }

  .hero-content-wrapper p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
  }

  .btn-hero {
    padding: 16px 35px;
    font-size: 1rem;
  }

  .about-intro {
    padding: 80px 0;
  }

  .intro-text h2 {
    font-size: 2rem;
  }

  .intro-text p {
    font-size: 1rem;
  }

  .grey-box {
    height: 280px;
    border-radius: 25px;
  }

  .about-features,
  .about-pillars {
    padding: 80px 0;
  }

  .about-features .section-title,
  .about-pillars .section-title {
    font-size: 2.1rem;
    margin-bottom: 50px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    /* Stack features on mobile */
    gap: 30px;
    padding: 0 20px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    /* Stack intro on mobile */
    gap: 40px;
    padding: 0 20px;
  }

  .intro-visual {
    order: 2;
    /* Image below text on mobile */
  }

  .pillars-wrapper {
    flex-direction: column !important;
    gap: 30px;
    margin-bottom: 70px;
  }

  .pillar-card {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: 40px 30px;
    margin: 0 auto;
  }

  .pillar-badge {
    font-size: 1.3rem;
    padding: 10px 30px;
    margin-bottom: 25px;
  }

  .pillar-card p {
    font-size: 1.1rem;
  }

  .values-header-badge {
    font-size: 1.5rem;
    padding: 12px 40px;
    margin-bottom: 40px;
  }

  .values-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 for iPad Mini and large mobile */
    max-width: 600px;
    margin: 0 auto;
    gap: 20px;
  }

  .value-box {
    padding: 40px 20px;
  }

  .about-cta-section {
    padding: 80px 0;
  }

  .cta-blue-box {
    padding: 60px 25px;
    border-radius: 35px;
  }

  .cta-blue-box h2 {
    font-size: 2rem;
  }

  .cta-blue-box p {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  .btn-cta-custom {
    padding: 18px 40px;
    font-size: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 576px) {
  .about-hero {
    height: 65vh;
  }

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

  .about-features .container,
  .about-pillars .container,
  .about-cta-section .container,
  .about-intro .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-features::before {
    background-size: 30px 30px;
  }

  .feature-number {
    font-size: 6rem;
    letter-spacing: -8px;
  }

  .pillar-card {
    padding: 35px 0px;
  }

  .pillar-badge {
    font-size: 1.2rem;
    padding: 8px 25px;
  }

  .pillar-card p {
    font-size: 1rem;
  }

  .values-icons-grid {
    grid-template-columns: 1fr !important;
    /* Single column on phones */
    max-width: 320px;
    margin: 0 auto;
    gap: 20px;
  }

  .value-box i {
    font-size: 2.5rem;
  }

  .value-box span {
    font-size: 1.1rem;
  }

  .cta-blue-box {
    padding: 50px 20px;
    border-radius: 30px;
  }

  .cta-blue-box h2 {
    font-size: 1.8rem;
  }

  .cta-blue-box p {
    font-size: 1rem;
  }
}

/* Very Small Mobile */
@media (max-width: 400px) {
  .hero-content-wrapper h1 {
    font-size: 1.8rem;
  }

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

  .btn-hero {
    padding: 14px 30px;
    font-size: 0.95rem;
  }

  .intro-text h2 {
    font-size: 1.8rem;
  }

  .about-features .section-title,
  .about-pillars .section-title {
    font-size: 1.9rem;
  }

  .feature-card {
    padding: 35px 25px;
  }

  .feature-number {
    font-size: 5rem;
  }

  .feature-card h3 {
    font-size: 1.4rem;
  }
}