:root {
    /* Kolory dopasowane do logo */
    --primary-navy: #0F5471; /* Granatowy z logo M */
    --primary-blue: #2B9CD8; /* Jasnoniebieski z logo B */
    --dark-gray: #333333; /* Ciemnoszary z A i tekstu */
    --light-gray: #f5f7fa;
    --white: #ffffff;
    --gradient-blue: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
    --gradient-blue-transparent: linear-gradient(135deg, rgba(15, 84, 113, 0.9), rgba(43, 156, 216, 0.8));
    --shadow: 0 10px 30px rgba(15, 84, 113, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-navy);
}

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

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-blue);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Header */
header {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(43, 156, 216, 0.2));
    color: var(--primary-navy);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 10px 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.98), rgba(43, 156, 216, 0.15));
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-navy);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-navy);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: var(--gradient-blue);
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/banner.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
    transform: scale(1.05);
    transition: transform 0.5s ease-out;
}

/* Fallback dla przeglądarek nie obsługujących WebP */
@supports not (background-image: url('../images/banner.webp')) {
    .hero::before {
        background-image: url('../images/banner.jpg');
    }
}

.hero:hover::before {
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

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

.cta-button {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-navy);
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.cta-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Values Section */
.values {
    background-color: var(--light-gray);
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.values-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.value-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    width: calc(33.33% - 20px);
    min-width: 300px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 350px;
    cursor: pointer;
}

.value-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(15, 84, 113, 0.25);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue-transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.value-card:hover::before {
    opacity: 0.05;
}

.value-icon {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-blue);
    position: relative;
    overflow: hidden;
}

.value-icon i {
    font-size: 60px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.value-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
}

.value-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.value-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-navy);
}

.value-description {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

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

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Usunięcie ramki z mapy MBA Polska */
.about-image img[src*="mapa-mba"] {
    border-radius: 0;
    box-shadow: none;
}

/* Removing the blue frame effect */
/* .about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-blue);
    border-radius: 10px;
    top: 15px;
    left: 15px;
    z-index: -1;
} */

/* Join Section */
.join {
    background: var(--gradient-blue);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.join::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://source.unsplash.com/random/1600x900/?network,business') center/cover;
    opacity: 0.1;
    top: 0;
    left: 0;
}

.join-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.join h2 {
    color: var(--white);
    margin-bottom: 30px;
}

.join-steps {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 50px;
    gap: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.join-step {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    max-width: 400px;
    min-width: 280px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: var(--light-gray);
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-item {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: calc(50% - 10px);
    min-width: 300px;
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(15, 84, 113, 0.15);
}

.benefit-icon {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-right: 20px;
    min-width: 40px;
}

.benefit-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Management Section */
.management {
    padding: 100px 0;
    background: var(--white);
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-member {
    width: calc(25% - 22.5px);
    min-width: 250px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(15, 84, 113, 0.15);
}

.member-photo {
    width: 100%;
    height: 250px;
    background-color: #ddd;
    background-position: center;
    background-size: cover;
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-name {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.member-role {
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--light-gray);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-navy);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Nunito', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(43, 156, 216, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

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

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
}

.footer-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
    margin-top: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Style dla linku email w sekcji kontakt footer-a */
.footer-col p a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col p a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

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

.copyright a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .value-card, .benefit-item {
        width: calc(50% - 15px);
    }
    
    .team-member {
        width: calc(33.33% - 20px);
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    /* Zmiana kolejności sekcji dla mobile */
    body {
        display: flex;
        flex-direction: column;
    }
    
    #header {
        order: 0;
    }
    
    #home {
        order: 1;
    }
    
    #news {
        order: 2;
    }
    
    #about {
        order: 3;
    }
    
    #values {
        order: 4;
    }
    
    #join {
        order: 5;
    }
    
    #benefits {
        order: 6;
    }
    
    #management {
        order: 7;
    }
    
    #komisja-rewizyjna {
        order: 8;
    }
    
    #footer {
        order: 9;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--primary-navy);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        visibility: hidden;
    }

    nav.active ul {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul li {
        margin: 10px 0;
    }

    /* Zmiana kolejności pozycji menu dla mobile - dopasowanie do układu sekcji */
    nav ul li:nth-child(1) { order: 1; } /* Strona główna */
    nav ul li:nth-child(3) { order: 2; } /* Aktualności */
    nav ul li:nth-child(4) { order: 3; } /* O nas */
    nav ul li:nth-child(2) { order: 4; } /* Wartości */
    nav ul li:nth-child(5) { order: 5; } /* Dołącz do nas */
    nav ul li:nth-child(6) { order: 6; } /* Korzyści */
    nav ul li:nth-child(7) { order: 7; } /* Zarząd */
    nav ul li:nth-child(8) { order: 8; } /* Komisja Rewizyjna */
    nav ul li:nth-child(9) { order: 9; } /* Kontakt */

    /* Stylowanie linków w menu mobilnym */
    nav ul li a {
        color: var(--white) !important;
        font-size: 1.1rem;
        padding: 10px 20px;
        border-radius: 5px;
        transition: var(--transition);
        display: block;
        text-align: center;
    }

    nav ul li a:hover {
        color: var(--white) !important;
        background-color: var(--primary-blue);
        transform: translateY(-2px);
    }

    nav ul li a::after {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .value-card, .benefit-item, .team-member {
        width: 100%;
    }

    .about-text, .about-image {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .join-steps {
        flex-wrap: wrap;
        padding: 0 10px;
    }

    .join-step {
        width: 100%;
        min-width: auto;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.rotate-in {
    opacity: 0;
    transform: rotateY(40deg);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translate(0) scale(1) rotate(0);
}

/* Parallax effect for sections */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-position 0.5s ease;
}

/* Enhanced hover effects */
.hover-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(15, 84, 113, 0.2);
}

.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(3deg);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(43, 156, 216, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
} 