/* Globalne style i zmienne */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #00a8a8;
    --primary-dark: #008080;
    --secondary: #4a7c59;
    --accent: #00d4ff;
    --dark-bg: #121212;
    --dark-card: #1e1e1e;
    --dark-text: #e0e0e0;
    --darker-bg: #0a0a0a;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Główny Nagłówek i Nawigacja */
.main-header {
    background-color: var(--darker-bg);
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Poprawione logo - mniejsze i dopasowane do paska */
.main-header .logo img {
    height: 60px; /* Znacznie mniejsza wysokość */
    margin-right: 15px;
    filter: drop-shadow(0 0 5px var(--accent));
}
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav li {
    margin: 0 10px;
}
.main-nav a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}
.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.3s;
}
.main-nav a:hover {
    color: white;
}
.main-nav a:hover:after {
    width: 100%;
}

/* NOWE STYLE DLA TELEFONU */
.header-phone a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap; /* Zapobiega łamaniu się numeru */
    transition: color 0.3s;
}
.header-phone a:hover {
    color: var(--accent);
}
.header-phone i {
    color: var(--primary);
    margin-right: 8px;
}

/* Style dla menu mobilnego */
.mobile-menu-button {
    display: none; /* Ukryty na desktopie */
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.mobile-menu {
    display: none; /* Ukryty domyślnie */
    flex-direction: column;
    width: 100%;
    background-color: var(--dark-card);
    padding: 10px 0;
}
.mobile-menu a {
    color: var(--dark-text);
    text-decoration: none;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu a:last-child {
    border-bottom: none;
}
.mobile-menu a:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)), url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin: 0 auto 30px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 168, 168, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 168, 0.5);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #0099cc);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 100px 0;
}

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

section h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.dark-section {
    background-color: var(--darker-bg);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    text-align: center; /* <-- DODAJ TĘ LINIJKĘ */
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.5s;
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--dark-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
    border-color: var(--accent);
}

.service-image {
    height: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent);
}

/* Gallery Section */
.slider-container {
    position: relative;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    position: relative;
}
.slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}
.slide-caption {
    position: absolute;
    bottom: 0;
    width: 50%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    font-weight: bold;
}
.slide-caption.before {
    left: 0;
}
.slide-caption.after {
    right: 0;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}
.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.prev-btn {
    left: 15px;
}
.next-btn {
    right: 15px;
}
.slider-dots {
    text-align: center;
    padding: 15px 0;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.dot.active, .dot:hover {
    background-color: white;
}

/* Klasa pomocnicza do wyłączania animacji na czas przeskoku */
.no-transition {
    transition: none;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--dark-card);
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    display: inline-block;
    background: var(--dark-card);
    color: var(--dark-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: translateY(-5px);
}

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

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

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--accent);
    bottom: 0;
    left: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }

    /* Ukrywamy nawigację desktopową i telefon, a pokazujemy hamburgera */
    .main-nav, .header-phone {
        display: none;
    }
    .mobile-menu-button {
        display: block;
    }
}

/* Zmiany w sekcji @media dla responsywności */
@media (max-width: 768px) {
    /* Reszta starych stylów, które nadal są potrzebne */
    .hero { padding: 80px 0; }
    .hero h2 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }
    section { padding: 80px 0; }
    section h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
}