/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Estonian flag–inspired palette: blue, black, white */
    --primary-color: #0072ce;   /* vivid Estonian blue */
    --primary-dark: #004b8d;    /* deeper blue for hovers */
    --accent-black: #111827;    /* near-black for strong contrast */
    --text-dark: #111827;
    --text-light: #6b7280;
    /* Muted background is now a noticeably cooler, light blue-grey */
    --bg-light: #e5f0ff;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-icon {
    height: 32px;
    width: auto;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-black));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    /* Blue-to-black gradient echoing the Estonian flag stripes */
    background: linear-gradient(150deg, #0072ce 0%, #0b1120 45%, #020617 100%);
    color: white;
    margin-top: 70px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 260px;
    height: auto;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    display: block;
    background: linear-gradient(135deg, #e5e7eb, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

#solutions .section-subtitle {
    color: var(--text-dark);
}

/* Alternating section backgrounds */
.section-white {
    background: linear-gradient(150deg, #0072ce 0%, #f3f6ff 50%, #ffffff 100%);
}

.section-dark {
    /* Reuse hero-style blue-to-black gradient for all dark sections */
    background: linear-gradient(150deg, #0072ce 0%, #0b1120 45%, #020617 100%);
    color: #f9fafb;
}

section + section {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.section-dark .section-title,
.section-dark .section-subtitle,
.section-dark .contact-label,
.section-dark .contact-value,
.section-dark .testimonial-quote,
.section-dark .testimonial-author {
    color: #f9fafb;
}

.section-dark a {
    color: #bfdbfe;
}

.section-dark a:hover {
    color: #e5f0ff;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.1rem;
    }
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.section-dark .service-card {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
}

.section-dark .service-description {
    color: rgba(226, 232, 240, 0.85);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-logo {
    width: 56px;
    height: auto;
    display: block;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-dark .service-title {
    color: #f9fafb;
}

.service-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Testimonial Section */
.testimonial {
    text-align: center;
}

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.is-active {
    display: block;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.8;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.testimonial-author {
    font-weight: 600;
    font-size: 1.125rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background-color: rgba(15, 23, 42, 0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.testimonial-dot.is-active {
    width: 26px;
    background-color: var(--primary-color);
}

/* Clients Section */
.clients-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: flex-start;
    margin-top: 3rem;
    padding: 0.5rem 0;
    overflow: hidden;
}

.client-logo-tile {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #0072ce 0%, #0b1120 50%, #ffffff 100%);
    filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.35));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-logo {
    display: block;
    max-width: 220px;
    max-height: 80px;
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 0.5rem 0.5rem;
    border-radius: 0.7rem;
    background-color: #ffffff;
}

.client-logo-tile:hover {
    transform: scale(1.04);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}

/* Solutions / Portfolio Section */
.solutions-feature {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(0, 1.6fr);
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.solutions-feature-logo {
    display: flex;
    justify-content: center;
}

.solutions-feature-logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.solutions-feature-screenshot {
    border-radius: 1.1rem;
    padding: 4px;
    background: linear-gradient(135deg, #0072ce 0%, #0b1120 60%, #ffffff 100%);
    box-shadow: var(--shadow-lg);
}

.solutions-feature-screenshot-image {
    display: block;
    width: 100%;
    border-radius: 0.9rem;
}

.solutions-feature-text {
    color: var(--text-dark);
}

.solutions-feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.solutions-feature-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.solutions-feature-inline-logo {
    display: inline-block;
    height: 1.5rem;
    width: auto;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.solution-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #0072ce 0%, #0b1120 60%, #ffffff 100%);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.solution-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease, opacity 0.4s ease;
    border-radius: 0.9rem;
    background-color: #ffffff;
    padding: 0.5rem;
    filter: grayscale(100%) contrast(1.1);
    opacity: 0.92;
}

.solution-card:hover .solution-image {
    transform: scale(1.03);
    filter: grayscale(40%) contrast(1.1);
    opacity: 1;
}

.solution-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.solution-lightbox.is-open {
    display: flex;
}

.solution-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
}

.solution-lightbox-content {
    position: relative;
    max-width: 960px;
    width: 92%;
    margin: 0 auto;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.8);
    z-index: 1;
}

.solution-lightbox-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    background-color: #020617;
}

.solution-lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
}

.solution-lightbox-close:hover {
    background: rgba(15, 23, 42, 1);
    transform: scale(1.05);
}

/* Contact Section */
.contact {
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.contact-item {
    text-align: center;
}

.contact-label {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-value {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background-color: #020617; /* deep near-black */
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 6rem 0 4rem;
        margin-top: 120px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }
}

