/* ===== SUCCESS EXPORTS THEME VARIABLES ===== */
:root {
  /* Light Theme - Success Exports Colors */
  --se-bg: #f8f9fa;
  --se-card-bg: #ffffff;
  --se-title-color: #2c4964;
  --se-text-color: #6c757d;
  --se-border: #e9ecef;
  --se-shadow: rgba(0, 0, 0, 0.1);
  --se-shadow-hover: rgba(0, 0, 0, 0.15);
  --se-divider: #ddd;
  --se-image-border: #e9ecef;
}

/* Dark Theme - Success Exports Colors */
@media (prefers-color-scheme: dark) {
  :root {
    --se-bg: #1a202c;
    --se-card-bg: #2d3748;
    --se-title-color: #f8f9fa;
    --se-text-color: #cbd5e1;
    --se-border: #4a5568;
    --se-shadow: rgba(0, 0, 0, 0.3);
    --se-shadow-hover: rgba(0, 0, 0, 0.5);
    --se-divider: #4a5568;
    --se-image-border: #4a5568;
  }
}

/* Manual Dark Theme Override */
[data-theme="dark"] {
  --se-bg: #1a202c;
  --se-card-bg: #2d3748;
  --se-title-color: #f8f9fa;
  --se-text-color: #cbd5e1;
  --se-border: #4a5568;
  --se-shadow: rgba(0, 0, 0, 0.3);
  --se-shadow-hover: rgba(0, 0, 0, 0.5);
  --se-divider: #4a5568;
  --se-image-border: #4a5568;
}

/* Manual Light Theme Override */
[data-theme="light"] {
  --se-bg: #f8f9fa;
  --se-card-bg: #ffffff;
  --se-title-color: #2c4964;
  --se-text-color: #6c757d;
  --se-border: #e9ecef;
  --se-shadow: rgba(0, 0, 0, 0.1);
  --se-shadow-hover: rgba(0, 0, 0, 0.15);
  --se-divider: #ddd;
  --se-image-border: #e9ecef;
}

/* ===== SUCCESS EXPORTS SECTION STYLES ===== */
.success-exports {
  padding: 80px 0;
  background: var(--se-bg);
  overflow: hidden;
  transition: background 0.3s ease;
}

.success-exports .section-title {
  text-align: center;
  padding-bottom: 40px;
}

.success-exports .section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--se-title-color);
  transition: color 0.3s ease;
}

.success-exports .section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: var(--se-divider);
  bottom: 1px;
  left: calc(50% - 60px);
  transition: background 0.3s ease;
}

.success-exports .section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #0d6efd;
  bottom: 0;
  left: calc(50% - 20px);
}

.success-exports .section-title p {
  margin-bottom: 0;
  font-size: 18px;
  color: var(--se-text-color);
  max-width: 600px;
  margin: 0 auto;
  transition: color 0.3s ease;
}

/* ===== CAROUSEL VIEWPORT ===== */
.carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 20px 0;
  position: relative;
}

.carousel-viewport::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Gradient fade on edges */
.carousel-viewport::before,
.carousel-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 10;
  pointer-events: none;
  transition: background 0.3s ease;
}

.carousel-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--se-bg) 0%, transparent 100%);
}

.carousel-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--se-bg) 0%, transparent 100%);
}

/* ===== SUCCESS EXPORTS CONTAINER ===== */
.se_container {
  display: flex;
  gap: 30px;
  padding: 0 40px;
  min-width: max-content;
  animation: scroll 30s linear infinite;
}

/* Pause animation on hover */
.se_container:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-320px * 6 - 30px * 6));
  }
}

/* ===== EXPORT CARD STYLES ===== */
.box {
  min-width: 320px;
  background: var(--se-card-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px var(--se-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--se-border);
  position: relative;
  overflow: hidden;
}

.box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--se-shadow-hover);
}

.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #17a2b8);
  z-index: 1;
}

/* ===== IMAGE STYLES ===== */
.box .image {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--se-image-border);
  transition: all 0.3s ease;
  position: relative;
  background: var(--se-border);
}

.box:hover .image {
  border-color: #0d6efd;
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(13, 110, 253, 0.3);
}

