/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-cyan: #22d3ee;
    --border-color: rgba(255, 255, 255, 0.06);
    --card-bg: rgba(12, 12, 18, 0.7);
    --card-hover-bg: rgba(20, 20, 30, 0.85);
    --grid-color: rgba(99, 102, 241, 0.1);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tło - Perspektywiczna Siatka */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: var(--bg-primary);
}

/* Siatka perspektywiczna */
.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
    mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.5) 20%,
        rgba(0,0,0,1) 40%,
        rgba(0,0,0,1) 60%,
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.5) 20%,
        rgba(0,0,0,1) 40%,
        rgba(0,0,0,1) 60%,
        rgba(0,0,0,0) 100%
    );
    animation: grid-scroll 20s linear infinite;
}

/* Gradient glow na górze */
.background-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 400px;
    background: radial-gradient(ellipse at center top, 
        rgba(99, 102, 241, 0.15) 0%, 
        rgba(139, 92, 246, 0.08) 30%,
        transparent 70%
    );
    pointer-events: none;
}

@keyframes grid-scroll {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 60px;
    }
}

/* Dodatkowe linie siatki - efekt horyzontu */
.grid-horizon {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: linear-gradient(to top, rgba(99, 102, 241, 0.03), transparent);
    pointer-events: none;
    z-index: -1;
}

/* Kontener główny */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Nagłówek */
header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 4rem 0 3rem;
    animation: fadeInDown 1s ease-out;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
}

/* Logo Title - Clash Display */
.logo-title {
    font-family: 'Clash Display', 'Outfit', sans-serif;
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
    position: relative;
    display: inline-block;
}

.logo-title .letter {
    display: inline-block;
    position: relative;
    color: transparent;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                filter 0.3s ease;
    animation: letter-appear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.logo-title .letter:nth-child(1) { animation-delay: 0.1s; }
.logo-title .letter:nth-child(2) { animation-delay: 0.15s; }
.logo-title .letter:nth-child(3) { animation-delay: 0.2s; }
.logo-title .letter:nth-child(4) { animation-delay: 0.25s; }
.logo-title .letter:nth-child(5) { animation-delay: 0.3s; }
.logo-title .letter:nth-child(6) { animation-delay: 0.35s; }
.logo-title .letter:nth-child(7) { animation-delay: 0.4s; }

@keyframes letter-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover na pojedyncze litery */
.logo-title .letter:hover {
    transform: translateY(-8px) scale(1.1);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
}

/* Akcentowana litera T */
.logo-title .letter:first-child {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 700;
}

/* Dekoracyjna linia pod logo */
.logo-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    border-radius: 2px;
    animation: line-expand 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes line-expand {
    to {
        width: 60%;
    }
}

.subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.subtitle::after {
    content: '|';
    margin-left: 4px;
    animation: blink 1.2s infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

/* Siatka projektów - Bento Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

@media (min-width: 769px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 280px; /* Stała wysokość wiersza */
        gap: 1.5rem;
    }

    /* Bento Layout Configuration - Coherent Grid */
    .projects-grid .project-card:nth-child(1) {
        grid-column: span 2; /* Książka */
        grid-row: span 1;
    }

    .projects-grid .project-card:nth-child(2) {
        grid-column: span 2; /* Tetris */
        grid-row: span 1;
    }

    .projects-grid .project-card:nth-child(3) {
        grid-column: span 1; /* Planer */
        grid-row: span 1;
    }

    .projects-grid .project-card:nth-child(4) {
        grid-column: span 1; /* Temperament */
        grid-row: span 1;
    }

    .projects-grid .project-card:nth-child(5) {
        grid-column: span 1; /* Predyspozycje */
        grid-row: span 1;
    }

    .projects-grid .project-card:nth-child(6) {
        grid-column: span 1; /* Studio Fryzjerskie */
        grid-row: span 1;
    }
    
    .projects-grid .project-card:nth-child(7) {
        grid-column: span 2; /* Umowa */
        grid-row: span 1;
    }

    .projects-grid .project-card:nth-child(8) {
        grid-column: span 2; /* Czołgi */
        grid-row: span 1;
    }

    .projects-grid .project-card:nth-child(9) {
        grid-column: span 2; /* Układ Słoneczny */
        grid-row: span 1;
    }

    .projects-grid .project-card:nth-child(10) {
        grid-column: span 2; /* ClearContext - duży jak Układ Słoneczny */
        grid-row: span 1;
    }
}

/* Karty projektów - 3D Tilt Effect */
.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    
    /* Glass effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    
    /* 3D Transform setup */
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0) rotateY(0);
    transition: transform 0.1s ease-out, 
                box-shadow 0.3s ease,
                border-color 0.3s ease,
                background 0.3s ease;
}

/* Shine effect overlay */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.project-card:hover::before {
    transform: translateX(100%);
}

