/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    overflow-x: hidden;
}

/* Header */
header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.flex {
    display: flex;
}

.space-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* Logo */
.logo {
    padding: 15px 0;
}

.logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    position: relative;
    margin-left: 30px;
}

nav ul li a {
    display: block;
    padding: 25px 10px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 15px;
    left: 10px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #0066cc;
}

nav ul li a:hover:before {
    width: calc(100% - 20px);
}

/* Dropdown Menu */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 10;
}

.dropdown:hover .dropdown-content {
    max-height: 300px;
    opacity: 1;
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f5f9ff;
    padding-left: 20px;
    color: #0066cc;
}

.dropdown > a:after {
    content: '→';
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown:hover > a:after {
    transform: rotate(90deg);
}

/* Icons */
.search-icon {
    margin-left: 20px;
}

/* Mobile Menu */
.menu-icon {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

.mobile-overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    background-image: url('../Zdjęcia/szkolenie1.png');
    background-size: cover;
    background-position: center;
    height: 500px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 50px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-buttons {
    margin-top: 30px;
}

.btn {
    padding: 10px 20px;
    border: 2px solid white;
    background-color: transparent;
    color: white;
    font-weight: bold;
    text-decoration: none;
    margin: 0 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: white;
    color: #333;
}

/* Services Section */
.services {
    padding: 50px 0;
}

.services-header {
    margin-bottom: 50px;
    text-align: center;
}

.services-header h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.services-header .subtitle {
    color: #e74c3c;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.services-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.service-text {
    flex: 1;
    padding-right: 30px;
}

.service-text h3 {
    margin-bottom: 15px;
}

.service-text p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-image {
    flex: 1;
    text-align: right;
}

.service-image img {
    max-width: 100%;
}

.service-features {
    display: flex;
    margin-top: 30px;
}

.feature {
    flex: 1;
    margin-right: 20px;
}

.feature h4 {
    margin-bottom: 10px;
}

.feature p {
    font-size: 0.9rem;
    color: #666;
}

/* Service Cards */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 50px;
}

.card-container {
    width: 32%;
    height: 300px;
    perspective: 1000px;
    margin-bottom: 20px;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-container:hover .card {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: 5px;
}

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    overflow-y: auto;
}

.card-front.blue, .card-back.blue {
    background-color: #3498db;
    color: white;
}

.card-front.green, .card-back.green {
    background-color: #5cb85c;
    color: white;
}

.card-front.yellow, .card-back.yellow {
    background-color: #f0ad4e;
    color: white;
}

.card .icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
}

.card p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Why Us Section */
.why-us {
    background-color: transparent;
    padding: 180px 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.1);
}

.why-us .container {
    position: relative;
    z-index: 1;
}

.why-us-text {
    max-width: 50%;
    color: white;
}

.why-us-text .subtitle {
    color: #e74c3c;
}

.why-us-text h2 {
    color: white;
}

.why-us-text p {
    color: rgba(255,255,255,0.9);
}

.why-us-image {
    flex: 1;
    text-align: center;
    padding-left: 30px;
}

.why-us-image img {
    max-width: 100%;
}

/* CTA Section */
.cta {
    background-image: url('../Zdjęcia/hands.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 30px;
	margin-bottom: 30px;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.cta-content {
    position: relative;
    z-index: 1;
    color: white;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: white;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #f1c40f;
    color: white;
}

/* Contact Section */
.contact {
    padding: 50px 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2rem;
}

.contact-container {
    display: flex;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    padding-right: 50px;
    padding-left: 50px;
}

.contact-form {
    flex: 2;
    padding-right: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
}

.form-row {
    display: flex;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-right: 20px;
}

.form-group:last-child {
    margin-right: 0;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #c0392b;
}

/* Map */
.map {
    height: 400px;
    margin-top: 50px;
}

.map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 220px;
    height: auto;
}

.footer-info {
    flex: 1;
    margin-right: 30px;
}

.footer-contact {
    flex: 1;
}

.footer-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-icon {
    color: #e74c3c;
    margin-right: 10px;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .service-cards {
        flex-direction: column;
    }
    
    .card-container {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .why-us {
        flex-direction: column;
    }
    
    .why-us-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .why-us-image {
        padding-left: 0;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 30px;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        background-color: #fff;
        width: 100%;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 95;
    }

    nav.mobile-active {
        max-height: 80vh;
        overflow-y: auto;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    nav ul li a {
        padding: 15px 20px;
    }

    nav ul li a:before {
        bottom: 5px;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #f9f9f9;
        padding-left: 20px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }

    .dropdown.open .dropdown-content {
        max-height: 500px;
        opacity: 1;
    }

    .menu-icon {
        display: block;
    }

    .menu-icon.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-icon.active div:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .services-row {
        flex-direction: column;
    }
    
    .service-text {
        margin-bottom: 30px;
        padding-right: 0;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Responsywność dla boksów kontaktowych */
@media (max-width: 768px) {
    .flex.space-between {
        flex-direction: column;
    }
    
    .contact-info-box {
        width: 100%;
        margin: 15px 0 !important; /* Nadpisanie stylów inline */
    }
}
/* Dodatkowe poprawki dla mapki i kontaktów w sekcji mobilnej */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form, .contact-info {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }
    
    .map-container {
        margin-top: 20px;
        width: 100%;
    }
    
    .map-container iframe {
        width: 100%;
    }
}