/* Główne style dla AquaNexis */

:root {
    /* Udoskonalona paleta kolorów "wodna" */
    --primary-color: #0072b5;          /* Głęboki błękit - kolor podstawowy */
    --primary-dark: #00457a;           /* Ciemny granat - dla efektów głębi */
    --primary-light: #4a9ddb;          /* Jasny błękit - dla akcentów */
    --secondary-color: #03a9c0;        /* Turkus - energiczny akcent */
    --secondary-dark: #007a8c;         /* Ciemny turkus - głębia */
    --secondary-light: #56c4d3;        /* Jasny turkus - dla lekkości */
    --accent-color: #00e0ff;           /* Jaskrawy cyjan - akcent świetlny */
    --metallic-light: #e0e6ed;         /* Srebrny jasny - metaliczny akcent */
    --metallic-medium: #a0aec0;        /* Srebrny średni - metaliczny akcent */
    --metallic-dark: #4a5568;          /* Ciemny metaliczny - dla kontrastu */
    
    --dark-blue: #0b2545;              /* Głęboki granatowy - dla tła */
    --light-color: #f0f5fa;            /* Bardzo jasny błękit - tło */
    --text-color: #2d3748;             /* Ciemny szary z niebieskim odcieniem - tekst */
    --success-color: #28a745;          /* Zielony - dla elementów powodzenia */
    --transition-speed: 0.3s;          /* Standardowa szybkość przejść */
    
    /* Typografia pozostaje bez zmian */
    --body-font: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --heading-font: 'Montserrat', 'Roboto', 'Segoe UI', sans-serif;
    --heading-weight: 600;             /* Waga czcionki dla nagłówków */
}

/* Podstawowe style */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Zapobiega poziomemu przewijaniu */
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: var(--heading-weight);
    line-height: 1.2;
}

/* Customizacja Bootstrap - dostosowanie do nowej palety */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0, 72, 181, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark), var(--dark-blue));
    border-color: var(--dark-blue);
    box-shadow: 0 4px 15px rgba(0, 72, 181, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-color: var(--secondary-dark);
    box-shadow: 0 2px 10px rgba(3, 169, 192, 0.2);
}

.btn-info:hover, .btn-info:focus {
    background: linear-gradient(135deg, var(--secondary-dark), #00667a);
    border-color: #00667a;
    box-shadow: 0 4px 15px rgba(3, 169, 192, 0.3);
}

.btn {
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all var(--transition-speed) cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer !important;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.btn:hover::after {
    transform: scale(1);
    opacity: 1;
}

.btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 1.05rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-info {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.navbar-dark.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

/* Ulepszenie stylizacji metalicznych akcentów */
.metallic-accent {
    background: linear-gradient(145deg, var(--metallic-light), var(--metallic-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 2px 3px rgba(255,255,255,0.1);
}

/* Hero section - bardziej "wodny" efekt */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 70%, var(--dark-blue) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section, #home {
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-section:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23fff" fill-opacity="0.05" d="M0,128L48,144C96,160,192,192,288,186.7C384,181,480,139,576,138.7C672,139,768,181,864,186.7C960,192,1056,160,1152,138.7C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x bottom;
    background-size: contain;
    opacity: 0.07;
    z-index: 1;
    animation: wave 20s linear infinite;
}

.hero-section .container {
    position: relative;
    z-index: 10;
}

.hero-section a {
    position: relative;
    z-index: 100;
    cursor: pointer !important;
}

/* IMPORTANT FIX FOR CLICKABLE BUTTONS AND LINKS */
#particles-js {
    pointer-events: none !important;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Make all links in header properly clickable */
.navbar-nav .nav-link,
.hero-section a {
    position: relative;
    z-index: 1000;
    cursor: pointer !important;
}

/* Particles background */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Feature icons - stylizacja "wodna" */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(0, 114, 181, 0.1), rgba(3, 169, 192, 0.15));
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 114, 181, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.feature-icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.4;
}

.feature-icon i {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem !important;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1));
}

.card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(145deg, rgba(0, 114, 181, 0.2), rgba(3, 169, 192, 0.3));
    box-shadow: 0 8px 25px rgba(0, 114, 181, 0.25);
}

/* Cards - efekt szkła wodnego */
.card {
    overflow: hidden;
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 114, 181, 0.15) !important;
}

.card-body {
    padding: 2rem;
    z-index: 1;
    position: relative;
    background: transparent !important;
}

/* Referencje */
.reference-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.reference-logo:hover {
    transform: scale(1.1);
}

/* Nawigacja - bardziej "wodna" */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    letter-spacing: 1px;
    font-weight: 700;
    position: relative;
}

.navbar-brand strong span {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2));
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent-color);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 70%;
}

