/* Importação dos arquivos CSS separados */
@import 'common.css';
@import 'home.css';
@import 'about.css';
@import 'statistics.css';
@import 'ai-analysis.css';
@import 'future-impact.css';
@import 'awards.css';
@import 'other-tools.css';
@import 'contact.css';
@import 'navbar.css';
@import 'footer.css';

/* About Section Grid Layout */
.about {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0a1528 100%);
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 187, 85, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 187, 85, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

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

.about .section-title {
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 3.5rem;
  text-align: center;
  position: relative;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about .section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #ffaa33 100%);
  border-radius: 2px;
  box-shadow: 0 0 20px var(--accent);
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.about-intro p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.2px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  background: linear-gradient(145deg, rgba(14, 33, 62, 0.8), rgba(20, 50, 90, 0.8));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card:hover .card-inner {
  transform: translateY(-15px);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 187, 85, 0.2) 0%, rgba(255, 187, 85, 0) 60%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-image {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 33, 62, 0.9) 0%, rgba(10, 21, 40, 0.95) 100%);
  overflow: hidden;
}

.image-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.about-card-image img {
  max-width: 80%;
  max-height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.2));
  transition: all 0.5s ease;
}

.about-card:hover .about-card-image img {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 10px 25px rgba(255, 255, 255, 0.4));
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2) 0%, rgba(var(--accent-rgb), 0) 70%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-card:hover .glow-effect {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

.about-card-content {
  padding: 1.8rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.about-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--white);
  position: relative;
  display: inline-block;
  font-weight: 600;
  letter-spacing: -0.03em;
  transition: all 0.3s ease;
}

.about-card h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(255, 170, 51, 0.5) 100%);
  transition: width 0.3s ease;
}

.about-card:hover h3 {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(255, 187, 85, 0.3);
}

.about-card:hover h3::after {
  width: 75px;
}

.about-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.about-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

.card-icon {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 1.75rem;
  color: var(--accent);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.about-card:hover .card-icon {
  opacity: 1;
  transform: scale(1.2);
}

/* Floating particles */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.2;
  z-index: 1;
  animation: float 15s infinite linear;
}

.particle:nth-child(1) {
  top: 10%;
  left: 10%;
  width: 8px;
  height: 8px;
  animation-duration: 20s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 20%;
  left: 80%;
  width: 10px;
  height: 10px;
  animation-duration: 25s;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  top: 65%;
  left: 20%;
  width: 7px;
  height: 7px;
  animation-duration: 22s;
  animation-delay: 5s;
}

.particle:nth-child(4) {
  top: 80%;
  left: 70%;
  width: 9px;
  height: 9px;
  animation-duration: 18s;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  top: 40%;
  left: 40%;
  width: 6px;
  height: 6px;
  animation-duration: 24s;
  animation-delay: 0s;
}

.particle:nth-child(6) {
  top: 30%;
  left: 60%;
  width: 8px;
  height: 8px;
  animation-duration: 30s;
  animation-delay: 3s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.2;
  }
  25% {
    opacity: 0.5;
  }
  50% {
    transform: translate(100px, 100px) rotate(180deg);
    opacity: 0.3;
  }
  75% {
    opacity: 0.6;
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
    opacity: 0.2;
  }
}

/* Animation for scroll effects */
[data-scroll-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-scroll-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Apply different animation delays for staggered effect */
.about-card:nth-child(1) {
  transition-delay: 0.1s;
}

.about-card:nth-child(2) {
  transition-delay: 0.3s;
}

.about-card:nth-child(3) {
  transition-delay: 0.5s;
}

.about-card:nth-child(4) {
  transition-delay: 0.7s;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .about-grid {
    padding: 0 2rem;
  }

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

@media (max-width: 992px) {
  .about {
    padding: 5rem 0;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

  .about-intro p {
    font-size: 1.2rem;
  }

  .about-card h3 {
    font-size: 1.8rem;
  }

  .about-card-image {
    height: 140px;
  }

  .about-card-image img {
    max-height: 80px;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 4rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-intro {
    margin-bottom: 3rem;
  }

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

  .about-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 0 1rem;
  }

  .about-card-image {
    height: 150px;
  }

  .about-card-image img {
    max-height: 90px;
  }

  .about-card-content {
    padding: 1.5rem;
  }

  .about-card h3 {
    font-size: 1.8rem;
  }

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

  /* For mobile, add more dramatic animation on scroll */
  [data-scroll-animate] {
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
  }
}

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

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

  .about-intro p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .about-card-image {
    height: 130px;
  }

  .about-card-image img {
    max-height: 70px;
  }

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

  .about-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .card-icon {
    font-size: 1.5rem;
  }
}