/* Glowing border on hover */
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.5),
        rgba(168, 85, 247, 0.3),
        rgba(236, 72, 153, 0.2),
        transparent
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    background: var(--card-hover-bg);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Highlighted Card Style */
.project-card.highlight {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 0 0 1px rgba(99, 102, 241, 0.1),
        0 10px 40px -10px rgba(99, 102, 241, 0.2);
}

.project-card.highlight:hover {
    border-color: rgba(99, 102, 241, 0.7);
    box-shadow: 
        0 0 0 1px rgba(99, 102, 241, 0.3),
        0 20px 50px -10px rgba(99, 102, 241, 0.3);
}

/* Efekt świecenia przy hover */
.project-card:hover .project-icon {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(99, 102, 241, 0.2);
}

/* Animacja tętna dla ikon - subtelniejsza */
.project-icon {
    width: 64px;
    height: 64px;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Animacja pulsowania ikony tylko na desktop */
@media (min-width: 769px) {
    .project-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        border-radius: 16px;
        background: inherit;
        transform: translate(-50%, -50%);
        z-index: -1;
        opacity: 0;
        animation: icon-pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }
}

@keyframes icon-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.project-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

/* Zawartość karty */
.project-content {
    position: relative;
    z-index: 1;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-description {
    color: rgba(160, 160, 160, 0.95);
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

/* Przycisk kontaktu - ulepszone efekty */
.contact-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.4),
        0 0 60px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    
    /* Wyłącz highlight na mobile */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

.contact-button:focus {
    outline: none;
}

.contact-button:active {
    outline: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 8px 32px rgba(99, 102, 241, 0.4),
            0 0 60px rgba(99, 102, 241, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 
            0 10px 40px rgba(99, 102, 241, 0.5),
            0 0 80px rgba(99, 102, 241, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
}

.contact-button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 
        0 16px 60px rgba(99, 102, 241, 0.6),
        0 0 120px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: none;
}

.contact-button svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Efekt świecenia dla przycisku przy pierwszym załadowaniu */
@keyframes glow-intro {
    0% {
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5),
                    0 0 60px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 10px 50px rgba(147, 51, 234, 0.9),
                    0 0 120px rgba(147, 51, 234, 0.7),
                    0 0 180px rgba(147, 51, 234, 0.5);
    }
    100% {
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5),
                    0 0 60px rgba(99, 102, 241, 0.3);
    }
}

.contact-button.intro {
    animation: glow-intro 2s ease-out, pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite 2s;
}

/* Modal kontaktowy */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.close-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

/* Formularz kontaktowy */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.875rem 1.125rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.2);
    background: rgba(10, 10, 10, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #818cf8 0%, #9333ea 100%);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Wiadomości - ulepszone style */
.message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.9rem;
    animation: fadeIn 0.4s ease, slideIn 0.4s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
    }
    to {
        transform: translateY(0);
    }
}

.message.success {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.message.error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

/* Animacje */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dodatkowe style dla lepszej czytelności */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance optimization - tylko desktop */
@media (min-width: 769px) and (hover: hover) {
    .project-card:hover,
    .contact-button:hover,
    .submit-button:hover {
        will-change: transform, box-shadow;
    }
}

/* Wyłącz ciężkie efekty dla słabszych urządzeń */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .background-animation::before,
    .background-animation::after {
        animation: none !important;
    }
}

