:root {
  --primary-color: #9E3039; /* Latvian deep red */
  --secondary-color: #FFFFFF; /* White */
  --accent-color: #4B0082; /* Deep purple accent */
  --text-color: #333333;
  --light-text: #FFFFFF;
  --background-color: #f8f8f8;
  --card-bg: #FFFFFF;
  --footer-bg: #222222;
  --btn-color: #9E3039;
  --btn-hover: #7A242B;
  --header-font: 'Roboto Slab', serif;
  --body-font: 'Open Sans', sans-serif;
}

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

body {
  font-family: var(--body-font);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Diagonal sections design */
.diagonal-section {
  position: relative;
  padding: 6rem 0;
  margin-bottom: 6rem;
  overflow: hidden;
}

.diagonal-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transform: skewY(-3deg);
  transform-origin: top left;
  z-index: -1;
}

/* Header with Latvian-inspired design */
header {
  position: relative;
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 2rem 0;
  margin-bottom: 6rem;
}

header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--primary-color);
  transform: skewY(-3deg);
  transform-origin: bottom left;
  z-index: -1;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.logo {
  width: 70px;
  height: 70px;
  margin-right: 20px;
}

.site-title {
  font-family: var(--header-font);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  color: var(--light-text);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 1rem auto 3rem;
}

.hero-btn {
  display: inline-block;
  background-color: var(--light-text);
  color: var(--primary-color);
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 2px solid transparent;
}

.hero-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  background-color: transparent;
  color: var(--light-text);
  border-color: var(--light-text);
}

/* Feature boxes with shadow effect */
.features {
  margin-bottom: 6rem;
}

.section-title {
  font-family: var(--header-font);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

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

.feature-box {
  background: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-color);
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.feature-title {
  font-family: var(--header-font);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Process section with alternating layout */
.process-section {
  position: relative;
  padding: 5rem 0;
  background-color: var(--light-text);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem 2rem;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(158, 48, 57, 0.2);
}

.step-title {
  font-family: var(--header-font);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* CTA section */
.cta-section {
  background-color: var(--accent-color);
  color: var(--light-text);
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 6rem;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--header-font);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-btn {
  display: inline-block;
  background-color: var(--light-text);
  color: var(--accent-color);
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  opacity: 0.9;
}

/* Testimonials */
.testimonials {
  margin-bottom: 6rem;
}

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

.testimonial-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 4rem;
  font-family: serif;
  color: rgba(158, 48, 57, 0.1);
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--light-text);
  padding: 4rem 0 2rem;
}

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

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

.footer-logo svg {
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
}

.footer-about {
  margin-top: 1rem;
  opacity: 0.8;
}

.footer-heading {
  font-family: var(--header-font);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

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

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

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

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

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

.keywords {
  margin-bottom: 1rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.copyright {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 768px) {
  .site-title {
    font-size: 2rem;
  }
  
  .tagline {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .diagonal-section {
    padding: 4rem 0;
    margin-bottom: 4rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.8rem;
  }
  
  .hero-btn, .cta-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .feature-box {
    padding: 2rem 1.5rem;
  }
}
