/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    
    /* Secondary Colors */
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    
    /* Neutral Colors */
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #cbd5e1;
    --white: #ffffff;
    --background: #f8fafc;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 1rem;
    --border-radius-sm: 0.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

/* Ensure Inter loads when available (override system fonts) */
@supports (font-family: 'Inter') {
    body {
        font-family: 'Inter', var(--font-primary);
    }
}

/* Font Awesome Icon Optimization - Prevent CLS */
.fas,
.far,
.fab,
.fa {
    display: inline-block;
    width: 1em;
    height: 1em;
    min-width: 1em;
    min-height: 1em;
    aspect-ratio: 1;
    /* Prevent layout shift while icon loads */
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-lighter);
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Section Common Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-lighter);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.nav-logo a {
    text-decoration: none;
}

.nav-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bolder;
    color: #f59e0b;
    -webkit-text-stroke: 1px #0f172a;
}

.nav-logo .logo-accent {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%236366f1" fill-opacity="0.12"><circle cx="30" cy="30" r="2"/></g></svg>');
    animation: none; /* wyłączone dla LCP */
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-60px); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    /* animacja usunięta dla LCP */
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Space Grotesk', 'Space Grotesk Fallback', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-testimonial {
    margin-bottom: 0;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 2px solid var(--primary-color);
    max-width: 530px;
    width: 100%;
}

.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
    margin: 0 0 1rem 0;
}

.testimonial-author {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.profile-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 400/420;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    /* Prevent CLS - dimensions set in HTML */
    contain: layout;
}

.profile-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.hero-scroll a {
    color: var(--gray);
    font-size: 1.5rem;
    text-decoration: none;
}

/* Services Section */
.services {
    background: var(--white);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-check {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    flex-shrink: 0;
}

.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.service-content p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* Case Study Section */
.case-study {
    background: var(--background);
}

.case-study-content {
    max-width: 900px;
    margin: 0 auto;
}

.case-study-section {
    margin-bottom: 3rem;
}

.case-section-header {
    margin-bottom: 1rem;
}

.case-section-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 2rem;
}

.case-section-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
}

.case-study-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.case-study-section ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.case-study-section li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.case-study-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.case-study-visuals {
    margin: 3rem 0;
}

