:root {
  /* Professional Dark/Light Theme */
  --primary: #2c3e50;       /* Professional dark blue-grey */
  --primary-light: #34495e; /* Lighter dark grey */
  --primary-dark: #1a252f;  /* Darker grey */
  --secondary: #3498db;     /* Professional blue accent */
  --accent: #16a085;        /* Teal accent */
  --light: #f8f9fa;
  --dark: #2c3e50;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  
  /* Typography */
  --font-sans: 'Arimo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, "Liberation Mono", Menlo, monospace;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: #2c3e50;
  background: #f8f9fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding-top: 80px; /* Add padding for fixed header */
}

main {
  background: var(--white);
  padding: 0;
}

main .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

main .container > * {
  text-align: left;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing);
  color: #2c3e50;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
  color: var(--primary);
  padding-left: 0;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-light);
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Navigation */
.navbar {
  padding: var(--spacing) 0;
  box-shadow: var(--shadow);
  background-color: var(--white) !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary) !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing) !important;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #00f0d0 !important;  /* Brighter turquoise on hover */
  transform: translateY(-2px);
}

.nav-link.active {
  color: #00f0d0 !important;  /* Brighter turquoise for active link */
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: #00f0d0;  /* Solid bright turquoise */
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 240, 208, 0.5);  /* Subtle glow effect */
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #3d5a80 0%, #4a6fa5 100%);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: var(--spacing);
  color: var(--white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.hero p.lead {
  font-size: 1.35rem;
  opacity: 0.95;
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

/* Cards */
.card {
  border: 1px solid var(--light-gray);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
  background: var(--white);
}

.card-img-container {
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 3rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(74, 111, 165, 0.1) 0%,
    rgba(255, 107, 107, 0.1) 100%
  );
  border-radius: 0.5rem 0.5rem 0 0;
  margin: 0.5rem;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  background-size: 200% 200%;
  animation: gradientBG 8s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.card-img-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.card-img-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  transform-origin: center;
  object-position: center;
}

.card:hover .card-img-container img {
  transform: scale(1.08);
  max-width: 92%;
  max-height: 92%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: white;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.card-title {
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
}

.card-text {
  color: var(--gray);
  margin-bottom: var(--spacing);
  flex-grow: 1;
  line-height: 1.6;
}

.card-caption {
  padding: 1rem;
  background: var(--light);
  border-bottom: 1px solid var(--light-gray);
  text-align: center;
}

.card-caption h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.card-caption .badge {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  font-weight: 600;
  background: var(--secondary);
  color: var(--white) !important;
  border: none;
  box-shadow: none;
}


.card-img-container img {
  order: 1;
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 1rem;
  background: white;
}


.card-img-overlay h3 {
  color: var(--dark);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

.card-img-overlay .badge {
  font-weight: 600;
  opacity: 0.9;
  transition: all 0.3s ease;
  background-color: var(--primary);
  color: white !important;
  margin: 0 2px;
}

.card-img-overlay .badge-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.card:hover .card-img-overlay .badge {
  opacity: 1;
}

/* Text in overlay */
.card-img-overlay * {
  color: var(--dark) !important;
}

/* Buttons */
.btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 160, 133, 0.4);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: rgba(74, 111, 165, 0.2);
  background-color: transparent;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: rgba(74, 111, 165, 0.05);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: none;
}

/* Filter Buttons */
.filter-button {
  margin: 0 var(--spacing-sm) var(--spacing-sm) 0;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
}

/* Badges */
.badge {
  padding: 0.35em 0.65em;
  font-weight: 600;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing);
  margin-top: var(--spacing-xl);
}

footer,
footer p,
footer h4,
footer h5,
footer h6 {
  color: white;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  text-decoration: none;
}

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

footer .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: 10px;
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p.lead {
    font-size: 1.1rem;
  }
  
  .card-img-container {
    height: 160px;
  }
}

/* Utility Classes */
.rounded {
  border-radius: var(--radius) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fluorescence {
  0%, 100% { opacity: 0.3; }
  25% { opacity: 0.5; }
  50% { opacity: 0.4; }
  75% { opacity: 0.6; }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.08);
}
