/* Base styles and CSS reset */
:root {
    --primary-color: #7B2CBF;
    --secondary-color: #9D4EDD;
    --accent-color: #C77DFF;
    --light-color: #E0AAFF;
    --dark-color: #3C096C;
    --text-color: #1F1F1F;
    --light-text: #FFFFFF;
    --background-color: #F9F9F9;
    --card-background: #FFFFFF;
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

/* Latvian folk pattern background for certain sections */
.latvian-pattern-bg {
    position: relative;
    background-color: #f8f8f8;
    background-image: 
        repeating-linear-gradient(45deg, 
            var(--light-color) 25%, transparent 25%, 
            transparent 75%, var(--light-color) 75%, var(--light-color)),
        repeating-linear-gradient(45deg, 
            var(--light-color) 25%, var(--background-color) 25%, 
            var(--background-color) 75%, var(--light-color) 75%, var(--light-color));
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    opacity: 0.1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

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

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

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--secondary-color);
}

.section-heading {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.section-subheading {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header Styles */
.site-header {
    background-color: var(--card-background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

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

.logo {
    width: 40px;
    height: 40px;
    margin-right: 8px;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.tld {
    color: var(--secondary-color);
    font-weight: 400;
}

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

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

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.05) 0%, rgba(157, 78, 221, 0.1) 100%);
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

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

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-visual {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.scan-line, .scan-line-vertical {
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 20;
    }
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.4);
    color: white;
}

.secondary-button {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--background-color);
}

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

.feature-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
}

.feature-icon {
    margin: 0 auto 1.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(123, 44, 191, 0.1);
    border-radius: 50%;
    padding: 15px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: #f6f2ff;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.step {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 1rem 2rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.step-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    align-self: center;
    margin: 0 -10px;
    max-width: 100px;
    position: relative;
    top: -60px;
    z-index: 1;
    display: none;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.about-section .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 3;
}

.about-text {
    margin-bottom: 2rem;
}

.highlight-box {
    background-color: rgba(123, 44, 191, 0.05);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight-box ul {
    list-style-position: inside;
    margin-bottom: 0;
}

.highlight-box li {
    margin-bottom: 0.5rem;
}

.about-graphic {
    flex: 2;
    display: flex;
    justify-content: center;
}

.about-visual {
    max-width: 100%;
    height: auto;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text);
    padding: 4rem 0;
    text-align: center;
}

.cta-banner h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-banner p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-banner .cta-button {
    background-color: white;
    color: var(--primary-color);
}

.cta-banner .cta-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: #1A1A1A;
    color: #B0B0B0;
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    grid-column: 1 / -1;
}

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

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

.footer-brand-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-brand p {
    max-width: 300px;
}

.footer-nav h3,
.footer-features h3,
.footer-legal h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-nav h3::after,
.footer-features h3::after,
.footer-legal h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

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

.site-footer ul li a {
    color: #B0B0B0;
    transition: color 0.3s;
}

.site-footer ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.disclaimer {
    margin-bottom: 1rem;
    color: #777;
}

.copyright {
    color: #999;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-section .container {
        flex-direction: column-reverse;
    }
    
    .step-connector {
        display: none;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: -1;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        z-index: 999;
    }
    
    .nav-links li {
        margin: 0;
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .steps-container {
        max-width: 800px;
    }
    
    .step-connector {
        max-width: 60px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .feature-card {
        padding: 1.5rem;
    }
}
