/* Global Styles & Variables */
:root {
  /* Color Palette - Scientific Premium */
  --color-primary: #006064;
  /* Deep Cyan/Teal */
  --color-secondary: #00363a;
  /* Darker Tetra */
  --color-accent: #00bcd4;
  /* Bright Cyan for highlights */
  --color-dark: #123354;
  /* Lightened watery blue */
  --color-light: #f8f9fa;
  /* Clean White/Gray */
  --color-water-accent: rgba(0, 188, 212, 0.4);
  /* Water ripple accent */
  --color-text-main: #212529;
  --color-text-light: #e0e0e0;

  /* Font Families */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  /* A bit more geometric/modern */

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

  /* Effects */
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --backdrop-blur: blur(12px);
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.section {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  position: relative;
}

.logo:hover {
  transform: scale(1.02);
  text-shadow: 0 0 20px rgba(0, 96, 100, 0.2);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  /* Tighter gap for pod layout */
  list-style: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  /* Slightly smaller */
  color: var(--color-text-main);
  padding: 0.5rem 1.1rem;
  /* More compact */
  border-radius: 50px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(0, 188, 212, 0.03);
  /* Barely there hover */
  transform: translateY(-1px);
}

.nav-link.active {
  color: white !important;
  background: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 96, 100, 0.2);
  /* Softer shadow */
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 8rem 2rem 2rem;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
  }

  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0;
}

.nav-link:hover::after {
  width: 10px;
  opacity: 1;
}

.nav-link.active::after {
  display: none;
  /* Hide underline on active state since it has background */
}

/* Showcase Section */
.showcase-section {
  padding: 0 0 var(--spacing-xl) 0;
  margin-top: 1.5rem;
  /* Positively separated to avoid hero overlap */
  position: relative;
  z-index: 5;
}

.showcase-display {
  position: relative;
  height: 600px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 45%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 45%, black 85%, transparent);
}

.showcase-track {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: credits-scroll 30s linear infinite;
}

@keyframes credits-scroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(calc(-60%));
  }
}

.showcase-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  overflow: hidden;
  min-height: 240px;
}

.showcase-card.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.showcase-image {
  height: 240px;
  background-size: cover;
  background-position: center;
}

.showcase-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-info h2 {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.showcase-info p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.showcase-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.showcase-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-secondary);
}

.showcase-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .showcase-card {
    grid-template-columns: 1fr;
  }

  .showcase-image {
    height: 180px;
  }

  .showcase-display {
    height: 500px;
  }
}

/* Footer Styles */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Cinematic Glow Frame Effect */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
  border: 3px solid rgba(56, 189, 248, 0.5);
  /* Vibrant light blue */
  box-shadow: inset 0 0 40px rgba(56, 189, 248, 0.3),
    0 0 20px rgba(56, 189, 248, 0.2);
  border-radius: 0;
  animation: framePulse 4s infinite alternate ease-in-out;
}

@keyframes framePulse {
  0% {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: inset 0 0 30px rgba(56, 189, 248, 0.2);
  }

  100% {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: inset 0 0 60px rgba(56, 189, 248, 0.4);
  }
}

/* Abstract Scroll Modal */
.abstract-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.abstract-modal.active {
  display: flex;
  opacity: 1;
}

.scroll-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  perspective: 1000px;
}

.scroll-paper {
  /* Aged parchment background */
  background: linear-gradient(to bottom,
      #f4e8d0 0%,
      #f0e4cc 50%,
      #ebe0c8 100%);

  /* Subtle paper texture overlay */
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 115, 85, 0.03) 2px, rgba(139, 115, 85, 0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 115, 85, 0.03) 2px, rgba(139, 115, 85, 0.03) 4px),
    linear-gradient(to bottom, #f4e8d0 0%, #f0e4cc 50%, #ebe0c8 100%);

  /* Ink-like text color */
  color: #2c1810;

  padding: 3.5rem 3rem;
  border-radius: 2px;

  /* Aged paper shadow with warm tones */
  box-shadow:
    0 0 0 1px rgba(101, 67, 33, 0.2),
    0 2px 8px rgba(101, 67, 33, 0.15),
    0 8px 24px rgba(101, 67, 33, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.15),
    inset 0 0 60px rgba(139, 115, 85, 0.08);

  overflow-y: auto;
  max-height: 75vh;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;

  /* Aged, slightly uneven border */
  border: 2px solid #c4a574;
  border-top-width: 3px;
  border-bottom-width: 3px;

  /* Subtle vignette effect for aged look */
  background-blend-mode: multiply;
}

.abstract-modal.active .scroll-paper {
  transform: scaleY(1);
}

.scroll-header {
  font-family: 'Kalam', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #3d2817;
  border-bottom: 2px solid #8b7355;
  padding-bottom: 1rem;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 1px rgba(139, 115, 85, 0.1);
}

.scroll-content {
  font-family: 'Kalam', cursive;
  line-height: 2.0;
  font-size: 1.1rem;
  font-weight: 400;
  color: #2c1810;
  text-align: justify;
  hyphens: auto;
}

.scroll-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #8b7355;
  transition: color 0.2s, transform 0.2s;
  opacity: 0.7;
}

.scroll-close:hover {
  color: #3d2817;
  transform: rotate(90deg);
  opacity: 1;
}

.footer-copyright {
  opacity: 0.5;
  font-size: 0.9rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-logos:hover {
  opacity: 1;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-logos {
    justify-content: center;
    gap: 1.5rem;
  }
}