/* Prime Minister Global Certification Portal - Public Front Page Styles */

/* Color Scheme */
:root {
  --pgc-primary: #1e3c72;
  --pgc-secondary: #2a5298;
  --pgc-accent: #4a90e2;
  --pgc-success: #28a745;
  --pgc-warning: #ffc107;
  --pgc-info: #17a2b8;
  --pgc-light: #f8f9fa;
  --pgc-dark: #343a40;
  --pgc-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4a90e2 100%);
}

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

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

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

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

.hero-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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

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

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

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

.hero-badge .badge {
  font-size: 0.9rem;
  font-weight: 500;
}

.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);
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Visual Elements */
.certification-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-icon {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-main-icon i {
  font-size: 4rem;
  color: white;
  animation: pulse 2s infinite;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--pgc-primary);
  animation: float 3s ease-in-out infinite;
}

.card-1 {
  top: 50px;
  left: 50px;
  animation-delay: 0s;
}

.card-2 {
  top: 100px;
  right: 30px;
  animation-delay: 1s;
}

.card-3 {
  bottom: 80px;
  left: 80px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

/* Statistics Section */
.stats-section {
  padding: 80px 0;
}

.stat-card {
  padding: 2rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  margin: 1rem 0;
  font-weight: 800;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
}

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

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

/* Certifications Section */
.certifications-section {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 1rem;
  position: relative;
}

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

.certification-card {
  transition: all 0.3s ease;
  border-radius: 20px;
  overflow: hidden;
}

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

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

.certification-card:hover .cert-icon {
  transform: scale(1.1);
}

.cert-features {
  margin: 1.5rem 0;
}

.cert-features li {
  padding: 0.3rem 0;
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: 80px 0;
}

.feature-item {
  padding: 1.5rem;
  transition: all 0.3s ease;
  border-radius: 15px;
}

.feature-item:hover {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.feature-icon {
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
}

/* 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="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s 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);
}

.cta-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation Enhancements */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

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

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

/* Footer Enhancements */
.footer {
  background: var(--pgc-dark);
  color: white;
  padding: 2rem 0;
}

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

.footer a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-background {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .certification-visual {
    height: 300px;
  }
  
  .floating-card {
    position: static;
    margin: 1rem auto;
    display: inline-flex;
  }
  
  .hero-main-icon {
    width: 120px;
    height: 120px;
  }
  
  .hero-main-icon i {
    font-size: 3rem;
  }
}

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

/* Loading Animation */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

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

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

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

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

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