/* Westwave Design System - Ocean-Inspired, Calm, Powerful */

:root {
  /* Core palette - ocean-inspired */
  --background: hsl(200, 35%, 96%);
  --foreground: hsl(205, 35%, 18%);
  --card: hsl(200, 25%, 94%);
  --muted: hsl(195, 20%, 85%);
  --muted-foreground: hsl(200, 15%, 40%);
  --border: hsl(195, 20%, 82%);
  --primary-foreground: hsl(200, 30%, 97%);
  --ocean-dark: hsl(205, 45%, 15%);
  --ocean-dark-muted: hsl(205, 30%, 25%);

  /* Typography */
  --font-family: 'Outfit', system-ui, sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 12vh, 8rem);

  /* Transitions */
  --transition-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-medium: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.3s cubic-bezier(0.22, 1, 0.36, 1);

  /* Wave animation */
  --wave-ease: cubic-bezier(0.45, 0, 0.55, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Utility Classes */
.content-width {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .content-width {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  background-color: var(--background);
}

.section-title {
  font-family: var(--font-family);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-title {
    margin-bottom: 5rem;
  }
}

.body-large {
  font-family: var(--font-family);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.6;
  font-weight: 400;
  color: var(--foreground);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: transparent;
}

.header-content {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .header-content {
    padding: 1.5rem 2.5rem;
  }
}

.logo {
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-foreground);
  text-decoration: none;
  text-shadow: 
    0 0 1px hsla(0, 0%, 0%, 0.8),
    0 1px 2px hsla(0, 0%, 0%, 0.6),
    0 2px 10px hsla(0, 0%, 0%, 0.4);
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.5rem;
    text-shadow: 
      0 0 1px hsla(0, 0%, 0%, 0.9),
      0 1px 3px hsla(0, 0%, 0%, 0.7),
      0 3px 12px hsla(0, 0%, 0%, 0.5);
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-color: var(--foreground);
}

.hero-video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: hsla(205, 35%, 18%, 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
}

.hero-title {
  font-family: var(--font-family);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 300;
  color: var(--primary-foreground);
  margin-bottom: 2rem;
  text-shadow: 0 4px 30px hsla(0, 0%, 0%, 0.4);
}

.hero-tagline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-family);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 300;
  color: hsla(200, 30%, 97%, 0.9);
  text-shadow: 0 2px 20px hsla(0, 0%, 0%, 0.3);
}

.rotating-phrase-container {
  height: 3rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .rotating-phrase-container {
    height: 4rem;
  }
}

.rotating-phrase {
  font-family: var(--font-family);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 300;
  font-style: italic;
  color: hsla(200, 30%, 97%, 0.8);
  text-shadow: 0 2px 20px hsla(0, 0%, 0%, 0.3);
  transition: all 0.8s var(--wave-ease);
}

.rotating-phrase.fade-down-out {
  opacity: 0;
  transform: translateY(-30px);
}

.rotating-phrase.fade-up-in {
  opacity: 1;
  transform: translateY(0);
}

/* What This Is Section */
.text-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .text-stack {
    gap: 3.5rem;
  }
}

/* Founders Section */
.founders {
  background-color: var(--ocean-dark);
}

.founders .section-title {
  color: var(--primary-foreground);
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .founders-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .founders-grid {
    gap: 5rem;
  }
}

.founder-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.founder-photo {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background-color: var(--ocean-dark-muted);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .founder-photo {
    width: 10rem;
    height: 10rem;
  }
}

.founder-initial {
  font-family: var(--font-family);
  font-size: 2.5rem;
  font-weight: 600;
  color: hsla(200, 30%, 70%, 0.3);
}

@media (min-width: 768px) {
  .founder-initial {
    font-size: 3rem;
  }
}

.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-name {
  font-family: var(--font-family);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--primary-foreground);
}

.founder-bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.founder-bio p {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.625;
  color: hsla(200, 30%, 85%, 0.9);
}

/* Portfolio Section */
.portfolio-description {
  margin-bottom: 4rem;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .logo-grid {
    gap: 4rem;
  }
}

.logo-placeholder {
  height: 3rem;
  width: 8rem;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.logo-placeholder:hover {
  opacity: 0.7;
}

.logo-placeholder span {
  font-family: var(--font-family);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsla(200, 15%, 40%, 0.4);
}

.portfolio-link {
  display: inline-block;
  font-family: var(--font-family);
  font-size: 0.875rem;
  color: hsla(200, 15%, 40%, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.portfolio-link:hover {
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background-color: var(--ocean-dark);
  border-top: 1px solid hsla(205, 30%, 25%, 0.5);
}

@media (min-width: 768px) {
  .footer {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-text {
  font-family: var(--font-family);
  font-size: 0.875rem;
  color: hsla(200, 30%, 85%, 0.9);
}

.footer-copyright {
  font-family: var(--font-family);
  font-size: 0.75rem;
  color: hsla(200, 30%, 75%, 0.6);
}

.footer-credit {
  font-family: var(--font-family);
  font-size: 0.75rem;
  color: hsla(200, 30%, 75%, 0.5);
}

.footer-link {
  color: hsla(200, 30%, 85%, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: hsla(200, 30%, 95%, 0.9);
  text-decoration: underline;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .rotating-phrase {
    transition: none;
  }
}
