/* datascience.css - Custom styles for National Cattle Genotype Database page */

/* Root Variables */
:root {
  --primary-dark: #1b5e20;
  --primary-main: #2e7d32;
  --primary-light: #4caf50;
  --secondary-blue: #1a3c6e;
  --secondary-amber: #f59e0b;
  --light-gray: #f9fafb;
  --primary-green: #3c8c40;
  --primary-blue: #003d73;
  --dark-text: #212529;
  --dark-blue: #0f4c81;
}

/* Base Styles */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-text);
  background-color: #f5f7fa;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

/* Navigation Styles */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
}

.navbar-brand span {
  color: var(--primary-main);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  color: #333;
  font-weight: 500;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-main);
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

.nav-link.active:after {
  width: 100%;
}

.navbar-scrolled {
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
}

.sticky-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero-section {
  background-color: var(--primary-blue);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-primary:hover {
  background-color: #2c6b30;
  border-color: #2c6b30;
}

.btn-outline-primary {
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-outline-primary:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

/* Feature Icon */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  color: var(--primary-green);
  background-color: rgba(60, 140, 64, 0.1);
  border-radius: 50%;
}

/* Footer Styles */
.footer {
  background-color: #1d2330;
  color: #f8f9fa;
  padding: 40px 0 20px;
}

.footer i {
  color: #4caf50 !important;
  margin-bottom: 10px;
}

.footer p {
  color: #f8f9fa;
  font-size: 0.95rem;
}

.footer a {
  color: #f8f9fa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #4caf50;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

/* Platform Card */
.platform-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  height: 100%;
  transition: transform 0.3s;
  background-color: white;
  margin-bottom: 30px;
}

.platform-card:hover {
  transform: translateY(-5px);
}

/* Feature Block */
.feature-block {
  margin-bottom: 40px;
}

.feature-block h3 {
  margin-bottom: 20px;
  color: var(--primary-blue);
  position: relative;
  padding-bottom: 10px;
}

.feature-block h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-green);
}

/* Feature Section */
.feature-section {
  padding: 60px 0;
}

/* White Card */
.white-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
}

/* Stats Card */
.stats-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 5px;
}

.stats-label {
  color: #6c757d;
  font-size: 1rem;
}

/* Section Title */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Feature Title */
.feature-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.2rem;
}

/* Container Narrow */
.container-narrow {
  max-width: 1000px;
  margin: 0 auto;
}