/* Latvian-inspired Color Palette:
 * Primary: #9D2235 (Burgundy Red - from Latvian flag)
 * Secondary: #A4BFEB (Light Baltic Blue)
 * Accent: #4D724D (Forest Green)
 * Neutral Dark: #333333
 * Neutral Light: #F5F5F5
 * Background: #FFFFFF
 * Highlights: #FFCE6D (Baltic Amber Gold)
 */

/* Base Styles and Reset */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Open+Sans:wght@400;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #9D2235;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #7a1a29;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 5rem 0;
}

.highlight {
  color: #9D2235;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #FFCE6D;
  border-radius: 1.5px;
}

.section-intro {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* Buttons */
.primary-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: #9D2235;
  color: #FFF;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(157, 34, 53, 0.3);
}

.primary-button:hover {
  background-color: #7a1a29;
  box-shadow: 0 6px 16px rgba(157, 34, 53, 0.4);
  transform: translateY(-2px);
  color: #FFF;
}

.secondary-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: transparent;
  color: #9D2235;
  border: 2px solid #9D2235;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.secondary-button:hover {
  background-color: rgba(157, 34, 53, 0.1);
  color: #7a1a29;
  transform: translateY(-2px);
}

.pulse-button {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(157, 34, 53, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(157, 34, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(157, 34, 53, 0);
  }
}

/* Header and Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.logo-container {
  display: flex;
  align-items: center;
}

.logo img {
  height: auto;
  max-width: 180px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-links li a {
  color: #333333;
  font-weight: 600;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #9D2235;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #9D2235;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

/* Latvian Pattern Elements */
.latvian-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(157, 34, 53, 0.05) 0px,
    rgba(157, 34, 53, 0.05) 2px,
    transparent 2px,
    transparent 8px
  );
  z-index: -1;
  opacity: 0.8;
  border-radius: 12px;
}

.latvian-pattern-side {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 60%;
  background-image: repeating-linear-gradient(
    to bottom,
    #9D2235 0px,
    #9D2235 4px,
    transparent 4px,
    transparent 12px
  );
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.latvian-pattern-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 120px;
  height: 120px;
  background-image: 
    repeating-linear-gradient(
      45deg,
      rgba(255, 206, 109, 0.15) 0px,
      rgba(255, 206, 109, 0.15) 4px,
      transparent 4px,
      transparent 12px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(157, 34, 53, 0.1) 0px,
      rgba(157, 34, 53, 0.1) 4px,
      transparent 4px,
      transparent 12px
    );
  border-top-left-radius: 100%;
  z-index: 0;
}

/* Hero Section */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 6rem;
  background-color: #F5F5F5;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: #9D2235;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #A4BFEB;
}

.hero-content {
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ai-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Features Section */
.features-section {
  background-color: #FFFFFF;
  text-align: center;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card {
  background-color: #F5F5F5;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background-color: #9D2235;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.feature-icon {
  background-color: rgba(157, 34, 53, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.feature-svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #9D2235;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-circle {
  fill: rgba(157, 34, 53, 0.1);
  stroke: none;
}

.feature-path {
  fill: none;
  stroke: #9D2235;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card:hover .feature-icon {
  background-color: rgba(157, 34, 53, 0.2);
  transform: scale(1.1);
}

/* How It Works Section */
.how-it-works {
  background-color: #F5F5F5;
  position: relative;
  overflow: hidden;
}

.how-it-works h2, 
.how-it-works .section-intro {
  text-align: center;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 3rem auto 4rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: rgba(157, 34, 53, 0.2);
  z-index: 0;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.step-number {
  background-color: #9D2235;
  color: #FFFFFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(157, 34, 53, 0.3);
  position: relative;
}

.step-number::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px dashed rgba(157, 34, 53, 0.2);
  border-radius: 50%;
}

.step-content {
  flex: 1;
  padding: 1rem 0;
}

.cta-center {
  text-align: center;
  margin-top: 3rem;
}

/* AI Models Section */
.ai-models {
  background-color: #FFFFFF;
  text-align: center;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.model-card {
  background-color: #F5F5F5;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #9D2235;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

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

.model-icon {
  background-color: rgba(157, 34, 53, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.model-svg {
  width: 40px;
  height: 40px;
}

.model-rect {
  fill: rgba(255, 255, 255, 0.9);
  stroke: #9D2235;
  stroke-width: 2;
}

.model-circle {
  fill: rgba(157, 34, 53, 0.15);
  stroke: #9D2235;
  stroke-width: 2;
}

.model-path {
  fill: none;
  stroke: #9D2235;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.model-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem;
  background-color: transparent;
  color: #9D2235;
  border: 2px solid #9D2235;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.model-link:hover {
  background-color: #9D2235;
  color: #FFFFFF;
}

/* FAQ Section */
.faq-section {
  background-color: #F5F5F5;
  text-align: center;
}

.faq-accordion {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  text-align: left;
}

.accordion-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: #9D2235;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.accordion-icon::before {
  width: 2px;
  height: 12px;
}

.accordion-icon::after {
  width: 12px;
  height: 2px;
}

.faq-item.active .accordion-icon::before {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: left;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 1000px;
}

.faq-item.active .faq-question {
  background-color: rgba(157, 34, 53, 0.05);
}

/* CTA Banner */
.cta-banner {
  background-color: #9D2235;
  color: #FFFFFF;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

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

.cta-banner h2 {
  color: #FFFFFF;
}

.cta-banner .highlight {
  color: #FFCE6D;
}

.cta-banner .highlight::after {
  background-color: rgba(255, 255, 255, 0.3);
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-banner .primary-button {
  background-color: #FFFFFF;
  color: #9D2235;
  border: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.cta-banner .primary-button:hover {
  background-color: #FFCE6D;
  color: #9D2235;
}

/* Footer */
.site-footer {
  background-color: #333333;
  color: #FFFFFF;
  padding: 5rem 0 2rem;
}

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

.footer-branding p {
  margin-top: 1rem;
  max-width: 250px;
  opacity: 0.8;
}

.footer-favicon {
  margin-top: 2rem;
}

.footer-nav h4,
.footer-legal h4 {
  color: #FFCE6D;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
}

.footer-nav li,
.footer-legal li {
  margin-bottom: 0.75rem;
}

.footer-nav a,
.footer-legal a {
  color: #FFFFFF;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-nav a:hover,
.footer-legal a:hover {
  opacity: 1;
  color: #FFCE6D;
}

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

.footer-bottom p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-section {
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto 3rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-branding {
    grid-column: 1 / -1;
    text-align: center;
  }
  
  .footer-branding p {
    margin: 1rem auto;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #FFFFFF;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    gap: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
    visibility: hidden;
  }
  
  .nav-links.active {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }
  
  .hamburger-icon {
    display: block;
    position: relative;
    width: 30px;
    height: 2px;
    background-color: #9D2235;
    transition: all 0.3s ease;
  }
  
  .hamburger-icon::before,
  .hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #9D2235;
    transition: all 0.3s ease;
  }
  
  .hamburger-icon::before {
    top: -8px;
  }
  
  .hamburger-icon::after {
    bottom: -8px;
  }
  
  .mobile-menu-toggle.active .hamburger-icon {
    background-color: transparent;
  }
  
  .mobile-menu-toggle.active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
  }
  
  .mobile-menu-toggle.active .hamburger-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
  }
  
  .features-grid,
  .models-grid {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .process-steps::before {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-nav,
  .footer-legal {
    text-align: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 4rem 0;
  }
  
  .hero-section {
    padding-top: 8rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .primary-button,
  .secondary-button {
    width: 100%;
    text-align: center;
  }
}
