/* portfolio.css - style tylko dla portfolio (home) */

/* ===== ZMIENNE I PODSTAWY ===== */
:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #374151;
    --text-light: #6b7280;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-rainbow: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px 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);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --shadow-neon: 0 0 20px rgba(37, 99, 235, 0.5);
    --blur-glass: blur(10px);
    --border-glass: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===== NAWIGACJA ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: wave 4s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    position: relative;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    display: block;
    width: 100%;
    text-align: left !important;
    margin-left: 0 !important;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: glow 3s ease-in-out infinite;
}

.typewriter-text {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

/* --- Wyrównanie typewriter-text do lewej --- */
.typewriter-text {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: left !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
}

.typewriter-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--secondary-color);
    margin-left: 2px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    position: relative;
    overflow: hidden;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    animation: none;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

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

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* ===== PARTICLE ANIMATIONS ===== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 10s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 12s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 8s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 14s; }
.particle:nth-child(5) { left: 50%; animation-delay: 1s; animation-duration: 9s; }
.particle:nth-child(6) { left: 60%; animation-delay: 3s; animation-duration: 11s; }
.particle:nth-child(7) { left: 70%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; animation-duration: 10s; }
.particle:nth-child(9) { left: 90%; animation-delay: 2s; animation-duration: 12s; }
.particle:nth-child(10) { left: 95%; animation-delay: 4s; animation-duration: 8s; }

/* ===== HERO CONTAINER (Bootstrap 3-column layout) ===== */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero .row {
    min-height: 100vh;
}

.hero-content {
    color: white;
}

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

.hero-image {
    position: relative;
    z-index: 2;
    animation: heroImageFloat 4s ease-in-out infinite;
}

.hero-image img {
    max-width: 400px;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 0;
    overflow: hidden !important;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--light-color);
}

.about-content {
    margin-top: 2rem;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

.skills-list {
    list-style: none;
    margin-top: 2rem;
}

.skills-list li {
    padding: 0.5rem 0;
    color: var(--text-color);
    position: relative;
    padding-left: 2rem;
}

.skills-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-image {
    text-align: center;
    margin: 2rem 0;
}

.about-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

.profile-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.profile-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4), 0 0 50px rgba(168, 85, 247, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid white;
}

.profile-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.6), 0 0 60px rgba(168, 85, 247, 0.4), 0 0 80px rgba(147, 51, 234, 0.2);
}

/* ===== SERVICES SECTION ===== */
/* 

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

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

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

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
} */

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

/* Animated background for portfolio section */
.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    animation: portfolioBgFloat 20s ease-in-out infinite;
    z-index: 0;
}

.portfolio .container {
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    contain: layout style paint;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 1px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    will-change: transform, box-shadow;
    contain: layout style paint;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.03) 0%, 
        rgba(245, 158, 11, 0.03) 50%, 
        rgba(16, 185, 129, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.portfolio-item:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(37, 99, 235, 0.08),
        0 0 20px rgba(37, 99, 235, 0.15);
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.95) contrast(1.05);
    will-change: transform, filter;
    contain: layout style paint;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05) rotate(1deg);
    filter: brightness(1.05) contrast(1.1);
}

/* Enhanced placeholder images with animated gradients */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 1;
}

.portfolio-item:hover .placeholder-image::before {
    transform: translateX(100%);
}

.portfolio-item:hover .placeholder-image {
    transform: scale(1.02);
    animation: gradientShift 2s ease infinite;
}

