/* Design System & Base Variables */
:root {
  /* Site Colors */
  --color-primary: #19155D;     /* Navy Blue */
  --color-secondary: #00AEEF;   /* Light Blue / Cyan */
  --color-accent: #00AEEF;      /* Cyan */
  --color-bg-light: #E7E9EF;    /* Medical Gray-Blue */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text: #333333;
  --color-text-muted: #666666;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Navbar */
.nav-header {
  background: var(--color-white);
  box-shadow: var(--shadow);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

.logo-text-wrapper {
  height: 50px; /* Height of the logo image */
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.logo-short, .logo-long {
  height: 50px;
  display: flex;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  font-weight: 800;
  white-space: nowrap;
}

.logo-short {
  font-size: 1.5rem;
  color: var(--color-primary);
  gap: 1rem; /* Space between logo and VWSPC */
}

.logo-long {
  font-size: 1.1rem;
  color: var(--color-accent);
}

.logo-placeholder:hover .logo-short,
.logo-placeholder:hover .logo-long {
  transform: translateY(-50px);
}

/* Ensure mobile header remains stable */
@media (max-width: 768px) {
  .logo-text-wrapper {
    overflow: visible;
  }
  .logo-long {
    display: none;
  }
  .logo-placeholder:hover .logo-short {
    transform: none;
  }
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-link:hover {
  color: var(--color-secondary);
}

.nav-link.active {
  color: var(--color-primary);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 200px;
  box-shadow: var(--shadow);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  z-index: 1001;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 4px;
}

.dropdown-item:hover {
  background: var(--color-bg-light);
  color: var(--color-secondary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.8rem;
}

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

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}
