@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --border-light: #e2e8f0;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text {
  font-family: 'Outfit', sans-serif;
  color: var(--secondary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* --- Layout & Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-bg-white {
  background-color: var(--bg-surface);
}

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

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo {
  height: 44px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.nav-links::-webkit-scrollbar { 
  display: none; /* Safari and Chrome */
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5rem 0;
}

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

@media (max-width: 767px) {
  .nav-container {
    height: 70px;
  }
  .nav-logo {
    height: 32px;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .logo-link {
    gap: 0.5rem;
  }
  .nav-links {
    margin-left: 1rem;
    gap: 1.25rem;
  }
}


/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-top: 80px; /* Offset for navbar */
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8));
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

/* --- Split Sections (Alternate Layout) --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.split-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.split-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.split-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image-wrapper img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.split-image-wrapper:hover img {
  transform: scale(1.05);
}

.reverse-layout .split-image-wrapper {
  order: -1;
}

@media (max-width: 767px) {
  .reverse-layout .split-image-wrapper {
    order: 0;
  }
}

/* --- Text Focused Section --- */
.text-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.text-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.text-section p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

#who-we-are {
  padding-bottom: 3.7rem; /* ~20% reduction of overall bottom whitespace */
}

/* --- Quote Section --- */
.quote-section {
  background-color: var(--secondary);
  color: white;
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.quote-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 1;
}

.quote-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.quote-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.4;
  color: white;
  font-style: italic;
}


/* --- Standard Page Header for Docs --- */
.page-header {
  padding: 8rem 0 4rem;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* --- Document Content --- */
.doc-content {
  background-color: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 3rem auto;
  max-width: 800px;
}

.doc-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.doc-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.doc-content p, .doc-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.doc-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* --- Contact Page Specific --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin: 4rem auto;
}

@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-info-item {
  margin-bottom: 2rem;
}

.contact-info-item h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.contact-info-item p, .contact-info-item a {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background-color: var(--secondary);
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-copy {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
