/* Prime Minister Global Certification Portal - Green Theme */

/* Green Color Scheme inspired by PGC NAVTTC */
:root {
  --pgc-primary-green: #2d8f47;
  --pgc-light-green: #4caf50;
  --pgc-dark-green: #1b5e20;
  --pgc-success: #66bb6a;
  --pgc-accent-green: #81c784;
  --pgc-mint: #a5d6a7;
  --pgc-forest: #388e3c;
  --pgc-emerald: #00c853;
  --pgc-secondary: #2196f3;
  --pgc-warning: #ff9800;
  --pgc-danger: #f44336;
  --pgc-info: #00bcd4;
  --pgc-light: #f1f8e9;
  --pgc-dark: #1a1a1a;
  --pgc-gradient: linear-gradient(135deg, #2d8f47 0%, #4caf50 50%, #66bb6a 100%);
  --pgc-hero-gradient: linear-gradient(135deg, rgba(45, 143, 71, 0.95) 0%, rgba(76, 175, 80, 0.9) 50%, rgba(102, 187, 106, 0.85) 100%);
}

/* Global Styles */
body {
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  color: var(--pgc-dark);
  background-color: #fafafa;
}

.min-vh-80 {
  min-height: 80vh;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-background {
  background: var(--pgc-gradient);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  background: var(--pgc-hero-gradient);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-pm-image {
  max-height: 150px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  font-weight: 800;
}

.hero-subtitle {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 1.3rem;
}

.hero-buttons .btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-width: 2px;
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-success {
  background: var(--pgc-light-green);
  border-color: var(--pgc-light-green);
}

.btn-success:hover {
  background: var(--pgc-primary-green);
  border-color: var(--pgc-primary-green);
}

/* Statistics Dashboard */
.stats-dashboard {
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
  padding: 80px 0;
}

.section-title {
  margin-bottom: 1rem;
  position: relative;
  color: var(--pgc-primary-green);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--pgc-gradient);
  border-radius: 2px;
}

.stat-card {
  transition: all 0.3s ease;
  border-radius: 20px;
  background: white;
  border-left: 5px solid transparent;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(45, 143, 71, 0.15) !important;
}

.stat-card:nth-child(1) {
  border-left-color: var(--pgc-light-green);
}

.stat-card:nth-child(2) {
  border-left-color: var(--pgc-secondary);
}

.stat-card:nth-child(3) {
  border-left-color: var(--pgc-warning);
}

.stat-card:nth-child(4) {
  border-left-color: var(--pgc-info);
}

.stat-number {
  font-size: 3.5rem;
  margin: 1rem 0;
  font-weight: 800;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pgc-dark);
}

.stat-icon {
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Trades Section */
.trades-section {
  padding: 80px 0;
  background: white;
}

.trade-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  border: 2px solid transparent;
}

.trade-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(45, 143, 71, 0.15) !important;
  border-color: var(--pgc-accent-green);
}

.trade-icon {
  transition: all 0.3s ease;
}

.trade-card:hover .trade-icon {
  transform: scale(1.15);
}

/* TSP Network Section */
.tsp-network {
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
  padding: 80px 0;
}

.province-item {
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.province-item:hover {
  background: white;
  box-shadow: 0 5px 15px rgba(45, 143, 71, 0.1);
  transform: translateX(5px);
}

.progress {
  border-radius: 10px;
  background-color: rgba(45, 143, 71, 0.1);
}

.progress-bar {
  border-radius: 10px;
  transition: width 0.8s ease;
}

.progress-item {
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.progress-item:hover {
  background: white;
  box-shadow: 0 5px 15px rgba(45, 143, 71, 0.1);
}

/* Card Headers */
.card-header.bg-success {
  background: var(--pgc-gradient) !important;
  border: none;
  border-radius: 15px 15px 0 0 !important;
}

.card-header.bg-primary {
  background: linear-gradient(135deg, var(--pgc-secondary), #1976d2) !important;
  border: none;
  border-radius: 15px 15px 0 0 !important;
}

/* Call to Action Section */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-background {
  background: var(--pgc-gradient);
  padding: 100px 0;
  position: relative;
}

.cta-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="4" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="2.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 25s linear infinite;
}

.cta-buttons .btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-width: 2px;
}

.cta-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Navigation Enhancements */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 3px solid var(--pgc-light-green);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  color: var(--pgc-primary-green) !important;
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: var(--pgc-light-green) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  color: var(--pgc-dark) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--pgc-light-green);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.navbar-nav .nav-link:hover {
  color: var(--pgc-primary-green) !important;
}

/* Footer Enhancements */
.footer {
  background: linear-gradient(135deg, var(--pgc-dark-green), var(--pgc-primary-green));
  color: white;
  padding: 3rem 0 1rem;
}

.footer a {
  color: var(--pgc-mint);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Loading Animations */
.spinner-border.text-success {
  color: var(--pgc-light-green) !important;
}

/* Button Variants */
.btn-outline-success {
  border-color: var(--pgc-light-green);
  color: var(--pgc-light-green);
}

.btn-outline-success:hover {
  background: var(--pgc-light-green);
  border-color: var(--pgc-light-green);
}

/* Custom Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  50% { transform: translateY(-5px) rotate(-1deg); }
  75% { transform: translateY(-15px) rotate(0.5deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-background {
    min-height: 70vh;
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-pm-image {
    max-height: 120px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stats-dashboard,
  .trades-section,
  .tsp-network {
    padding: 60px 0;
  }
  
  .cta-background {
    padding: 80px 0;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Live Data Indicators */
.live-indicator {
  position: relative;
}

.live-indicator::before {
  content: '';
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background: var(--pgc-emerald);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7);
}

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

::-webkit-scrollbar-track {
  background: #f1f8e9;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--pgc-primary-green);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus {
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

/* Print Styles */
@media print {
  .hero-section,
  .cta-section {
    background: white !important;
    color: black !important;
  }
  
  .btn {
    border: 2px solid black !important;
    color: black !important;
    background: white !important;
  }
}
