/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(var(--surface-rgb), 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-rgb), 0.5);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(var(--primary-rgb), 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.2);
    visibility: hidden;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: rgba(var(--accent-rgb), 0.9);
    box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.3);
}

/* About Section */
.about {
    padding: 8rem 2rem;
    position: relative;
    background: rgba(var(--surface-rgb), 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.skills-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.skills-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s;
}

.skill-tag i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.2);
}

/* Footer */
footer {
    background: rgba(var(--surface-rgb), 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Light Theme */
:root[data-theme="light"] {
    --primary-rgb: 79, 70, 229;
    --accent-rgb: 139, 92, 246;
    --background-rgb: 255, 255, 255;
    --surface-rgb: 243, 244, 246;
    --text-rgb: 17, 24, 39;
}

/* Responsywność */
@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .about {
        padding: 4rem 1rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .skills {
        gap: 0.5rem;
    }

    .skill-tag {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    footer {
        padding: 1.5rem;
    }
}

:root {
    --primary-rgb: 99, 102, 241;
    --accent-rgb: 168, 85, 247;
    --background-rgb: 17, 17, 17;
    --surface-rgb: 30, 30, 30;
    --text-rgb: 255, 255, 255;
    
    --primary-color: rgb(var(--primary-rgb));
    --accent-color: rgb(var(--accent-rgb));
    --background-color: rgb(var(--background-rgb));
    --surface-color: rgb(var(--surface-rgb));
    --text-color: rgb(var(--text-rgb));
    --text-secondary: rgba(var(--text-rgb), 0.7);
    --card-bg: rgba(var(--surface-rgb), 0.8);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    position: relative;
}

/* Animowane tło */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(var(--primary-rgb), 0.15), transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.1), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(var(--primary-rgb), 0.15), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(var(--accent-rgb), 0.1), transparent 50%);
    z-index: -2;
    animation: backgroundMove 20s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.5;
}

.page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

/* Nawigacja */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(var(--background-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    transform: rotate(180deg);
}

/* Hamburger menu - ukryte na desktop */
.hamburger {
    display: none;
}

/* Media queries dla mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }

    .hamburger span {
        width: 100%;
        height: 2px;
        background: var(--text-color);
        transition: all 0.3s ease;
    }

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

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(var(--background-rgb), 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* Light Theme */
:root[data-theme="light"] {
    --primary-rgb: 79, 70, 229;
    --accent-rgb: 139, 92, 246;
    --background-rgb: 255, 255, 255;
    --surface-rgb: 243, 244, 246;
    --text-rgb: 17, 24, 39;
}

[data-theme="light"] .nav-link {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .theme-toggle:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(var(--accent-rgb), 0.15) 0%, transparent 30%);
    filter: blur(60px);
    animation: heroGlow 10s ease-in-out infinite alternate;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.hero-logo-container {
    flex-shrink: 0;
    position: relative;
}

.hero-logo-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    animation: logoFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 8px 30px rgba(var(--primary-rgb), 0.3));
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(var(--primary-rgb), 0.2) 0%,
        rgba(var(--primary-rgb), 0) 70%
    );
    filter: blur(20px);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 1;
}

.hero-text {
    text-align: left;
    max-width: 500px;
}

.hero-title-wrapper {
    margin-bottom: 1.5rem;
}

.hero-title-wrapper h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin: 0;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--text-secondary);
    margin: 1rem 0 2rem;
    opacity: 0.8;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s;
}

.stat:hover {
    transform: translateY(-2px);
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.stat i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Przyciski CTA */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
}

.cta-button.secondary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--text-color);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.2);
}

/* Sekcje */
section {
    padding: 8rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* Projekty */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all 0.3s;
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(var(--background-rgb), 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.project-content {
    padding: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(var(--surface-rgb), 0.5);
    transition: all 0.3s;
}

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

/* Kontakt */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 15px;
}

.social-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-info {
    display: flex;
    flex-direction: column;
}

.social-name {
    font-weight: 600;
}

.social-username {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.2);
}

/* Download Section */
.download-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.download-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(var(--surface-rgb), 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 1s ease-out;
}

.download-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.download-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    background: rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.2);
}

.back-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-5px);
}

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

/* Responsywność dla strony download */
@media (max-width: 768px) {
    .download-content {
        padding: 2rem;
    }

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

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

    .back-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 6rem 1rem;
        text-align: center;
    }

    .hero-main {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-logo-wrapper {
        width: 200px;
        height: 200px;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    section {
        padding: 4rem 1rem;
    }

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

    .social-links {
        grid-template-columns: 1fr;
    }
}

/* Animacje */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

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

@keyframes backgroundMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100px);
    }
}

@keyframes heroGlow {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Nowoczesne tło */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
}

.background-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, transparent 0%, rgba(var(--background-rgb), 1) 100%),
                linear-gradient(45deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%),
                linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, transparent 70%);
    animation: rotate 60s linear infinite;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.gradient-sphere {
    position: fixed;
    width: 50vmax;
    height: 50vmax;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
}

.sphere-1 {
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 1), transparent 70%);
    top: -20%;
    right: -20%;
    animation: sphereFloat 20s ease-in-out infinite;
}

.sphere-2 {
    background: radial-gradient(circle at center, rgba(var(--accent-rgb), 1), transparent 70%);
    bottom: -20%;
    left: -20%;
    animation: sphereFloat 25s ease-in-out infinite reverse;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes sphereFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(5%, 5%);
    }
    50% {
        transform: translate(-5%, 10%);
    }
    75% {
        transform: translate(10%, -5%);
    }
}

/* Responsywność */
@media (max-width: 1024px) {
    .nav {
        padding: 0 1.5rem;
    }

    .hero-main {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .hero-logo-wrapper {
        width: 250px;
        height: 250px;
    }

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

    .hero-stats {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(var(--background-rgb), 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: block;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        position: relative;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--text-color);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.3s ease;
    }

    .hamburger span:nth-child(1) { top: 14px; }
    .hamburger span:nth-child(2) { top: 22px; }
    .hamburger span:nth-child(3) { top: 30px; }

    .hamburger.active span:nth-child(1) {
        transform: translate(-50%, 8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translate(-50%, -8px) rotate(-45deg);
    }

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

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

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

    .hero-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .stat {
        justify-content: center;
    }

    .about {
        padding: 4rem 1rem;
    }

    .skills {
        justify-content: center;
    }

    .contact-form {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-wrapper {
        width: 200px;
        height: 200px;
    }

    .project-card {
        min-height: 250px;
    }

    .nav {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero {
        padding: 6rem 1rem;
    }
}
