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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Top Bar Styles */
.top-bar {
    background-color: #232a41; /* Dark blue from the image */
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
}

.top-bar .contact-info span {
    margin-right: 20px;
}

.top-bar .contact-info i {
    color: #ff5e14; /* Orange color for icons */
    margin-right: 8px;
}

.top-bar .social-links span {
    margin-right: 15px;
    font-weight: bold;
}

.top-bar .social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for background */
    border-radius: 50%;
    color: #fff;
    margin-left: 5px;
    transition: background-color 0.3s ease;
}

.top-bar .social-icon:hover {
    background-color: #ff5e14; /* Orange on hover */
}


/* Header */
.header {
    background-color: #40a0f0; /* Mainīts uz zilu, kā futerim */
    color: #fff; /* Mainīts uz baltu tekstu */
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff; /* Logo teksts baltā krāsā */
}

.logo .logo-text {
    font-size: 18px;
    font-weight: 400;
    color: #fff; /* SIA teksts baltā krāsā */
}

.nav ul {
    display: flex;
}

.nav ul li {
    position: relative;
    margin-left: 30px;
}

.nav ul li a {
    color: #fff; /* Navigācijas saites baltā krāsā */
    font-weight: 400;
    padding: 5px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav ul li a:hover {
    color: #dcdcdc; /* Gaišāks tonis uz hover */
}

.nav ul li.dropdown a .arrow-down {
    margin-left: 5px;
    border: solid #fff; /* Bultiņa baltā krāsā */
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transition: border-color 0.3s ease;
}

.nav ul li.dropdown a:hover .arrow-down {
    border-color: #dcdcdc; /* Gaišāks tonis uz hover */
}

/* Dropdown Content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-top: 3px solid #40a0f0; /* Saglabājam zilo līniju */
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* NEW: Hamburger menu icon for mobile */
.menu-toggle {
    display: none; /* Hide by default on desktop */
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

/* Slider Section Styles */
/* MAIN CHANGE: No .container around this section in HTML */
.slider-section {
    position: relative;
    width: 100%; /* Take full width */
    height: 600px; /* Adjust height as needed */
    overflow: hidden; /* Hide overflowing parts of slides */
}

.slider-container {
    display: flex; /* Arrange slides in a row */
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out; /* Smooth slide transition */
}

.slide {
    flex: 0 0 100%; /* Each slide takes 100% width of the container */
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: left;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire slide area */
    display: block;
}

/* Pielāgots paraksta stils */
.slide-caption {
    position: absolute;
    bottom: 50px; /* Pielāgojiet augstumu no apakšas */
    left: 80px; /* Pielāgojiet attālumu no kreisās malas */
    background-color: rgba(0, 0, 0, 0.6); /* Nedaudz tumšāks fons tekstam */
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 500px; /* Ierobežojiet paraksta platumu */
    text-align: left; /* Teksts līdzināts pa kreisi */
}

.slide-caption h2 {
    font-size: 3.5em; /* Lielāks virsraksts */
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.slide-caption p {
    font-size: 1.5em; /* Lielāks apraksta teksts */
    color: #eee;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active,
.slider-dot:hover {
    background-color: #40a0f0; /* Example blue color */
}

/* Services Grid Section Styles */
.services-grid {
    padding: 40px 0; /* Vertikālā atstarpe */
    text-align: center;
}

.services-grid.blue-background {
    background-color: #40a0f0; /* Futera zilā krāsa */
    color: #fff; /* Balts teksts */
}

.services-grid .container {
    display: grid; /* Izmanto CSS Grid izkārtojumam */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Atbilstošas kolonnas */
    gap: 30px; /* Atstarpe starp elementiem */
    justify-content: center; /* Centē elementus horizontāli, ja ir mazāk par pilnu rindu */
}

.service-item {
    background-color: rgba(255, 255, 255, 0.1); /* Nedaudz caurspīdīgs fons katram blokam */
    padding: 30px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex; /* Lai centrētu saturu vertikāli */
    flex-direction: column; /* Ikonai, virsrakstam un aprakstam būt vienam zem otra */
    align-items: center; /* Centē saturu horizontāli */
    justify-content: center; /* Centē saturu vertikāli */
    min-height: 200px; /* Nodrošina vienādu augstumu blokiem */
}

.service-item:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Nedaudz tumšāks uz hover */
    transform: translateY(-5px); /* Neliela pacelšanās uz hover */
}

.service-item i {
    font-size: 3em; /* Lielākas ikonas */
    margin-bottom: 15px;
    color: #fff; /* Balta ikona */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* Neliela ēna ikonai */
}

.service-item h3 {
    font-size: 1.8em; /* Virsraksta izmērs */
    margin-bottom: 10px;
    color: #fff; /* Balts virsraksts */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.service-item p {
    font-size: 1em; /* Apraksta izmērs */
    color: #eee; /* Gaišāks apraksta teksts */
    line-height: 1.5;
}


/* About Section */
.about-section {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
}

.about-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #40a0f0; /* Example blue underline */
}

.about-section p {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-section .highlight {
    font-weight: 700;
    color: #40a0f0; /* Example blue color for highlighted text */
}

/* Content Section (based on gastex2.jpg) */
.content-section {
    padding: 40px 0;
    background-color: #f4f4f4;
}

.content-section .columns {
    display: flex;
    gap: 40px; /* Space between columns */
    flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
}

.content-section .left-column,
.content-section .right-column {
    flex: 1; /* Allows columns to take equal width */
    min-width: 300px; /* Minimum width before wrapping */
}

.content-section p {
    font-size: 16px;
    margin-bottom: 20px;
}

.content-section h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.content-section .highlight {
    font-weight: 700;
    color: #007bff; /* Example blue color for highlighted text */
}

/* Footer */
.footer {
    background-color: #40a0f0; /* Dark blue color from the image */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.footer .container {
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
}

.footer p {
    margin: 0; /* Remove default paragraph margin */
}

.footer a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #dcdcdc; /* Lighter color on hover */
}

/* Scroll to top button */
.scroll-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #40a0f0; /* Example blue color */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 999;
    transition: background-color 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #40a0f0; /* Darker blue on hover */
}


/* ========================================= */
/* MEDIA QUERIES FOR RESPONSIVENESS */
/* ========================================= */

/* Tablet & Smaller Devices (max-width 992px) */
@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap; /* Allow logo and nav to wrap */
        justify-content: center; /* Center them */
    }

    .nav ul {
        margin-top: 15px; /* Add space below logo */
        justify-content: center; /* Center nav items */
        flex-wrap: wrap; /* Allow nav items to wrap */
    }

    .nav ul li {
        margin: 0 15px 10px; /* Adjust margin for wrapped items */
    }

    /* Slider adjustments */
    .slider-section {
        height: 500px; /* Slightly reduce height for tablets */
    }

    .slide-caption {
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%); /* Re-center caption horizontally */
        max-width: 90%; /* Allow more width */
        padding: 15px 25px;
        text-align: center; /* Center text in caption */
    }

    .slide-caption h2 {
        font-size: 2.5em; /* Smaller font size */
    }

    .slide-caption p {
        font-size: 1.2em; /* Smaller font size */
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
        padding: 10px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }

    /* Content Section adjustments */
    .content-section .columns {
        flex-direction: column; /* Stack columns vertically */
    }

    .content-section .left-column,
    .content-section .right-column {
        min-width: unset; /* Remove min-width restriction */
    }
}

