/* --- Custom Global Styles & Variables --- */
:root {
  --color-primary: #0e7490;
  /* Cyan-700 */
  --color-secondary: #06b6d4;
  /* Cyan-500 */
  --color-accent: #22d3ee;
  /* Cyan-300 */
  --color-bg-light: #f9fafb;
  /* Gray-50 */
  --color-bg-card: #ffffff;
  /* White */
  --color-text-dark: #1f2937;
  /* Gray-900 */
  --color-text-medium: #4b5563;
  /* Gray-700 */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-text-medium);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text-dark);
}

/* --- Utility Classes --- */
.nav-link {
  @apply text-gray-700 hover:text-cyan-600 transition-colors duration-300 font-medium tracking-wide;
}

.text-shadow-hero {
  text-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5);
}

/* --- Animations --- */
@keyframes fadeInScaleUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseLight {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-fade-in-hero {
  animation: fadeInScaleUp 1.5s ease-out forwards;
}

.animate-slide-in-up {
  animation: slideInUp 1s ease-out forwards;
}

.animate-pulse-light {
  animation: pulseLight 2s infinite ease-in-out;
}

.animate-spin-slow {
  animation: spinSlow 15s linear infinite;
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Component Specific Styles --- */

/* Header */
.header-bg {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
  z-index: 10;
}

/* Image Styling */
.image-card {
  border-radius: 1.75rem;
  /* rounded-3xl */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.image-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* Vision Section Diagram */
.vision-diagram {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-bg-light);
}

/* Video Thumbnail */
.video-thumbnail {
  border-radius: 1.75rem;
  /* rounded-3xl */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.video-thumbnail:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.12);
}

.video-overlay {
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease;
}

.video-thumbnail:hover .video-overlay {
  background: rgba(0, 0, 0, 0.7);
}

/* Modal */
.modal-content {
  background-color: rgba(17, 24, 39, 0.95);
  /* Darker gray with transparency */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  /* rounded-xl */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
  background-color: rgba(31, 41, 55, 0.7);
  /* Gray-800 with transparency */
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  background-color: rgba(31, 41, 55, 0.9);
  transform: scale(1.1);
}

/* Research Areas & Objectives Icons */
.feature-icon-wrapper {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  border: 4px solid var(--color-primary);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-icon-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.4);
}

.feature-icon-wrapper i {
  color: white;
}

/* Team Cards */
.team-card {
  background-color: var(--color-bg-card);
  border-radius: 2rem;
  /* rounded-3xl */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-top: 5rem;
  /* Adjust to move text down due to absolute image */
  position: relative;
  /* For image positioning */
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.team-img-wrapper {
  position: absolute;
  top: -4rem;
  /* Adjust based on image size to center */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.team-img {
  border-radius: 50%;
  border: 6px solid var(--color-bg-card);
  /* White border around image */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  outline: 4px solid var(--color-accent);
  /* Cyan ring around image */
  outline-offset: 2px;
}

/* Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      rgba(6, 182, 212, 0.4),
      transparent);
  margin-top: 6rem;
  margin-bottom: 6rem;
}

/* Blog */
.blog-post-card {
  background-color: var(--color-bg-card);
  border-radius: 1.5rem; /* rounded-2xl */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.post-title {
  color: var(--color-primary);
}

.post-meta {
  color: var(--color-text-medium);
}

.post-excerpt {
  color: var(--color-text-dark);
}

.read-more-link {
  color: var(--color-secondary);
  font-weight: 600;
  transition: color 0.2s ease;
}

.read-more-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* --- Blog Post Specific Styles --- */
.article-container {
  background-color: var(--color-bg-card);
  border-radius: 1.5rem; /* rounded-2xl */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.post-content h2 {
  font-size: 2.25rem; /* text-4xl */
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.post-content h3 {
  font-size: 1.75rem; /* text-3xl */
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.post-content p {
  margin-bottom: 1.25rem;
  font-size: 1.125rem; /* text-lg */
  line-height: 1.75;
}

.post-content ul,
.post-content ol {
  list-style-position: inside;
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-content ul li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
}

.post-content ol li {
  list-style-type: decimal;
  margin-bottom: 0.5rem;
}

.read-more-link { /* Used for "Back to Blog" */
  color: var(--color-secondary);
  font-weight: 600;
  transition: color 0.2s ease;
}

.read-more-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}