 /* SASS Variables (CSS Custom Properties) */
        :root {
            --primary-color: #4f46e5;
            --secondary-color: #06b6d4;
            --accent-color: #f59e0b;
            --dark-color: #1f2937;
            --light-color: #f8fafc;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }

        /* Global Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--text-primary);
            overflow-x: hidden;
        }

        /* BEM Navigation */
        .nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            padding: 1rem 0;
            transition: all 0.3s ease;
        }

        .nav--scrolled {
            background: rgba(255, 255, 255, 0.98);
            box-shadow: var(--shadow-light);
        }

        .nav__container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav__logo {
            font-size: 1.5rem;
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav__menu {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav__link {
            text-decoration: none;
            color: var(--text-primary);
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav__link:hover {
            color: var(--primary-color);
        }

        .nav__link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 50%;
            background: var(--gradient-primary);
            transition: all 0.3s ease;
        }

        .nav__link:hover::after {
            width: 100%;
            left: 0;
        }

        .nav__toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
        }

        .nav__toggle span {
            width: 25px;
            height: 3px;
            background: var(--primary-color);
            margin: 3px 0;
            transition: 0.3s;
        }

        /* BEM Hero Section */
        .hero {
            min-height: 100vh;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="white" stop-opacity="0.1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center;
            background-size: cover;
            opacity: 0.3;
        }

        .hero__container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .hero__content {
            color: white;
        }

        .hero__greeting {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 1rem;
            animation: slideInLeft 1s ease-out;
        }

        .hero__title {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            margin-bottom: 1rem;
            animation: slideInLeft 1s ease-out 0.2s both;
        }

        .hero__subtitle {
            font-size: 1.5rem;
            opacity: 0.9;
            margin-bottom: 2rem;
            animation: slideInLeft 1s ease-out 0.4s both;
        }

        .hero__description {
            font-size: 1.1rem;
            line-height: 1.8;
            opacity: 0.8;
            margin-bottom: 3rem;
            animation: slideInLeft 1s ease-out 0.6s both;
        }

        .hero__cta {
            display: flex;
            gap: 1rem;
            animation: slideInLeft 1s ease-out 0.8s both;
        }

        .hero__image {
            position: relative;
            animation: slideInRight 1s ease-out 0.5s both;
        }

        .hero__photo {
            width: 300px;
            height: 300px;
            border-radius: 50%;
            object-fit: cover;
            border: 6px solid rgba(255, 255, 255, 0.2);
            box-shadow: var(--shadow-heavy);
            transition: transform 0.3s ease;
        }

        .hero__photo:hover {
            transform: scale(1.05);
        }

        /* BEM Button Component */
        .btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn--primary {
            background: white;
            color: var(--primary-color);
            box-shadow: var(--shadow-medium);
        }

        .btn--primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-heavy);
        }

        .btn--secondary {
            background: transparent;
            color: white;
            border: 2px solid white;
        }

        .btn--secondary:hover {
            background: white;
            color: var(--primary-color);
        }

        /* BEM Section */
        .section {
            padding: 5rem 0;
        }

        .section--light {
            background: var(--light-color);
        }

        .section__container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .section__header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section__title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            background: var(--text-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .section__subtitle {
            font-size: 1.2rem;
            color: var(--text-primary);
            max-width: 600px;
            margin: 0 auto;
        }

        /* BEM Experience Cards */
        .experience {
            display: grid;
            gap: 2rem;
        }

        .experience__card {
            background: white;
            padding: 2rem;
            border-radius: 20px;
            box-shadow: var(--shadow-light);
            transition: all 0.3s ease;
            border-left: 4px solid var(--primary-color);
        }

        .experience__card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-medium);
        }

        .experience__header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
        }

        .experience__title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .experience__company {
            font-size: 1.2rem;
            color: var(--primary-color);
            font-weight: 500;
        }

        .experience__period {
            background: var(--gradient-accent);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .experience__description {
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: 1.5rem;
        }

        .experience__achievements {
            list-style: none;
        }

        .experience__achievement {
            margin-bottom: 0.5rem;
            padding-left: 1.5rem;
            position: relative;
            color: var(--text-secondary);
        }

        .experience__achievement::before {
            content: '✦';
            position: absolute;
            left: 0;
            color: var(--accent-color);
        }

        /* BEM Skills Grid */
        .skills {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .skills__category {
            background: white;
            padding: 2rem;
            border-radius: 20px;
            box-shadow: var(--shadow-light);
            transition: all 0.3s ease;
        }

        .skills__category:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-medium);
        }

        .skills__title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .skills__icon {
            font-size: 1.5rem;
            color: var(--primary-color);
        }

        .skills__list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .skills__item {
            background: var(--gradient-primary);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
        }


                /* BEM Competences Section */
        .competences {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .competences__card {
            background: white;
            padding: 2.5rem;
            border-radius: 20px;
            box-shadow: var(--shadow-light);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            border-top: 4px solid var(--primary-color);
        }

        .competences__card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-heavy);
        }

        .competences__card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--gradient-primary);
            transition: height 0.3s ease;
        }

        .competences__card:hover::before {
            height: 8px;
        }

        .competences__icon {
            width: 80px;
            height: 80px;
            background: var(--gradient-primary);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            transition: all 0.3s ease;
        }

        .competences__icon i {
            font-size: 2rem;
            color: white;
        }

        .competences__card:hover .competences__icon {
            transform: scale(1.1) rotate(5deg);
        }

        .competences__title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 1rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .competences__description {
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 2rem;
            font-size: 1.05rem;
        }

        .competences__skills {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        .competences__skill {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            color: var(--text-primary);
            padding: 0.6rem 1.2rem;
            border-radius: 25px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            border: 1px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .competences__skill::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--gradient-primary);
            transition: all 0.3s ease;
            z-index: -1;
        }

        .competences__skill:hover {
            color: white;
            transform: translateY(-2px);
            box-shadow: var(--shadow-medium);
        }

        .competences__skill:hover::before {
            left: 0;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .competences {
                grid-template-columns: 1fr;
            }
            
            .competences__card {
                padding: 2rem;
            }
            
            .competences__icon {
                width: 60px;
                height: 60px;
            }
            
            .competences__icon i {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .competences__card {
                padding: 1.5rem;
            }
            
            .competences__title {
                font-size: 1.3rem;
            }
        }

        
        /* BEM Contact Section */
        .contact {
            background: var(--gradient-secondary);
            color: white;
        }

        .contact__grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .contact__info {
            display: grid;
            gap: 2rem;
        }

        .contact__item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .contact__item:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(10px);
        }

        .contact__icon {
            font-size: 1.5rem;
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .contact__text {
            font-size: 1.1rem;
        }

        .contact__form {
            background: rgba(255, 255, 255, 0.1);
            padding: 2rem;
            border-radius: 20px;
            backdrop-filter: blur(10px);
        }

        .contact__form-group {
            margin-bottom: 1.5rem;
        }

        .contact__label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .contact__input,
        .contact__textarea {
            width: 100%;
            padding: 1rem;
            border: none;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            font-size: 1rem;
        }

        .contact__input::placeholder,
        .contact__textarea::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .contact__textarea {
            resize: vertical;
            min-height: 120px;
        }

        /* BEM Footer */
        .footer {
            background: var(--dark-color);
            color: white;
            padding: 2rem 0;
            text-align: center;
        }

        .footer__social {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .footer__social-link {
            width: 50px;
            height: 50px;
            background: var(--gradient-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .footer__social-link:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-medium);
        }

        /* Animations */
        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav__menu {
                position: fixed;
                top: 100%;
                left: 0;
                width: 100%;
                background: white;
                flex-direction: column;
                padding: 2rem;
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
            }

            .nav__menu--active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }

            .nav__toggle {
                display: flex;
            }

            .hero__container {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 2rem;
            }

            .hero__photo {
                width: 250px;
                height: 250px;
            }

            .contact__grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .skills {
                grid-template-columns: 1fr;
            }

            .hero__cta {
                flex-direction: column;
                align-items: center;
            }
        }

        @media (max-width: 480px) {
            .section__container {
                padding: 0 1rem;
            }

            .hero__title {
                font-size: 2rem;
            }

            .section__title {
                font-size: 2rem;
            }
        }

        /* Scroll animations */
        .fade-in-up {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .fade-in-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Loading animation */
        .loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: all 0.5s ease;
        }

        .loading__spinner {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top: 3px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading--hidden {
            opacity: 0;
            visibility: hidden;
        }


.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 10000;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #10b981;
}

