:root {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --logo-white: #ffffff;
    --logo-red: #ef4444;
    /* Vivid red for Poland symbol */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Dynamiczne tło */
.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(239, 68, 68, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 20s infinite linear;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Styles */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Header & Nav */
header {
    padding: 20px 0;
    position: sticky;
    top: 10px;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    /* Usunąłem gradient, teraz kolory są w spanach */
}

.logo-top {
    color: var(--logo-white);
}

.logo-soft {
    color: var(--logo-red);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--logo-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Language Switcher */
.lang-switch {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--logo-white);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(to right, var(--logo-white), #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 36px;
    border-radius: 50px;
    /* bardziej zaokrąglone */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn.primary {
    background: var(--logo-white);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn.primary:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.btn.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--logo-white);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--logo-white);
}

/* Sections */
.section {
    margin: 100px 0;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--logo-red);
    margin: 10px auto 0;
    border-radius: 2px;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #cbd5e1;
}

/* Projekty */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--logo-red);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.1);
}

.project-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--logo-white);
}

.project-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Contact */
.contact-container {
    text-align: center;
}

.contact-email {
    font-size: 1.5rem;
    color: var(--logo-white);
    margin-bottom: 2rem;
    display: block;
    font-weight: 700;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 0;
    color: #64748b;
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
    position: relative;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--logo-white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
        gap: 20px;
    }
}