:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --text-primary: #c9d1d9;
    --text-accent: #58a6ff; /* Blue */
    --text-green: #3fb950; /* Green */
    --text-purple: #bc8cff; /* Purple */
    --border-color: #30363d;
    --font-mono: 'Fira Code', monospace;
}

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

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

/* --- ACCESSIBILITY START --- */
/* Skip Link - widoczny tylko po sfocusowaniu */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--text-accent);
    color: #0d1117;
    padding: 8px;
    z-index: 10001;
    font-weight: bold;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Wyraźny Focus dla nawigacji klawiaturą */
:focus-visible {
    outline: 3px solid var(--text-accent);
    outline-offset: 3px;
}

/* Obsługa preferencji redukcji ruchu (WCAG) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    
    .typing-effect {
        border-right: none; /* Usuwamy migający kursor */
    }
}
/* --- ACCESSIBILITY END --- */

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

a:hover {
    color: var(--text-accent);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(13, 17, 23, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-green);
}

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

.nav-links li a {
    font-size: 0.9rem;
    color: var(--text-primary);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* Wycentrowanie dla lepszego odbioru */
    padding: 0 20px;
    background: radial-gradient(circle at center, #161b22 0%, #0d1117 100%);
}

.greeting {
    color: var(--text-green);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.main-name {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin: 10px 0;
    line-height: 1.2;
}

.role {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-purple);
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #8b949e;
}

.typing-effect {
    color: var(--text-accent);
    border-right: 3px solid var(--text-accent);
    padding-right: 5px;
    animation: blink 0.9s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.btn-main {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--text-green);
    color: #0d1117;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    font-size: 1rem;
}

.btn-main:hover {
    background-color: #2ea043;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 160, 67, 0.4);
}

/* Sections */
.section {
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-align: center;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: #8b949e;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--text-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--text-accent);
    background-color: rgba(22, 27, 34, 0.8);
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.1);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-accent);
    color: #0d1117;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.pricing-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.price {
    font-size: 1.8rem;
    color: var(--text-green);
    font-weight: 700;
    margin-bottom: 5px;
}

.desc {
    color: #8b949e;
    font-size: 0.9rem;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative; /* Dla tooltipa */
    cursor: help; /* Zmienia kursor na znak zapytania */
}

