/* 
 * nudifyerLV.pw - CSS Stylesheet
 * Latvian-themed AI Nudify Website
 */

:root {
  --red: #9E3039;        /* Latvian Red */
  --white: #FFFFFF;      /* White */
  --dark-red: #7A252B;   /* Dark Red */
  --light-red: #F5E9EA;  /* Light Red Background */
  --dark: #333333;       /* Dark Text */
  --gray: #666666;       /* Gray Text */
  --light-bg: #F9F9F9;   /* Light Background */
  --gold: #D4AF37;       /* Accent Gold */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', 'Open Sans', sans-serif;
  color: var(--dark);
  background-color: var(--light-bg);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--red);
}

h1 {
  font-size: 2.5rem;
}

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

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

p {
  margin-bottom: 1rem;
}

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

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

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

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

.section {
  padding: 4rem 0;
}

.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--red);
}

.section-title:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 80px;
  width: 30px;
  height: 3px;
  background: var(--gold);
}

.text-center .section-title:after {
  left: 50%;
  transform: translateX(-55px);
}

.text-center .section-title:before {
  left: 50%;
  transform: translateX(25px);
}

/* Header & Navigation */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.logo img {
  width: 40px;
  height: auto;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red) 0%, var(--dark-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 1.8rem;
}

.nav-link {
  font-weight: 600;
  color: var(--dark);
  position: relative;
}

.nav-link:before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--red);
  transition: width 0.3s ease;
}

.nav-link:hover:before {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(158, 48, 57, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(158, 48, 57, 0.3);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--red);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--red);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(158, 48, 57, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
    linear-gradient(135deg, var(--white) 0%, var(--light-red) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 500px;
  padding-right: 2rem;
}

.hero-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--red);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--gray);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

/* Latvian Flag Pattern - Decorative */
.flag-pattern {
  width: 100%;
  height: 15px;
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
  overflow: hidden;
}

.flag-pattern .red-stripe {
  height: 15px;
  background-color: var(--red);
  position: relative;
}

.flag-pattern .red-stripe:before {
  content: '';
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 80%;
  height: 3px;
  background-color: var(--white);
}

/* How It Works Section */
.how-it-works {
  background-color: var(--white);
  position: relative;
}

.how-it-works:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: var(--red);
  opacity: 0.1;
}

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

.step-item {
  padding: 2.5rem 2rem;
  background-color: var(--white);
  border-radius: 6px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  border-top: 3px solid var(--red);
}

.step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  color: var(--red);
}

.step-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--red);
  position: relative;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gold);
  color: var(--white);
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Features Section */
.features {
  background-color: var(--light-red);
  position: relative;
  overflow: hidden;
}

.features:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: var(--red);
  opacity: 0.1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

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

.feature-card:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 3px;
  background-color: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.feature-card:hover:after {
  transform: scaleX(1);
}

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

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--red);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--white);
}

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

.testimonial-card {
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: var(--light-bg);
  position: relative;
}

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

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 30px;
}

.testimonial-text:before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--red);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(158, 48, 57, 0.1);
  padding-top: 15px;
}

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

.testimonial-author-title {
  color: var(--gray);
  font-size: 0.9rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--red) 0%, var(--dark-red) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L20,20 L0,40 Z' fill='%23ffffff' opacity='0.05'/%3E%3Cpath d='M40,0 L20,20 L40,40 Z' fill='%23ffffff' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.2;
}

.cta-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.btn-cta {
  background-color: var(--white);
  color: var(--red);
  font-size: 1.1rem;
  padding: 1.2rem 2.5rem;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

.btn-cta:hover {
  background-color: var(--light-red);
  color: var(--red);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 0 1.5rem;
  position: relative;
}

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

.footer-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
  font-size: 1.3rem;
}

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

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

.footer-link {
  margin-bottom: 12px;
}

.footer-link a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-link a:hover {
  color: var(--white);
  padding-left: 5px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 40px;
  height: auto;
  margin-right: 10px;
}

.footer-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

/* Latvian Decorative Elements */
.latvian-divider {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
}

.latvian-pattern {
  position: relative;
  width: 40px;
  height: 40px;
}

.latvian-pattern:before, .latvian-pattern:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.latvian-pattern:before {
  background-color: var(--red);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.7;
}

.latvian-pattern:after {
  background-color: var(--gold);
  clip-path: polygon(50% 15%, 85% 50%, 50% 85%, 15% 50%);
  opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .steps, .features-grid, .testimonial-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .nav-item {
    margin: 1rem 0;
    text-align: center;
    width: 100%;
  }
  
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text {
    flex: 1 1 100%;
    padding-right: 0;
    margin-bottom: 2.5rem;
    text-align: center;
  }
  
  .hero-image {
    flex: 1 1 100%;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .section-title:after, .section-title:before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .section-title:before {
    display: none;
  }
  
  .text-center .section-title:after {
    transform: translateX(-50%);
  }
  
  .text-center .section-title:before {
    display: none;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .step-item, .feature-card, .testimonial-card {
    padding: 1.5rem;
  }
}

/* Latvian-inspired folk pattern for backgrounds */
.latvian-pattern-bg {
  background-color: var(--light-bg);
  background-image: 
    linear-gradient(45deg, var(--red) 25%, transparent 25%),
    linear-gradient(-45deg, var(--red) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--red) 75%),
    linear-gradient(-45deg, transparent 75%, var(--red) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.03;
}
