/* Pamata mainīgie un iestatījumi */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #34D399;
    --secondary: #0891B2;
    --accent: #F59E0B;
    --text: #1F2937;
    --text-light: #6B7280;
    --background: #F9FAFB;
    --background-dark: #F3F4F6;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

/* Pamata stili */
*, *::before, *::after {
    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);
    background-color: var(--background);
    overflow-x: hidden;
    position: relative;
}

/* Unikāls fona elements */
body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(5, 150, 105, 0.03),
        rgba(5, 150, 105, 0.03) 10px,
        rgba(8, 145, 178, 0.03) 10px,
        rgba(8, 145, 178, 0.03) 20px
    );
    z-index: -1;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Tipogrāfija */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.25rem;
    color: var(--text);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

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

/* Konteineri un sekcijas */
section {
    padding: 5rem 2rem;
}

.header, .footer {
    padding: 1rem 2rem;
}

.hero, .cta-section {
    padding: 8rem 2rem;
}

.section-title {
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Header un navigācija */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo-icon {
    display: flex;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: var(--text);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: var(--transition);
}

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

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

/* Hero sekcija */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: var(--white);
    margin-top: 60px; /* Header augstums */
}

.hero-content {
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary);
}

.subtitle {
    font-size: 1.25rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* Dekoratīvie elementi */
.decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.decor-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(8, 145, 178, 0.1));
    top: 10%;
    left: 10%;
    filter: blur(50px);
}

.decor-square {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.1), rgba(5, 150, 105, 0.1));
    bottom: 10%;
    right: 10%;
    transform: rotate(45deg);
    filter: blur(40px);
}

/* Pogas */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
    text-align: center;
    border: none;
    outline: none;
}

.primary-btn {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--white);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

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

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

.large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

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

/* Funkciju sekcija */
.features {
    background-color: var(--background-dark);
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(5, 150, 105, 0.1);
}

/* Kā tas darbojas sekcija */
.how-it-works {
    background-color: var(--white);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.step {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    max-width: 300px;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Atsauksmju sekcija */
.testimonials {
    background-color: var(--background-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.star {
    color: var(--accent);
    font-size: 1.25rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

/* CTA sekcija */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2,
.cta-section p {
    color: var(--white);
}

.cta-section .btn {
    background-color: var(--white);
    color: var(--primary);
    margin-top: 1.5rem;
}

.cta-section .btn:hover {
    background-color: var(--background);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background-color: var(--text);
    color: var(--white);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: var(--text-light);
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex: 2;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

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

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

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-light);
    margin-bottom: 0;
}

.footer-tags {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* Animācijas un efekti */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .step, .testimonial-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.feature-card:nth-child(1), 
.step:nth-child(1),
.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2),
.step:nth-child(3),
.testimonial-card:nth-child(2) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(3),
.step:nth-child(5),
.testimonial-card:nth-child(3) {
    animation-delay: 0.5s;
}

/* Mediju vaicājumi responsivitātei */
@media (max-width: 992px) {
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        gap: 1rem;
    }
    
    .hero {
        margin-top: 100px;
        padding: 5rem 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
}

/* Unikāls dizaina elements - spīdošas daļiņas */
.testimonial-card::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(5, 150, 105, 0.3);
    top: 20px;
    right: 20px;
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}
