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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #111111;
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 50%, #f9f9f9 100%);
  background-attachment: fixed;
}

/* HOME PAGE STYLES */

.home-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  background-color: #ffffff;
  color: #111111;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Welcome Overlay */
.home-welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-welcome-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.home-welcome-content {
  text-align: center;
}

.home-welcome-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s forwards 0.5s;
}

.home-welcome-tagline {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s forwards 0.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Content */
.home-main-content {
  opacity: 0;
  transition: opacity 1.2s ease-in;
}

.home-main-content.show {
  opacity: 1;
}

/* Hero Section */
.home-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.home-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 5rem;
  color: #111111;
  margin-bottom: 1rem;
  line-height: 1;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.home-tagline {
  font-size: 1.2rem;
  font-weight: 300;
  color: #555;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

.home-cta {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: #0077ff;
  border: 1px solid #0077ff;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
}

.home-cta:hover {
  background: #0077ff;
  color: #ffffff;
}

/* Sine Wave */
.home-sine-wave {
  width: 200px;
  height: 50px;
  margin: 0 auto;
  overflow: visible;
  opacity: 0;
  transition: opacity 1s ease 0s;
}

.home-sine-path {
  fill: none;
  stroke: #0077ff;
  stroke-width: 1.5;
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  opacity: 0.8;
}

.continuous-trace .home-sine-path {
  animation: extendedTrace 8s infinite;
}

@keyframes extendedTrace {
  0% {
    stroke-dashoffset: 250;
    opacity: 0.8;
  }
  30% {
    stroke-dashoffset: 0;
    opacity: 0.8;
  }
  40% {
    opacity: 0.8;
  }
  50% {
    opacity: 0;
  }
  80% {
    opacity: 0;
    stroke-dashoffset: 250;
  }
  81% {
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: 250;
    opacity: 0.8;
  }
}

/* Mission Section */
.home-mission {
  padding: 8rem 0;
  background: #f9f9f9;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
}

.home-mission p {
  font-size: 1.8rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  color: #333;
  line-height: 1.4;
  padding: 0 2rem;
}

.home-footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 1s ease 1s;
}

.home-footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.home-footer-links a {
  color: #777;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.home-footer-links a:hover {
  color: #0077ff;
}

.home-copyright {
  font-size: 0.8rem;
  color: #999;
}

/* Show content classes */
.home-page.show-content .home-logo,
.home-page.show-content .home-tagline,
.home-page.show-content .home-cta,
.home-page.show-content .home-mission,
.home-page.show-content .home-footer {
  opacity: 1;
  transform: translateY(0);
}

.home-page.show-wave .home-sine-wave {
  opacity: 1;
}

/* PITCH DECK STYLES */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Welcome Overlay for Pitch Deck */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 3s ease-in-out forwards;
}

.welcome-content {
  text-align: center;
  animation: slideUp 1s ease-out;
}

.welcome-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 4rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.welcome-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  opacity: 0.8;
}

@keyframes fadeOut {
  0%, 80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 229, 229, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.logo-section {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 2rem;
  color: #111111;
}

/* Navigation */
.desktop-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  background: none;
  border: none;
  font-size: 1rem;
  color: #111111;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover {
  color: #666666;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background: linear-gradient(90deg, #111111, #666666);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #111111;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 1.5rem;
}

.mobile-menu-btn:hover {
  background: rgba(17, 17, 17, 0.05);
}

.mobile-nav {
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(229, 229, 229, 0.5);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 0 0 16px 16px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.mobile-nav-link {
  background: none;
  border: none;
  font-size: 1rem;
  color: #111111;
  cursor: pointer;
  text-align: left;
  padding: 1rem;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0 -1rem;
}

.mobile-nav-link:hover {
  background: rgba(17, 17, 17, 0.05);
  color: #000000;
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section:nth-child(even) {
  background: rgba(255, 255, 255, 0.8);
}

.section:nth-child(odd) {
  background: rgba(249, 249, 249, 0.6);
}

.section-content {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 2.8rem;
  color: #111111;
  margin-bottom: 2.5rem;
  line-height: 1.2;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #111111, transparent);
  border-radius: 1px;
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333333;
  max-width: 800px;
}

.section-text p {
  margin-bottom: 1.5rem;
}

.section-text p:last-child {
  margin-bottom: 0;
}

/* About Values */
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.value-item {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(229, 229, 229, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.value-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #111111, #666666, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.value-item:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(17, 17, 17, 0.1);
}

.value-item:hover::before {
  opacity: 1;
}

.value-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: #111111;
  margin-bottom: 1rem;
}

.value-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  border: 1px solid rgba(229, 229, 229, 0.3);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #111111, #666666, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(17, 17, 17, 0.1);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-content {
  text-align: center;
  padding: 2.5rem 2rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.8rem;
  color: #111111;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #111111, #333333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1rem;
  color: #666666;
  font-weight: 500;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  border: 1px solid rgba(229, 229, 229, 0.3);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #111111, #666666, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(17, 17, 17, 0.1);
}

.team-card:hover::before {
  opacity: 1;
}

.team-content {
  text-align: center;
  padding: 3rem 2rem;
}

.team-member-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: #111111;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #111111, #333333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-member-role {
  font-size: 1rem;
  color: #666666;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-top: 3rem;
}

.cta-button {
  background: linear-gradient(135deg, #111111 0%, #333333 100%);
  color: #ffffff;
  border: none;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 
    0 4px 20px rgba(17, 17, 17, 0.15),
    0 1px 3px rgba(17, 17, 17, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 35px rgba(17, 17, 17, 0.2),
    0 4px 10px rgba(17, 17, 17, 0.15);
  background: linear-gradient(135deg, #000000 0%, #222222 100%);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:active {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #ffffff;
  padding: 4rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-content {
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-link:hover::after {
  width: 100%;
}

.footer-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .welcome-title {
    font-size: 3rem;
  }

  .home-logo {
    font-size: 3.5rem;
  }

  .home-mission p {
    font-size: 1.4rem;
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-text {
    font-size: 1rem;
  }

  .about-values,
  .stats-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .home-footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .welcome-title {
    font-size: 2.5rem;
  }

  .home-logo {
    font-size: 3rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .team-member-name {
    font-size: 1.3rem;
  }

  .value-item {
    padding: 1.5rem;
  }

  .value-title {
    font-size: 1.2rem;
  }

  .home-mission p {
    font-size: 1.2rem;
  }
}