@import url("./global.css");
@import url("./components/partnersCarousel.css");

body {
  margin-top: 1rem;
}

.home-hero {
  position: relative;
  height: calc(100vh - 2rem);
  overflow: hidden;
  border-radius: 2rem;
  margin-inline: 1rem;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

.home-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 80%;
  padding: 0 20px;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(256, 256, 256, 0.7);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(256, 256, 256, 0.7);
  line-height: 1.4;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-description {
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.hero-stat-description {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 400;
  line-height: 1.3;
}

.hero-stat:last-child {
  margin-bottom: 2rem;
}

.hero-dots {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: white;
  border-color: white;
}

.hero-cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cta {
  display: flex;
  white-space: pre;
}

.hero-cta svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
  fill: currentColor;
}

/* Hero slide overlay */
.hero-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-stat-number {
    font-size: 2rem;
  }

  .stat-description {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-dots {
    bottom: 3rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .stat-description {
    font-size: 0.9rem;
  }

  .home-hero {
    height: 100vh;
    margin-inline: 0;
    border-radius: 0;
  }
}

/* Statistics Section */
.stats-section {
  padding: 5rem 0;
  background-color: var(--color-accent);
  border-top-left-radius: 4rem;
  border-top-right-radius: 4rem;
  margin-top: -4rem;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.stats-title {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: var(--h2-line-height);
  color: var(--color-text);
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.stats-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-blue));
  border-radius: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, #e8e8e8 100%);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 88, 163, 0.1);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.stat-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0s);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
}

.stat-unit {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-description {
  font-size: var(--text-size);
  font-weight: var(--text-weight);
  line-height: var(--text-line-height);
  color: var(--color-text);
  opacity: 0.8;
}

/* Responsive Statistics Section */
@media screen and (max-width: 768px) {
  .stats-section {
    padding: 3rem 0;
  }

  .stats-container {
    padding: 0 1rem;
  }

  .stats-title {
    margin-bottom: 3rem;
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-card {
    padding: 2rem 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 480px) {
  .stats-section {
    padding: 2rem 0;
  }

  .stats-container {
    padding: 0 1rem;
  }

  .stats-title {
    margin-bottom: 2rem;
    font-size: 1.8rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-unit {
    font-size: 1rem;
  }
}

/* General Animation Classes */
[class*="card"]:not(.stat-card):not(.project-card) {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[class*="card"]:not(.stat-card):not(.project-card).animate-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0s);
}

.stats-section,
.products-section,
.partnership-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.stats-section.animate-in,
.products-section.animate-in,
.partnership-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Individual element animations within sections */
.partnership-title,
.section-title,
.partnership-info,
.partnership-description {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.partnership-section.animate-in .partnership-title,
.partnership-section.animate-in .partnership-info,
.partnership-section.animate-in .partnership-description {
  opacity: 1;
  transform: translateY(0);
}

.partnership-section.animate-in .partnership-title {
  transition-delay: 0.2s;
}

.partnership-section.animate-in .partnership-description {
  transition-delay: 0.4s;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .stat-card,
  [class*="card"],
  .stats-section,
  .products-section,
  .partnership-section,
  .partnership-title,
  .section-title,
  .partnership-info,
  .partnership-description,
  .product-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .stat-card.animate-in,
  [class*="card"].animate-in,
  .stats-section.animate-in,
  .products-section.animate-in,
  .partnership-section.animate-in,
  .partnership-section.animate-in .partnership-title,
  .partnership-section.animate-in .partnership-info,
  .partnership-section.animate-in .partnership-description,
  .products-section.animate-in .product-item {
    opacity: 1;
    transform: none;
  }
}

/* Product Sections */
/* Products Section */
.products-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--background-light) 0%, #f8fafc 100%);
  border-bottom-left-radius: 4rem;
  border-bottom-right-radius: 4rem;
}

.side-by-side-section {
  border-radius: 0;
}

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

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.products-section.animate-in .product-item {
  opacity: 1;
  transform: translateY(0);
}

.products-section.animate-in .product-item[data-delay="0"] {
  transition-delay: 0.2s;
}

.products-section.animate-in .product-item[data-delay="1"] {
  transition-delay: 0.4s;
}

.products-section.animate-in .product-item[data-delay="2"] {
  transition-delay: 0.6s;
}

.product-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-img:hover {
  transform: scale(1.05);
}

/* Responsive Products Section */
@media screen and (max-width: 768px) {
  .products-section {
    padding: 3rem 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .product-item {
    gap: 1rem;
  }
}

/* Partnership Section */
.partnership-section {
  padding: 5rem 0;
  background-color: var(--color-accent);
}

.partnership-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.partnership-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.partnership-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.partnership-title {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: var(--h2-line-height);
  color: var(--color-text);
  margin: 0;
}

.partnership-description {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partnership-description p {
  font-size: var(--text-size);
  font-weight: var(--text-weight);
  line-height: var(--text-line-height);
  color: var(--color-text);
  margin: 0;
}

.partnership-link {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-size);
  text-transform: lowercase;
  position: relative;
  align-self: flex-start;
  transition: color 0.3s ease;
}

.partnership-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.partnership-link:hover {
  color: var(--color-blue);
}

.partnership-link:hover::after {
  width: 100%;
  background-color: var(--color-blue);
}

.partnership-cta {
  background: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-blue) 100%
  );
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--color-accent);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 30px rgba(0, 88, 163, 0.2);
}

.cta-title {
  font-size: var(--h4-size);
  font-weight: var(--h4-weight);
  margin: 0;
  color: var(--color-accent);
}

.cta-subtitle {
  font-size: var(--text-size);
  margin: 0;
  opacity: 0.9;
}

.cta-button {
  background-color: var(--color-accent);
  color: var(--color-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-size);
  transition: all 0.3s ease;
  align-self: center;
}

.cta-button:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* World Map Styles */
.world-map-container {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.world-map {
  position: relative;
  width: 100%;
  height: 400px;
}

.map-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.continents-map {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.6;
  filter: brightness(0.9) contrast(1.1);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.partner-dot {
  fill: var(--color-secondary);
  stroke: var(--color-accent);
  stroke-width: 3;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.continent-dot {
  fill: var(--color-secondary);
  stroke: var(--color-accent);
  stroke-width: 3;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.partner-dot:hover,
.continent-dot:hover {
  fill: var(--color-blue);
  r: 10;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: pulse 0.6s ease-in-out;
}

.partner-dot.headquarters,
.continent-dot.headquarters {
  fill: var(--color-blue);
  r: 10;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.country-tooltip {
  position: absolute;
  background-color: var(--color-dark);
  color: var(--color-accent);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.3s ease;
  z-index: 10;
  white-space: nowrap;
}

.country-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-dark);
}

.country-tooltip.show {
  opacity: 1;
}

/* Responsive Partnership Section */
@media screen and (max-width: 768px) {
  .partnership-section {
    padding: 3rem 0;
  }

  .partnership-container {
    padding: 0 1rem;
  }

  .partnership-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .partnership-cta {
    padding: 1.5rem;
  }

  .world-map {
    height: 300px;
  }

  .world-map-container {
    padding: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .partnership-section {
    padding: 2rem 0;
  }

  .partnership-container {
    padding: 0 1rem;
  }

  .partnership-content {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .world-map {
    height: 250px;
  }

  .partnership-cta {
    padding: 1rem;
  }
}

#certificates .partner-logo {
  height: 20rem;
}

/* Responsive Projects Section */
@media screen and (max-width: 768px) {
  .projects-section {
    padding: 3rem 0;
  }

  .projects-section .container {
    padding: 0 1rem;
  }

  .section-header {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  .carousel-container {
    padding: 0 2rem;
  }

  .project-card {
    flex: 0 0 320px;
    padding: 1.5rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn-prev {
    left: -20px;
  }

  .carousel-btn-next {
    right: -20px;
  }

  .carousel-indicators {
    display: none;
  }
}

.dark-section {
  background-color: var(--color-dark);
  margin-top: -4rem;
}

.dark-section > h3 {
  margin-right: 17.5rem;
  margin-left: auto;
  padding-block: 18.5rem;
  color: var(--color-accent);
  max-width: 23rem;
}

@media screen and (max-width: 768px) {
  .dark-section > h3 {
    margin-left: 3rem;
    margin-right: 3rem;
  }
}
