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

/* Body */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
}

/* Header Layout */
header {
  background-color: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

h1 {
  font-size: 2rem;
  color: #003d47;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Logo + Title */
.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 60px;
  width: auto;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #007c91;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 1rem;
}

nav a:hover {
  color: #005f75;
}

/* Main Content */
main {
  max-width: 100%;
  margin: 0 auto;
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  height: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 16s ease-in-out infinite;
}

img.hero-image,
video.hero-image {
  object-fit: cover;
}

img.hero-image:nth-child(1),
video.hero-image:nth-child(1) {
  animation-delay: 0s;
}

img.hero-image:nth-child(2),
video.hero-image:nth-child(2) {
  animation-delay: 4s;
}

img.hero-image:nth-child(3),
video.hero-image:nth-child(3) {
  animation-delay: 8s;
}

img.hero-image:nth-child(4),
video.hero-image:nth-child(4) {
  animation-delay: 12s;
}

@keyframes heroFade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  25% { opacity: 1; }
  31% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 61, 71, 0.65), rgba(0, 124, 145, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 700px;
  padding: 40px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.4rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === CONTENT SECTIONS === */
.content-section {
  position: relative;
  height: 500px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 61, 71, 0.75) 0%, rgba(0, 124, 145, 0.6) 40%, rgba(0, 124, 145, 0.3) 100%);
  display: flex;
  align-items: center;
  padding: 60px 80px;
  z-index: 5;
}

.content-box {
  max-width: 600px;
  color: white;
  animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.content-box h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.content-box p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #f0f0f0;
  line-height: 1.7;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.content-section.no-cta .content-box p:last-of-type {
  margin-bottom: 0;
}

.content-box a {
  display: inline-block;
  margin-top: 10px;
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, #003d47 0%, #007c91 100%);
  padding: 80px 40px;
  text-align: center;
  color: white;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn-primary, .btn-secondary {
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
  background: linear-gradient(135deg, #45a049, #3d8b40);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: white;
  transform: translateY(-2px);
}

/* === FOOTER === */
.site-footer {
  background-color: #1a1a1a;
  color: #999;
  padding: 30px 40px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

/* === TEAM PAGE === */
.team-hero-section {
  position: relative;
  height: 200px;
  width: 100%;
  background: linear-gradient(135deg, #003d47 0%, #007c91 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-hero-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.team-hero-content {
  text-align: center;
  color: white;
}

.team-hero-content h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.team-hero-content p {
  font-size: 1.3rem;
  color: #f0f0f0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.team-members-section {
  padding: 0;
  background-color: #ffffff;
  max-width: 100%;
}

.team-member-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 500px;
  gap: 0;
  border-bottom: 1px solid #e0e0e0;
  animation: fadeIn 0.8s ease;
}

.team-member-panel-left {
  grid-template-columns: 1fr 1fr;
}

.team-member-panel-right {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.team-member-panel-right > * {
  direction: ltr;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.team-member-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #e0e0e0;
  min-height: 500px;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member-panel:hover .team-member-image img {
  transform: scale(1.02);
}

.team-member-content {
  padding: 60px 50px;
  background-color: white;
}

.team-member-content h3 {
  font-size: 1.8rem;
  color: #003d47;
  margin-bottom: 8px;
  font-weight: 700;
}

.team-member-role {
  color: #007c91;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}

.team-member-bio {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 15px 0;
}

.team-member-bio:last-of-type {
  margin-bottom: 0;
}

/* Team Members Row - For side-by-side layout */
.team-members-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid #e0e0e0;
  animation: fadeIn 0.8s ease;
}

.team-member-panel-no-grid {
  display: flex;
  align-items: flex-start;
  min-height: 400px;
  border-right: 1px solid #e0e0e0;
}

.team-member-panel-no-grid:last-child {
  border-right: none;
}

/* === CONTACT PAGE === */
.contact-main {
  width: 100%;
  background-image: linear-gradient(rgba(245, 245, 245, 0.57), rgba(245, 245, 245, 0.57)), url('../images/home_page/land_based_aquaculture.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  padding: 48px 0;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-section {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  justify-content: center;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  nav ul {
    gap: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .logo {
    height: 50px;
  }

  .hero-section {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    gap: 10px;
  }

  .content-section {
    height: 400px;
  }

  .content-overlay {
    background: linear-gradient(90deg, rgba(0, 61, 71, 0.85) 0%, rgba(0, 124, 145, 0.7) 100%);
    padding: 40px 30px;
  }

  .content-box {
    max-width: 100%;
  }

  .content-box h2 {
    font-size: 1.8rem;
  }

  .content-box p {
    font-size: 1rem;
  }

  .cta-section {
    padding: 50px 20px;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .btn-primary, .btn-secondary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .team-hero-section {
    height: 167px;
  }

  .team-hero-content h1 {
    font-size: 2rem;
  }

  .team-hero-content p {
    font-size: 1.1rem;
  }

  .team-members-section {
    padding: 0;
  }

  .team-member-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    border-bottom: 1px solid #e0e0e0;
  }

  .team-member-panel-left,
  .team-member-panel-right {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .team-member-panel-right > * {
    direction: ltr;
  }

  .team-member-image {
    min-height: 300px;
    order: -1;
  }

  .team-members-row {
    grid-template-columns: 1fr;
  }

  .team-member-panel-no-grid {
    min-height: 300px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .team-member-content {
    padding: 40px 25px;
  }

  .team-member-content h3 {
    font-size: 1.4rem;
  }

  .team-member-bio {
    font-size: 0.9rem;
  }

  .contact-main {
    padding: 36px 0;
  }

  .contact-section {
    padding: 0 28px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0;
  }

  .contact-main {
    padding: 28px 0;
  }

  .contact-section {
    padding: 0 20px;
  }

  .hero-section {
    height: 300px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .content-section {
    height: 350px;
  }

  .content-overlay {
    padding: 30px 20px;
  }

  .content-box h2 {
    font-size: 1.5rem;
  }

  .content-box p {
    font-size: 0.9rem;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  .team-hero-section {
    height: 133px;
  }

  .team-hero-content h1 {
    font-size: 1.5rem;
  }

  .team-hero-content p {
    font-size: 0.95rem;
  }

  .team-members-section {
    padding: 0;
  }

  .team-member-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .team-member-image {
    min-height: 250px;
  }

  .team-member-content {
    padding: 20px;
  }

  .team-member-content h3 {
    font-size: 1.2rem;
  }

  .team-member-bio {
    font-size: 0.9rem;
  }

  .team-members-row {
    grid-template-columns: 1fr;
  }

  .team-member-panel-no-grid {
    min-height: 250px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
