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

body {
    font-family: 'Arial', sans-serif;
    background: #ffffff;
    color: #000000;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Floating Contact Button with Burgundy Accent and Pulse */
.contact-float-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    color: #ffffff;
    animation: contactPulse 2s infinite;
}

@keyframes contactPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(139, 0, 0, 0.6), 0 0 0 10px rgba(139, 0, 0, 0.1);
        transform: scale(1.05);
    }
}

.contact-float-btn:hover {
    background: linear-gradient(135deg, #A52A2A, #CD5C5C);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.5);
    animation: none;
}

.contact-icon {
    font-size: 1.5rem;
    color: #ffffff;
}

/* Contact Modal - Better Contrast */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-modal.show {
    display: flex;
}

.contact-modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.98), rgba(50, 50, 55, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 2px solid rgba(205, 92, 92, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.contact-modal-content h2 {
    color: #CD5C5C;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 300;
}

.contact-details {
    color: #f0f0f0;
}

.contact-item {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-label {
    display: block;
    font-weight: bold;
    color: #CD5C5C;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-item a:hover {
    color: #CD5C5C;
    text-decoration: underline;
}

.contact-socials {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: #f0f0f0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.social-link:hover {
    background: linear-gradient(135deg, #A52A2A, #CD5C5C);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #CD5C5C;
    font-size: 1.8rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-modal-close:hover {
    background: rgba(139, 0, 0, 0.3);
    transform: rotate(90deg);
}

/* Navigation triangles with Burgundy Active State */
.nav-triangles {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.nav-shape {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0.6;
    position: relative;
}

.nav-shape:hover {
    opacity: 1;
    transform: scale(1.1);
}

.nav-shape {
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 15px solid transparent;
    background: transparent;
    position: relative;
}

.nav-shape::before {
    content: '';
    position: absolute;
    top: 2px;
    left: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 11px solid currentColor;
}

.nav-shape.active {
    opacity: 1;
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
}

.nav-shape.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #A52A2A;
    transform: translate(-50%, -50%) rotate(45deg);
    border: none;
}

.nav-shape.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #A52A2A;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Section */
.section {
    position: absolute;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section.active {
    transform: translateX(0);
}

.section.slide-left {
    transform: translateX(-100%);
}

.section.slide-right {
    transform: translateX(100%);
}

/* Section backgrounds */
.section-1 {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://wojciechbaranow.ski/firstone1.webp') center/cover;
    color: #ffffff;
}

.section-2 {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://wojciechbaranow.ski/AboutMe.webp') center/cover;
    color: #ffffff;
}

.section-3 {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://wojciechbaranow.ski/WhatICan.webp') center/cover;
    color: #ffffff;
}

.section-4 {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://wojciechbaranow.ski/4.webp') center/cover;
    color: #ffffff;
}

.section-5 {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://wojciechbaranow.ski/dodronow0.webp') center/cover;
    color: #ffffff;
}

.section-6 {
    background: linear-gradient(rgba(139, 0, 0, 0.4), rgba(80, 0, 0, 0.5)), url('https://wojciechbaranow.ski/malowanie.webp') center/cover;
    color: #ffffff;
}

/* Connector graphics */
.section-connector {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: 20;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.9, 0.9, 1);
    pointer-events: none;
}

.section-connector.show {
    opacity: 1;
}

.connector-1-2 { background: url('https://wojciechbaranow.ski/gif2.gif') center/cover; }
.connector-2-3 { background: url('https://wojciechbaranow.ski/gif3.gif') center/cover; }
.connector-3-4 { background: url('https://wojciechbaranow.ski/gif2.gif') center/cover; }
.connector-4-5 { background: url('https://wojciechbaranow.ski/gif3.gif') center/cover; }
.connector-5-6 { background: url('https://wojciechbaranow.ski/gif2.gif') center/cover; }
.connector-6-1 { background: url('https://wojciechbaranow.ski/gif3.gif') center/cover; }

/* Section content animations */
.section-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    animation: slideInFromTop 1s ease-out 0.3s both, letterSpacing 4s ease-in-out 2s infinite;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    animation: slideInFromBottom 1s ease-out 0.6s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-1 .section-subtitle {
    line-height: 1.4;
}

@keyframes letterSpacing {
    0%, 100% { letter-spacing: 2px; }
    50% { letter-spacing: 5px; }
}

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

@keyframes slideInFromTop {
    0% { opacity: 0; transform: translateY(-50px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideInFromBottom {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 0.8; transform: translateY(0); }
}

.section-content:hover .section-title {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.section-content:hover .section-subtitle {
    transform: translateY(3px);
    transition: transform 0.3s ease;
}

/* Section label */
.section-label {
    position: fixed;
    bottom: 50px;
    right: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 100;
    opacity: 0.7;
}

/* Down arrows */
.down-arrows {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.down-arrows:hover {
    transform: translateX(-50%) scale(1.2);
}

.arrow-icon {
    width: 28px;
    height: 28px;
    border-right: 3px solid;
    border-bottom: 3px solid;
    transform: rotate(45deg);
    background: transparent;
    opacity: 0.4;
    animation: pulse 2s infinite;
}

.arrow-icon:nth-child(1) { animation-delay: 0s; }
.arrow-icon:nth-child(2) { animation-delay: 0.3s; }
.arrow-icon:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 60%, 100% { opacity: 0.4; }
    30% { opacity: 1; }
}

/* Expanded content with alternating backgrounds */
.expanded-content {
    position: fixed;
    top: 100vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: linear-gradient(to bottom, rgba(50, 50, 60, 0.85), rgba(70, 70, 80, 0.75));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 4rem 2rem 6rem 2rem;
    min-height: 100vh;
    max-height: 100vh;
    transition: all 0.6s ease;
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.section-6 .expanded-content {
    background: linear-gradient(to bottom, rgba(80, 20, 20, 0.9), rgba(50, 10, 10, 0.85));
    border: 1px solid rgba(205, 92, 92, 0.3);
}

.expanded-content.show {
    top: 0;
}

.expanded-content::-webkit-scrollbar {
    width: 8px;
}

.expanded-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.expanded-content::-webkit-scrollbar-thumb {
    background: rgba(139, 0, 0, 0.6);
    border-radius: 4px;
}

.expanded-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 0, 0, 0.8);
}

.expanded-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
}

/* Content blocks with alternating backgrounds */
.content-block {
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.content-block.dark {
    background: rgba(40, 40, 50, 0.6);
}

.content-block.light {
    background: rgba(80, 80, 90, 0.4);
}

.content-block.bordered {
    border-left: 4px solid #A52A2A;
    padding-left: 2rem;
}

.content-block h1, .content-block h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: #f0f0f0;
}

.content-block h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #A52A2A;
}

.content-block p {
    margin-bottom: 1rem;
    color: #e0e0e0;
}

/* Feature GIF Container */
.feature-gif-container {
    margin: 3rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
  justify-content: center;
  align-items: center;
}

.feature-gif {
    width: 60%;
    height: auto;
    display: flex;
  justify-content: center;
  align-items: center;
}

/* Stats Section with Counter Animation */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 10px;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(139, 0, 0, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #A52A2A;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Service Item with Media */
.service-item-with-media {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: center;
}

.service-item-with-media.reverse {
    grid-template-columns: 1fr 2fr;
}

.service-media {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.service-media img {
    width: 100%;
    height: auto;
    display: block;
}

/* Split Content (Text + Image) */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    align-items: center;
}

.split-content.reverse {
    direction: rtl;
}

.split-content.reverse > * {
    direction: ltr;
}

.split-text {
    padding: 2rem;
}

.split-text h3 {
    color: #A52A2A;
    margin-bottom: 1rem;
}

.split-text p {
    color: #e0e0e0;
    line-height: 1.8;
}

.split-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.split-image:hover {
    transform: scale(1.02);
}

/* Parallax Images */
.parallax-image {
    background-attachment: fixed;
}

/* Timeline Visual */
.timeline-visual {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(40, 40, 50, 0.6);
    border-radius: 10px;
    position: relative;
}

.timeline-visual::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #A52A2A, transparent);
    transform: translateX(-50%);
}

.timeline-item-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item-visual:nth-child(even) {
    direction: rtl;
}

.timeline-item-visual:nth-child(even) > * {
    direction: ltr;
}

.timeline-year {
    text-align: right;
    padding-right: 2rem;
    font-size: 2rem;
    font-weight: bold;
    color: #A52A2A;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.timeline-item-visual:nth-child(even) .timeline-year {
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
    justify-content: flex-start;
}

.timeline-content {
    padding: 1.5rem;
    background: rgba(80, 80, 90, 0.4);
    border-radius: 10px;
    border-left: 3px solid #A52A2A;
}

.timeline-content h4 {
    color: #f0f0f0;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Workflow Timeline - Enhanced */
.workflow-timeline {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(40, 40, 50, 0.6);
    border-radius: 10px;
    position: relative;
}

.workflow-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #A52A2A, #CD5C5C, #A52A2A);
    transform: translateX(-50%);
}

.workflow-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

.workflow-step:nth-child(even) {
    direction: rtl;
}

.workflow-step:nth-child(even) > * {
    direction: ltr;
}

.workflow-number {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 3rem;
}

.workflow-step:nth-child(even) .workflow-number {
    justify-content: flex-start;
    padding-left: 3rem;
    padding-right: 0;
}

.number-text {
    font-size: 5rem;
    font-weight: bold;
    color: #A52A2A;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.number-text::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 20px;
    height: 20px;
    background: #CD5C5C;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 5px rgba(205, 92, 92, 0.2);
}

.workflow-step:nth-child(even) .number-text::after {
    right: auto;
    left: -2rem;
}

.workflow-content {
    padding: 2rem;
    background: rgba(80, 80, 90, 0.4);
    border-radius: 10px;
    border-left: 4px solid #A52A2A;
}

.workflow-content h4 {
    color: #CD5C5C;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.workflow-content p {
    color: #e0e0e0;
    line-height: 1.6;
}

/* Testimonials Carousel */
.testimonials-section {
    margin: 3rem 0;
    padding: 3rem;
    background: rgba(40, 40, 50, 0.6);
    border-radius: 10px;
}

.testimonials-section h3 {
    text-align: center;
    color: #A52A2A;
    margin-bottom: 2rem;
}

.testimonial-carousel {
    position: relative;
    min-height: 200px;
}

.testimonial-item {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-size: cover;
    background-position: center;
    border: 3px solid #A52A2A;
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.3);
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    color: #A52A2A;
    font-weight: bold;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background: #A52A2A;
    transform: scale(1.3);
}

/* PixelBeer Section - Burgundy Dominant */
.art-intro {
    margin-bottom: 3rem;
}

.art-intro .split-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.pixelbeer-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(205, 92, 92, 0.2));
    border-radius: 15px;
    margin: 3rem 0;
    border: 2px solid rgba(205, 92, 92, 0.4);
}

.pixelbeer-cta h2 {
    font-size: 2.5rem;
    color: #CD5C5C;
    margin-bottom: 1rem;
}

.pixelbeer-cta p {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 2rem;
}

.pixelbeer-btn-large {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: #f0f0f0;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pixelbeer-btn-large:hover {
    background: linear-gradient(135deg, #A52A2A, #CD5C5C);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.6);
}

/* Art Gallery Grid */
.art-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.art-gallery-item {
    background: rgba(139, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(205, 92, 92, 0.3);
}

.art-gallery-item:hover {
    background: rgba(205,92, 92, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
}

.art-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.art-gallery-item:hover .art-image {
    transform: scale(1.1);
}

.art-info {
    padding: 1.5rem;
    text-align: center;
}

.art-info h4 {
    color: #CD5C5C;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.art-info p {
    color: #f0f0f0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* AI Projects */
.ai-projects {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(40, 40, 50, 0.6);
    border-radius: 10px;
}

.ai-projects h3 {
    color: #A52A2A;
    margin-bottom: 1.5rem;
}

.ai-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.ai-project-grid a {
    display: block;
    padding: 1rem;
    background: rgba(80, 80, 90, 0.4);
    border-radius: 5px;
    text-decoration: none;
    color: #f0f0f0;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ai-project-grid a:hover {
    background: rgba(139, 0, 0, 0.2);
    border-color: #A52A2A;
    transform: translateY(-2px);
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(139, 0, 0, 0.2);
    transform: translateY(-3px);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #666, #888);
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background-size: 44px 44px;
    background-repeat: no-repeat;
    background-position: center;
}

.skill-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.4);
}

/* Specific skill icons */
.skill-icon.aftereffects {
    background-image: url('https://wojciechbaranow.ski/img/AE.png');
    text-indent: -9999px;
}

.skill-icon.photoshop {
    background-image: url('https://wojciechbaranow.ski/img/PS.png');
    text-indent: -9999px;
}

.skill-icon.illustrator {
    background-image: url('https://wojciechbaranow.ski/img/AI.png');
    text-indent: -9999px;
}

.skill-icon.premiere {
    background-image: url('https://wojciechbaranow.ski/img/Pr.png');
    text-indent: -9999px;
}

.skill-icon.indesign {
    background-image: url('https://wojciechbaranow.ski/img/ID.jpg');
    text-indent: -9999px;
}

.skill-icon.xd {
    background-image: url('https://wojciechbaranow.ski/img/XD.png');
    text-indent: -9999px;
}

.skill-icon.davinci {
    background-image: url('https://wojciechbaranow.ski/img/Resolve.png');
    text-indent: -9999px;
}

.skill-icon.sketch {
    background-image: url('https://wojciechbaranow.ski/img/SKETCH.png');
    text-indent: -9999px;
}

.skill-icon.figma {
    background-image: url('https://wojciechbaranow.ski/img/FIGMA.png');
    text-indent: -9999px;
}

.skill-icon.blender {
    background-image: url('https://wojciechbaranow.ski/img/blender.png');
    text-indent: -9999px;
}

.skill-icon.lightroom {
    background-image: url('https://wojciechbaranow.ski/img/LrC.png');
    text-indent: -9999px;
}

.skill-icon.cinema4d {
    background-image: url('https://wojciechbaranow.ski/img/final%20cut%20pro.png');
    text-indent: -9999px;
}

.skill-icon.html {
    background-image: url('https://wojciechbaranow.ski/img/HTML%20W.png');
    text-indent: -9999px;
}

.skill-icon.css {
    background-image: url('https://wojciechbaranow.ski/img/CSS%20W.png');
    text-indent: -9999px;
}

.skill-icon.javascript {
    background-image: url('https://wojciechbaranow.ski/img/JS.png');
    text-indent: -9999px;
}

.skill-icon.ai-tools {
    background-image: url('https://wojciechbaranow.ski/img/AII.png');
    text-indent: -9999px;
}

.skill-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.skill-description {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #cccccc;
}

/* Language skills */
.language-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.language-item:hover {
    background: rgba(139, 0, 0, 0.2);
    transform: translateY(-3px);
}

.language-flag {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Close button */
.close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(139, 0, 0, 0.3);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #e0e0e0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn.show {
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
    background: rgba(139, 0, 0, 0.5);
}

/* Navigation arrows */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.5;
    transition: all 0.3s ease;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.nav-arrow.left {
    left: 30px;
}

.nav-arrow.right {
    right: 30px;
}

.nav-arrow-icon {
    width: 28px;
    height: 28px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    background: transparent;
}

.nav-arrow.left .nav-arrow-icon {
    transform: rotate(135deg);
}

.nav-arrow.right .nav-arrow-icon {
    transform: rotate(-45deg);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .contact-float-btn {
        top: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }

    .contact-icon {
        font-size: 1.2rem;
    }

    .contact-modal-content {
        padding: 2rem;
    }

    .contact-modal-content h2 {
        font-size: 1.5rem;
    }

    .contact-socials {
        flex-direction: column;
    }

    .nav-triangles {
        top: 5%;
        gap: 12px;
    }

    .nav-shape {
        width: 15px;
        height: 15px;
    }

    .split-content,
    .service-item-with-media {
        grid-template-columns: 1fr;
    }

    .split-content.reverse,
    .service-item-with-media.reverse {
        direction: ltr;
    }

    .timeline-item-visual,
    .workflow-step {
        grid-template-columns: 1fr;
    }

    .timeline-item-visual:nth-child(even),
    .workflow-step:nth-child(even) {
        direction: ltr;
    }

    .timeline-year,
    .workflow-number {
        text-align: center;
        justify-content: center;
        padding: 0;
    }

    .timeline-visual::before,
    .workflow-timeline::before {
        left: 20px;
    }

    .number-text {
        font-size: 3rem;
    }

    .number-text::after {
        display: none;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .art-gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-label {
        bottom: 30px;
        right: 30px;
        font-size: 1rem;
    }

    .nav-arrow {
        font-size: 2rem;
    }

    .nav-arrow.left {
        left: 20px;
    }

    .nav-arrow.right {
        right: 20px;
    }

    .close-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .testimonial-avatar {
        width: 80px;
        height: 80px;
    }

    .pixelbeer-cta h2 {
        font-size: 1.8rem;
    }

    .pixelbeer-btn-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Portfolio Cards Grid */
.portfolio-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.portfolio-card {
    padding: 3rem 2rem;
    background: rgba(40, 40, 50, 0.6);
    border-radius: 15px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 2px solid rgba(139, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-card:hover {
    background: rgba(139, 0, 0, 0.2);
    border-color: #A52A2A;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

.portfolio-card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.portfolio-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card h3 {
    color: #CD5C5C;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.portfolio-card p {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-link-arrow {
    color: #A52A2A;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Portfolio Showcase */
.portfolio-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.showcase-item {
    background: rgba(40, 40, 50, 0.6);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.showcase-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.showcase-item:hover .showcase-image {
    transform: scale(1.1);
}

.showcase-info {
    padding: 1.5rem;
}

.showcase-info h4 {
    color: #A52A2A;
    margin-bottom: 0.5rem;
}

.showcase-info p {
    color: #cccccc;
    font-size: 0.9rem;
}

/* AI Projects Detailed */
.ai-projects-detailed {
    margin-top: 2rem;
}

.ai-project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    background: rgba(80, 80, 90, 0.4);
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    border-left: 4px solid #A52A2A;
}

.ai-project-card:hover {
    background: rgba(139, 0, 0, 0.2);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.3);
}

.ai-project-content h4 {
    color: #CD5C5C;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.ai-project-content p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-arrow {
    font-size: 2rem;
    color: #A52A2A;
    transition: transform 0.3s ease;
}

.ai-project-card:hover .project-arrow {
    transform: translateX(10px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .portfolio-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-showcase {
        grid-template-columns: 1fr;
    }
}
.split-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.split-image video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Wypełnia obszar, zachowując proporcje */
    display: block;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}