:root {
  --primary-blue: #29ABE2;
  --primary-dark: #1e8bb5;
  --success-green: #28a745;
  --danger-red: #dc3545;
  --light-gray: #f8f9fa;
  --dark-gray: #6c757d;
  --gradient-start: #29ABE2;
  --gradient-end: #1e8bb5;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero Section Styling */
.hero-section {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  min-height: 60vh;
  border-radius: 15px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::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="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Enhanced Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-body {
  padding: 2rem;
}

.card .bi {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced Buttons */
.btn {
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 171, 226, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 171, 226, 0.4);
}

/* Enhanced Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-blue) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-blue) !important;
}

/* Footer Enhancement */
.footer {
  background: var(--light-gray);
  padding: 2rem 0;
  margin-top: 3rem;
}

/* Responsive Images */
.img-fluid {
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Enhanced Info Section */
.info-section {
  padding: 4rem 0;
  background: var(--light-gray);
}

.info-section .row {
  gap: 2rem;
}

/* Hero Image Animation */
.hero-image {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Performance Optimizations */
.hero-section, .card, .btn {
  will-change: transform;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced Alert */
.alert {
  border: none;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  color: #0c5460;
}

/* Enhanced Link Styling */
a {
  transition: all 0.3s ease;
}

/* Focus States for Accessibility */
.btn:focus, .card:focus {
  outline: 3px solid rgba(41, 171, 226, 0.5);
  outline-offset: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .hero-image {
    animation: none; /* Disable animation on mobile for performance */
  }
}

/* Print Styles */
@media print {
  .hero-section, .card {
    box-shadow: none;
    background: white !important;
    color: black !important;
  }
  
  .btn {
    border: 1px solid #333;
    background: white;
    color: black;
  }
}