.main-visual {
    margin-bottom: 2rem;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.visual-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.visual-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Image optimization for Core Web Vitals */
img {
    max-width: 100%;
    height: auto;
    /* Prevent CLS */
    content-visibility: auto;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    /* Prevent CLS - dimensions set in HTML */
    contain: layout;
}

.main-visual .project-image {
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.visual-grid .project-image {
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.visual-grid .visual-item:first-child {
    max-width: 250px;
    margin: 0 auto;
}

.visual-grid .visual-item:last-child {
    max-width: 400px;
    margin: 0 auto;
}

.project-image {
    margin-top: auto;
}

.visual-caption {
    padding: 1.5rem;
}

.visual-caption h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.visual-caption h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.visual-caption p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

.client-testimonial {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
}

.case-study-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-lighter);
}

.case-study-cta .btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.case-study-cta .btn:hover {
    background: #4338ca;
    border-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.case-study-cta .btn i {
    margin-right: 0.75rem;
    font-size: 1rem;
}


/* Pricing Section */
.pricing {
    background: var(--white);
}

.main-package {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.package-card {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
}

.package-header {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem 2rem;
}

.package-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.amount {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
}

.currency {
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.9;
}

.package-content {
    padding: 3rem 2rem;
}

.package-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-lighter);
    transition: var(--transition);
    cursor: default;
}

.benefit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.benefit i {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.875rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.benefit span {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    flex: 1;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.custom-solutions {
    background: var(--background);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    border: 1px solid var(--gray-lighter);
}

.custom-content h3 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.custom-content p {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.875rem;
    background: rgba(99, 102, 241, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
}

/* Pricing responsive styles */
@media (max-width: 768px) {
    .package-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .package-header h3 {
        font-size: 1.5rem;
    }

    .amount {
        font-size: 3rem;
    }

    .package-content {
        padding: 2rem 1.5rem;
    }

    .benefit {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .custom-solutions {
        padding: 2rem 1.5rem;
    }

    .custom-content h3 {
        font-size: 1.5rem;
    }

    .custom-content p {
        font-size: 1rem;
    }
}

/* Process Section */
.process {
    background: var(--white);
}

.process-steps {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--background);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
}

.process-step:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.step-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray);
    margin: 0;
}

.step-content p strong {
    color: var(--dark);
    font-weight: 600;
}

/* About Section */
.about {
    background: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-description {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-highlights {
    margin-bottom: 2rem;
}

.highlight {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.highlight i {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.highlight p {
    color: var(--gray);
}

.about-skills h4 {
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill {
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 300px;
}

.about-card .card-content {
    padding: 2rem;
    text-align: center;
}

.about-card .profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.about-card h3 {
    margin-bottom: 0.25rem;
}

.about-card p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-info {
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.contact-item i {
    width: 16px;
    color: var(--primary-color);
}

/* Blog Section */
.blog {
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Elementy do animacji scroll - początkowy stan ukryty */
.blog-card,
.service-card,
.portfolio-item,
.pricing-card {
    opacity: 0;
    transform: translateY(30px);
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card.featured {
    grid-column: span 2;
}

.blog-image {
    height: 200px;
    background: var(--gradient-primary);
    position: relative;
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto;
}

.read-more:hover {
    gap: 0.75rem;
}

.blog-cta {
    text-align: center;
}

/* FAQ Section */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    color: var(--gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    background: var(--background);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-content h4 {
    margin-bottom: 0.25rem;
}

.method-content p {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.method-content span {
    font-size: 0.875rem;
    color: var(--gray);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-lighter);
    color: var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.checkbox-group a:hover {
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bolder;
    color: #f59e0b;
}

.footer-logo .logo-accent {
    color: var(--primary-color);
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section ul li a.active {
    color: var(--white);
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact p a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact p a:hover {
    color: var(--white);
}

.footer-contact i {
    width: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .portfolio-item.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-testimonial {
        padding: 1.5rem;
    }

    .hero-scroll {
        animation: none; /* wyłączone dla LCP na mobile */
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo {
        max-width: 300px;
    }

    .profile-section {
        padding: 1rem;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .visual-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .visual-grid .visual-item:first-child {
        order: 1;
        max-width: 300px;
    }

    .visual-grid .visual-item:last-child {
        order: 2;
        max-width: none;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }

    .pricing-card .btn-large {
        text-align: center;
    }

    .blog-card.featured {
        grid-column: span 1;
    }

    /* Fix: Wyłącz translateY dla kart na mobile - zapobiega "skakaniu" */
    .blog-card,
    .service-card,
    .portfolio-item,
    .pricing-card {
        opacity: 0;
        transform: none;
    }

    .blog-card.animate-in,
    .service-card.animate-in,
    .portfolio-item.animate-in,
    .pricing-card.animate-in {
        animation: fadeIn 0.4s ease-out forwards;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4 {
        text-align: left;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .process-step {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .step-content h3 {
        font-size: 1.25rem;
    }

    .profile-photo {
        max-width: 250px;
    }

    .profile-section {
        padding: 0.5rem;
    }

    .hero-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service-item {
        padding: 1.5rem;
        align-items: center;
    }

    .service-content {
        text-align: center;
    }

    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode colors */
        --primary-color: #818cf8;
        --primary-dark: #6366f1;
        --primary-light: #a5b4fc;

        /* Backgrounds */
        --white: #1e293b;
        --background: #0f172a;
        --dark: #f1f5f9;
        --dark-light: #334155;

        /* Text colors */
        --text-color: #e2e8f0;
        --gray: #94a3b8;
        --gray-light: #64748b;
        --gray-lighter: #334155;

        /* Card backgrounds */
        --card-bg: #1e293b;
        --card-border: #334155;

        /* Shadows for dark mode */
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
        --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
        --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.6);
    }

    /* Body */
    body {
        color: var(--text-color);
        background-color: var(--background);
    }

    /* Navigation */
    .navbar {
        background: rgba(15, 23, 42, 0.95);
        border-bottom: 1px solid var(--card-border);
    }

    .navbar.scrolled {
        background: rgba(15, 23, 42, 0.98);
    }

    .nav-logo .logo-text {
        color: var(--text-color);
    }

    .nav-link {
        color: var(--text-color);
    }

    .nav-menu {
        background: var(--background);
    }

    .nav-toggle .bar {
        background: var(--text-color);
    }

    /* Hero */
    .hero {
        background: var(--background);
    }

    .hero-description {
        color: var(--gray);
    }

    /* Services */
    .services {
        background: var(--card-bg);
    }

    .service-item {
        background: var(--background);
        border-color: var(--card-border);
    }

    .service-content h3 {
        color: var(--text-color);
    }

    .service-content p {
        color: var(--gray);
    }

    /* Case Study */
    .case-study {
        background: var(--background);
    }

    .case-study-section p {
        color: var(--text-color);
    }

    .visual-item {
        background: var(--card-bg);
        border: 1px solid var(--card-border);
    }

    .visual-caption h4,
    .visual-caption h5 {
        color: var(--text-color);
    }

    .client-testimonial {
        background: var(--card-bg);
        border-color: var(--primary-color);
    }

    .testimonial-quote {
        color: var(--text-color);
    }

    /* Process */
    .process {
        background: var(--card-bg);
    }

    .process-step {
        background: var(--background);
        border-left-color: var(--primary-color);
    }

    .step-content h3 {
        color: var(--text-color);
    }

    .step-content p {
        color: var(--gray);
    }

    .step-content p strong {
        color: var(--text-color);
    }

    /* Pricing */
    .pricing {
        background: var(--card-bg);
    }

    .package-card {
        background: var(--card-bg);
        border-color: var(--primary-color);
    }

    .package-content h4 {
        color: var(--text-color);
    }

    .benefit {
        background: var(--background);
        border-color: var(--card-border);
    }

    .benefit:hover {
        border-color: var(--primary-color);
    }

    .benefit span {
        color: var(--text-color);
    }

    .custom-solutions {
        background: var(--background);
        border-color: var(--card-border);
    }

    .custom-content h3 {
        color: var(--text-color);
    }

    .custom-content p {
        color: var(--gray);
    }

    /* About */
    .about {
        background: var(--background);
    }

    .about-description {
        color: var(--gray);
    }

    .highlight p {
        color: var(--gray);
    }

    .about-card {
        background: var(--card-bg);
    }

    .about-card h3 {
        color: var(--text-color);
    }

    .about-card p {
        color: var(--gray);
    }

    .skill {
        background: var(--background);
        border-color: var(--card-border);
        color: var(--text-color);
    }

    /* FAQ */
    .faq {
        background: var(--card-bg);
    }

    .faq-item {
        background: var(--background);
        border-color: var(--card-border);
    }

    .faq-item:hover {
        border-color: var(--primary-color);
    }

    .faq-question {
        color: var(--text-color);
    }

    .faq-question:hover {
        color: var(--primary-color);
    }

    .faq-answer p {
        color: var(--gray);
    }

    /* Contact */
    .contact {
        background: var(--background);
    }

    .contact-description {
        color: var(--gray);
    }

    .method-content h4 {
        color: var(--text-color);
    }

    .method-content p {
        color: var(--text-color);
    }

    .method-content span {
        color: var(--gray);
    }

    .contact-form-wrapper {
        background: var(--card-bg);
    }

    .form-group label {
        color: var(--text-color);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--background);
        border-color: var(--card-border);
        color: var(--text-color);
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: var(--gray-light);
    }

    .checkbox-group label {
        color: var(--gray);
    }

    /* Cookie Banner */
    .cookie-banner {
        background: var(--card-bg);
        border-top-color: var(--card-border);
    }

    .cookie-text p {
        color: var(--text-color);
    }

    /* Buttons */
    .btn-outline {
        color: var(--text-color);
        border-color: var(--card-border);
    }

    .btn-outline:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

    .btn-secondary {
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    /* Blog */
    .blog {
        background: var(--card-bg);
    }

    .blog-card {
        background: var(--background);
        border-color: var(--card-border);
    }

    .blog-content h3 {
        color: var(--text-color);
    }

    .blog-content p {
        color: var(--gray);
    }

    .blog-meta {
        color: var(--gray);
    }

    /* Section titles and descriptions */
    .section-title {
        color: var(--text-color);
    }

    .section-description {
        color: var(--gray);
    }

    /* Social links */
    .social-link {
        background: var(--card-border);
        color: var(--gray);
    }

    /* Footer */
    .footer-section h4 {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-scroll,
    .back-to-top {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}