/* Technology section - zaawansowany metaliczny wygląd */
.tech-feature {
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(240, 245, 250, 0.6));
}

.tech-feature:hover {
    background-color: rgba(0, 114, 181, 0.05);
    transform: translateX(5px);
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tech-feature h3 {
    font-weight: 600;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.tech-feature h3 i {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.system-diagram {
    padding: 30px;
    background: linear-gradient(145deg, #f0f5fa, #ffffff);
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0, 114, 181, 0.05);
    border: 1px solid rgba(0, 114, 181, 0.1);
}

/* Interactive tech model - punkty są jak krople wody */
.tech-model-container {
    width: 100%;
    height: 400px;
    position: relative;
}

.tech-lottie {
    width: 100%;
    height: 100%;
}

.info-point {
    position: absolute;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
}

.info-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(145deg, var(--secondary-light), var(--secondary-color));
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--secondary-light);
}

.info-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(3, 169, 192, 0.4) 0%, rgba(3, 169, 192, 0) 70%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

.info-point:hover .info-circle {
    background: linear-gradient(145deg, var(--accent-color), var(--secondary-light));
    width: 16px;
    height: 16px;
    box-shadow: 0 0 12px var(--accent-color);
}

.info-tip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-align: center;
}

.info-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.info-point:hover .info-tip {
    opacity: 1;
}

/* Benefits Animation Section */
.benefits-animation-container {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.benefits-lottie {
    width: 100%;
    height: 100%;
}

.benefits-stat {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    z-index: 2;
}

.benefits-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.benefits-stat .stat-icon {
    background: var(--bs-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.benefits-stat .stat-text {
    font-weight: 500;
    font-size: 0.9rem;
}

.benefits-stat-1 {
    top: 20%;
    left: 10%;
}

.benefits-stat-2 {
    top: 50%;
    right: 10%;
}

.benefits-stat-3 {
    bottom: 15%;
    left: 20%;
}

@media (max-width: 992px) {
    .benefits-animation-container {
        height: 350px;
    }
    
    .benefits-stat {
        padding: 8px 15px;
    }
    
    .benefits-stat .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .benefits-stat .stat-text {
        font-size: 0.8rem;
    }
}

/* Sustainability section - wzmocnienie efektu "wodnego" */
.sustainability-section {
    background-color: #eef7fc; /* Bardzo jasny błękit jako tło */
    position: relative;
    overflow: hidden;
}

.sustainability-section:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230072b5" fill-opacity="0.03" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,202.7C672,203,768,181,864,170.7C960,160,1056,160,1152,176C1248,192,1344,224,1392,240L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>'), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2303a9c0" fill-opacity="0.03" d="M0,128L48,133.3C96,139,192,149,288,154.7C384,160,480,160,576,138.7C672,117,768,75,864,80C960,85,1056,139,1152,144C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom, top;
    background-repeat: repeat-x;
    opacity: 1;
    z-index: 0;
}

.sustainability-info {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(1px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 245, 250, 0.85));
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 114, 181, 0.1);
    padding: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.sustainability-info::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.eco-icon {
    background: linear-gradient(145deg, rgba(40, 167, 69, 0.1), rgba(3, 169, 192, 0.1));
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 114, 181, 0.1);
}

.eco-icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.6;
}

.eco-stat {
    position: relative;
}

.eco-stat:hover .eco-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(40, 167, 69, 0.2);
}

/* Footer - wzmocnienie efektu "wodnego" */
footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

footer:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23fff" fill-opacity="0.05" d="M0,96L40,112C80,128,160,160,240,160C320,160,400,128,480,112C560,96,640,96,720,117.3C800,139,880,181,960,186.7C1040,192,1120,160,1200,149.3C1280,139,1360,149,1400,154.7L1440,160L1440,320L1400,320C1360,320,1280,320,1200,320C1120,320,1040,320,960,320C880,320,800,320,720,320C640,320,560,320,480,320C400,320,320,320,240,320C160,320,80,320,40,320L0,320Z"></path></svg>') repeat-x bottom;
    background-size: contain;
    opacity: 0.06;
    animation: wave 25s linear infinite;
}

/* Gauge Component Styles */
.gauge-container {
    width: 100%;
    height: 60px;
    margin: 20px 0;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: transparent !important;
}

.gauge-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #4CAF50, #FFEB3B, #F44336);
    border-radius: 5px;
}

.gauge-indicator {
    position: absolute;
    width: 4px;
    height: 100%;
    background-color: #000000;
    top: 0;
    left: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(0px);
    transition: transform 0.3s ease-out;
}

.gauge-indicator::before,
.gauge-indicator::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 50%;
    transform: translateX(-50%);
}

.gauge-indicator::before {
    top: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #000000;
}

.gauge-indicator::after {
    bottom: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #000000;
}