/* Tooltip Styles */
.features-list li::before {
    content: attr(data-tooltip); /* Pobiera tekst z atrybutu data-tooltip */
    position: absolute;
    bottom: 125%; /* Nad elementem */
    left: 50%;
    transform: translateX(-50%);
    
    width: 220px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    text-align: center;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    border: 1px solid var(--text-green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 100;
    
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* Żeby nie migotało przy najechaniu */
}

/* Strzałka tooltipa */
.features-list li::after {
    content: '';
    position: absolute;
    bottom: 115%; /* Tuż pod tooltipem */
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-green) transparent transparent transparent;
    
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.features-list li:hover::before,
.features-list li:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Demo Links in Pricing */
.demo-container {
    margin: 0 0 20px 0;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.demo-title {
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 10px;
}

.demo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-link {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.demo-link:hover {
    opacity: 0.8;
}

.demo-link.modern { color: var(--text-green); }
.demo-link.creative { color: var(--text-purple); }
.demo-link.minimal { color: var(--text-accent); }
.demo-link.transport { color: #ef4444; }
.demo-link.hotel { color: #c5a059; }
.demo-link.gastronomy { color: #ea580c; }





.btn-pricing {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-pricing:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.btn-featured {
    background-color: var(--text-accent);
    border-color: var(--text-accent);
    color: #0d1117;
}

.btn-featured:hover {
    background-color: #79c0ff;
    border-color: #79c0ff;
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    color: #8b949e;
    font-size: 0.85rem;
    font-style: italic;
}


/* About Section */
.about-container {
    max-width: 1000px; /* Lekko zwiększone, by pomieścić dwa kolumny */
    margin: 0 auto;
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    margin-bottom: 40px;
}

.profile-img-container {
    flex-shrink: 0; /* Obrazek nie powinien się zwężać */
}

.profile-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 3px solid var(--text-purple);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(188, 140, 255, 0.15);
    transition: transform 0.3s ease;
}

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

.about-text-content {
    flex-grow: 1;
}

.highlight-text {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.experience-box {
    display: inline-block;
    border: 2px solid var(--text-purple);
    padding: 15px 30px;
    border-radius: 10px;
    background: rgba(188, 140, 255, 0.05);
}

.big-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-purple);
    line-height: 1;
}

.exp-desc {
    color: #8b949e;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-tags {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.skills-tags li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--text-accent);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.2rem;
    color: #8b949e;
    margin-bottom: 50px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: 0.3s;
}

.contact-item:hover {
    border-color: var(--text-green);
    background-color: rgba(63, 185, 80, 0.05);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-label {
    font-size: 0.9rem;
    color: #8b949e;
    margin-bottom: 5px;
}

.contact-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 20px;
    padding: 30px;
    border: 1px solid var(--text-accent);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    animation: modalOpen 0.3s ease-out;
}

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

.close-modal {
    color: #8b949e;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
}

.modal h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.modal-subtitle {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.modal-buttons .btn-pricing {
    border: none;
    background: transparent;
    cursor: pointer;
}

.modal-buttons .btn-pricing:hover {
    background: transparent;
    color: var(--text-primary);
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: #8b949e;
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 50px auto 0;
    padding: 30px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.form-notification {
    display: none;
    background-color: rgba(210, 153, 34, 0.15);
    color: #d29922;
    border: 1px solid rgba(210, 153, 34, 0.4);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-accent);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.1);
}

.form-btn {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    border: none;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
    accent-color: var(--text-green);
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #8b949e;
    line-height: 1.4;
    display: inline;
}

.checkbox-label a {
    color: var(--text-accent);
    text-decoration: underline;
}

/* Checkbox Error State */
.checkbox-group.error .checkbox-label {
    color: #ef4444;
    transition: color 0.3s;
}

.checkbox-group.error input[type="checkbox"] {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

.checkbox-group.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Start hidden below screen */
    left: 0;
    width: 100%;
    background-color: rgba(22, 27, 34, 0.95);
    border-top: 1px solid var(--text-accent);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    transition: bottom 0.5s ease-out;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
}

.cookie-banner a {
    color: var(--text-accent);
    text-decoration: underline;
}

.btn-cookie {
    background-color: var(--text-green);
    color: #0d1117;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-cookie:hover {
    background-color: #2ea043;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    /* Navbar Adjustment */
    .navbar {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        position: relative; /* Change to relative or keep fixed but adjust padding-top of body */
    }

    /* Fix for fixed navbar covering content if we kept it fixed */
    body {
        padding-top: 0; /* Adjust if needed */
    }

    .nav-links {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 20px;
        padding: 0;
        flex-wrap: wrap;
    }

    .nav-links li a {
        font-size: 0.95rem;
        padding: 5px;
    }

    /* Hero Text Sizing */
    .hero {
        padding-top: 120px; /* Space for the stacked navbar */
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero h1.main-name {
        font-size: 2.2rem;
    }
    
    .hero .role {
        font-size: 1.4rem;
    }
    
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Section Spacing */
    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Cards */
    .pricing-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        padding: 0;
        gap: 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }
    
    .pricing-card.featured {
        transform: none; /* Disable transform on mobile */
    }
    
    .pricing-card.featured:hover {
        transform: none;
    }

    /* About Section Mobile */
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    /* Contact Form */
    .contact-form-container {
        padding: 20px;
        margin-top: 30px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    /* Modal adjustment */
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 10px;
    }
    
    .nav-links li a {
        font-size: 0.85rem;
    }

    .hero h1.main-name {
        font-size: 1.8rem;
    }
    
    .hero .role {
        font-size: 1.2rem;
    }

    .pricing-card {
        padding: 25px 15px;
    }
    
    .experience-box {
        padding: 15px 20px;
        width: 100%;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
