@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary: #e07a5f;
  --secondary: #3d405b;
  --background: #f4f1de;
  --accent: #f2cc8f;
  --dark: #2c2c2c;
  --light: #fafafa;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}
.content-image {
  border-radius: 8px;
  object-fit: cover;
}
@media all and (min-width: 768px) {
  .content-image {
    width: 500px;
    height: 500px;
    margin-right: 2rem !important;
    float: left;
  }
}
@media all and (max-width: 768px) {
  .content-image {
    height: 350px;
    margin-bottom: 1rem !important;
  }
}
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.content h1 {
  font-size: 2rem !important;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.25rem !important;
}

.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  font-size: 1.5rem !important;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem !important;
}

.content p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.25rem !important;
}

.content ul,
.content ol {
  margin-bottom: 1.25rem !important;
  margin-left: 2rem;
}

.content ul {
  list-style-type: disc;
}

.content ol {
  list-style-type: decimal;
}

.content li {
  margin-bottom: 0.5rem;
}

.content a {
  color: #007bff;
  text-decoration: underline;
  font-weight: 500;
}

.content blockquote {
  font-size: 1.25rem;
  font-style: italic;
  border-left: 4px solid #007bff;
  padding-left: 1rem;
  margin-bottom: 1.5rem !important;
  color: #555;
}

.content strong {
  font-weight: 600;
}

.content em {
  font-style: italic;
}

.content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

/* Nav Link */
.nav-link {
  color: rgba(var(--secondary), 0.8);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* CTA Button */
.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

/* Showcase Item */
.showcase-item {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.7s ease;
}

.showcase-item.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Category Card */
.category-card {
  perspective: 1000px;
}

.category-card:hover > div {
  transform: rotateX(10deg) rotateY(10deg) scale(1.05);
}

/* Map Point */
.map-point {
  position: relative;
}

.map-point::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(224, 122, 95, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

/* Flip Card */
.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* 3D Preserve */
.preserve-3d {
  transform-style: preserve-3d;
}

.rotate-y-180 {
  transform: rotateY(180deg);
}

.backface-hidden {
  backface-visibility: hidden;
}

/* Stats Card */
.stats-card {
  transition: all 0.3s;
}

.stats-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Global Transitions */
* {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Grain Texture */
.bg-grain {
  position: relative;
}

.bg-grain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23F2CC8F" fill-opacity="0.1"%3E%3Ccircle cx="5" cy="5" r="1"/%3E%3Ccircle cx="15" cy="25" r="1"/%3E%3Ccircle cx="35" cy="15" r="1"/%3E%3Ccircle cx="45" cy="35" r="1"/%3E%3Ccircle cx="25" cy="45" r="1"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .showcase-item {
    padding: 1.5rem;
  }

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

/* map */
.map-container {
  padding: 3.2rem 0.8rem;
  position: relative;
  display: inline-block;
}
.map-container img {
  width: 100%;
}
.map-container .point {
  cursor: pointer;
  position: absolute;
  width: 1rem;
  height: 1rem;
  background-color: #dc2626;
  border-radius: 50%;
  transition: all 0.3s ease;
  will-change: transform, box-shadow;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 rgba(0, 172, 193, 0.4);
  animation: pulse 3s infinite;
}
.map-container .point:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
.map-container .south-america {
  top: 68%;
  left: 26%;
}
.map-container .north-america {
  top: 26%;
  left: 15%;
}
.map-container .africa {
  top: 50%;
  left: 51%;
}
.map-container .europe {
  top: 25%;
  left: 51%;
}
.map-container .asia {
  top: 28%;
  left: 69%;
}
.map-container .australia {
  top: 74%;
  left: 87%;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 #dc2626;
  }
  70% {
    box-shadow: 0 0 0 25px rgba(0, 172, 193, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 172, 193, 0);
  }
}

/* Tooltip styling */
.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}
