/* ==========================================================================
   About Page Specific Styles
   ========================================================================== */

/* Hero */
.about-hero {
  padding: 140px 0 80px;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Atmospheric floating cells */
.about-hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(123, 104, 238, 0.06), transparent 70%);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  animation: morphBlob 18s ease-in-out infinite;
  pointer-events: none;
}

.about-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.05), transparent 70%);
  border-radius: 40% 60% 45% 55% / 60% 50% 50% 40%;
  animation: morphBlob 15s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes morphBlob {
  0%, 100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 40% 60% 45% 55% / 60% 50% 50% 40%;
    transform: rotate(180deg) scale(1.1);
  }
}

.about-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-hero-content p {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.8;
}

.about-hero-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  position: relative;
}

/* Gradient overlay on image */
.about-hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(123, 104, 238, 0.1), rgba(0, 217, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-hero-image:hover::after {
  opacity: 1;
}

.about-hero-image:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow:
    0 25px 50px rgba(10, 14, 39, 0.2),
    0 15px 30px rgba(123, 104, 238, 0.15);
}

.about-hero-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-hero-image:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .about-hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Our Work Section Header */
.section-purple h2 {
  position: relative;
  display: inline-block;
  color: white;
}

.section-purple h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-cyan), rgba(255, 255, 255, 0.8));
  border-radius: 2px;
}

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

/* Decorative element */
.work-grid::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.work-card {
  text-align: left;
  position: relative;
  z-index: 1;
}

.work-image {
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 25px;
  background: var(--color-dark);
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* Gradient overlay */
.work-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(123, 104, 238, 0.15), rgba(0, 217, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-image::after {
  opacity: 1;
}

.work-card:hover .work-image {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.work-image.dark {
  background: linear-gradient(135deg, #2a2a4e 0%, #1a1a3e 100%);
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
  transform: scale(1.08);
}

.work-image .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
  font-size: 1.25rem;
  font-weight: 500;
}

.work-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.work-card:hover h3 {
  color: var(--color-primary);
}

.work-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #555;
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .work-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  margin-top: 60px;
  position: relative;
}

/* Floating cell decoration */
.team-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 104, 238, 0.04), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.team-member {
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-member:hover {
  transform: translateY(-8px);
}

.team-photo {
  width: 130px;
  height: 130px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--color-dark), var(--color-dark)) padding-box,
              linear-gradient(135deg, var(--color-primary), var(--color-accent-cyan)) border-box;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(123, 104, 238, 0.2);
}

.team-member:hover .team-photo {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(123, 104, 238, 0.4);
}

/* Glow effect on hover */
.team-photo::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-cyan));
  opacity: 0;
  z-index: -1;
  filter: blur(15px);
  transition: opacity 0.3s ease;
}

.team-member:hover .team-photo::after {
  opacity: 0.5;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member:hover .team-photo img {
  transform: scale(1.05);
}

.team-member h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: white;
  transition: color 0.3s ease;
}

.team-member:hover h4 {
  color: var(--color-accent-cyan);
}

.team-member p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

@media (max-width: 1000px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .team-photo {
    width: 100px;
    height: 100px;
  }
}