/* Responsywność */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .projects-grid .project-card:nth-child(1),
    .projects-grid .project-card:nth-child(2),
    .projects-grid .project-card:nth-child(3),
    .projects-grid .project-card:nth-child(4),
    .projects-grid .project-card:nth-child(5),
    .projects-grid .project-card:nth-child(6),
    .projects-grid .project-card:nth-child(7),
    .projects-grid .project-card:nth-child(8),
    .projects-grid .project-card:nth-child(9),
    .projects-grid .project-card:nth-child(10) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .logo-title .letter {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .logo-title::after {
        animation: none;
        width: 50%;
    }
    
    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-grid .project-card:nth-child(1),
    .projects-grid .project-card:nth-child(2),
    .projects-grid .project-card:nth-child(3),
    .projects-grid .project-card:nth-child(4),
    .projects-grid .project-card:nth-child(5),
    .projects-grid .project-card:nth-child(6),
    .projects-grid .project-card:nth-child(7),
    .projects-grid .project-card:nth-child(8),
    .projects-grid .project-card:nth-child(9),
    .projects-grid .project-card:nth-child(10) {
        grid-column: span 1;
    }
    
    .project-card {
        padding: 1.75rem;
        background: rgba(15, 15, 20, 0.95) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(255, 255, 255, 0.08);
        transform: none !important;
    }
    
    /* Wyłącz ciężkie efekty hover na mobile */
    .project-card:hover {
        transform: none !important;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    
    .project-card::before,
    .project-card::after {
        display: none; /* Wyłącz overlay na mobile */
    }
    
    .contact-button {
        width: 60px;
        height: 60px;
        bottom: 1.5rem;
        right: 1.5rem;
        animation: none;
        -webkit-tap-highlight-color: transparent !important;
        transition: all 0.15s ease !important;
    }
    
    .contact-button:focus {
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* Efekt wciskania na mobile */
    .contact-button:active {
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
        transform: scale(0.92) !important;
        opacity: 0.85;
        box-shadow: 
            0 4px 16px rgba(99, 102, 241, 0.5),
            0 0 40px rgba(99, 102, 241, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    }
    
    .contact-button svg {
        width: 26px;
        height: 26px;
    }
    
    .modal-content {
        padding: 2rem;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(20, 20, 25, 0.98) !important;
    }
    
    /* Uproszczona siatka na mobile */
    .background-animation::before {
        transform: none;
        background-size: 40px 40px;
        opacity: 0.5;
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
        animation: none;
    }
    
    .background-animation::after {
        height: 200px;
    }
    
    /* Uproszczone animacje na mobile */
    .project-card,
    .project-icon,
    .project-name,
    .project-description {
        animation: none !important;
    }
    
    /* Szybsze przejścia na mobile */
    .project-card,
    .project-icon,
    .contact-button,
    .submit-button {
        transition-duration: 0.2s !important;
    }
    
    /* Wyłącz gradient dla nazw projektów na mobile */
    .project-name {
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
        color: var(--text-primary) !important;
    }
    
    .project-card:hover .project-name {
        background: none !important;
        color: var(--accent-hover) !important;
        transform: none;
    }
    
    .project-card:hover .project-description {
        transform: none;
    }
    
    .project-card:hover .project-icon {
        transform: none;
    }
}

/* Ulepszone glassmorphism - tylko desktop */
@media (min-width: 769px) {
    @supports (backdrop-filter: blur(10px)) {
        .modal-content {
            background: rgba(20, 20, 28, 0.85);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
    }
}

/* Dodatkowe subtelne mikroanimacje - tylko desktop */
@media (min-width: 769px) {
    .project-name {
        transition: all 0.3s ease;
        background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-primary) 100%);
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .project-card:hover .project-name {
        background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-cyan) 100%);
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        transform: translateX(3px);
    }
    
    /* Interaktywne litery w logo na desktop */
    .logo-title:hover .letter {
        animation: none;
    }
}

.project-description {
    transition: all 0.3s ease;
}

.project-card:hover .project-description {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(2px);
}

/* Subtelny efekt shimmer dla przycisków */
.submit-button::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;
}

.submit-button:hover::before {
    left: 100%;
}

/* Dodatkowe dekoracyjne efekty dla kart */
.project-card:nth-child(odd) {
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:nth-child(even) {
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Kolorowe akcenty dla różnych kart - tylko desktop */
@media (min-width: 769px) {
    .project-card:nth-child(1):hover {
        box-shadow: 
            0 20px 60px rgba(147, 51, 234, 0.25),
            0 0 60px rgba(147, 51, 234, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .project-card:nth-child(2):hover {
        box-shadow: 
            0 20px 60px rgba(0, 217, 255, 0.25),
            0 0 60px rgba(0, 217, 255, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .project-card:nth-child(3):hover {
        box-shadow: 
            0 20px 60px rgba(59, 130, 246, 0.25),
            0 0 60px rgba(59, 130, 246, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .project-card:nth-child(4):hover {
        box-shadow: 
            0 20px 60px rgba(236, 72, 153, 0.25),
            0 0 60px rgba(236, 72, 153, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .project-card:nth-child(5):hover {
        box-shadow: 
            0 20px 60px rgba(16, 185, 129, 0.25),
            0 0 60px rgba(16, 185, 129, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .project-card:nth-child(6):hover {
        box-shadow: 
            0 20px 60px rgba(219, 39, 119, 0.25),
            0 0 60px rgba(219, 39, 119, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .project-card:nth-child(7):hover {
        box-shadow: 
            0 20px 60px rgba(20, 184, 166, 0.25),
            0 0 60px rgba(20, 184, 166, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .project-card:nth-child(8):hover {
        box-shadow: 
            0 20px 60px rgba(75, 83, 32, 0.3),
            0 0 60px rgba(120, 130, 60, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .project-card:nth-child(9):hover {
        box-shadow:
            0 20px 60px rgba(245, 158, 11, 0.3),
            0 0 60px rgba(251, 191, 36, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .project-card:nth-child(10):hover {
        box-shadow:
            0 20px 60px rgba(67, 160, 71, 0.3),
            0 0 60px rgba(67, 160, 71, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Dodatkowe efekty dla formularza */
.form-group {
    position: relative;
}

.form-group label {
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    color: var(--accent-hover);
}