/* --- ZMIENNE CSS --- */
:root {
    --bg-main: #121212;
    --bg-surface: #1e1e1e;
    --bg-surface-light: #2a2a2a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #00ff88;
    --accent-hover: #00cc6a;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* --- RESET & PODSTAWY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

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

.section-padding {
    padding: 100px 0;
}

/* --- LOGO --- */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.logo span { color: var(--accent); }

/* --- PRZYCISKI --- */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-main);
}
.btn-primary:hover { background-color: var(--accent-hover); }

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-main);
}
.btn-secondary:hover { background-color: var(--bg-surface-light); }

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
}
.btn-outline:hover {
    background-color: var(--accent);
    color: var(--bg-main);
}

/* --- NAGŁÓWEK (HEADER) --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    transition: var(--transition);
}

.main-nav a:not(.btn-outline):hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%); 
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0,255,136,0.05) 0%, rgba(18,18,18,1) 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* --- TYTUŁY SEKCJI --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title h2 span { color: var(--accent); }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

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

.service-card {
    background-color: var(--bg-surface);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
}

/* --- CTA SECTION --- */
.cta-section {
    background-color: var(--bg-surface);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(0,255,136,0.1);
    border-bottom: 1px solid rgba(0,255,136,0.1);
}

.cta-content h2 { font-size: 2rem; margin-bottom: 20px; }
.cta-content p { color: var(--text-muted); margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- STOPKA (FOOTER) --- */
.footer {
    background-color: #0a0a0a;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info p {
    color: var(--text-muted);
    margin-top: 20px;
    font-size: 0.95rem;
}

.footer-contact h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-contact ul li {
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-contact ul li i { color: var(--accent); }

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-surface);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--bg-main);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #222;
}

/* --- MODAL (FORMULARZ KONTAKTOWY) --- */
.modal {
    display: none; /* Domyślnie ukryty */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeInModal 0.3s ease-out forwards;
}

.modal-content {
    background-color: var(--bg-surface);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #333;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- RWD (MOBILE) --- */
/* Ważne: to musi być na samym dole pliku! */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    
    .mobile-menu-btn { display: block; }
    
    .main-nav {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.98);
        border-bottom: 1px solid #333;
        transition: var(--transition);
    }
    
    .main-nav.active { left: 0; }
    
    .main-nav ul {
        flex-direction: column;
        padding: 40px 0;
        gap: 20px;
    }
}