/* 
 * Public Pages Styles for SIMARS Hospital Asset Management System
 * Medical & Healthcare Professional Design
 */

/* === VARIABLES & ROOT === */
:root {
  /* Primary Colors - SIMAR Theme */
  --primary-green: #3B3092;
  --primary-green-dark: #2A2269;
  --primary-green-light: #5647B8;
  --primary-green-alpha: rgba(59, 48, 146, 0.1);

  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-base: 1rem;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* === GLOBAL STYLES === */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
}

/* === STICKY NAVIGATION === */
.navbar {
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 0;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar-brand {
  display: flex !important;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.navbar-brand:hover {
  text-decoration: none;
  transform: scale(1.02);
}

.navbar-brand .brand-text {
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}

.navbar-brand .brand-title {
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  color: var(--gray-800);
  margin: 0;
  white-space: nowrap;
}

.navbar-brand .brand-subtitle {
  font-size: 0.82rem;
  font-weight: var(--font-weight-medium);
  color: var(--primary-green);
  margin: 0;
  white-space: nowrap;
}

.navbar-nav .nav-link {
  font-weight: var(--font-weight-medium);
  color: var(--gray-600) !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition-fast);
  position: relative;
}

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

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

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

/* === HERO SECTION === */
/* === HERO SECTION === */
/* Hero section styles moved to dynamic-background.css for better management */

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.2rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
  width: 100%;
}

.hero-subtitle {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 100%;
  color: rgba(255, 255, 255, 0.95);
}

.hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: var(--font-weight-normal);
  margin-bottom: 3.5rem;
  opacity: 0.92;
  line-height: 1.75;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.hero-buttons .btn {
  font-weight: var(--font-weight-semibold);
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  transition: var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  font-size: 1.1rem;
  text-shadow: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-success:hover {
  background-color: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* === SECTION STYLES === */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* === STATISTICS SECTION === */
.stats-section {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  color: var(--white);
}

.stats-highlight {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-number {
  font-size: 4rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stats-label {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  opacity: 0.9;
}

.category-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.category-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.category-number {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.category-label {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
}

/* === CHARTS SECTION === */
.charts-section {
  background: var(--white);
}

.chart-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 1px solid var(--gray-200);
}

.chart-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.chart-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
  margin-bottom: 2rem;
  text-align: center;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 400px;
}

/* === GALLERY SECTION === */
.gallery-section {
  background: var(--gray-50);
}

.asset-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: none;
}

.asset-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.asset-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: linear-gradient(45deg, var(--gray-200), var(--gray-300));
}

.asset-info {
  padding: 1.5rem;
}

.asset-name {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.asset-category {
  display: inline-block;
  background: var(--primary-green-alpha);
  color: var(--primary-green-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
}

.asset-location {
  color: var(--gray-500);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

/* === ABOUT SECTION === */
.about-section {
  background: var(--white);
}

.about-card {
  background: var(--gray-50);
  border-radius: 15px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-base);
  height: 100%;
  border: 1px solid var(--gray-200);
}

.about-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
}

.about-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.about-text {
  color: var(--gray-600);
  line-height: 1.7;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-base);
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stats-number {
    font-size: 3rem;
  }

  .category-number {
    font-size: 2rem;
  }

  .category-icon {
    font-size: 2.5rem;
  }

  .chart-container {
    height: 300px;
  }

  .navbar-brand .brand-title {
    font-size: 1rem;
  }

  .navbar-brand .brand-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 0 15px;
    min-height: 50vh;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-buttons .btn {
    width: 100%;
    min-width: auto;
    margin: 0;
    padding: 1rem 1.5rem;
  }

  .stats-highlight {
    padding: 2rem 1rem;
  }

  .category-card {
    padding: 1.5rem 1rem;
  }

  .chart-card {
    padding: 1.5rem;
  }

  .about-card {
    padding: 2rem 1.5rem;
  }

  .navbar-brand .brand-title {
    font-size: 1rem;
  }

  .navbar-brand .brand-subtitle {
    font-size: 0.75rem;
  }

  .hero-section {
    background-attachment: scroll;
    padding: 120px 0 60px 0;
  }
}

/* === UTILITY CLASSES === */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-custom {
  background: var(--primary-green);
  border: none;
  color: var(--white);
  font-weight: var(--font-weight-medium);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: var(--transition-base);
}

.btn-custom:hover {
  background: var(--primary-green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}