/* UH Red Color Scheme */
:root {
  --uh-primary: #C8102E;           /* UH Red */
  --uh-secondary: #FFD700;         /* Gold/Yellow accent */
  --uh-light: #FFEB9C;            /* Light gold */
  --uh-accent: #B8860B;            /* Dark gold */
  --uh-dark: #8B1538;             /* Dark red/maroon */
  --uh-gradient: linear-gradient(135deg, #C8102E 0%, #8B1538 100%);
  --uh-text-light: rgba(255, 255, 255, 0.9);
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: linear-gradient(to bottom, #fff5f5 0%, #ffeaea 100%);
  min-height: 100vh;
}

/* Navigation Bar - UH Red Theme */
.uh-nav {
  background: var(--uh-gradient);
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.3);
  padding: 1rem 0;
}

.uh-nav .navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.uh-nav .navbar-brand:hover {
  transform: scale(1.05);
  text-shadow: 2px 2px 8px rgba(255, 215, 0, 0.4);
}

.uh-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.uh-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--uh-secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.uh-nav .nav-link:hover {
  background: rgba(255, 215, 0, 0.15);
  color: white !important;
}

.uh-nav .nav-link:hover::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  background: var(--uh-gradient);
  color: white;
  padding: 5rem 0 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23fff5f5' d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25'/%3E%3Cpath fill='%23fff5f5' d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5'/%3E%3Cpath fill='%23fff5f5' d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.hero-section p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Cards with UH Red Theme */
.card-uh {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(200, 16, 46, 0.15);
  transition: all 0.4s ease;
  overflow: hidden;
  background: white;
  height: 100%;
}

.card-uh:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(200, 16, 46, 0.3);
}

.card-uh .card-header {
  background: var(--uh-gradient);
  color: white;
  font-weight: 600;
  padding: 1.5rem;
  border: none;
}

.card-uh .card-body {
  padding: 1.5rem;
}

.card-uh .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-uh:hover .card-img-top {
  transform: scale(1.1);
}

/* Buttons */
.btn-uh {
  background: var(--uh-gradient);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-uh:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(200, 16, 46, 0.4);
  color: white;
}

.btn-outline-uh {
  border: 2px solid var(--uh-primary);
  color: var(--uh-primary);
  background: transparent;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-uh:hover {
  background: var(--uh-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(200, 16, 46, 0.4);
}

/* Section Headings */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--uh-primary);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--uh-gradient);
  border-radius: 2px;
}

.section-title.text-start::after {
  left: 0;
  transform: translateX(0);
}

/* Footer */
.uh-footer {
  background: var(--uh-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 0 1rem;
}

.uh-footer h5 {
  color: var(--uh-secondary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.uh-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.uh-footer a:hover {
  color: var(--uh-secondary);
  padding-left: 5px;
}

.uh-footer .social-links a {
  color: var(--uh-secondary);
  transition: all 0.3s ease;
}

.uh-footer .social-links a:hover {
  color: white;
  transform: scale(1.2);
}

.uh-footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Badges */
.badge-uh {
  background: var(--uh-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
}

/* Team Member Cards */
.team-card {
  text-align: center;
  padding: 2rem;
}

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid var(--uh-secondary);
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Wave Animation */
@keyframes wave {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-25%); }
}

.wave-animation {
  animation: wave 10s linear infinite;
}

/* Swimming Fish Animation */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  pointer-events: none;
  overflow: hidden;
}

.swimming-fish {
  position: absolute;
  bottom: 10px;
  font-size: 24px;
  color: rgba(255, 215, 0, 0.8);
  z-index: 10;
}

.fish1 {
  animation: swim1 15s linear infinite;
  bottom: 30px;
}

.fish2 {
  animation: swim2 20s linear infinite;
  bottom: 50px;
  animation-delay: -5s;
}

.fish3 {
  animation: swim3 12s linear infinite;
  bottom: 20px;
  animation-delay: -8s;
}

.fish4 {
  animation: swim4 18s linear infinite;
  bottom: 40px;
  animation-delay: -12s;
}

@keyframes swim1 {
  0% { 
    left: -50px; 
    transform: translateY(0px) scaleX(-1);
  }
  25% {
    transform: translateY(-8px) scaleX(-1);
  }
  50% {
    transform: translateY(0px) scaleX(-1);
  }
  75% {
    transform: translateY(6px) scaleX(-1);
  }
  100% { 
    left: calc(100% + 50px); 
    transform: translateY(0px) scaleX(-1);
  }
}

@keyframes swim2 {
  0% { 
    right: -50px; 
    transform: translateY(0px) scaleX(1);
  }
  25% {
    transform: translateY(10px) scaleX(1);
  }
  50% {
    transform: translateY(-5px) scaleX(1);
  }
  75% {
    transform: translateY(8px) scaleX(1);
  }
  100% { 
    right: calc(100% + 50px); 
    transform: translateY(0px) scaleX(1);
  }
}

@keyframes swim3 {
  0% { 
    left: -50px; 
    transform: translateY(0px) scaleX(-1);
  }
  30% {
    transform: translateY(-12px) scaleX(-1);
  }
  60% {
    transform: translateY(4px) scaleX(-1);
  }
  100% { 
    left: calc(100% + 50px); 
    transform: translateY(0px) scaleX(-1);
  }
}

@keyframes swim4 {
  0% { 
    right: -50px; 
    transform: translateY(0px) scaleX(1);
  }
  20% {
    transform: translateY(6px) scaleX(1);
  }
  40% {
    transform: translateY(-10px) scaleX(1);
  }
  80% {
    transform: translateY(3px) scaleX(1);
  }
  100% { 
    right: calc(100% + 50px); 
    transform: translateY(0px) scaleX(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

.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 var(--uh-secondary);
}