html {
    scroll-behavior: smooth;
}

/* Bāzes iestatījumi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f4f6f8;
    color: #1a202c;
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigācija */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    height: 65px;
    width: auto;
}

.logo-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #0f172a;
    text-transform: uppercase;
    border-left: 3px solid #002138;
    padding-left: 14px;
    line-height: 1.3;
    max-width: 180px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 30px;
    color: #334155;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s;
}

nav a:hover {
    color: #002138;
}

.btn-nav {
    background-color: #002138;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 33, 56, 0.25);
    transition: all 0.3s;
}

.btn-nav:hover {
    background-color: #00121f;
    transform: translateY(-2px);
}

/* Hero sekcija ar video fonu */
.hero {
    position: relative;
    padding: 120px 8% 100px;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.badge {
    background-color: #002138;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    line-height: 1.2;
    margin: 22px 0;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 20px;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto 35px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-btns {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background-color: #002138;
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(0, 33, 56, 0.4);
}

.btn-primary:hover {
    background-color: #00121f;
    transform: translateY(-2px);
}

.btn-secondary {
    margin-left: 15px;
    border: 2px solid #ffffff;
    background-color: rgba(0,0,0,0.3);
    padding: 14px 32px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #0f172a;
}

/* Sekciju virsraksti */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    color: #0f172a;
    font-weight: 800;
}

.subtitle {
    font-size: 18px;
    color: #475569;
    margin-top: 10px;
    font-weight: 500;
}

/* Pakalpojumi un Kartītes */
.services {
    padding: 100px 8%;
    background-color: #ffffff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    position: relative;
    background-color: #0f172a;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #002138;
    box-shadow: 0 15px 30px rgba(0, 33, 56, 0.2);
}

.card-media-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-media-bg img,
.card-media-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card:hover .card-media-bg img {
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 35px 30px;
    background: linear-gradient(to top, rgba(0, 33, 56, 0.95) 0%, rgba(0, 33, 56, 0.75) 55%, rgba(0, 33, 56, 0.2) 100%);
}

.card h3 {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.card p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
}

/* Galerijas kartīšu papildinājums */
.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-card .card-content {
    background: #ffffff;
}

.gallery-card h3 {
    color: #0f172a;
    text-shadow: none;
}

.gallery-card p {
    color: #475569;
}

/* Sadarbības gaita */
.process-section {
    padding: 100px 8%;
    background-color: #edf2f7;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.step {
    background-color: #ffffff;
    padding: 35px 25px;
    border-radius: 14px;
    border: 2px solid #cbd5e1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.step-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #002138;
    margin-bottom: 12px;
}

.step h3 {
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 700;
}

.step p {
    color: #475569;
    font-size: 15px;
}

/* Kontakti */
.contact {
    padding: 100px 8%;
    background-color: #ffffff;
}

.contact-box {
    background: #002138;
    color: #ffffff;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 33, 56, 0.2);
}

.contact-box h2 {
    color: #ffffff;
    font-size: 36px;
}

.contact-box p {
    color: #cbd5e1;
    font-size: 18px;
    margin-top: 10px;
}

.contact-details {
    margin: 30px 0;
    font-size: 20px;
    color: #ffffff;
}

.contact-link {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #93c5fd;
}

.btn-large {
    font-size: 20px;
    padding: 18px 45px;
}

footer {
    text-align: center;
    padding: 30px;
    color: #64748b;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 15px;
    font-weight: 600;
}

/* ==========================================
   MOBILĀS VERSIJAS UZLABOJUMI (Vertikālā izvēlne)
   ========================================== */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
    }

    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo-tagline {
        border-left: none;
        border-top: 2px solid #002138;
        padding-left: 0;
        padding-top: 6px;
        max-width: 100%;
    }

    .navbar nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
        margin-left: 0;
    }

    nav a {
        margin-left: 0;
        font-size: 16px;
        padding: 4px 0;
        width: 100%;
        text-align: center;
    }

    .btn-nav {
        display: inline-block;
        width: 100%;
        max-width: 220px;
        text-align: center;
        margin-top: 5px;
    }

    .hero {
        padding: 80px 5% 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .btn-secondary {
        margin-left: 0;
    }
}/* Galerijas bilžu pielāgošana, lai tās smuki aizpildītu rāmi */
.gallery-card {
    background: #ffffff !important; /* Lai pašas kartītes fons ir balts */
    overflow: hidden;
}

.gallery-card .gallery-img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Nodrošina, ka bilde smuki piepilda visu laukumu, nedeformējoties */
    display: block;
}

.gallery-card .card-content {
    background: #ffffff;
    padding: 25px 20px;
}
/* Paslēpj Netlify automātisko žetonu */
.netlify-badge, 
[id*="netlify"], 
iframe[src*="netlify"] {
    display: none !important;
}/* Paslēpj Netlify automātisko žetonu */
.netlify-badge, 
[id*="netlify"], 
iframe[src*="netlify"] {
    display: none !important;
}

/* Mobilās izvēlnes labojums */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Pēc noklusējuma izvēne ir aizvērta */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
    }

    /* Šī klase parādīs izvēlni, kad lietotājs uzspiedīs uz pogas */
    .nav-links.active {
        display: flex;
    }
}