.notification--error {
    border-left-color: #ef4444;
}

.notification--show {
    transform: translateX(0);
    opacity: 1;
}

.notification__content {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification__content i {
    color: #10b981;
    font-size: 1.25rem;
}

.notification--error .notification__content i {
    color: #ef4444;
}

.notification__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 5px;
}

.notification__close:hover {
    color: #374151;
}

@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification--show {
        transform: translateY(0);
    }
}

.nav {
    height: 70px; /* Stała wysokość navbar */
}

.section {
    scroll-margin-top: 70px; /* Offset dla smooth scroll */
}

/* Poprawki dla dat w experience cards - responsive */
.experience__period {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    min-width: fit-content;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

/* Responsive fixes */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* Navbar fixes */
    .nav {
        padding: 0.8rem 0;
        height: 60px;
    }

    .section {
        scroll-margin-top: 60px;
        padding: 3rem 0;
    }

    .nav__container {
        padding: 0 1rem;
    }

    .nav__menu {
        top: 60px; /* Dopasuj do wysokości navbar */
    }

    /* Hero section mobile fixes */
    .hero {
        min-height: 90vh;
        padding-top: 60px;
    }

    .hero__container {
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .hero__photo {
        width: 200px;
        height: 200px;
    }

    .hero__description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Experience cards mobile fixes */
    .experience__card {
        padding: 1.5rem;
    }

    .experience__header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .experience__period {
        align-self: flex-end;
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .experience__title {
        font-size: 1.3rem;
    }

    .experience__company {
        font-size: 1.1rem;
    }

    /* Skills mobile fixes */
    .skills {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills__category {
        padding: 1.5rem;
    }

    .skills__item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    /* Competences mobile fixes */
    .competences {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .competences__card {
        padding: 2rem 1.5rem;
    }

    .competences__icon {
        width: 60px;
        height: 60px;
    }

    .competences__icon i {
        font-size: 1.5rem;
    }

    .competences__title {
        font-size: 1.3rem;
    }

    .competences__skill {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    /* Contact form mobile fixes */
    .contact__item {
        padding: 1rem;
    }

    .contact__form {
        padding: 1.5rem;
    }

    .contact__icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Back to top button mobile */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .section__container {
        padding: 0 1rem;
    }

    .hero__container {
        padding: 1rem;
    }

    .hero__title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }

    .hero__description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero__cta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    /* Experience cards bardzo małe ekrany */
    .experience__card {
        padding: 1rem;
    }

    .experience__title {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .experience__company {
        font-size: 1rem;
    }

    .experience__period {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .experience__description {
        font-size: 0.9rem;
    }

    /* Skills bardzo małe ekrany */
    .skills__category {
        padding: 1rem;
    }

    .skills__title {
        font-size: 1.1rem;
    }

    .skills__item {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    /* Section titles mobile */
    .section__title {
        font-size: 2rem;
    }

    .section__subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 360px) {
    /* Bardzo małe ekrany */
    .hero__photo {
        width: 150px;
        height: 150px;
    }

    .experience__header {
        gap: 0.8rem;
    }

    .experience__period {
        font-size: 0.7rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Dodatkowe poprawki dla lepszego UX */
@media (max-width: 768px) {
    /* Zwiększ obszary klikalnych elementów na mobile */
    .nav__link {
        padding: 0.5rem;
        margin: 0.25rem 0;
    }

    /* Lepsze odstępy w kontaktach */
    .contact__item {
        margin-bottom: 1rem;
    }

    /* Poprawa czytelności formularza */
    .contact__input,
    .contact__textarea {
        font-size: 16px; /* Zapobiega zoom na iOS */
        padding: 0.8rem;
    }
}

/* Fix dla bardzo długich tekstów w experience */
.experience__description {
    word-wrap: break-word;
    hyphens: auto;
}

/* Smooth animations dla wszystkich urządzeń */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Fix dla marginesu górnego - sekcje muszą uwzględniać wysokość navbar */
.nav {
    height: 70px; /* Stała wysokość navbar */
}

.section {
    scroll-margin-top: 70px; /* Offset dla smooth scroll */
}

/* Poprawki dla dat w experience cards - responsive */
.experience__period {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    min-width: fit-content;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

/* Responsive fixes */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* Navbar fixes */
    .nav {
        padding: 0.8rem 0;
        height: 60px;
    }

    .section {
        scroll-margin-top: 60px;
        padding: 3rem 0;
    }

    .nav__container {
        padding: 0 1rem;
    }

    .nav__menu {
        top: 60px; /* Dopasuj do wysokości navbar */
    }

    /* Hero section mobile fixes */
    .hero {
        min-height: 90vh;
        padding-top: 60px;
    }

    .hero__container {
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .hero__photo {
        width: 200px;
        height: 200px;
    }

    .hero__description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Experience cards mobile fixes */
    .experience__card {
        padding: 1.5rem;
    }

    .experience__header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .experience__period {
        align-self: flex-end;
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .experience__title {
        font-size: 1.3rem;
    }

    .experience__company {
        font-size: 1.1rem;
    }

    /* Skills mobile fixes */
    .skills {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills__category {
        padding: 1.5rem;
    }

    .skills__item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    /* Competences mobile fixes */
    .competences {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .competences__card {
        padding: 2rem 1.5rem;
    }

    .competences__icon {
        width: 60px;
        height: 60px;
    }

    .competences__icon i {
        font-size: 1.5rem;
    }

    .competences__title {
        font-size: 1.3rem;
    }

    .competences__skill {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    /* Contact form mobile fixes */
    .contact__item {
        padding: 1rem;
    }

    .contact__form {
        padding: 1.5rem;
    }

    .contact__icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Back to top button mobile */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .section__container {
        padding: 0 1rem;
    }

    .hero__container {
        padding: 1rem;
    }

    .hero__title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }

    .hero__description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero__cta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    /* Experience cards bardzo małe ekrany */
    .experience__card {
        padding: 1rem;
    }

    .experience__title {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .experience__company {
        font-size: 1rem;
    }

    .experience__period {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .experience__description {
        font-size: 0.9rem;
    }

    /* Skills bardzo małe ekrany */
    .skills__category {
        padding: 1rem;
    }

    .skills__title {
        font-size: 1.1rem;
    }

    .skills__item {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    /* Section titles mobile */
    .section__title {
        font-size: 2rem;
    }

    .section__subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 360px) {
    /* Bardzo małe ekrany */
    .hero__photo {
        width: 150px;
        height: 150px;
    }

    .experience__header {
        gap: 0.8rem;
    }

    .experience__period {
        font-size: 0.7rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}


/* Dodatkowe poprawki dla lepszego UX */
@media (max-width: 768px) {
    /* Zwiększ obszary klikalnych elementów na mobile */
    .nav__link {
        padding: 0.5rem;
        margin: 0.25rem 0;
    }

    /* Lepsze odstępy w kontaktach */
    .contact__item {
        margin-bottom: 1rem;
    }

    /* Poprawa czytelności formularza */
    .contact__input,
    .contact__textarea {
        font-size: 16px; /* Zapobiega zoom na iOS */
        padding: 0.8rem;
    }
}

/* Fix dla bardzo długich tekstów w experience */
.experience__description {
    word-wrap: break-word;
    hyphens: auto;
}

/* Smooth animations dla wszystkich urządzeń */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


@media (min-width: 769px) {
    /* Desktop - poprawki */

    .experience__header {
        flex-direction: row-reverse;
    }
}


.education{
    max-width: 680px;
    margin: auto;
}
.education__info {
    text-align: right;
}