/* Pływające statystyki */
.floating-stats {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
    z-index: 3;
    font-weight: 500;
}

.floating-stats i {
    font-size: 1.2rem;
}

.floating-stats-1 {
    top: -15px; /* Changed from 20% to -15px to position it above the gauge */
    right: -10px;
    animation-delay: 0s;
}

.floating-stats-2 {
    top: -15px; /* Changed from bottom: 25% to top: -15px to position it above the gauge */
    left: -10px;
    animation-delay: 1.5s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Energy Optimization Animation */
.energy-meter-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.energy-meter {
    position: relative;
    width: 200px;
    height: 100px;
    background-color: #f8f9fa;
    border-radius: 100px 100px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.energy-dial {
    position: absolute;
    bottom: 0;
    left: 100px;
    width: 4px;
    height: 90px;
    background-color: #dc3545;
    transform-origin: bottom center;
    animation: oscillateDial 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.6);
}

.energy-scale {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 100px 100px 0 0;
}

.energy-scale:before {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 1px;
    background: #adb5bd;
}

.energy-label {
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.energy-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.energy-bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: floatBubble linear infinite;
}

.energy-text {
    color: #fff;
    margin-top: 150px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@keyframes oscillateDial {
    0%, 100% { transform: rotate(-60deg); }
    50% { transform: rotate(60deg); }
}

@keyframes floatBubble {
    0% { transform: translateY(120%); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-120%); opacity: 0; }
}

/* Generate bubbles with different sizes and positions */
.energy-bubble:nth-child(1) {
    width: 30px;
    height: 30px;
    left: 10%;
    animation-duration: 8s;
}

.energy-bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 30%;
    animation-duration: 6s;
    animation-delay: 1s;
}

.energy-bubble:nth-child(3) {
    width: 25px;
    height: 25px;
    left: 50%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.energy-bubble:nth-child(4) {
    width: 15px;
    height: 15px;
    left: 70%;
    animation-duration: 9s;
    animation-delay: 3s;
}

.energy-bubble:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 85%;
    animation-duration: 10s;
    animation-delay: 4s;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .tech-feature {
        padding: 15px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 991.98px) {
    html {
        font-size: 15px;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .display-4 {
        font-size: 2.8rem;
    }
    
    .display-5 {
        font-size: 2.3rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .navbar-brand {
        font-size: 1.6rem;
    }
    
    .sustainability-info {
        height: auto !important;
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 14px;
    }
    
    h1.display-4 {
        font-size: 2.2rem;
    }
    
    h2.display-5 {
        font-size: 1.9rem;
    }
    
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-section .text-lg-start {
        text-align: center !important;
    }
    
    .sustainability-info, .tech-feature {
        padding: 15px;
    }
    
    .eco-icon {
        width: 50px;
        height: 50px;
    }
    
    .parallax-section {
        height: 300px;
        background-attachment: scroll;
    }
    
    .count-value {
        font-size: 2.2rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .recommendation-item {
        flex-direction: column;
    }
    
    .recommendation-icon {
        margin: 0 auto 15px;
    }
    
    .welcome-back-message {
        width: calc(100% - 40px);
        max-width: none;
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 575.98px) {
    .feature-icon i {
        font-size: 1.5rem !important;
    }
    
    .tech-feature h3 {
        font-size: 1.1rem;
    }
    
    #contact .btn-lg {
        width: 100%;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .eco-impact {
        padding: 15px;
    }
}

/* Animacje */
[data-aos] {
    pointer-events: none;
}
[data-aos].animated {
    pointer-events: auto;
}

/* Formularz kontaktowy - ulepszony */
#contact .card {
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f4f9fc);
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.08);
}

#contact .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid rgba(0, 86, 179, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
}

#contact .form-control:focus {
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
    border-color: var(--primary-color);
    background-color: white;
}

#contact .form-label {
    font-weight: 500;
    color: var(--primary-dark);
}

#contact .btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
}

#contact .btn-primary:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

#contact .btn-primary:hover:after {
    height: 100%;
}

/* Social media ikony */
.social-links a {
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Footer ulepszony */
footer .container {
    position: relative;
}

/* Blog styles */
.blog-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border: none;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 114, 181, 0.15);
}

.blog-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--metallic-dark);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-blue);
    transition: color 0.3s ease;
    line-height: 1.4;
}

.blog-card:hover .blog-title {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.blog-read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: var(--primary-dark);
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

.blog-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.blog-read-more:hover::after {
    width: 100%;
}

/* Blog page styles */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    position: relative;
    color: white;
}

.blog-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23fff" fill-opacity="0.1" d="M0,64L48,80C96,96,192,128,288,138.7C384,149,480,139,576,149.3C672,160,768,192,864,197.3C960,203,1056,181,1152,154.7C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: 100%;
    opacity: 0.2;
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.article-main {
    padding: 50px 0;
}