/* Mobile Devices (max-width 768px) */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column; /* Stack contact info and social links */
        align-items: flex-start; /* Align to start */
    }
    .top-bar .contact-info span {
        margin-bottom: 5px;
    }
    .top-bar .social-links {
        margin-top: 10px;
    }

    /* Header: Mobile Menu (Hamburger) */
    .header .container {
        flex-wrap: nowrap; /* Prevent wrapping in header */
        justify-content: space-between; /* Space out logo and toggle */
    }

    .nav {
        display: none; /* Hide desktop nav by default */
        position: absolute;
        top: 100%; /* Below the header */
        left: 0;
        width: 100%;
        background-color: #40a0f0; /* Same as header */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 10px 0;
        flex-direction: column; /* Stack nav items vertically */
        text-align: center;
        z-index: 999;
    }

    .nav.active { /* Class added by JS when menu is open */
        display: flex;
    }

    .nav ul {
        flex-direction: column; /* Stack vertically */
        margin-top: 0;
    }

    .nav ul li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
    }
    .nav ul li:last-child {
        border-bottom: none;
    }

    .nav ul li a {
        display: block; /* Make links full width */
    }

    .dropdown-content {
        position: static; /* Remove absolute positioning for mobile dropdown */
        box-shadow: none;
        border-top: none;
        background-color: rgba(255, 255, 255, 0.05); /* Slightly different background */
        padding-left: 20px; /* Indent dropdown items */
    }

    .dropdown-content a {
        color: #fff; /* White text for dropdown items in mobile menu */
    }
    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    /* Slider adjustments for smaller screens */
    .slider-section {
        height: 400px; /* Further reduce height for mobile */
    }

    .slide-caption h2 {
        font-size: 2em; /* Even smaller font size */
    }

    .slide-caption p {
        font-size: 1em; /* Even smaller font size */
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
        padding: 8px;
    }

    /* Services Grid adjustments */
    .services-grid .container {
        grid-template-columns: 1fr; /* Single column layout for mobile */
    }

    .service-item {
        min-height: auto; /* Remove fixed height */
    }

    /* About Section adjustments */
    .about-section h2 {
        font-size: 28px;
    }
    .about-section p {
        font-size: 16px;
    }
}

/* Very Small Mobile Devices (max-width 480px) */
@media (max-width: 480px) {
    .slide-caption {
        padding: 10px 15px;
    }
    .slide-caption h2 {
        font-size: 1.5em;
    }
    .slide-caption p {
        font-size: 0.9em;
    }
}
/* Šis stils nomainīs fona krāsu elementiem ar klasi 'blue-background' uz gaiši zilu. */
        .services-grid.blue-background {
            background-color: #40a0f0 !important; /* Gaiši zila krāsa (piemēram, LightBlue) */
        }

        /* === STILI Nolaižamajai IZVĒLNEI === */
        .dropdown-content {
            background-color: #40a0f0 !important; /* Gaiši zils fons nolaižamajai izvēlnei */
            /* Papildu stili, kas varētu būt noderīgi (daži var jau būt jūsu style.css): */
            /* display: none; */ /* Sākotnēji paslēpta, parāda ar JS vai :hover uz vecākelementa */
            /* position: absolute; */ /* Tipiski nolaižamajām izvēlnēm */
            /* z-index: 1; */ /* Lai būtu virs citiem elementiem */
            /* box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); */ /* Neliela ēna, ja vēlaties */
            /* min-width: 200px; */ /* Minimālais platums, lai saturs labi izskatītos */
        }

        .dropdown-content a {
            color: #FFFFFF !important; /* BALTA teksta krāsa saitēm */
            display: block;
            padding: 10px 16px; /* Nedaudz palielinātas atstarpes labākai lasāmībai */
            text-decoration: none;
        }

        .dropdown-content a:hover {
            background-color: #40a0f0 !important; /* Nedaudz tumšāks/piesātinātāks zils fons, kad pele virs saites */
            color: #FFFFFF !important; /* Teksta krāsa paliek balta (vai varat mainīt, ja nepieciešams) */
        }