:root {
    --bg-color: #020617; /* Slate 950 */
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    
    /* ============================= */
    /* THEME / VARIABLES */
    /* ============================= */

    --primary-color: #3b82f6; /* Blue 500 */
    --primary-dark: #1d4ed8;
    --accent-color: #06b6d4; /* Cyan 500 */
    --accent-purple: #8b5cf6; /* Violet 500 */
    
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition-speed: 0.3s;
    
    --header-height: 96px; /* Reduced as requested */
}



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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    
    /* Technical Grid Background */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Helper Classes (Replacing Inline Styles) */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }

.text-center { text-align: center; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

.features--no-bottom {
    padding-bottom: 0 !important;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 8px 16px;
    margin-top: 0; /* Align correctly in nav */
}

.feature-card .btn {
    margin-top: 20px; /* Restore spacing in cards */
}

.bg-glass-darker {
    background-color: rgba(0, 0, 0, 0.2);
}

.separator-top {
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
}

.text-lg {
    font-size: 1.25rem;
}

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

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



/* ============================= */
/* HEADER & NAVIGATION */
/* ============================= */

/* Mobile default for Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0;
    
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    /* justify-content: flex-start; implicit */
}

/* Left Zone */
.nav-left {
    display: flex;
    align-items: center;
}

/* Right Zone */
.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto; /* Push to the far right */
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none; /* Ensure no underline on logo link */
}

.nav-links {
    display: none; /* Mobile default */
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav-toggle {
        display: none; /* Hide toggle on desktop */
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 32px;
    }
}


.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-links a:not(.btn):hover {
    color: #fff;
}

/* Tablet + Desktop */


/* Helper Classes (Replacing Inline Styles) */
/* ... */

.nav-toggle {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
    padding: 10px; /* Bigger touch target */
}

/* ============================= */
/* HERO SECTION */
/* ============================= */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
    position: relative;
}

/* Glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}



/* ... header styles ... */





/* ============================= */
/* PRICING & CARDS */
/* ============================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 32px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 20px 0;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.pricing-features {
    text-align: left;
    margin: 20px 0 40px;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}


.hero h1 {
    font-size: 2.4rem; /* Mobile First */
    line-height: 1.1;
    margin-bottom: 32px; /* Increased from 24px per UX request */
    font-weight: 700;
    letter-spacing: -0.02em;
    
    /* Gradient Text */
    background: linear-gradient(300deg, #fff 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero p {
    font-size: 1.1rem; /* Mobile First */
    color: var(--text-muted);
    margin-bottom: 56px; /* Increased from 48px per UX request */
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.25rem;
    }
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    margin-bottom: 20px; /* Force some spacing, but less than default implicit */
}

/* ============================= */
/* BUTTONS & UI COMPONENTS */
/* ============================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px; /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================= */
/* SECTIONS (Features, Benefits) */
/* ============================= */

.features {
    padding: 80px 0; /* Mobile First */
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .features {
        padding: 120px 0;
    }
}

#benefits {
    padding-top: 10px;
    margin-top: -60px; /* Pull it up closer to Hero */
    position: relative;
    z-index: 2; /* Ensure it stays above if overlap */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Default Grid (Mobile/Tablet) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px 24px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column; /* Mobile First: Column */
    align-items: flex-start;
    flex-wrap: wrap; /* Keep wrap just in case, though column usually doesn't need it */
    align-content: flex-start;
    text-align: left;
}

/* Desktop Grid Overrides */
@media (min-width: 1024px) {
    /* ... existing grid overrides ... */
    /* Why Us: 8 items -> 4 columns = 2 rows */
    #features .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Benefits: 3 items -> 3 columns = 1 row */
     #benefits .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Portfolio: 4 items -> 2 columns = 2 rows */
    #portfolio .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet/Desktop Card Layout Override */
@media (min-width: 768px) {
    .feature-card {
        flex-direction: row;
        align-items: center;
    }
}


.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 16px; /* Mobile: spacing below icon */
    margin-right: 0;
    width: auto;
    /* Neon Blue Theme */
    filter: grayscale(100%) sepia(100%) hue-rotate(180deg) saturate(300%) drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
    transition: transform 0.3s;
}

@media (min-width: 768px) {
    .feature-card .icon {
        margin-bottom: 0;
        margin-right: 16px;
    }
}

.feature-card h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
    line-height: 1.2;
    flex: 1; /* Take remaining space */
    width: auto; /* Allow sitting next to icon */
    margin-top: 0; /* Remove top spacing */
}

.location-tag {
    /* flex-basis: 100%; REMOVED to prevent full width */
    width: fit-content;
    margin-top: 8px;
    margin-bottom: 8px; /* Added spacing below */
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    
    /* Optional: styling if user wants "ladnie wygladalo" like a tag */
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 4px;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.feature-card:hover .icon {
    transform: scale(1.1) translateX(5px);
    filter: grayscale(100%) sepia(100%) hue-rotate(180deg) saturate(400%) drop-shadow(0 0 20px var(--accent-color));
}

.feature-card p {
    flex-basis: 100%;
    width: 100%;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1; /* Push any bottom content down if needed */
}

/* ============================= */
/* STICKY BUTTON */
/* ============================= */

.sticky-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(0,255,136, 0.4);
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    border: 2px solid #fff;
}

.sticky-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0,255,136, 0.6);
}

/* Hide on Desktop */
@media (min-width: 768px) {
    .sticky-call-btn {
        display: none;
    }
}

/* Mobile responsive */


/* ============================= */
/* CTA SECTION */
/* ============================= */

.section-cta {
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
    padding-top: 60px;
    text-align: center;
}

.section-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.section-cta p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
}

.section-cta strong {
    color: var(--primary-color);
}

.section-cta .btn-container {
    margin-top: 40px;
}

/* ============================= */
/* FOOTER */
/* ============================= */

footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg); /* Consistent glass background */
    color: var(--text-muted); /* Consistent muted text */
    font-size: 0.9rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    margin-top: 8px;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Contact Form & Pricing Utilities (Replacing Inline Styles) */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input:not([type="submit"]):not([name="website_url"]),
.contact-form textarea {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-family: var(--font-main);
    width: 100%;
}

.pricing-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-footer {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

/* Jak Pracuję Page Utilities */
.hero-mini {
    min-height: 40vh;
    padding-top: 120px;
    padding-bottom: 40px;
}

.lead-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.tech-text {
    margin-bottom: 30px;
    color: var(--text-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

