* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #FFA500;        
    --secondary-color: #FFC300;      
    --accent-color: #FFD166;         
    --dark-bg: #1E1E1E;              
    --darker-bg: #363636;            
    --card-bg: #282828;              
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --border-radius: 16px;
    --transition-speed: 0.4s;
    --glass-bg: rgba(40, 40, 40, 0.7);
    --glow-strength: 15px;
    --neuro-shadow: 5px 5px 10px rgba(0,0,0,0.3), -5px -5px 10px rgba(255,255,255,0.05);
    --background-image: url('./background.png');
    --background-size: cover;
    --background-opacity: 0.85;
}

body {
    font-family: 'Space Grotesk', 'Outfit', 'Inter', sans-serif;
    background: linear-gradient(135deg, 
                rgba(30, 30, 30, var(--background-opacity)), 
                rgba(54, 54, 54, var(--background-opacity))),
                var(--background-image);
    background-size: var(--background-size);
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 4px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: loader-pulse 1.4s infinite cubic-bezier(.4,0,.6,1);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 32px 0 #FFD16633;
}

.loader-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.loader h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0;
}

@keyframes loader-pulse {
    0% { transform: scale(1); box-shadow: 0 0 32px 0 #FFD16633; }
    50% { transform: scale(1.13); box-shadow: 0 0 64px 0 #FFD16677; }
    100% { transform: scale(1); box-shadow: 0 0 32px 0 #FFD16633; }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 165, 0, 0.1);
}

.sidebar-toggle {
    display: none;
}

.sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    width: 160px;
}

.sidebar-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 2px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.sidebar-avatar:hover {
    transform: scale(1.1);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-nav {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    list-style: none;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: 0 auto;
}

.sidebar-nav li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    padding: 0.35rem 0.9rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 35px;
}

.sidebar-nav li a i {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.sidebar-nav li a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 165, 0, 0.2);
}

.sidebar-nav li a.active {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.2);
    color: var(--primary-color);
}

.sidebar-nav li a.active i {
    opacity: 1;
}


nav {
    position: fixed;
    top: 0;
    left: 80px; 
    width: calc(100% - 80px);
    padding: 1.2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: transform var(--transition-speed) ease;
}

