/* ============================================
   MERIDIAN INTELLIGENCE - Website Styles
   Brand Colors:
   - Sky Blue: #53A5D2
   - Periwinkle: #6F79AB
   - CAD Blue: #2A7FAF
   - Steel Blue: #1E4F6F
   - Terra Brown: #7B4C2E
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@300;400;600&display=swap');

:root {
  --sky-blue: #53A5D2;
  --periwinkle: #6F79AB;
  --cad-blue: #2A7FAF;
  --steel-blue: #1E4F6F;
  --terra-brown: #7B4C2E;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --light-gray: #E9ECEF;
  --dark-gray: #343A40;
  --text-primary: #212529;
  --text-secondary: #6C757D;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--steel-blue);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--cad-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--steel-blue);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--light-gray);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--steel-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cad-blue);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--steel-blue);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 50%, #E8F4F8 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(83, 165, 210, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: fadeInUp 0.8s ease;
}

.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--terra-brown);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--steel-blue);
}

.hero h1 span {
  color: var(--cad-blue);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--cad-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--steel-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 127, 175, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--steel-blue);
  border: 2px solid var(--steel-blue);
}

.btn-secondary:hover {
  background: var(--steel-blue);
  color: var(--white);
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--terra-brown);
}

.section-header p {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Value Props */
.value-props {
  background: var(--off-white);
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.prop-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}

.prop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-top-color: var(--cad-blue);
}

.prop-card:nth-child(2):hover {
  border-top-color: var(--terra-brown);
}

.prop-card:nth-child(3):hover {
  border-top-color: var(--periwinkle);
}

.prop-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--sky-blue), var(--cad-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--white);
}

.prop-card:nth-child(2) .prop-icon {
  background: linear-gradient(135deg, var(--terra-brown), #9A6B4A);
}

.prop-card:nth-child(3) .prop-icon {
  background: linear-gradient(135deg, var(--periwinkle), var(--steel-blue));
}

.prop-card h3 {
  color: var(--steel-blue);
  margin-bottom: 1rem;
}

.prop-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Stats Section */
.stats-section {
  background: var(--steel-blue);
  color: var(--white);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--sky-blue);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin: 0;
}

/* Team Section */
.team-section {
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: var(--off-white);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.team-photo {
  height: 280px;
  background: linear-gradient(135deg, var(--periwinkle), var(--steel-blue));
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo .initials {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--white);
  opacity: 0.9;
}

.team-info {
  padding: 2rem;
}

.team-info h3 {
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--terra-brown);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.team-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Technology Page */
.tech-hero {
  background: linear-gradient(135deg, var(--steel-blue) 0%, var(--cad-blue) 100%);
  color: var(--white);
  padding: 10rem 0 6rem;
  text-align: center;
}

.tech-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.tech-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.tech-section {
  padding: 5rem 0;
}

.tech-section:nth-child(even) {
  background: var(--off-white);
}

.tech-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tech-content.reverse {
  direction: rtl;
}

.tech-content.reverse > * {
  direction: ltr;
}

.tech-text h2 {
  margin-bottom: 1.5rem;
}

.tech-list {
  list-style: none;
  margin-top: 1.5rem;
}

.tech-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
}

.tech-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cad-blue);
  font-weight: bold;
}

.tech-visual {
  background: linear-gradient(135deg, var(--light-gray), var(--off-white));
  border-radius: 12px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.pipeline-diagram {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pipeline-step {
  background: var(--white);
  padding: 1.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--cad-blue);
}

.pipeline-step:nth-child(2) { border-left-color: var(--periwinkle); }
.pipeline-step:nth-child(3) { border-left-color: var(--terra-brown); }
.pipeline-step:nth-child(4) { border-left-color: var(--steel-blue); }

.pipeline-step span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.pipeline-step strong {
  color: var(--steel-blue);
  font-size: 0.9rem;
}

.pipeline-arrow {
  color: var(--cad-blue);
  font-size: 1.5rem;
}

/* Contact Section */
.contact-section {
  background: var(--off-white);
}

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

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--cad-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-item-text h4 {
  margin-bottom: 0.25rem;
  color: var(--steel-blue);
}

.contact-item-text p {
  margin: 0;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--steel-blue);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cad-blue);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

/* Footer */
.footer {
  background: var(--steel-blue);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--sky-blue);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--sky-blue);
}

.footer-contact p {
  opacity: 0.8;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .hero h1 { font-size: 2.75rem; }
  
  .hero-content,
  .tech-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .tech-content.reverse {
    direction: ltr;
  }
  
  .props-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    border-bottom: 1px solid var(--light-gray);
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 4rem;
  }
  
  .hero h1 { font-size: 2.25rem; }
  
  section { padding: 4rem 0; }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .stat-item h3 { font-size: 2.25rem; }
  
  .pipeline-diagram {
    flex-direction: column;
  }
  
  .pipeline-arrow {
    transform: rotate(90deg);
  }
}
