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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #0ea5e9;
    --accent-color: #10b981;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --code-bg: #1e293b;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-alt);
    z-index: -1;
    opacity: 0.5;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 24px, rgba(37, 99, 235, 0.03) 24px, rgba(37, 99, 235, 0.03) 26px, transparent 26px),
        linear-gradient(rgba(37, 99, 235, 0.03) 24px, transparent 24px, transparent 26px, rgba(37, 99, 235, 0.03) 26px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Profile Image Container */
.profile-image-container {
    position: relative;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container.active {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    padding: 4px;
    background: var(--bg-color);
}

.profile-image-wrapper:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Hover Navigation Buttons */
.hover-navigation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.profile-image-wrapper:hover .hover-navigation {
    opacity: 1;
    pointer-events: all;
}

.nav-hover-btn {
    padding: 0.6rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 2px;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    display: block;
}

.nav-hover-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.profile-image {
    display: block;
    max-width: 300px;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 2px;
    object-fit: contain;
}


.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-button {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.cta-button:active {
    transform: translateY(0);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
}

#phone-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#phone-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.show-phone-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.show-phone-button:hover {
    background: var(--primary-color);
    color: white;
}

#turnstile-container {
    display: flex;
    align-items: center;
}

#turnstile-container .cf-turnstile {
    transform: scale(0.85);
    transform-origin: 0 0;
}

.contact-icon {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: 'Courier New', monospace;
}

.contact-item a:hover {
    color: var(--primary-color);
}


/* Timeline for Experience */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
    transform: rotate(45deg);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.job-duties {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.job-duties li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.job-duties li::before {
    content: '> ';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* Education */
.education-item {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.education-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
    min-width: 150px;
}

.education-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.education-content h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-content p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

/* Skills */
.skills-grid {
    display: grid;
    /* Stałe 2 kolumny = układ 2×2 przy czterech blokach (bez „osieroconego” ostatniego rzędu). */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.skill-category h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    background: var(--bg-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Courses */
.courses-list {
    max-width: 700px;
    margin: 0 auto;
}

.course-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
    cursor: pointer;
}

.course-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    transform: translateX(5px);
}

.course-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.course-content h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.course-content p {
    color: var(--text-light);
}

/* Languages */
.languages-list {
    max-width: 500px;
    margin: 0 auto;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.language-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.language-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.language-level {
    color: var(--text-light);
    font-size: 1rem;
}

/* Interests */
.interests-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.interests-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .education-item {
        flex-direction: column;
        gap: 1rem;
    }

    .education-date {
        min-width: auto;
    }

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

    .profile-image-container {
        margin: 1.5rem 0 2rem 0;
    }

    .profile-image {
        max-width: 200px;
        max-height: 280px;
    }

    .contact-info {
        margin-top: 1rem;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 50px 0;
    }

    .profile-image-container {
        margin: 1rem 0 1.5rem 0;
    }

    .profile-image {
        max-width: 180px;
        max-height: 250px;
    }

    .contact-info {
        margin-top: 0.5rem;
        gap: 1rem;
        flex-direction: column;
    }

    .hero-content {
        gap: 1.5rem;
    }
}