.nav-avatar:hover {
    transform: scale(1.1);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all var(--transition-speed) ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after {
    width: 100%;
}


header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.hero {
    text-align: center;
    max-width: 900px;
    padding: 1.5rem;
    position: relative;
    margin: 70px auto 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.hero::before {
    display: none;
}

.hero-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 3px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-avatar:hover {
    transform: scale(1.1);
}

.hero-content {
    text-align: left;
    max-width: 550px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    position: relative;
    letter-spacing: -2px;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.9;
    text-align: left;
}

.hero-description {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: 550px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    margin-left: 0;
    margin-right: auto;
    opacity: 0.8;
    text-align: left;
}


.portfolio {
    padding: 8rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-card {
    background: linear-gradient(135deg, #232526 0%, #444 100%);
    border-radius: 32px;
    box-shadow: 0 6px 32px 0 rgba(0,0,0,0.18), 0 1.5px 8px 0 #4448;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.4,1.6,.6,1), box-shadow 0.35s cubic-bezier(.4,1.6,.6,1), filter 0.35s cubic-bezier(.4,1.6,.6,1);
    padding: 0 0 32px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1.5px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(6px);
}

.project-card:hover {
    transform: scale(1.035) translateY(-4px);
    box-shadow: 0 12px 48px 0 #8886, 0 2px 16px 0 #0003;
    filter: brightness(1.06) saturate(1.04);
}

.project-image {
    width: 100%;
    height: 210px;
    background: #232526;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 22px 22px;
    margin-bottom: 0.5rem;
}

.project-image img {
    width: 80%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(.4,1.6,.6,1);
}

.project-card:hover .project-image img {
    transform: none;
    box-shadow: none;
}

.project-content {
    padding: 1.5rem 2rem 0 2rem;
    text-align: center;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
}

.project-desc {
    color: #d0d0d0;
    font-size: 1.04rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.04rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #444 0%, #888 100%);
    border: none;
    border-radius: 18px;
    padding: 0.7rem 2.2rem;
    text-decoration: none;
    box-shadow: 0 2px 12px 0 #4446;
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
    position: relative;
}

.project-link i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.project-link:hover {
    background: linear-gradient(90deg, #888 0%, #444 100%);
    color: #fff;
    box-shadow: 0 4px 24px 0 #8885;
    transform: scale(1.06) translateY(-2px);
}

.project-link:hover i {
    transform: translateX(4px) scale(1.1);
}

@media (max-width: 900px) {
    .projects {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 0.5rem;
    }
    .project-content {
        padding: 1.2rem 0.5rem 0 0.5rem;
    }
}


.about {
    padding: 6rem 2rem;
    background: transparent;
    position: relative;
}

.about::before {
    display: none;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text {
    color: var(--text-secondary);
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 1s ease;
    opacity: 0.7;
}


.contact {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    border: 1px solid rgba(100, 100, 100, 0.13);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 #4444;
    opacity: 0.85;
    transition: color 0.4s, box-shadow 0.4s, transform 0.4s, background 0.4s;
}

.social-link:hover {
    color: #FFD166;
    opacity: 1;
    transform: scale(1.13);
    box-shadow: 0 12px 32px 0 #FFD16633, 0 2px 8px 0 #4446;
    background: #232526;
}

.social-link i {
    font-size: 2rem;
    color: #b0b0b0;
    opacity: 0.8;
    transition: all 0.4s;
}

.social-link:hover i {
    color: #FFD166;
    opacity: 1;
    transform: rotate(18deg) scale(1.18);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}


footer {
    padding: 1.2rem;
    text-align: center;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.made-with {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.made-with i {
    color: var(--primary-color);
    font-size: 0.9rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


@media (max-width: 768px) {
    .sidebar {
        height: auto;
        flex-direction: column;
        padding: 1rem;
        background: rgba(30, 30, 30, 0.3);
    }

    .sidebar-header {
        width: 100%;
        justify-content: space-between;
    }

    .sidebar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        display: none;
    }

    .sidebar.active .sidebar-nav {
        display: flex;
    }

    .sidebar-nav li a {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .sidebar-toggle {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-avatar {
        width: 180px;
        height: 180px;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-header {
        text-align: center;
        padding: 0 1.5rem;
    }

    .project-content {
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .about-text {
        text-align: center;
    }

    .skills {
        max-width: 400px;
        margin: 0 auto;
    }

    .projects {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2rem;
    }

    .project {
        max-width: 100%;
    }

    .project-image {
        height: 200px;
    }

    .social-media {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .social-link {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .sidebar-avatar {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 0.8rem;
    }

    .sidebar-avatar {
        width: 40px;
        height: 40px;
    }

    .sidebar-title {
        font-size: 1.5rem;
    }

    .hero {
        margin-top: 160px;
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .project-image {
        height: 180px;
    }

    .project h3 {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .hero-avatar {
        width: 150px;
        height: 150px;
    }

    .contact-content {
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
        padding: 0 4px;
    }
    .contact-form {
        padding: 18px 6px 18px 6px;
        max-width: 100vw;
        min-width: 0;
        border-radius: 14px;
        box-shadow: 0 2px 12px 0 #0003;
    }
    .form-row {
        flex-direction: column;
        gap: 8px;
    }
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 1.05rem;
        padding: 11px 10px;
        border-radius: 8px;
    }
    .form-bottom-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .send-btn {
        width: 100%;
        padding: 12px 0;
        font-size: 1.05rem;
    }
    .contact-cards {
        flex-direction: column;
        gap: 10px;
        max-width: 100vw;
        min-width: 0;
    }
    .contact-card {
        padding: 14px 8px 14px 8px;
        border-radius: 12px;
        gap: 10px;
    }
    .card-icon {
        font-size: 1.5rem;
        width: 38px;
        height: 38px;
        margin-right: 4px;
    }
    .card-content h3 {
        font-size: 1.01rem;
    }
    .card-content p {
        font-size: 0.97rem;
    }
    .card-btn {
        font-size: 0.97rem;
        padding: 7px 10px;
        border-radius: 7px;
    }
}


@media (max-width: 360px) {
    .hero {
        margin-top: 140px;
    }

    .sidebar-nav li a {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}


.scroll-down,
.scroll-down span,
.scroll-down:hover,
.arrow {
    display: none;
}

@keyframes bounce {
    0%, 100% { transform: none; }
    50% { transform: none; }
}

.top-navbar {
    width: 100%;
    height: 56px;
    background: rgba(20, 20, 20, 0.95);
    display: flex;
    align-items: center;
    padding: 0 32px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.navbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    background: #222;
}

.navbar-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.main-navbar {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 700px;
    max-width: 99vw;
    display: flex;
    gap: 40px;
    background: rgba(30, 30, 30, 0.93);
    border-radius: 28px;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.13);
    padding: 10px 18px;
    z-index: 2010;
    justify-content: space-between;
    align-items: center;
    border: 1.5px solid rgba(255,255,255,0.10);
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: 68px;
}

.main-navbar .nav-btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #e0e0e0;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.15rem;
    font-family: inherit;
    font-weight: 600;
    padding: 12px 0;
    border-radius: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    z-index: 1;
}

.main-navbar .nav-btn i {
    font-size: 1.5rem;
}

.main-navbar .nav-btn.active,
.main-navbar .nav-btn:hover {
    color: #fff;
}

.main-navbar .nav-highlight {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 0;
    background: linear-gradient(90deg, #444 0%, #888 100%);
    opacity: 0;
    border-radius: 16px;
    z-index: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    transition: left 0.45s cubic-bezier(.4,1,.6,1), width 0.45s cubic-bezier(.4,1,.6,1), opacity 0.3s ease;
    pointer-events: none;
}

@media (max-width: 600px) {
    .main-navbar {
        top: 52px;
        width: 99vw;
        min-width: unset;
        padding: 6px 2px;
        border-radius: 16px;
        height: 48px;
        gap: 8px;
    }
    .main-navbar .nav-btn {
        font-size: 0.95rem;
        padding: 8px 0;
    }
    .main-navbar .nav-btn i {
        font-size: 1.1rem;
    }
    .main-navbar .nav-highlight {
        top: 2px;
        bottom: 2px;
        border-radius: 8px;
    }
}

/* Ukryj stary sidebar jeśli jeszcze jest */
.sidebar { display: none !important; }

.realizations {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.realization-card {
    background: linear-gradient(120deg, #232526 40%, #2f2f2f 100%);
    border-radius: 14px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.13);
    padding: 32px;
    max-width: 900px;
    min-height: 200px;
    margin: 0 auto 40px auto;
    border: none;
    gap: 0;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: box-shadow 0.35s cubic-bezier(.4,1.6,.6,1), transform 0.35s cubic-bezier(.4,1.6,.6,1), filter 0.35s cubic-bezier(.4,1.6,.6,1), background 0.35s cubic-bezier(.4,1.6,.6,1);
}
.realization-content {
    flex: 1 1 0;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
}
.realization-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #FFD166 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.realization-author {
    background: linear-gradient(90deg, #FFA500 0%, #FFD166 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.realization-meta { margin-bottom: 6px; }

/* Animacja kafelka — lekki podskok i rozjaśnienie */
.realization-card {
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s cubic-bezier(.2,.8,.2,1), filter 0.28s cubic-bezier(.2,.8,.2,1);
}
.realization-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 14px 48px 0 rgba(0,0,0,0.28), 0 2px 12px 0 rgba(255,209,102,0.18);
    filter: brightness(1.06);
}
.realization-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.95;
    font-family: 'Inter', sans-serif;
}
.realization-img {
    flex: 0 0 340px;
    max-width: 340px;
    height: 240px;
    margin-left: 40px;
    background: #232526;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border-radius: 10px;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.25s ease;
    position: relative;
    box-shadow: 0 2px 12px 0 #0003;
}
.realization-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: none;
}
.realization-img:hover img {
    transform: none;
    box-shadow: none;
    z-index: auto;
}
/* Modal podglądu zdjęcia */
.realization-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20,20,20,0.92);
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.25s;
}
.realization-modal.active {
    display: flex;
}
.realization-modal-img-wrap {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.realization-modal img {
    max-width: 98vw;
    max-height: 92vh;
    border-radius: 18px;
    box-shadow: 0 8px 48px 0 #000a;
    background: #232526;
    animation: zoomInModal 0.25s;
    display: block;
    margin: 0 auto;
}
.realization-modal .close-modal {
    position: absolute;
    top: -38px;
    right: -18px;
    font-size: 3.2rem;
    color: #FFD166;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
    padding: 0 8px;
    line-height: 1;
    animation: zoomInModal 0.25s;
    animation-delay: 0.05s;
}
.realization-modal .close-modal:hover {
    color: #fff;
}
@media (max-width: 700px) {
    .realization-card {
        flex-direction: column;
        padding: 12px;
        min-height: unset;
        max-width: 99vw;
    }
    .realization-content {
        padding-right: 0;
        padding-bottom: 12px;
    }
    .realization-img {
        width: 100%;
        max-width: 100%;
        height: 180px;
        border-radius: 10px;
    }
    .realization-img img {
        border-radius: 10px;
    }
    .realization-modal .close-modal {
        left: auto;
        right: 12px;
        top: 12px;
        font-size: 2.2rem;
        transform: none;
        animation: none;
    }
}

.custom-footer {
    background: linear-gradient(135deg, #232526 0%, #282828 100%);
    border-radius: 36px 36px 0 0;
    padding: 36px 0 18px 0;
    margin-top: 48px;
    color: #e0e0e0;
    box-shadow: 0 -2px 24px 0 #0005;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-socials {
    display: flex;
    gap: 24px;
}

.footer-socials a {
    color: #e0e0e0;
    font-size: 2.1rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
    color: #FFA500;
    transform: scale(1.18) rotate(-6deg);
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: #FFD166;
    font-size: 1.08rem;
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copy {
    font-size: 1rem;
    color: #aaa;
    margin-top: 8px;
}

@media (max-width: 800px) {
    .footer-content {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }
}

.simple-footer {
    background: #232526;
    border-radius: 32px 32px 0 0;
    margin-top: 48px;
    padding: 0 0 0 0;
    color: #e0e0e0;
    box-shadow: 0 -2px 16px 0 #0003;
}

.simple-footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 0 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #e0e0e0;
    font-size: 2rem;
    transition: color 0.2s, transform 0.2s;
}

.footer-socials a:hover {
    color: #FFD166;
    transform: scale(1.13);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: #FFD166;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    color: #aaa;
    font-size: 1rem;
    padding: 18px 0 12px 0;
}

@media (max-width: 700px) {
    .simple-footer-content {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
        padding: 24px 8px 0 8px;
    }
    .footer-links {
        gap: 10px;
    }
}

.pretty-footer {
    background: linear-gradient(120deg, #232526 0%, #2a5298 100%);
    border-radius: 40px 40px 0 0;
    margin-top: 56px;
    box-shadow: 0 -2px 24px 0 #0003;
    color: #e0e0e0;
}

.pretty-footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 32px 0 32px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 12px 0 #0002;
    background: #232526;
}

.footer-socials {
    display: flex;
    gap: 28px;
}

.footer-socials a {
    color: #e0e0e0;
    font-size: 2.2rem;
    transition: color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.footer-socials a:hover {
    color: #FFD166;
    transform: scale(1.18);
    box-shadow: 0 4px 16px 0 #2a5298cc;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: #FFD166;
    font-size: 1.08rem;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    color: #aaa;
    font-size: 1rem;
    padding: 18px 0 12px 0;
}

@media (max-width: 800px) {
    .pretty-footer-content {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
        padding: 24px 8px 0 8px;
    }
    .footer-logo img {
        width: 48px;
        height: 48px;
    }
}

/* --- Kontakt Redesign --- */
.contact-content {
    display: flex;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
    justify-content: center;
    margin-top: 48px;
}
.contact-form {
    flex: 1 1 0;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.13);
    padding: 56px 48px 44px 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 320px;
    max-width: 600px;
    border: 1.5px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(6px);
    text-align: left;
    justify-content: center;
}
.form-row {
    display: flex;
    gap: 16px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    background: #232526;
    border: 1.5px solid rgba(255,255,255,0.08);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    width: 100%;
    resize: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 0 0 2px #ffa50033;
}
.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23FFD166" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}
.contact-form textarea {
    min-height: 90px;
    max-height: 200px;
}
.form-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 12px;
}
.form-info {
    color: var(--text-secondary);
    font-size: 0.98rem;
    opacity: 0.7;
}
.send-btn {
    background: linear-gradient(90deg, #444 0%, #FFD166 100%);
    color: #181818;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 13px 32px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 12px 0 #FFD16633;
    transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.send-btn:hover {
    background: linear-gradient(90deg, #FFD166 0%, #FFA500 100%);
    color: #232526;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px 0 #FFD16655;
}

.contact-cards {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 280px;
    max-width: 370px;
    justify-content: center;
}
.contact-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #232526 0%, #282828 100%);
    border-radius: 20px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.13);
    padding: 24px 24px 20px 24px;
    gap: 22px;
    border: 1.5px solid rgba(255,255,255,0.10);
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}
.contact-card:hover {
    box-shadow: 0 8px 32px 0 #FFD16633, 0 2px 8px 0 #4446;
    background: linear-gradient(135deg, #282828 0%, #363636 100%);
    transform: translateY(-3px) scale(1.025);
}
.card-icon {
    font-size: 2.2rem;
    color: #FFD166;
    background: #232526;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px 0 #FFD16622;
    flex-shrink: 0;
    margin-right: 8px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.contact-card:hover .card-icon {
    background: #FFD166;
    color: #232526;
    transform: scale(1.12) rotate(-6deg);
}
.card-content h3 {
    margin: 0 0 4px 0;
    font-size: 1.18rem;
    color: var(--primary-color);
    font-weight: 700;
}
.card-content p {
    margin: 0 0 8px 0;
    color: var(--text-secondary);
    font-size: 1.01rem;
}
.card-btn {
    display: inline-block;
    background: linear-gradient(90deg, #FFD166 0%, #FFA500 100%);
    color: #232526;
    font-weight: 700;
    border-radius: 10px;
    padding: 8px 22px;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 4px;
    box-shadow: 0 2px 12px 0 #FFD16633;
    transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
    cursor: pointer;
}
.card-btn:hover:not(.disabled) {
    background: linear-gradient(90deg, #FFA500 0%, #FFD166 100%);
    color: #181818;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 24px 0 #FFD16655;
}
.card-btn.disabled {
    background: #232526;
    color: #FFD166;
    cursor: default;
    opacity: 0.7;
    pointer-events: none;
    box-shadow: none;
}

@media (max-width: 1000px) {
    .contact-content {
        flex-direction: column;
        gap: 32px;
        align-items: stretch;
    }
    .contact-form, .contact-cards {
        max-width: 100%;
        min-width: 0;
    }
    .contact-cards {
        flex-direction: row;
        gap: 18px;
        justify-content: space-between;
    }
    .contact-card {
        flex: 1 1 0;
        min-width: 0;
    }
}
@media (max-width: 700px) {
    .contact-content {
        flex-direction: column;
        gap: 24px;
    }
    .contact-cards {
        flex-direction: column;
        gap: 18px;
    }
}
/* --- Koniec kontakt redesign --- */

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomInModal {
    from { transform: scale(0.85); opacity: 0.7; }
    to { transform: scale(1); opacity: 1; }
}

.realization-card {
    transform-style: preserve-3d;
    perspective: 800px;
    transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
/* Wyraźniejsza animacja na urządzeniach z hoverem (mysz/trackpad) */
@media (hover: hover) {
    .realization-card:hover {
        transform: translateY(-10px) scale(1.06);
        box-shadow: 0 22px 64px 0 rgba(0,0,0,0.45), 0 6px 18px 0 rgba(255,209,102,0.22);
        filter: brightness(1.1) saturate(1.08);
        background: linear-gradient(120deg, #2b2b2b 30%, #3a3a3a 100%);
    }
}
/* Na urządzeniach dotykowych unikaj agresywnych hoverów; lekkie uniesienie przy tapnięciu */
@media (hover: none) {
    .realization-card:hover { transform: none; filter: none; }
    .realization-card:active { transform: translateY(-6px) scale(1.03); }
}

/* Dostosowanie nagłówków pod małe ekrany: clamp dla h2 sekcji */
.section-header h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

/* Tablet: ciaśniejsze kafelki realizacji */
@media (max-width: 1000px) {
    .realization-card { padding: 18px; }
    .realization-content { padding-right: 16px; }
    .realization-img { margin-left: 16px; height: 200px; }
}

/* Preferencje zmniejszonego ruchu: wyłącz animacje i smooth scroll */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.realization-card:hover .realization-img { transform: none; }

/* Copy toast for Discord */
.contact-card { position: relative; }
.copy-toast {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 209, 102, 0.15);
    border: 1px solid rgba(255, 209, 102, 0.35);
    color: #FFD166;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px #0006;
    opacity: 0;
    transform: translateY(-6px);
    animation: toastIn 0.2s forwards;
}
@keyframes toastIn {
    to { opacity: 1; transform: none; }
}

.contact-link {
    color: #FFD166;
    text-decoration: none;
}
.contact-link:hover {
    text-decoration: underline;
    color: #fff;
}
.btn-link {
    background: none;
    border: none;
    color: #FFD166;
    font: inherit;
    cursor: pointer;
    padding: 0;
}
.btn-link:hover { color: #fff; text-decoration: underline; }

.pulse-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}
.pulse-loader span {
    display: block;
    width: 14px;
    height: 14px;
    background: linear-gradient(90deg, #FFD166 0%, #FFA500 100%);
    border-radius: 50%;
    opacity: 0.7;
    animation: pulseDot 1.1s infinite cubic-bezier(.4,0,.6,1);
}
.pulse-loader span:nth-child(2) {
    animation-delay: 0.2s;
}
.pulse-loader span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.35); opacity: 1; }
}

.realization-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 8px 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    opacity: 0.9;
}
.realization-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.12);
    border: 1px solid rgba(255, 209, 102, 0.25);
    color: #FFD166;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.realization-dot { opacity: 0.5; }
.realization-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.realization-tags span {
    background: #232526;
    border: 1px solid rgba(255,255,255,0.08);
    color: #d6d6d6;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.86rem;
    line-height: 1;
}