.box .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Dark mode image adjustments */
@media (prefers-color-scheme: dark) {
  .box .image img {
    opacity: 0.95;
  }
  
  .box:hover .image img {
    opacity: 1;
    filter: brightness(1.1) contrast(1.05);
  }
}

[data-theme="dark"] .box .image img {
  opacity: 0.95;
}

[data-theme="dark"] .box:hover .image img {
  opacity: 1;
  filter: brightness(1.1) contrast(1.05);
}

/* ===== TEXT CONTENT ===== */
.box .name_job {
  font-size: 20px;
  font-weight: 700;
  color: var(--se-title-color);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 18px;
  transition: color 0.3s ease;
}

.box .name_job::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #0d6efd;
  transition: width 0.3s ease;
}

.box:hover .name_job {
  color: #0d6efd;
}

.box:hover .name_job::after {
  width: 60px;
}

.box p {
  color: var(--se-text-color);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
  transition: color 0.3s ease;
}

/* ===== COLOR VARIANTS FOR CATEGORIES ===== */
.box.software::before { 
  background: linear-gradient(90deg, #17a2b8, #20c997); 
}

.box.essential-oils::before { 
  background: linear-gradient(90deg, #fd7e14, #ffc107); 
}

.box.protein::before { 
  background: linear-gradient(90deg, #20c997, #198754); 
}

.box.nutraceuticals::before { 
  background: linear-gradient(90deg, #dc3545, #e83e8c); 
}

.box.food-spices::before { 
  background: linear-gradient(90deg, #6610f2, #6f42c1); 
}

.box.agriculture::before { 
  background: linear-gradient(90deg, #e83e8c, #fd7e14); 
}

/* Dark mode - Enhanced gradient visibility */
@media (prefers-color-scheme: dark) {
  .box.software::before,
  .box.essential-oils::before,
  .box.protein::before,
  .box.nutraceuticals::before,
  .box.food-spices::before,
  .box.agriculture::before {
    opacity: 0.9;
  }
}

/* ===== CATEGORY BADGES (Optional Enhancement) ===== */
.box .category-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  transition: all 0.3s ease;
  z-index: 2;
}

.box:hover .category-badge {
  background: #0d6efd;
  color: white;
}

/* ===== LOADING STATE ===== */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: var(--se-text-color);
  font-size: 18px;
  transition: color 0.3s ease;
}

.loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid var(--se-border);
  border-top: 4px solid #0d6efd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== EMPTY STATE ===== */
.success-exports-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--se-text-color);
  transition: color 0.3s ease;
}

.success-exports-empty i {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
  color: var(--se-text-color);
  transition: all 0.3s ease;
}

.success-exports-empty h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--se-title-color);
  transition: color 0.3s ease;
}

.success-exports-empty p {
  font-size: 16px;
  color: var(--se-text-color);
  transition: color 0.3s ease;
}

/* ===== HOVER EFFECTS ===== */
.box:hover {
  border-color: #0d6efd;
}

/* Dark mode hover adjustments */
@media (prefers-color-scheme: dark) {
  .box:hover {
    background: #374151;
    border-color: #0d6efd;
  }
}

[data-theme="dark"] .box:hover {
  background: #374151;
  border-color: #0d6efd;
}

/* ===== FADE-IN ANIMATION ===== */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.box {
  animation: fadeInScale 0.5s ease-out;
}

.box:nth-child(1) { animation-delay: 0.1s; }
.box:nth-child(2) { animation-delay: 0.2s; }
.box:nth-child(3) { animation-delay: 0.3s; }
.box:nth-child(4) { animation-delay: 0.4s; }
.box:nth-child(5) { animation-delay: 0.5s; }
.box:nth-child(6) { animation-delay: 0.6s; }

/* ===== CARD SHINE EFFECT ===== */
.box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.box:hover::after {
  animation: shine 1.5s ease-in-out;
}

