/* Custom Styles for CNC Corruption Platform */

        
        

:root {
  --primary-color: #0c1f46;
  --primary-light: #1a2f5a;
  --primary-dark: #081533;
  --primary-blue: #1e40af;
  --light-blue: #3b82f6;
  --dark-blue: #1e3a8a;
  --light-gray: #f8fafc;
  --medium-gray: #64748b;
  --dark-gray: #334155;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: #f8fafc;;
}

/* Header Styles */
.navbar {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  color: var(--dark-gray) !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-blue) !important;
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-section img {
  transition: transform 0.3s ease;
}

.hero-section img:hover {
  transform: scale(1.02);
}

/* Impact Cards */
.impact-card {
  position: relative;
  height: 200px;
  cursor: pointer;
  perspective: 1000px;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-front {
  background: white;
  border: 1px solid #e2e8f0;
}

.card-back {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: white;
  transform: rotateY(180deg);
}

.impact-card:hover .card-front {
  transform: rotateY(180deg);
}

.impact-card:hover .card-back {
  transform: rotateY(0deg);
}

.impact-card .card-front i {
  transition: transform 0.3s ease;
}

.impact-card:hover .card-front i {
  transform: scale(1.1);
}

/* Access Buttons */
.access-section {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
}

.access-button {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.access-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.access-button .btn-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.access-button:hover .btn-arrow {
  opacity: 1;
  transform: translateX(5px);
}

.access-button i {
  transition: transform 0.3s ease;
}

.access-button:hover i {
  transform: scale(1.1);
}

/* Case Cards */
.case-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.case-card img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-card:hover img {
  transform: scale(1.05);
}

.case-card .card-body {
  padding: 1.5rem;
}

.case-card .badge {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  color: var(--primary-blue);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* Word Cloud */
.word-cloud-container {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.word-cloud {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.word-item {
  position: absolute;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.word-item:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* Chart Container */
.chart-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 300px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1f2937, #111827) !important;
}

.social-links a {
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--light-blue) !important;
  transform: translateY(-3px);
}

.visitor-counter {
  background: var(--primary-blue);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 3rem 0;
  }

  .hero-section .row {
    flex-direction: column-reverse;
  }

  .impact-card {
    height: 180px;
    margin-bottom: 1rem;
  }

  .access-button {
    margin-bottom: 1rem;
  }

  .word-cloud-container,
  .chart-container {
    height: 250px;
    margin-bottom: 2rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Pulse Animation for Important Elements */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(30, 64, 175, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 64, 175, 0);
  }


  
}
