:root {
    --primary: #326A61;
    --secondary: #65A89E;
    --accent: #FF7D42;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #495057;
    --light-gray: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sora', sans-serif;
}

body {
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 80px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 1rem;
}

ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--light);
    color: white;
}

.btn-secondary:hover {
    background: var(--light);
    color: var(--primary);
}

/* Header */
header {
    background: linear-gradient(rgba(50, 106, 97, 0.85), rgba(50, 106, 97, 0.8)), url("https://media.istockphoto.com/id/1095328854/pl/zdj%C4%99cie/stalowy-most-nad-wart%C4%85-i-wie%C5%BCami-katedry.jpg?s=2048x2048&w=is&k=20&c=0V2ZE7u96wxl53OPN3PTXJIz5OIT5cwH5Bhvz6NTtdM=") center/cover no-repeat;
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(50, 106, 97, 0.95);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

nav.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px; /* Zwiększona czcionka w menu */
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Procesy */
.procesy {
    background: var(--light);
}

.procesy-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.proces-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary);
}

.proces-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top-color: var(--accent);
}

.proces-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.proces-card p {
    margin-bottom: 1.5rem;
}

.proces-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Oprogramowanie */
.oprogramowanie {
    background: white;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.product-card ul {
    text-align: left;
}

.product-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Wdrożenia */
.wdrozenia {
    background: var(--light);
}

.wdrozenia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.wdrozenia-image {
    text-align: center;
}

.wdrozenia-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.wdrozenia-steps {
    counter-reset: step-counter;
}

.wdrozenia-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.wdrozenia-step:before {
    content: counter(step-counter);
    counter-increment: step-counter;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.wdrozenia-step h3 {
    margin-bottom: 0.5rem;
}

.wdrozenia-pakiety {
    margin-top: 30px;
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
}

.wdrozenia-pakiety h3 {
    text-align: center;
    margin-bottom: 20px;
}

.wdrozenia-pakiety ul {
    list-style-type: none;
    margin-left: 0;
    margin-bottom: 20px;
}

.wdrozenia-pakiety li {
    margin-bottom: 10px;
}

.wdrozenia-pakiety .btn {
    display: block;
    text-align: center;
}

/* Wsparcie */
.wsparcie {
    background: white;
}

.wsparcie-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.wsparcie-image {
    text-align: center;
}

.wsparcie-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.wsparcie-text h3 {
    margin: 2rem 0 1rem;
}

.wsparcie-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.wsparcie-feature {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.wsparcie-pakiety {
    margin-top: 30px;
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
}

.wsparcie-pakiety h3 {
    text-align: center;
    margin-bottom: 20px;
}

.pakiety-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.pakiet {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.pakiet h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary);
}

.pakiet ul {
    list-style-type: none;
    margin-left: 0;
}

.pakiet.highlighted {
    border: 2px solid var(--accent);
    transform: scale(1.05);
}

.wsparcie-pakiety .btn {
    display: block;
    text-align: center;
}

/* O Nas */
.about {
    background: var(--light);
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.value h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Kontakt */
.kontakt {
    background: white;
}

.kontakt-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.kontakt-form {
    background: var(--light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Sora', sans-serif;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kontakt-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.kontakt-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--primary);
    padding: 60px 0 20px;
    color: white;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    position: relative;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-col h4:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.footer-links {
    list-style: none;
    margin-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Mobile Bottom Menu */
.mobile-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.bottom-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.8rem;
    position: relative;
    padding: 5px 0;
}

.bottom-menu-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.bottom-menu-label {
    font-size: 0.7rem;
    font-weight: 500;
}

.bottom-menu-item.active {
    color: var(--primary);
}

.bottom-menu-item:hover {
    color: var(--primary);
}

.bottom-menu-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.bottom-menu-item:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content, 
    .wdrozenia-content,
    .wsparcie-content,
    .kontakt-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .about-image,
    .wdrozenia-image,
    .wsparcie-image {
        order: -1;
    }
    
    .wsparcie-features {
        grid-template-columns: 1fr;
    }
    
    .pakiety-container {
        grid-template-columns: 1fr;
    }
    
    .pakiet.highlighted {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 90vh;
        top: 80px;
        background: var(--primary);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
    }
    
    .nav-links li {
        opacity: 0;
        margin: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .products-container,
    .procesy-container {
        grid-template-columns: 1fr;
    }
    
    .mobile-bottom-menu {
        display: flex;
    }
    
    /* Add padding to the bottom to prevent content from being hidden behind the mobile menu */
    body {
        padding-bottom: 70px;
    }
}

/* Animation for mobile menu */
.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}