/* 
  Apolo Medical Model Website Styles
  Modern, clean design focused on medical AI presentation
*/

:root {
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --secondary-color: #2ecc71;
  --secondary-dark: #27ae60;
  --text-color: #333333;
  --light-text: #777777;
  --background-color: #ffffff;
  --light-bg: #f5f7fa;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 8px;
  --max-width: 1200px;
  --header-height: 80px;
  --section-padding: 80px 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1.5em;
}

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

a:hover {
  color: var(--primary-dark);
}

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

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background-color: #f8f8f8;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background-color: #f8f8f8;
  padding: 1em;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9em;
  margin-bottom: 1.5em;
}

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

/* Utility Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95em;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85em;
}

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

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  font-size: 2.5em;
}

.section-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 80px;
  background-color: var(--primary-color);
  margin: 0.3em auto 0;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: -20px auto 50px;
  color: var(--light-text);
  font-size: 1.1em;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: var(--shadow);
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--primary-color);
}

.tagline {
  font-size: 0.9rem;
  margin: 0;
  color: var(--light-text);
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  padding: 5px 0;
  position: relative;
}

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

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

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 100;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 9px;
}

.menu-toggle span:nth-child(3) {
  top: 18px;
}

.menu-toggle.active span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
  background: var(--primary-color);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.menu-toggle.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
  background: var(--primary-color);
}

body.menu-open {
  overflow: hidden;
}

/* Hero Section */
.hero {
  padding: 150px 0 80px;
  background-color: var(--light-bg);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
}

/* Architecture Section */
.architecture {
  background-color: var(--light-bg);
}

.architecture-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.architecture-image {
  flex: 1;
}

.architecture-text {
  flex: 1;
}

.architecture-text h3 {
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Examples Section */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.example-card {
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.example-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.example-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.example-content {
  padding: 25px;
}

.example-content h3 {
  margin-bottom: 10px;
}

.example-content p {
  margin-bottom: 20px;
}

.view-more-examples {
  text-align: center;
  margin-top: 30px;
}

/* Reports Section */
.reports {
  background-color: var(--light-bg);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.report-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  transition: var(--transition);
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.report-icon {
  font-size: 2em;
  color: var(--primary-color);
  margin-right: 20px;
}

.report-content h3 {
  margin-bottom: 10px;
}

.report-content p {
  margin-bottom: 20px;
}

/* Compliance Section */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.compliance-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.compliance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.compliance-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.compliance-card p {
  margin-bottom: 20px;
}

/* Get Started Section */
.get-started {
  background-color: var(--light-bg);
}

.get-started-steps {
  margin-bottom: 50px;
}

.step {
  display: flex;
  margin-bottom: 40px;
  align-items: flex-start;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-right: 25px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-bottom: 15px;
}

.documentation-link {
  text-align: center;
  margin-top: 40px;
}

/* Footer */
.site-footer {
  background-color: #2c3e50;
  color: white;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo h2 {
  color: white;
  margin-bottom: 10px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.social-links h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2em;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  flex-direction: column;
}

.social-link {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  transition: var(--transition);
}

.social-link:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9em;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .architecture-content {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .site-header {
    height: auto;
    padding: 15px 0;
  }
  
  .site-header .container {
    flex-wrap: wrap;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .main-nav li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  .main-nav a {
    display: block;
    padding: 15px 0;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2em;
  }
  
  .feature-grid,
  .examples-grid,
  .reports-grid,
  .compliance-grid {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin-bottom: 15px;
    margin-right: 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 2em;
  }
  
  .section-title {
    font-size: 1.8em;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Code Container and Copy Button */
.code-container {
  position: relative;
  margin-bottom: 1.5em;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.copy-button:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Image Overlay for Examples */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: pointer;
}

.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Header shadow when scrolled */
.site-header.scrolled {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Page Styles */
.contact-page {
  padding: 120px 0 80px;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 60px;
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
  background-color: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-right: 20px;
  flex-shrink: 0;
}

.info-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.info-content p {
  margin: 0;
  color: var(--light-text);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: #f8f9fa;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

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

.contact-submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-submit:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.form-note {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-top: 15px;
  text-align: center;
}

.newsletter-section {
  background-color: var(--light-bg);
  padding: 60px 0;
  text-align: center;
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsletter-form button:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.back-to-home {
  display: inline-block;
  margin-bottom: 30px;
}

.back-to-home i {
  margin-right: 5px;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

/* Examples Page Styles */
.examples-page {
  padding: 120px 0 80px;
}

.examples-header {
  text-align: center;
  margin-bottom: 50px;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.example-card {
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.example-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.example-image {
  height: 200px;
  overflow: hidden;
}

.example-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.example-card:hover .example-image img {
  transform: scale(1.05);
}

.example-content {
  padding: 20px;
}

.example-content h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.example-content p {
  color: var(--light-text);
  margin-bottom: 20px;
}

.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.example-tag {
  background-color: #f0f4f8;
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.8em;
  font-weight: 500;
}

.categories-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-btn {
  background-color: #f0f4f8;
  color: var(--text-color);
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.category-btn:hover, 
.category-btn.active {
  background-color: var(--primary-color);
  color: white;
}

/* Example Page Styles */
.example-page {
  padding-top: 120px;
}

.example-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.example-header {
  margin-bottom: 40px;
  text-align: center;
}

.example-header h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.example-description {
  margin-bottom: 30px;
  text-align: center;
}

.example-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.example-image-container {
  text-align: center;
  margin-bottom: 20px;
}

.example-image {
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stages-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stage {
  background-color: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.stage-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.stage-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.stage-title {
  margin: 0;
  font-size: 1.4em;
}

.output-container {
  background-color: #f8f9fa;
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 15px;
  overflow-x: auto;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
  line-height: 1.5;
}

.think-section {
  background-color: #eaf7fd;
  border-left: 4px solid var(--primary-color);
  padding: 15px;
  margin: 15px 0;
}

.diagnosis-result {
  background-color: #e9f9ef;
  border-left: 4px solid var(--secondary-color);
  padding: 15px;
  margin: 15px 0;
  font-weight: bold;
}

.back-to-examples {
  display: inline-block;
  margin-bottom: 20px;
}

.back-to-examples i {
  margin-right: 5px;
}

.tab-container {
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  background-color: #f8f9fa;
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  margin-right: 5px;
  transition: var(--transition);
}

.tab.active {
  background-color: white;
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.tab-content {
  display: none;
  padding: 20px;
  background-color: white;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.tab-content.active {
  display: block;
}

@media (max-width: 768px) {
  .example-content {
    flex-direction: column;
  }
  
  .example-image {
    max-width: 100%;
  }
  
  .tabs {
    flex-wrap: wrap;
  }
  
  .tab {
    flex-grow: 1;
    text-align: center;
    margin-bottom: 5px;
  }
}