/*
Theme Name: PixelWave
Theme URI: https://pixelwave.pl
Author: PixelWave Studio
Author URI: https://pixelwave.pl
Description: Nowoczesny i kreatywny motyw dla agencji webowych. Posiada efektowne animacje, sekcje dla portfolio, opinii klientów i bloga.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pixelwave
Tags: one-page, portfolio, agency, responsive, creative, business
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #6C63FF;
    --secondary-color: #FF6584;
    --dark-color: #2B2D42;
    --light-color: #F8F9FA;
    --accent-color: #00F5A0;
    --gradient-1: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    --gradient-2: linear-gradient(135deg, #00F5A0 0%, #00D9F5 100%);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Header styles - Fixed */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

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

.logo-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin-left: 5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    align-items: center;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn):hover::after {
    width: 100%;
}

.btn {
    background: var(--gradient-1);
    color: white !important;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-2);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 30px;
}

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

.btn:hover {
    box-shadow: 0 6px 20px rgba(0, 245, 160, 0.5);
    transform: translateY(-3px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero section */
.hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.9) 0%, rgba(255, 101, 132, 0.9) 100%);
    z-index: 1;
}

/* Hero 3D Text Effect - Fixed Version */
.hero-3d-text {
    color: white;
    position: relative;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4),
                0 2px 0 rgba(255,255,255,0.3),
                0 3px 0 rgba(255,255,255,0.2),
                0 4px 0 rgba(255,255,255,0.1),
                0 5px 0 rgba(255,255,255,0.05),
                0 6px 1px rgba(0,0,0,.1),
                0 0 5px rgba(0,0,0,.1),
                0 1px 3px rgba(0,0,0,.3),
                0 3px 5px rgba(0,0,0,.2),
                0 5px 10px rgba(0,0,0,.25),
                0 10px 10px rgba(0,0,0,.2),
                0 20px 20px rgba(0,0,0,.15);
    animation: float 6s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    animation: fadeInUp 1s ease-out;
}

.hero-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.blob-1 {
    position: absolute;
    top: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(0, 245, 160, 0.2);
    filter: blur(60px);
    border-radius: 50%;
    animation: floatAnimation 8s infinite alternate;
}

.blob-2 {
    position: absolute;
    bottom: -200px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: rgba(255, 101, 132, 0.2);
    filter: blur(80px);
    border-radius: 50%;
    animation: floatAnimation 10s infinite alternate-reverse;
}

@keyframes floatAnimation {
    from {
        transform: translate(0, 0) rotate(0deg);
    }
    to {
        transform: translate(30px, 30px) rotate(10deg);
    }
}

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

.hero h1 {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: white;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: none;
}

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

.section-spacing {
    padding: 120px 0;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.zoom-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Delay utilities */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Cursor glow effect */
.glow-cursor {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* Services section */
.services {
    position: relative;
    overflow: hidden;
}

.bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: -1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--gradient-2);
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 245, 160, 0.3);
}

.section-title {
    font-size: 48px;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-desc {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-1);
    opacity: 0.05;
    transition: height 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-15px);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-card:hover .service-icon {
    color: white;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.service-card h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 70px;
    background: var(--secondary-color);
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--secondary-color);
}

.service-link span {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover span {
    transform: translateX(5px);
}

/* Portfolio section */
.portfolio {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.portfolio-item:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    height: 350px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    transition: transform 0.5s ease;
    transform-origin: center;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 22px;
}

.portfolio-overlay p {
    color: #666;
    margin-bottom: 15px;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.portfolio-tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.portfolio-cta {
    margin-top: 60px;
    text-align: center;
}

/* Testimonials section */
.testimonials {
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    position: relative;
}

.testimonials-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(255, 101, 132, 0.05) 100%);
    z-index: -1;
}

.testimonial-cards {
    display: flex;
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--box-shadow);
    flex: 1;
    min-width: 300px;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.2);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 120px;
    color: rgba(108, 99, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 0;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ddd;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(white, white) padding-box,
                 var(--gradient-1) border-box;
}

.author-info h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 18px;
}

.author-info p {
    color: #777;
    font-size: 14px;
}

.testimonial-rating {
    display: flex;
    margin-top: 5px;
}

.star {
    color: gold;
    margin-right: 3px;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.testimonial-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.arrow-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Animated counters */
.counter-container {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.counter-item {
    text-align: center;
    flex: 1;
    padding: 20px;
    position: relative;
}

.counter-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(108, 99, 255, 0.3), transparent);
}

.counter-item:last-child::after {
    display: none;
}