.sidebar-title {
    position: relative;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-weight: 600;
}

.sidebar-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.categories-list, .recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li, .recent-posts-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.categories-list a, .recent-posts-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.categories-list a:hover, .recent-posts-list a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.recent-posts-list .post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--metallic-dark);
    margin-top: 5px;
}

.blog-search {
    position: relative;
    margin-bottom: 30px;
}

.blog-search input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 50px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: all 0.3s ease;
}

.blog-search input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 114, 181, 0.15);
    border-color: var(--primary-color);
}

.blog-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-search button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--dark-blue));
    transform: scale(1.05);
}

.blog-tag {
    display: inline-block;
    background-color: rgba(0, 114, 181, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 30px;
    margin: 0 8px 10px 0;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.article-card {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 15px 30px rgba(0, 114, 181, 0.15);
    transform: translateY(-5px);
}

.article-img-container {
    height: 250px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-content {
    padding: 30px;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    font-size: 0.85rem;
    color: var(--metallic-dark);
}

.article-meta-item i {
    margin-right: 5px;
    color: var(--primary-color);
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.article-title a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.article-pagination .page-item .page-link {
    color: var(--primary-color);
    border-color: rgba(0, 114, 181, 0.2);
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.article-pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.article-pagination .page-item .page-link:hover {
    background-color: rgba(0, 114, 181, 0.1);
    color: var(--primary-dark);
}

/* Blog full article page */
.article-full-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-full-content p {
    margin-bottom: 20px;
}

.article-full-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--primary-dark);
}

.article-full-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--primary-dark);
}

.article-full-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-full-content ul, .article-full-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-full-content li {
    margin-bottom: 10px;
}

.article-full-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background-color: rgba(0, 114, 181, 0.05);
    font-style: italic;
    color: var(--metallic-dark);
}

.article-tags {
    margin: 30px 0;
}

.article-author {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
}

.author-bio h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.article-comments {
    margin-top: 40px;
}

.comment {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    display: flex;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
}

.comment-content h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--metallic-dark);
    margin-bottom: 10px;
    display: block;
}

.comment-form {
    margin-top: 40px;
}

.comment-form .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.comment-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(0, 114, 181, 0.15);
    border-color: var(--primary-color);
}

/* Responsive blog styles */
@media (max-width: 991.98px) {
    .blog-img-container, .article-img-container {
        height: 180px;
    }
    
    .blog-content, .article-content {
        padding: 20px;
    }
    
    .blog-sidebar {
        margin-top: 50px;
    }
}

@media (max-width: 767.98px) {
    .blog-hero {
        padding: 60px 0;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-meta-item {
        margin-bottom: 10px;
    }
    
    .article-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-img {
        margin: 0 auto 15px;
    }
    
    .comment {
        flex-direction: column;
        text-align: center;
    }
    
    .comment-avatar {
        margin: 0 auto 15px;
    }
}

/* Testimonials Carousel Styling */
#testimonialsCarousel .carousel-item {
    padding: 20px;
}

#testimonialsCarousel .carousel-indicators {
    bottom: -40px;
}

#testimonialsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
}

#testimonialsCarousel .carousel-indicators button.active {
    background-color: var(--bs-primary);
}

.testimonial-nav-icon {
    background-color: rgba(var(--bs-primary-rgb), 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#testimonialsCarousel .carousel-control-prev {
    left: -10px;
}

#testimonialsCarousel .carousel-control-next {
    right: -10px;
}

#testimonialsCarousel .card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#testimonialsCarousel .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Make testimonials responsive for medium and small screens */
@media (max-width: 991px) {
    #testimonialsCarousel .card-body {
        padding: 15px;
    }
    
    #testimonialsCarousel .card-body h3 {
        font-size: 1rem;
    }
    
    #testimonialsCarousel .card-body p {
        font-size: 0.9rem;
    }
}

/* Stack testimonials on mobile */
@media (max-width: 767px) {
    #testimonialsCarousel .carousel-item .row > div:not(:last-child) {
        margin-bottom: 20px;
    }
    
    #testimonialsCarousel .carousel-control-prev {
        left: -5px;
    }
    
    #testimonialsCarousel .carousel-control-next {
        right: -5px;
    }
}

/* Ensure form elements are accessible and interactive */
form input,
form textarea,
form select,
form button,
.form-control,
.btn {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

/* Fix for any overlapping elements that might block interaction */
.form-group,
.form-check,
label {
    position: relative;
    z-index: 5;
}

/* Ensure particles.js doesn't interfere with form interaction */
#particles-js {
    pointer-events: none !important;
}

/* Add visual feedback on form field focus */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Ensure buttons are clearly clickable */
.btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
