/* ============================================
   XtudioLabs Landing Page Styles
   ============================================ */

:root {
  /* Colors */
  --color-primary: #1B6B4A;
  --color-primary-light: #238C61;
  --color-primary-dark: #145236;
  --color-accent: #2E86AB;
  --color-warm: #F18F01;
  --color-bg: #ffffff;
  --color-bg-alt: #F7FAF8;
  --color-bg-dark: #0F2E1F;
  --color-text: #1a1a2e;
  --color-text-light: #555566;
  --color-text-muted: #888899;
  --color-border: #e8ede9;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-padding: 120px;
  --container-width: 1140px;

  /* Transitions */
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  padding: 14px 40px;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-x {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
}

.logo-rest {
  color: var(--color-text);
}

.nav.scrolled .logo-rest,
.hero .logo-rest {
  color: var(--color-text);
}

.nav:not(.scrolled) .logo-rest {
  color: #fff;
}

.nav:not(.scrolled) .logo-x {
  color: #8FFFCF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.85);
}

.nav.scrolled .nav-links a {
  color: var(--color-text-light);
}

.nav-links a:hover {
  color: #fff;
}

.nav.scrolled .nav-links a:hover {
  color: var(--color-primary);
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--color-primary-light) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
  border-radius: 2px;
}

.nav.scrolled .mobile-menu-btn span {
  background: var(--color-text);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1B6B4A 50%, #2E86AB 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(143, 255, 207, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(46, 134, 171, 0.15) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: normal;
  color: #8FFFCF;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(27, 107, 74, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(27, 107, 74, 0.4);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: 12px;
}

/* ============================================
   Section Styles
   ============================================ */

.section {
  padding: var(--section-padding) 0;
}

.section-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(27, 107, 74, 0.08);
  border-radius: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 48px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* ============================================
   Mission Section
   ============================================ */

.mission {
  background: var(--color-bg);
}

.mission-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.mission-text p {
  margin-bottom: 20px;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.mission-text .lead {
  font-size: 1.2rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.7;
}

.mission-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
}

.mission-icon {
  color: var(--color-primary);
  margin-bottom: 20px;
}

.mission-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.mission-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ============================================
   What We Do Section
   ============================================ */

.what-we-do {
  background: var(--color-bg-alt);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.pillar-icon {
  color: var(--color-primary);
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.pillar h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.pillar p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   Approach Section
   ============================================ */

.approach {
  background: var(--color-bg);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.approach-item {
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.approach-item:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-alt);
}

.approach-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.25;
  margin-bottom: 12px;
  line-height: 1;
}

.approach-item h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.approach-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1B6B4A 100%);
  text-align: center;
  padding: var(--section-padding) 0;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact .section-title {
  color: #fff;
}

.contact-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact .btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.contact .btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--color-bg-dark);
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-brand .logo-x {
  color: #8FFFCF;
}

.footer-brand .logo-rest {
  color: rgba(255, 255, 255, 0.9);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ============================================
   Page Header (Inner Pages)
   ============================================ */

.page-header {
  position: relative;
  padding: 100px 0 60px;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1B6B4A 50%, #2E86AB 100%);
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(143, 255, 207, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(46, 134, 171, 0.15) 0%, transparent 50%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Inner page nav — always scrolled style */
.nav.inner-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  padding: 14px 40px;
}

.nav.inner-nav .logo-rest {
  color: var(--color-text);
}

.nav.inner-nav .logo-x {
  color: var(--color-primary);
}

.nav.inner-nav .nav-links a {
  color: var(--color-text-light);
}

.nav.inner-nav .nav-links a:hover {
  color: var(--color-primary);
}

.nav.inner-nav .mobile-menu-btn span {
  background: var(--color-text);
}

/* ============================================
   Legal Content (Privacy / Terms)
   ============================================ */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--color-text-light);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  color: var(--color-text-light);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content .last-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-page-content {
  padding: 80px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.contact-card-icon {
  color: var(--color-primary);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.contact-card p {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-card a {
  color: var(--color-primary);
  font-weight: 500;
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--color-primary-light);
}

/* ============================================
   About Page
   ============================================ */

.about-content {
  padding: 80px 24px;
}

.about-story {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
}

.about-story p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-story .lead {
  font-size: 1.25rem;
  color: var(--color-text);
  font-weight: 500;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.about-values-title {
  text-align: center;
  margin-bottom: 48px;
}

.value-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.value-card-icon {
  color: var(--color-primary);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.value-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   Footer Links
   ============================================ */

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #8FFFCF;
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.pillar:nth-child(2) .fade-in,
.pillar.fade-in:nth-child(2) {
  transition-delay: 0.1s;
}

.pillar:nth-child(3) .fade-in,
.pillar.fade-in:nth-child(3) {
  transition-delay: 0.2s;
}

.approach-item.fade-in:nth-child(2) {
  transition-delay: 0.1s;
}

.approach-item.fade-in:nth-child(3) {
  transition-delay: 0.2s;
}

.approach-item.fade-in:nth-child(4) {
  transition-delay: 0.3s;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 968px) {
  :root {
    --section-padding: 80px;
  }

  .nav {
    padding: 16px 24px;
  }

  .nav.scrolled {
    padding: 12px 24px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 46, 31, 0.97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }

  body.menu-open .nav-links {
    display: flex;
  }

  body.menu-open .nav-links a {
    color: #fff;
    font-size: 1.3rem;
  }

  body.menu-open .mobile-menu-btn span {
    background: #fff;
  }

  body.menu-open .mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  body.menu-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 1001;
  }

  .mission-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .nav.inner-nav {
    padding: 12px 24px;
  }

  .about-values {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --section-padding: 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .pillar {
    padding: 32px 24px;
  }

  .approach-item {
    padding: 28px 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
  }

  .page-header {
    padding: 80px 0 40px;
  }

  .legal-content {
    padding: 48px 24px;
  }

  .about-content,
  .contact-page-content {
    padding: 48px 24px;
  }

  .value-card,
  .contact-card {
    padding: 32px 24px;
  }
}