.counter-value {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.counter-value::after {
    content: '+';
    position: absolute;
    top: 0;
    right: -20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Floating elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.float-element {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    animation: floatAnimation 15s infinite linear alternate;
}

.float-element:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    animation-duration: 20s;
    background-color: var(--secondary-color);
}

.float-element:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.float-element:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 30%;
    animation-duration: 18s;
    animation-delay: 1s;
    background-color: var(--accent-color);
}

/* Particle effect */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleAnimation 15s infinite linear;
}

.particle:nth-child(even) {
    background-color: var(--secondary-color);
}

.particle:nth-child(3n) {
    background-color: var(--accent-color);
}

@keyframes particleAnimation {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translate(var(--move-x, 100px), var(--move-y, 100px));
        opacity: 0;
    }
}

/* Blog section */
.blog {
    background: var(--light-color);
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
    top: 0;
}

.blog-card:hover {
    top: -15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 240px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 30px;
    position: relative;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.blog-meta div {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.blog-meta span {
    margin-left: 5px;
}

.blog-category {
    position: absolute;
    top: -20px;
    left: 30px;
    background: var(--gradient-1);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.blog-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.4;
}

.blog-card p {
    color: #666;
    margin-bottom: 25px;
}

.blog-card .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* About us section */
.about {
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background-size: cover;
    opacity: 0.05;
    transform: translateY(0);
    transition: transform 0.5s ease-out;
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.about-image {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    transform: rotateY(-5deg) translateZ(0);
    transition: transform 0.5s ease;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.1);
}

.about-image-container:hover .about-image {
    transform: rotateY(0) translateZ(0);
}

.about-text {
    position: relative;
}

.about-text h2 {
    font-size: 42px;
    color: var(--dark-color);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.about-text p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stat-text {
    color: #666;
    font-size: 16px;
    margin-top: 5px;
}

/* Contact section */
.contact {
    position: relative;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contact-info {
    padding: 50px;
    background: var(--gradient-1);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: white;
    bottom: 0;
    left: 0;
    border-radius: 10px;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-right: 15px;
    width: 20px;
}

.contact-social {
    margin-top: 40px;
}

.contact-social h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form {
    padding: 50px;
}

.contact-form h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--gradient-1);
    bottom: 0;
    left: 0;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--light-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
    outline: none;
}

.form-label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 16px;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    top: -12px;
    left: 15px;
    font-size: 12px;
    padding: 0 5px;
    background: white;
    color: var(--primary-color);
}

.form-control::placeholder {
    opacity: 0;
}

textarea.form-control {
    height: 150px;
    resize: none;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-shape {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: shapeAnimation 10s infinite alternate;
}

@keyframes shapeAnimation {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about p {
    margin-top: 20px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--gradient-1);
    bottom: 0;
    left: 0;
    border-radius: 10px;
}

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

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-col ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-col ul li a i {
    margin-right: 10px;
    font-size: 12px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form {
    position: relative;
}

.newsletter-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--gradient-1);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--gradient-2);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* WordPress Specific Styles */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: 14px;
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

.sticky {
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border-radius: 5px;
    background: var(--light-color);
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: var(--primary-color);
    color: white;
}

.page-numbers:hover {
    background: var(--primary-color);
    color: white;
}

/* Comment form */
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.comment-form input[type="submit"] {
    background: var(--gradient-1);
    color: white;
    border: none;
    cursor: pointer;
    width: auto;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background: var(--gradient-2);
    transform: translateY(-3px);
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 20px;
    margin-bottom: 20px;
    background: var(--light-color);
    border-radius: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.comment-metadata {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.comment-content p {
    margin-bottom: 10px;
}

.reply a {
    display: inline-block;
    padding: 5px 10px;
    background: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.reply a:hover {
    background: var(--primary-color);
    color: white;
}

/* Search form */
.search-form {
    display: flex;
    margin-bottom: 30px;
}

.search-field {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-field:focus {
    border-color: var(--primary-color);
    outline: none;
}

.search-submit {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: var(--gradient-2);
}

/* Widget Styles */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--gradient-1);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
    .hero h1 {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .testimonial-cards {
        flex-direction: column;
    }

    .portfolio-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-container {
        order: -1;
        height: 300px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .counter-container {
        flex-wrap: wrap;
    }

    .counter-item {
        flex: 1 1 50%;
    }

    .counter-item::after {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }

    .service-card,
    .portfolio-item,
    .blog-card,
    .testimonial-card {
        min-width: auto;
    }

    .counter-item {
        flex: 1 1 100%;
    }

    .contact-form,
    .contact-info {
        padding: 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Podstawowe style dla pojedynczego wpisu */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    position: relative;
    width: 100%;
}

.post-content-column {
    flex: 0 0 70%;
    max-width: 70%;
    padding: 0 15px;
    box-sizing: border-box;
}

.sidebar-column {
    flex: 0 0 30%;
    max-width: 30%;
    padding: 0 15px;
    box-sizing: border-box;
}

.single-post {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.single-post .entry-title {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    color: #666;
  }

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.single-post .entry-content {
    line-height: 1.7;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-title {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    color: #666;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
}

.entry-meta i {
    margin-right: 5px;
}

.post-thumbnail {
    margin-bottom: 25px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.entry-content {
    line-height: 1.7;
}

.entry-tags {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
}

/* Widget styles */
.widget {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.widget-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Responsywne style dla tabletów */
@media (max-width: 992px) {
    .post-content-column {
        flex: 0 0 65%;
        max-width: 65%;
    }

    .sidebar-column {
        flex: 0 0 35%;
        max-width: 35%;
    }

    .single-post .entry-title {
        font-size: 28px;
    }
}

/* ============== STYLE DLA TELEFONÓW ============== */
@media (max-width: 768px) {
    .single .site-main {
        padding-top: 90px; /* Mniejszy padding na górze */
    }

    .row {
        display: block; /* Zamień na układ blokowy na telefonach */
    }
    .single .container {
        padding-left: 5px;
        padding-right: 5px;
        width: 95%; /* Szerszy kontener */
    }

    .post-content-column,
    .sidebar-column {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
    }

    .sidebar-column {
        margin-top: 30px;
    }

    .single-post {
        padding: 15px;
        border-radius: 15px;
    }

    .single-post .entry-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .single-post .entry-meta {
        margin-bottom: 15px;
        font-size: 14px;
        gap: 10px;
    }

    .single-post .post-thumbnail {
        margin-bottom: 20px;
    }

    .single-post .entry-content {
        font-size: 16px;
        line-height: 1.6;
    }

    .single-post .entry-content > * {
        margin-left: 0;
        margin-right: 0;
    }

    .single-post .entry-content h2 {
        font-size: 22px;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .single-post .entry-content h3 {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .single .post-content-column {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Fix dla obrazów */
    .entry-content img {
        max-width: 100%;
        height: auto;
    }

    /* Fix dla tabel */
    .entry-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Fix dla zagnieżdżonych list */
    .entry-content ul,
    .entry-content ol {
        padding-left: 20px;
    }
}

/* ============== STYLE DLA BARDZO MAŁYCH EKRANÓW ============== */
@media (max-width: 480px) {
    .single .site-main {
        padding-top: 70px;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .single .container {
        padding-left: 2px;
        padding-right: 2px;
        width: 98%; /* Jeszcze szerszy kontener */
    }

    .single-post {
        padding: 12px;
        border-radius: 8px;
    }

    .single-post .entry-title {
        font-size: 20px;
    }

    .single-post .entry-meta {
        font-size: 12px;
    }

    .single-post .entry-content img {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Dodatkowe poprawki dla bardzo małych ekranów */
@media (max-width: 360px) {
    .single-post {
        padding: 12px;
    }

    .single-post .entry-title {
        font-size: 18px;
    }

    .single-post .post-thumbnail {
        margin: 0 -12px 12px;
    }
}


/* Poprawka dla meta tagów viewport */
@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* Zapobiega poziomemu przewijaniu */
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Poprawka dla tabel */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Poprawka dla zagnieżdżonych list */
    .entry-content ul,
    .entry-content ol {
        padding-left: 20px;
    }

    /* Poprawka dla bloków kodu */
    pre, code {
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Poprawka dla cytowań */
    blockquote {
        margin-left: 15px;
        margin-right: 15px;
        padding-left: 15px;
    }

    /* Zachowanie proporcji wideo */
    .wp-block-embed__wrapper {
        position: relative;
        padding-bottom: 56.25%; /* proporcja 16:9 */
        height: 0;
        overflow: hidden;
    }

    .wp-block-embed__wrapper iframe,
    .wp-block-embed__wrapper object,
    .wp-block-embed__wrapper embed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Fix for embeds and iframes */
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
    max-width: 100%;
}

/* Popraw style dla postów z galeriami */
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.blocks-gallery-item {
    margin: 8px;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

@media (max-width: 480px) {
    .blocks-gallery-item {
        width: calc(50% - 16px);
    }
}

/* Poprawka dla wyskakującego menu mobilnego */
@media (max-width: 768px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }
}