@keyframes shine {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .success-exports {
    padding: 60px 0;
  }

  .se_container {
    padding: 0 20px;
    gap: 20px;
  }
  
  .box {
    min-width: 280px;
    padding: 20px;
  }
  
  .box .image {
    width: 80px;
    height: 80px;
  }
  
  .box .name_job {
    font-size: 18px;
  }
  
  .box p {
    font-size: 13px;
  }
  
  .success-exports .section-title h2 {
    font-size: 28px;
  }
  
  .success-exports .section-title p {
    font-size: 16px;
    padding: 0 15px;
  }

  .carousel-viewport::before,
  .carousel-viewport::after {
    width: 40px;
  }
}

@media (max-width: 480px) {
  .success-exports {
    padding: 40px 0;
  }

  .se_container {
    padding: 0 15px;
    gap: 15px;
  }
  
  .box {
    min-width: 250px;
    padding: 15px;
  }

  .box .image {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }
  
  .box .name_job {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .box p {
    font-size: 12px;
    margin-bottom: 15px;
  }
  
  .success-exports .section-title h2 {
    font-size: 24px;
    padding-bottom: 15px;
  }
  
  .success-exports .section-title p {
    font-size: 14px;
  }

  .category-badge {
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 10px;
  }

  .carousel-viewport::before,
  .carousel-viewport::after {
    width: 30px;
  }
}

/* ===== ACCESSIBILITY ===== */
.box:focus-within {
  outline: 2px solid #0d6efd;
  outline-offset: 4px;
}

.box:focus-within .name_job {
  color: #0d6efd;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .se_container {
    animation: none;
  }
  
  .box:hover {
    transform: none;
  }
  
  .box:hover .image {
    transform: scale(1.05);
  }
  
  .box::after {
    display: none;
  }
  
  .box {
    animation: none;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  .box {
    border: 2px solid currentColor;
  }
  
  .box .image {
    border: 3px solid currentColor;
  }
  
  .box .name_job::after {
    background: currentColor;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .success-exports {
    background: white;
    padding: 40px 0;
  }
  
  .se_container {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .box {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
    min-width: 280px;
    margin-bottom: 20px;
  }
  
  .box::after {
    display: none;
  }

  .carousel-viewport::before,
  .carousel-viewport::after {
    display: none;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .box:active {
    transform: scale(0.98);
  }
  
  .carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .box {
    scroll-snap-align: center;
  }
  
  .se_container {
    animation: none;
  }
}

/* ===== LOADING SHIMMER EFFECT ===== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.box.loading {
  background: linear-gradient(
    90deg,
    var(--se-card-bg) 0%,
    var(--se-border) 50%,
    var(--se-card-bg) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

.box.loading .image,
.box.loading .name_job,
.box.loading p {
  opacity: 0.3;
}

/* ===== SMOOTH SCROLLBAR (Optional) ===== */
.carousel-viewport {
  scrollbar-width: thin;
  scrollbar-color: #0d6efd var(--se-border);
}

.carousel-viewport::-webkit-scrollbar {
  height: 6px;
}

.carousel-viewport::-webkit-scrollbar-track {
  background: var(--se-border);
  border-radius: 3px;
}

.carousel-viewport::-webkit-scrollbar-thumb {
  background: #0d6efd;
  border-radius: 3px;
}

.carousel-viewport::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}

/* ===== FOCUS INDICATORS ===== */
.box a:focus,
.box button:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
  border-radius: 3px;
}

/* ===== THEME TRANSITION ===== */
.success-exports,
.box,
.box .image,
.box .name_job,
.box p,
.carousel-viewport::before,
.carousel-viewport::after {
  transition: all 0.3s ease;
}

/* ===== STAT COUNTER (Optional Enhancement) ===== */
.box .stat {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--se-border);
}

.box .stat-item {
  text-align: center;
}

.box .stat-number {
  font-size: 18px;
  font-weight: 700;
  color: #0d6efd;
  display: block;
  margin-bottom: 5px;
}

.box .stat-label {
  font-size: 11px;
  color: var(--se-text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== EXPORT INDICATOR DOTS ===== */
.export-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.export-indicator .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--se-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.export-indicator .dot.active {
  background: #0d6efd;
  transform: scale(1.2);
}

.export-indicator .dot:hover {
  background: #0d6efd;
  opacity: 0.7;
}