/* Enhanced hover effects for portfolio images */
.portfolio-image::after {
    content: 'i';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(180deg);
    font-size: 2rem;
    color: white;
    background: rgba(37, 99, 235, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: bold;
    font-style: italic;
}

.portfolio-item:hover .portfolio-image::after {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Enhanced shimmer effect */
.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 1s ease;
    z-index: 1;
}

.portfolio-item:hover .portfolio-image::before {
    transform: translateX(100%);
}

.portfolio-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.portfolio-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.portfolio-item:hover .portfolio-content h3::after {
    width: 100px;
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Enhanced portfolio tags */
.portfolio-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tag {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tag::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 ease;
}

.tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

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

/* Portfolio item status indicators */
.portfolio-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-live {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.status-development {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.status-concept {
    background: rgba(99, 102, 241, 0.9);
    color: white;
}

/* Portfolio filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Portfolio item animations */
@keyframes portfolioBgFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

/* Enhanced portfolio grid responsiveness */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-item {
        margin: 0 1rem;
    }
    
    /* Disable hover effects on mobile for better performance */
    .portfolio-item:hover {
        transform: none;
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.1),
            0 1px 8px rgba(0, 0, 0, 0.05);
    }

    .portfolio-item:hover .portfolio-image img {
        transform: none;
        filter: brightness(0.9) contrast(1.1);
    }

    .portfolio-item:hover .placeholder-image {
        transform: none;
        animation: none;
    }

    .portfolio-item:hover .portfolio-image::before {
        transform: translateX(-100%);
    }

    .portfolio-item:hover .portfolio-image::after {
        transform: translate(-50%, -50%) scale(0) rotate(180deg);
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .portfolio-content {
        padding: 2rem;
    }
    
    .portfolio-image {
        height: 220px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

/* Portfolio item loading animation */
.portfolio-item.loading {
    animation: portfolioItemLoad 0.6s ease-out;
}

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

/* Portfolio hover card effect */
.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        rgba(245, 158, 11, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
    pointer-events: none;
}

.portfolio-item:hover::after {
    opacity: 1;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: white;
}

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

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.8;
}

.contact-methods {
    list-style: none;
}

.contact-methods li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-methods i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
}

.contact-form {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== COOKIES ===== */
.cookies {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 2px solid #8B5CF6;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    color: #000000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: all 0.3s ease;
    max-width: 400px;
}

.cookies.show {
    transform: translateY(0);
}

.cookies-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookies-content {
    flex: 1;
}

.cookies-icon {
    font-size: 1.5rem;
    color: #8B5CF6;
}

.cookies-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 700;
}

.cookies-accept {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

/* ===== MOBILE COOKIES MODAL ===== */
.mobile-cookies-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}


.mobile-cookies-modal.show {
    display: block;
}

.mobile-cookies-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.mobile-cookies-content {
    position: absolute;
    top: 50%;
    left: 1.3rem;
    transform: translate(0, -50%);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 0;
    width: 90vw;
    max-width: 400px;
    min-width: 0;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-cookies-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.mobile-cookies-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #F472B6;
}

.mobile-cookies-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.mobile-cookies-body {
    padding: 20px;
    background: white;
}

.mobile-cookies-body p {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
}

.mobile-cookies-body p:last-child {
    margin-bottom: 0;
}

.mobile-cookies-footer {
    padding: 20px;
    background: #f8fafc;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.mobile-cookies-accept {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    width: 100%;
}

.mobile-cookies-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.mobile-cookies-accept:active {
    transform: translateY(0);
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-30px) rotate(-5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
}

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

/* Performance optimizations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .portfolio-item,
    .portfolio-item *,
    .portfolio-image,
    .portfolio-image *,
    .placeholder-image,
    .portfolio-content {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .portfolio-item:hover {
        transform: none !important;
    }
    
    .portfolio-item:hover .portfolio-image img {
        transform: none !important;
        filter: brightness(0.95) contrast(1.05) !important;
    }
    
    .portfolio-item:hover .placeholder-image {
        transform: none !important;
        animation: none !important;
    }
    
    .portfolio-item:hover .portfolio-image::before {
        transform: translateX(-100%) !important;
    }
    
    .portfolio-item:hover .portfolio-image::after {
        transform: translate(-50%, -50%) scale(0) rotate(180deg) !important;
    }
}

@keyframes heroImageFloat {
    0%, 100% {
        transform: translateY(-50%) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-50%) translateX(10px) rotate(1deg);
    }
    50% {
        transform: translateY(-50%) translateX(0px) rotate(0deg);
    }
    75% {
        transform: translateY(-50%) translateX(-10px) rotate(-1deg);
    }
}

@keyframes glow {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-10px) translateY(-5px);
    }
    50% {
        transform: translateX(0) translateY(-10px);
    }
    75% {
        transform: translateX(10px) translateY(-5px);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 992px) {
    .hero .row {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-content {
        margin: 2rem 0;
    }
    
    .hero-image img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        z-index: 999;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

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

    .nav-menu li {
        margin: 1rem 0;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards;
    }

    .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.4s; }

    .nav-link {
        color: white !important;
        background: none;
        font-size: 1.5rem;
        margin: 0;
        padding: 15px 25px;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        border-radius: 8px;
        text-align: center;
        width: 200px;
    }

    .nav-link:hover, .nav-link:focus {
        color: #8B5CF6 !important;
        background: rgba(139, 92, 246, 0.1) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(139,92,246,0.3);
    }

    .nav-link.active {
        color: #EC4899 !important;
        font-weight: 600;
        background: rgba(236,72,153,0.1) !important;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background: #8B5CF6;
        border-radius: 3px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .mobile-menu-btn:hover, .mobile-menu-btn:focus {
        outline: none;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero .row {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        max-width: 300px;
    }

    .hero-content {
        margin-top: 2rem;
        text-align: center;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

    .profile-circle {
        width: 250px;
        height: 250px;
    }
    
    .hero-image {
        display: none;
    }

    .about-image {
        margin: 1rem 0;
    }

    /* Hide desktop cookies on mobile */
    .cookies {
        display: none;
    }

    /* Show mobile cookies modal by default on mobile */
    .mobile-cookies-modal.show {
        display: block;
    }

    /* Mobile container margin */
    .container {
        margin-left: 1.5rem !important;
        margin-right: 1.5rem !important;
    }
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        border: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-link {
        color: #8B5CF6 !important;
        background: none;
        font-size: 1rem;
        margin: 0 10px;
        padding: 10px 16px;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        border-radius: 8px;
    }
    
    .nav-link:hover, .nav-link:focus {
        color: #ffffff !important;
        background: linear-gradient(135deg, #8B5CF6, #7C3AED) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(139,92,246,0.3);
    }
    
    .nav-link.active {
        color: #EC4899 !important;
        font-weight: 600;
        background: rgba(236,72,153,0.1) !important;
    }
    
    /* Hide mobile cookies modal on desktop */
    .mobile-cookies-modal {
        display: none;
    }
    
    /* Show desktop cookies on desktop */
    .cookies {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }

    .hero-title,
    .typewriter-text {
        font-size: 1.2rem !important;
        max-width: 95vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        box-sizing: border-box;
        padding-right: 0;
    }
} 

/* ===== PORTFOLIO SECTION ENHANCEMENTS ===== */

/* Portfolio section title with gradient animation */
.portfolio .section-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    position: relative;
}

.portfolio .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: widthExpand 2s ease-in-out infinite;
}

@keyframes widthExpand {
    0%, 100% { width: 100px; }
    50% { width: 150px; }
}

/* Enhanced portfolio filters with glass effect */
.portfolio-filters {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem auto 3rem;
    max-width: 600px;
}

/* Portfolio item enhanced hover states */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    left: 100%;
}

