:root {
    --primary-color: #0056b3;
    --secondary-color: #004494;
    --accent-color: #00a0e9;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #495057;
    --white: #ffffff;
    --shadow: 0 4px 16px rgba(0, 86, 179, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.page-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

.controls-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.controls-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.view-toggle {
    display: flex;
    position: relative;
    background-color: var(--light-gray);
    border-radius: 50px;
    padding: 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.view-btn {
    border: none;
    background: none;
    padding: 0.7rem 1.3rem;
    cursor: pointer;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--dark-gray);
    z-index: 2;
    transition: color 0.3s ease;
}

.view-btn.active {
    color: var(--white);
}

.view-btn svg {
    width: 16px;
    height: 16px;
}

.toggle-background {
    position: absolute;
    top: 0.3rem;
    height: calc(100% - 0.6rem);
    background-color: var(--primary-color);
    border-radius: 50px;
    z-index: 1;
    transition: var(--transition);
}

#productsContainer {
    position: relative;
    min-height: 300px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-card, .product-row {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    height: 100%;
    position: relative;
}

.product-card:hover, .product-row:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.2);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 12/10;
    background-color: #f8f9fa;
}

.product-row .product-image-container {
    width: 280px;
    float: left;
    margin-right: 2rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s ease;
}

.product-card:hover .product-image,
.product-row:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 160, 233, 0.3);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - (16/10 * 100%));
}

.product-row .product-info {
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.product-row .product-name {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.action-container {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.product-row .action-container {
    margin-top: 0;
}

.learn-more {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-product {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.view-product:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay,
.product-row:hover .product-overlay {
    opacity: 1;
}

#loaderContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader {
    border: 3px solid rgba(0, 86, 179, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    color: var(--dark-gray);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.empty-state p {
    color: var(--dark-gray);
    opacity: 0.8;
}

/* Floating quick action button */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.floating-btn {
    background-color: var(--primary-color);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.floating-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .products-list, .controls-wrapper {
  display: none;
}

    .container {
        padding: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-row .product-image-container {
        width: 100%;
        float: none;
        margin-right: 0;
    }

    .product-row .product-info {
        flex-direction: column;
    }

    .product-row .action-container {
        margin-top: 1rem;
        width: 100%;
    }

    .action-container {
        flex-direction: column;
        width: 100%;
    }

    .learn-more, .view-product {
        width: 100%;
        justify-content: center;
    }
}
  .company-history {
            padding: 80px 0;
            background-color: #f8f9fa;
        }
        
        .company-history h2 {
            margin-bottom: 30px;
            color: #247abe;
            font-weight: 700;
        }
        
        .company-values {
            padding: 80px 0;
        }
        
        .value-box {
            padding: 30px;
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
            height: 100%;
            transition: all 0.3s ease;
        }
        
        .value-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }
        
        .value-box h4 {
            color: #247abe;
            margin-bottom: 15px;
            font-weight: 600;
        }
        
       .achievements-section {
    padding: 80px 0;
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg-balt.webp');
            background-attachment: fixed;
            background-position: contain;
            background-size: cover;
            color: #fff;
}

@media (max-width: 768px) {
    .achievements-section {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg-balt-mob.webp');
        background-attachment: scroll; /* Prevent mobile background flickering */
    }
}

        .achievement-item {
            text-align: center;
            padding: 20px;
        }
        
        .achievement-item h2 {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 10px;
            color: #247abe;
        }
        
        .partners-section {
            padding: 80px 0;
        }
        
        .partner-item {
            margin: 15px 0;
            padding: 20px;
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .partner-item:hover {
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }