/* ==========================================================================
   RESET I GLOBALNE KONTENERY
   ========================================================================== */
:root {
    --bg-main: #06090e;
    --bg-card: rgba(13, 20, 32, 0.85);
    --bg-card-hover: rgba(20, 30, 48, 0.95);
    --accent-cyan: #00f0ff;
    --accent-blue: #0077ff;
    --accent-glow: rgba(0, 240, 255, 0.25);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-active: rgba(0, 240, 255, 0.4);
    --text-white: #ffffff;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 140px 24px 80px;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border-active);
    border-radius: 30px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #04080f;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 0 25px var(--accent-glow);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.45);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-card-hover);
}

.hero-glass-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-active);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* PODGLĄD KODU W HERO (ZAMIAST PLIKU NAMECP.PNG) */
.hero-code-preview {
    padding: 24px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.5;
    background: rgba(8, 12, 20, 0.6);
}

.code-keyword { color: #f472b6; }
.code-func { color: #60a5fa; }
.code-prop { color: #38bdf8; }
.code-string { color: #34d399; }

/* ==========================================================================
   2. GENEROWANIE RAMEK PRZEGLĄDARKI W CSS
   ========================================================================== */
.browser-window {
    background: #0d131d;
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    width: 100%;
}

.browser-bar {
    background: #090e17;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-url {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* ==========================================================================
   3. DEMO SECTION
   ========================================================================== */
.demo-banner-section {
    max-width: 1280px;
    margin: 40px auto 100px;
    padding: 0 24px;
}

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.demo-title {
    font-size: 2rem;
    margin: 12px 0 16px;
}

.demo-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.demo-preview-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
}

/* ==========================================================================
   4. BENTO GRID PORTFOLIO
   ========================================================================== */
.portfolio-section {
    max-width: 1280px;
    margin: 0 auto 120px;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.portfolio-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-active);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.15);
}

.bento-wide { grid-column: span 7; }
.bento-medium { grid-column: span 5; }
.bento-third { grid-column: span 4; }

.portfolio-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #000;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.bento-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.portfolio-tag {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.portfolio-name {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.portfolio-link {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.bento-card:hover .portfolio-link {
    color: var(--accent-cyan);
}

/* ==========================================================================
   5. TIMELINE (PRZEWODNIK KLIENTA)
   ========================================================================== */
.process-section {
    max-width: 850px;
    margin: 0 auto 120px;
    padding: 0 24px;
}

.timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 43px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue), rgba(255, 255, 255, 0.1));
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
}

.timeline-marker {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #06090e;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

.timeline-marker.gold {
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 18px 22px;
    width: 100%;
}

.step-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), var(--bg-card));
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-guarantee {
    background: #ffd700;
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
}

.client-role-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 32px;
    margin-top: 40px;
}

.role-box-title {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.role-item {
    background: rgba(6, 10, 18, 0.6);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
}

.role-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

/* ==========================================================================
   6. KONTAKT
   ========================================================================== */
.contact-section {
    max-width: 1280px;
    margin: 0 auto 100px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 36px;
}

.form-desc {
    color: var(--text-muted);
    margin: 8px 0 20px;
    font-size: 0.9rem;
}

.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-input, .form-textarea {
    width: 100%;
    background: rgba(6, 10, 18, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.form-textarea {
    height: 100px;
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}

.contact-muted {
    color: var(--text-muted);
    margin-top: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border-active);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.info-val { font-size: 1.1rem; }

/* ==========================================================================
   7. RESPONSYWNOŚĆ
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container, .demo-card, .contact-section {
        grid-template-columns: 1fr;
    }
    
    .bento-wide, .bento-medium, .bento-third {
        grid-column: span 12;
    }
}

@media (max-width: 640px) {
    .hero-title { font-size: 2.1rem; }
    .hero-actions { flex-direction: column; }
    .timeline::before { left: 20px; }
    .timeline-marker { width: 40px; height: 40px; font-size: 0.85rem; }
}