/* Enhanced status badges with pulse animation */
.status-badge {
    position: relative;
    overflow: hidden;
}

.status-live {
    animation: pulse 2s infinite;
}

.status-development {
    animation: pulse 2s infinite 1s;
}

.status-concept {
    animation: pulse 2s infinite 0.5s;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

/* Portfolio item content enhancements */
.portfolio-content {
    position: relative;
    z-index: 2;
}

.portfolio-content h3 {
    position: relative;
    display: inline-block;
}

.portfolio-content h3::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.portfolio-item:hover .portfolio-content h3::before {
    width: 100%;
}

/* Enhanced tag animations */
.tag {
    position: relative;
    overflow: hidden;
}

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

.tag:hover::after {
    left: 100%;
}

/* Portfolio grid masonry effect */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    align-items: start;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .portfolio-filters {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-item {
        margin: 0 1rem;
    }
}

/* Portfolio item loading states */
.portfolio-item.loading {
    animation: portfolioLoad 0.6s ease-out;
}

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

/* Enhanced lightbox */
.lightbox {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.95);
}

.lightbox img {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.lightbox img:hover {
    transform: scale(1.02);
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Portfolio section background particles */
.portfolio::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    animation: portfolioBgFloat 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

/* Enhanced portfolio item shadows */
.portfolio-item {
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.2),
        0 0 30px rgba(37, 99, 235, 0.3);
}

/* Portfolio item image enhancements */
.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 1;
}

.portfolio-item:hover .portfolio-image::before {
    transform: translateX(100%);
}

/* Portfolio item content typography */
.portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.portfolio-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Enhanced portfolio tags */
.portfolio-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tag {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Portfolio section responsive improvements */
@media (min-width: 769px) and (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1201px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 3rem;
    }
}

/* Portfolio item stagger animation */
.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }
.portfolio-item:nth-child(7) { animation-delay: 0.7s; }
.portfolio-item:nth-child(8) { animation-delay: 0.8s; }
.portfolio-item:nth-child(9) { animation-delay: 0.9s; }
.portfolio-item:nth-child(10) { animation-delay: 1.0s; }
.portfolio-item:nth-child(11) { animation-delay: 1.1s; }
.portfolio-item:nth-child(12) { animation-delay: 1.2s; }
.portfolio-item:nth-child(13) { animation-delay: 1.3s; }
.portfolio-item:nth-child(14) { animation-delay: 1.4s; }
.portfolio-item:nth-child(15) { animation-delay: 1.5s; }
.portfolio-item:nth-child(16) { animation-delay: 1.6s; } 

/* ===== ADVANCED PORTFOLIO VIEWER ===== */

/* Portfolio item enhanced with multiple views */
.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Portfolio image container with device frames */
.portfolio-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Device frame for desktop view */
.device-frame-desktop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 80%;
    background: #1a1a1a;
    border-radius: 8px;
    border: 3px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 2;
}

.device-frame-desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: #333;
    border-radius: 8px 8px 0 0;
}

.device-frame-desktop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 0 0 4px 4px;
}

/* Device frame for mobile view */
.device-frame-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 90%;
    background: #1a1a1a;
    border-radius: 20px;
    border: 3px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 2;
}

.device-frame-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 0 0 4px 4px;
}

.device-frame-mobile::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    border: 2px solid #555;
}

/* Portfolio images inside device frames */
.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Full page view modal */
.full-page-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.full-page-modal.active {
    display: flex;
    opacity: 1;
}

.full-page-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.full-page-modal.active .full-page-content {
    transform: scale(1);
}

.full-page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.full-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.full-page-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.full-page-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.full-page-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* View tabs in full page modal */
.view-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.view-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
}

.view-tab::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.view-tab.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.view-tab.active::after {
    width: 100%;
}

/* Image gallery in full page modal */
.view-gallery {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.view-gallery.active {
    display: grid;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-caption {
    transform: translateY(0);
}

/* Device preview in gallery */
.device-preview {
    position: relative;
    margin: 0 auto;
    max-width: 400px;
}

.device-preview.desktop {
    width: 100%;
    height: 300px;
}

.device-preview.mobile {
    width: 200px;
    height: 400px;
}

.device-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Navigation arrows for gallery */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 1rem;
}

.gallery-nav.next {
    right: 1rem;
}

/* Loading states for images */
.image-loading {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive design for full page modal */
@media (max-width: 768px) {
    .full-page-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .full-page-header {
        padding: 1rem;
    }
    
    .full-page-title {
        font-size: 1.2rem;
    }
    
    .view-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .view-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .view-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Enhanced portfolio item with view selector */
.portfolio-item-enhanced {
    position: relative;
    overflow: hidden;
}

.portfolio-item-enhanced .portfolio-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}



.portfolio-item-enhanced:hover .device-frame-desktop,
.portfolio-item-enhanced:hover .device-frame-mobile {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Animation for view switching */
.view-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-transition.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.view-transition.fade-in {
    opacity: 1;
    transform: scale(1);
} 

/* ===== GALLERY ENHANCEMENTS ===== */

/* Gallery container with better layout */
.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem 0;
}

.gallery-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Enhanced gallery items */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
}

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

/* Enhanced gallery item caption */
.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 1.5rem 1rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-item-caption {
    transform: translateY(0);
}

/* Gallery navigation enhancements */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.gallery-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.gallery-nav.prev {
    left: 2rem;
}

.gallery-nav.next {
    right: 2rem;
}

/* View tabs enhancements */
.view-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.view-tab {
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.view-tab i {
    font-size: 1.1rem;
}

.view-tab::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.view-tab:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.view-tab.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.view-tab.active::after {
    width: 100%;
}

/* Full page modal enhancements */
.full-page-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.full-page-modal.active {
    display: flex;
    opacity: 1;
}

.full-page-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.full-page-modal.active .full-page-content {
    transform: scale(1);
}

.full-page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.full-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

.full-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.full-page-close {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.full-page-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.full-page-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Loading states */
.image-loading {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 15px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .full-page-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .full-page-header {
        padding: 1.5rem;
    }
    
    .full-page-title {
        font-size: 1.4rem;
    }
    
    .view-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .view-tab {
        width: 100%;
        min-width: auto;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .gallery-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .gallery-nav.prev {
        left: 1rem;
    }
    
    .gallery-nav.next {
        right: 1rem;
    }
    
    .gallery-container {
        padding: 1rem 0;
        min-height: 300px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .gallery-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .view-tabs {
        gap: 0.75rem;
    }
    
    .view-tab {
        padding: 0.75rem 1.25rem;
        min-width: 120px;
    }
}

/* Enhanced device frames */
.device-frame-desktop,
.device-frame-mobile {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: inherit;
}

.device-frame-desktop {
    width: 90%;
    height: 80%;
    background: #1a1a1a;
    border-radius: 8px;
    border: 3px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.device-frame-mobile {
    width: 40%;
    height: 90%;
    background: #1a1a1a;
    border-radius: 20px;
    border: 3px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Device frame details */
.device-frame-desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: #333;
    border-radius: 8px 8px 0 0;
    z-index: 1;
}

.device-frame-desktop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 0 0 4px 4px;
    z-index: 1;
}

.device-frame-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 0 0 4px 4px;
    z-index: 1;
}

.device-frame-mobile::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    border: 2px solid #555;
    z-index: 1;
}

/* Enhanced view selector positioning */
.view-selector {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.portfolio-item-enhanced:hover .view-selector {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced view buttons */
.view-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

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

.view-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(37, 99, 235, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

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

.view-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.5),
        0 4px 12px rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

/* Enhanced view button icons */
.view-btn i {
    transition: all 0.3s ease;
}

.view-btn:hover i {
    transform: scale(1.1);
}

.view-btn.active i {
    transform: scale(1.05);
}

/* Enhanced view selector animations */
@keyframes viewSelectorSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.portfolio-item-enhanced:hover .view-selector {
    animation: viewSelectorSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Enhanced view button stagger animation */
.view-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.view-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.view-btn:nth-child(3) {
    animation-delay: 0.3s;
}

/* Enhanced view button pulse effect */
.view-btn.active {
    animation: viewButtonPulse 2s infinite;
}

@keyframes viewButtonPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 2px rgba(255, 255, 255, 0.5),
            0 4px 12px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 2px rgba(255, 255, 255, 0.5),
            0 4px 12px rgba(37, 99, 235, 0.3),
            0 0 20px rgba(37, 99, 235, 0.5);
    }
}

/* Enhanced portfolio item styling */
.portfolio-item-enhanced {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.portfolio-item-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.05) 0%, 
        rgba(245, 158, 11, 0.05) 50%, 
        rgba(16, 185, 129, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 25px;
}

.portfolio-item-enhanced:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.1),
        0 0 30px rgba(37, 99, 235, 0.2);
}

.portfolio-item-enhanced:hover::before {
    opacity: 1;
}

/* Enhanced portfolio content */
.portfolio-item-enhanced .portfolio-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
}

/* Enhanced status badges for enhanced items */
.portfolio-item-enhanced .status-badge {
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.portfolio-item-enhanced .status-live {
    animation: pulse 2s infinite;
}

.portfolio-item-enhanced .status-development {
    animation: pulse 2s infinite 1s;
}

.portfolio-item-enhanced .status-concept {
    animation: pulse 2s infinite 0.5s;
}

/* Enhanced shimmer effect for enhanced items */
.portfolio-item-enhanced .portfolio-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.15) 50%, 
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-item-enhanced:hover .portfolio-image-container::before {
    transform: translateX(100%);
}

/* Responsive design for enhanced portfolio items */
@media (max-width: 768px) {
    .portfolio-item-enhanced .view-selector {
        top: 0.5rem;
        left: 0.5rem;
        gap: 0.25rem;
        padding: 0.25rem;
    }
    
    .portfolio-item-enhanced .view-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .portfolio-item-enhanced .device-frame-desktop {
        width: 95%;
        height: 85%;
    }
    
    .portfolio-item-enhanced .device-frame-mobile {
        width: 45%;
        height: 95%;
    }
    
    .portfolio-item-enhanced .portfolio-image-container {
        height: 220px;
    }
    
    .portfolio-item-enhanced .portfolio-content {
        padding: 1.5rem;
    }
    
    .portfolio-item-enhanced .portfolio-content h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-item-enhanced .portfolio-content p {
        font-size: 0.9rem;
    }
    
    .portfolio-item-enhanced .portfolio-tags {
        gap: 0.5rem;
    }
    
    .portfolio-item-enhanced .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .portfolio-item-enhanced .view-selector {
        top: 0.75rem;
        left: 0.75rem;
        gap: 0.4rem;
        padding: 0.4rem;
    }
    
    .portfolio-item-enhanced .view-btn {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
    
    .portfolio-item-enhanced .device-frame-desktop {
        width: 92%;
        height: 82%;
    }
    
    .portfolio-item-enhanced .device-frame-mobile {
        width: 42%;
        height: 92%;
    }
    
    .portfolio-item-enhanced .portfolio-image-container {
        height: 250px;
    }
}

@media (min-width: 1201px) {
    .portfolio-item-enhanced .portfolio-image-container {
        height: 300px;
    }
    
    .portfolio-item-enhanced .device-frame-desktop {
        width: 88%;
        height: 78%;
    }
    
    .portfolio-item-enhanced .device-frame-mobile {
        width: 38%;
        height: 88%;
    }
}

/* Enhanced animations for portfolio items */
@keyframes portfolioItemFloat {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    }
    50% {
        transform: translateY(-10px) rotateX(0deg) rotateY(0deg);
    }
    75% {
        transform: translateY(-5px) rotateX(-2deg) rotateY(-2deg);
    }
}

.portfolio-item-enhanced:hover {
    animation: portfolioItemFloat 3s ease-in-out infinite;
}

/* Enhanced loading states */
.portfolio-item-enhanced.loading {
    animation: portfolioItemLoad 0.6s ease-out;
}

@keyframes portfolioItemLoad {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* Enhanced device frame positioning */
.device-frame-desktop,
.device-frame-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Enhanced device frame styling */
.device-frame-desktop {
    width: 90%;
    height: 80%;
    background: #1a1a1a;
    border-radius: 8px;
    border: 3px solid #333;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.device-frame-mobile {
    width: 40%;
    height: 90%;
    background: #1a1a1a;
    border-radius: 20px;
    border: 3px solid #333;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Enhanced device frame details */
.device-frame-desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    border-radius: 8px 8px 0 0;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.device-frame-desktop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    border-radius: 0 0 4px 4px;
    z-index: 1;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.device-frame-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    border-radius: 0 0 4px 4px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.device-frame-mobile::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    border-radius: 50%;
    border: 2px solid #555;
    z-index: 1;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* Enhanced device frame hover effects */
.portfolio-item-enhanced:hover .device-frame-desktop,
.portfolio-item-enhanced:hover .device-frame-mobile {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(37, 99, 235, 0.2);
}

/* Enhanced device frame transitions */
.device-frame-desktop,
.device-frame-mobile {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced device frame shimmer effect */
.device-frame-desktop::before,
.device-frame-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-item-enhanced:hover .device-frame-desktop::before,
.portfolio-item-enhanced:hover .device-frame-mobile::before {
    transform: translateX(100%);
}

/* Desktop frame with scrolling animation */
.device-frame-desktop {
    width: 90%;
    height: 80%;
    background: #1a1a1a;
    border-radius: 8px;
    border: 3px solid #333;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

/* Desktop screen container with scroll animation */
.desktop-screen-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.desktop-screen-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.1s ease;
}

/* Scroll animation for desktop view */
.desktop-screen-container.scrolling img {
    animation: desktopScroll 8s ease-in-out infinite;
}

@keyframes desktopScroll {
    0% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-10%);
    }
    40% {
        transform: translateY(-25%);
    }
    60% {
        transform: translateY(-50%);
    }
    80% {
        transform: translateY(-75%);
    }
    100% {
        transform: translateY(-90%);
    }
}

/* Alternative scroll animation with pause */
.desktop-screen-container.scrolling-pause img {
    animation: desktopScrollPause 12s ease-in-out infinite;
}

@keyframes desktopScrollPause {
    0%, 10% {
        transform: translateY(0);
    }
    20%, 30% {
        transform: translateY(-15%);
    }
    40%, 50% {
        transform: translateY(-35%);
    }
    60%, 70% {
        transform: translateY(-60%);
    }
    80%, 90% {
        transform: translateY(-85%);
    }
    100% {
        transform: translateY(-95%);
    }
}

/* Smooth scroll animation */
.desktop-screen-container.scrolling-smooth img {
    animation: desktopScrollSmooth 15s ease-in-out infinite;
}

@keyframes desktopScrollSmooth {
    0% {
        transform: translateY(0);
    }
    15% {
        transform: translateY(-8%);
    }
    30% {
        transform: translateY(-20%);
    }
    45% {
        transform: translateY(-40%);
    }
    60% {
        transform: translateY(-65%);
    }
    75% {
        transform: translateY(-85%);
    }
    90% {
        transform: translateY(-95%);
    }
    100% {
        transform: translateY(-98%);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.desktop-screen-container.scrolling .scroll-indicator,
.desktop-screen-container.scrolling-pause .scroll-indicator,
.desktop-screen-container.scrolling-smooth .scroll-indicator {
    opacity: 1;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scrollIndicatorMove 8s ease-in-out infinite;
}

@keyframes scrollIndicatorMove {
    0% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(10px);
    }
    40% {
        transform: translateY(20px);
    }
    60% {
        transform: translateY(30px);
    }
    80% {
        transform: translateY(40px);
    }
    100% {
        transform: translateY(50px);
    }
}

/* Scroll indicator for pause animation */
.scrolling-pause .scroll-indicator::before {
    animation: scrollIndicatorMovePause 12s ease-in-out infinite;
}

@keyframes scrollIndicatorMovePause {
    0%, 10% {
        transform: translateY(0);
    }
    20%, 30% {
        transform: translateY(15px);
    }
    40%, 50% {
        transform: translateY(30px);
    }
    60%, 70% {
        transform: translateY(45px);
    }
    80%, 90% {
        transform: translateY(55px);
    }
    100% {
        transform: translateY(60px);
    }
}

/* Scroll indicator for smooth animation */
.scrolling-smooth .scroll-indicator::before {
    animation: scrollIndicatorMoveSmooth 15s ease-in-out infinite;
}

@keyframes scrollIndicatorMoveSmooth {
    0% {
        transform: translateY(0);
    }
    15% {
        transform: translateY(8px);
    }
    30% {
        transform: translateY(20px);
    }
    45% {
        transform: translateY(35px);
    }
    60% {
        transform: translateY(50px);
    }
    75% {
        transform: translateY(58px);
    }
    90% {
        transform: translateY(62px);
    }
    100% {
        transform: translateY(65px);
    }
}

/* Hover to pause animation */
.desktop-screen-container:hover img {
    animation-play-state: paused;
}

.desktop-screen-container:hover .scroll-indicator::before {
    animation-play-state: paused;
}

/* Enhanced desktop frame with scroll animation */
.device-frame-desktop.scroll-enabled {
    position: relative;
}

.device-frame-desktop.scroll-enabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 10%,
        transparent 20%,
        transparent 80%,
        rgba(0, 0, 0, 0.1) 90%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.device-frame-desktop.scroll-enabled:hover::after {
    opacity: 1;
}

/* Enhanced scroll animation effects */
.desktop-screen-container.scrolling img,
.desktop-screen-container.scrolling-pause img,
.desktop-screen-container.scrolling-smooth img {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Enhanced scroll indicator with glow effect */
.scroll-indicator {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Enhanced desktop frame with scroll animation */
.device-frame-desktop.scroll-enabled {
    position: relative;
    overflow: hidden;
}

.device-frame-desktop.scroll-enabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        transparent 10%,
        transparent 90%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.device-frame-desktop.scroll-enabled:hover::before {
    opacity: 1;
}

/* Enhanced scroll animation with easing */
@keyframes desktopScrollEnhanced {
    0% {
        transform: translateY(0) scale(1);
    }
    20% {
        transform: translateY(-10%) scale(1.01);
    }
    40% {
        transform: translateY(-25%) scale(1.02);
    }
    60% {
        transform: translateY(-50%) scale(1.01);
    }
    80% {
        transform: translateY(-75%) scale(1.005);
    }
    100% {
        transform: translateY(-90%) scale(1);
    }
}

.desktop-screen-container.scrolling-enhanced img {
    animation: desktopScrollEnhanced 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Enhanced scroll indicator for enhanced animation */
.scrolling-enhanced .scroll-indicator::before {
    animation: scrollIndicatorMoveEnhanced 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollIndicatorMoveEnhanced {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    20% {
        transform: translateY(10px);
        opacity: 0.8;
    }
    40% {
        transform: translateY(20px);
        opacity: 0.9;
    }
    60% {
        transform: translateY(30px);
        opacity: 0.7;
    }
    80% {
        transform: translateY(40px);
        opacity: 0.8;
    }
    100% {
        transform: translateY(50px);
        opacity: 1;
    }
}

/* Responsive scroll animation */
@media (max-width: 768px) {
    .desktop-screen-container.scrolling img {
        animation-duration: 6s;
    }
    
    .desktop-screen-container.scrolling-pause img {
        animation-duration: 8s;
    }
    
    .desktop-screen-container.scrolling-smooth img {
        animation-duration: 10s;
    }
    
    .scroll-indicator {
        width: 3px;
        height: 50px;
        right: 3px;
    }
    
    .scroll-indicator::before {
        height: 15px;
    }
}

@media (min-width: 1200px) {
    .desktop-screen-container.scrolling img {
        animation-duration: 12s;
    }
    
    .desktop-screen-container.scrolling-pause img {
        animation-duration: 15s;
    }
    
    .desktop-screen-container.scrolling-smooth img {
        animation-duration: 18s;
    }
    
    .scroll-indicator {
        width: 5px;
        height: 70px;
        right: 8px;
    }
    
    .scroll-indicator::before {
        height: 25px;
    }
}

/* Enhanced hover effects for scroll animation */
.desktop-screen-container:hover {
    cursor: pointer;
}

.desktop-screen-container:hover img {
    animation-play-state: paused;
    filter: brightness(1.1) contrast(1.05);
}

.desktop-screen-container:hover .scroll-indicator::before {
    animation-play-state: paused;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.6));
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* Enhanced scroll animation with parallax effect */
.desktop-screen-container.scrolling-parallax {
    perspective: 1000px;
}

.desktop-screen-container.scrolling-parallax img {
    transform-style: preserve-3d;
    animation: desktopScrollParallax 12s ease-in-out infinite;
}

@keyframes desktopScrollParallax {
    0% {
        transform: translateY(0) translateZ(0) rotateX(0deg);
    }
    25% {
        transform: translateY(-25%) translateZ(10px) rotateX(2deg);
    }
    50% {
        transform: translateY(-50%) translateZ(20px) rotateX(0deg);
    }
    75% {
        transform: translateY(-75%) translateZ(10px) rotateX(-2deg);
    }
    100% {
        transform: translateY(-90%) translateZ(0) rotateX(0deg);
    }
}

/* Mobile Horizontal Portfolio Scroll */
@media (max-width: 768px) {
    .portfolio-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding: 0 20px;
        margin: 0 -20px;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
        /* Usuwam problematyczne animacje */
        animation: none !important;
    }

    .portfolio-item {
        flex: 0 0 300px;
        scroll-snap-align: start;
        margin: 0;
        min-width: 300px;
        max-width: 300px;
        /* Usuwam animacje które powodują skakanie */
        animation: none !important;
        transform: none !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .portfolio-item-enhanced {
        flex: 0 0 320px;
        min-width: 320px;
        max-width: 320px;
        /* Usuwam animacje które powodują skakanie */
        animation: none !important;
        transform: none !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* Hide scrollbar but keep functionality */
    .portfolio-grid::-webkit-scrollbar {
        display: none;
    }

    .portfolio-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Portfolio filters for mobile */
    .portfolio-filters {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding: 0 20px;
        margin: 0 -20px 30px -20px;
        -webkit-overflow-scrolling: touch;
    }

    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }

    .portfolio-filters {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Enhanced mobile portfolio items */
    .portfolio-item-enhanced .portfolio-image-container {
        height: 200px;
        margin-bottom: 15px;
    }

    .portfolio-item-enhanced .device-frame-desktop,
    .portfolio-item-enhanced .device-frame-mobile {
        width: 100%;
        height: 100%;
        max-width: none;
    }

    .portfolio-item-enhanced .view-selector {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 8px;
        gap: 8px;
        z-index: 10;
    }

    .portfolio-item-enhanced .view-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Mobile scroll indicators */
    .portfolio-scroll-indicator {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
        opacity: 0.7;
    }

    .portfolio-scroll-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--text-secondary);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .portfolio-scroll-dot.active {
        background: var(--accent-color);
        transform: scale(1.2);
    }

    /* Mobile portfolio navigation arrows */
    .portfolio-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 16px;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .portfolio-nav:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-50%) scale(1.1);
    }

    .portfolio-nav.prev {
        left: 10px;
    }

    .portfolio-nav.next {
        right: 10px;
    }

    /* Mobile portfolio container with relative positioning */
    .portfolio-container {
        position: relative;
        overflow: hidden;
    }

    /* Usuwam problematyczne animacje */
    /* .portfolio-item-enhanced {
        animation: mobilePortfolioSlideIn 0.6s ease-out;
    }

    @keyframes mobilePortfolioSlideIn {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    } */

    /* Mobile scroll snap improvements */
    .portfolio-grid {
        scroll-padding: 0 20px;
    }

    /* Mobile touch feedback - poprawiam aby nie powodowało skakania */
    .portfolio-item:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease;
    }

    .portfolio-item-enhanced:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease;
    }

    /* Mobile portfolio content adjustments */
    .portfolio-content {
        padding: 15px;
    }

    .portfolio-content h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .portfolio-content p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .portfolio-tags {
        gap: 6px;
    }

    .portfolio-tags .tag {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
    }

    .portfolio-item-enhanced {
        min-width: auto;
        max-width: none;
    }
}

/* Large screens - keep original grid */
@media (min-width: 1025px) {
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 30px;
    }
}

/* Enhanced Mobile Portfolio Styles */
@media (max-width: 768px) {
    /* Portfolio section container */
    .portfolio .container {
        padding: 0;
        overflow: hidden;
    }
    
    /* Portfolio grid enhancements */
    .portfolio-grid {
        scroll-padding: 0 20px;
        scroll-margin: 0 20px;
        padding: 20px;
        margin: 0;
        gap: 15px;
    }
    
    /* Enhanced portfolio items */
    .portfolio-item,
    .portfolio-item-enhanced {
        border-radius: 15px;
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.15),
            0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .portfolio-item:hover,
    .portfolio-item-enhanced:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.2),
            0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Enhanced image container */
    .portfolio-image-container {
        position: relative;
        border-radius: 12px 12px 0 0;
        overflow: hidden;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }
    
    /* Enhanced device frames for mobile */
    .device-frame-desktop,
    .device-frame-mobile {
        border-radius: 8px;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.2),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    /* Enhanced view selector for mobile */
    .view-selector {
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .view-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .view-btn:hover,
    .view-btn.active {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: scale(1.1);
    }
    
    /* Enhanced portfolio content */
    .portfolio-content {
        padding: 20px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
        border-radius: 0 0 12px 12px;
    }
    
    .portfolio-content h3 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--text-primary);
        background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .portfolio-content p {
        font-size: 15px;
        line-height: 1.5;
        color: var(--text-secondary);
        margin-bottom: 15px;
    }
    
    /* Enhanced tags */
    .portfolio-tags {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .portfolio-tags .tag {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 20px;
        background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
        color: white;
        font-weight: 500;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }
    
    .portfolio-tags .tag:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    /* Enhanced status badges */
    .status-badge {
        font-size: 11px;
        padding: 4px 10px;
        border-radius: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    /* Enhanced navigation arrows */
    .portfolio-nav {
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.2);
        font-size: 18px;
        color: white;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .portfolio-nav:hover {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
        transform: translateY(-50%) scale(1.15);
        box-shadow: 
            0 12px 35px rgba(0, 0, 0, 0.4),
            0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .portfolio-nav:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    /* Enhanced scroll indicators */
    .portfolio-scroll-indicator {
        margin-top: 25px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 25px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .portfolio-scroll-dot {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }
    
    .portfolio-scroll-dot:hover {
        background: rgba(255, 255, 255, 0.5);
        transform: scale(1.2);
    }
    
    .portfolio-scroll-dot.active {
        background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
        border-color: rgba(255, 255, 255, 0.4);
        transform: scale(1.3);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    /* Enhanced filters for mobile */
    .portfolio-filters {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 25px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 25px;
        padding: 8px;
    }
    
    .filter-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--text-primary);
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 20px;
    }
    
    .filter-btn:hover,
    .filter-btn.active {
        background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
        border-color: rgba(255, 255, 255, 0.4);
        color: white;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    /* Smooth scroll snap */
    .portfolio-grid {
        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
    }
    
    .portfolio-item,
    .portfolio-item-enhanced {
        scroll-snap-align: center;
    }
    
    /* Enhanced touch feedback - poprawione aby nie powodowało skakania */
    .portfolio-item:active,
    .portfolio-item-enhanced:active {
        transform: scale(0.96) !important;
        transition: transform 0.1s ease;
    }
    
    /* Usunięte problematyczne animacje które powodowały skakanie */
    /* @keyframes mobilePortfolioLoad {
        from {
            opacity: 0;
            transform: translateX(30px) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateX(0) scale(1);
        }
    }
    
    .portfolio-item,
    .portfolio-item-enhanced {
        animation: mobilePortfolioLoad 0.6s ease-out;
    }
    
    Stagger animation for items */
    /* .portfolio-item:nth-child(1) { animation-delay: 0.1s; }
    .portfolio-item:nth-child(2) { animation-delay: 0.2s; }
    .portfolio-item:nth-child(3) { animation-delay: 0.3s; }
    .portfolio-item:nth-child(4) { animation-delay: 0.4s; }
    .portfolio-item:nth-child(5) { animation-delay: 0.5s; }
    .portfolio-item:nth-child(6) { animation-delay: 0.6s; }
    .portfolio-item:nth-child(7) { animation-delay: 0.7s; }
    .portfolio-item:nth-child(8) { animation-delay: 0.8s; }
    .portfolio-item:nth-child(9) { animation-delay: 0.9s; }
    .portfolio-item:nth-child(10) { animation-delay: 1.0s; }
    .portfolio-item:nth-child(11) { animation-delay: 1.1s; }
    .portfolio-item:nth-child(12) { animation-delay: 1.2s; }
    .portfolio-item:nth-child(13) { animation-delay: 1.3s; }
    .portfolio-item:nth-child(14) { animation-delay: 1.4s; }
    .portfolio-item:nth-child(15) { animation-delay: 1.5s; } */
}