@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

:root {
    /* BLACK & DARK GREY */
    --bg-dark: #000000;
    --bg-light: #111111;
    
    /* TEXT */
    --text-main: #f8f9fa;
    --text-muted: #a0a0a0;
    
    /* ACCENTS: BRIGHT YELLOW & BLUE */
    --accent-yellow: #FFD600;
    --accent-yellow-hover: #FFEE58;
    --accent-blue: #007BFF;
    --accent-blue-hover: #3395ff;
    
    --border-color: rgba(255, 214, 0, 0.15); /* Subtelna żółta ramka */
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top right, #1a1a1a, #000000);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid var(--accent-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 123, 255, 0.2);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: var(--accent-yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 214, 0, 0.3);
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

nav a:hover, nav a.active {
    color: var(--bg-dark);
    border-color: var(--accent-yellow);
    background: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.4);
}

main {
    flex: 1;
    max-width: 900px;
    width: 90%;
    box-sizing: border-box;
    margin: 50px auto;
    padding: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    margin-top: 0;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Photo Container - Horizontal Rectangle PRO */
.photo-container {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto 40px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    border: 1px solid var(--accent-blue);
}

.photo-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 40px rgba(0, 123, 255, 0.4);
    pointer-events: none;
    z-index: 1;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.8s ease;
}

.photo-container:hover img {
    transform: scale(1.03);
}

.intro-text {
    font-size: 1.15rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-main);
    line-height: 1.8;
}

/* Content Cards */
.content-card {
    background: var(--bg-light);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

/* Experience Items */
.experience-item {
    background: var(--bg-light);
    margin-bottom: 25px;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-yellow);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 214, 0, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.experience-item:hover::before {
    transform: translateX(100%);
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    border-left-color: var(--accent-blue);
}

.job-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.job-header h3 {
    margin: 0;
    color: var(--accent-yellow);
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.experience-item:hover .job-header h3 {
    color: var(--accent-blue);
}

.job-header em {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    font-style: normal;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

.skills-list li {
    padding-left: 10px;
    position: relative;
    list-style-type: none;
}

.skills-list li::before {
    content: '▹';
    position: absolute;
    left: -10px;
    color: var(--accent-blue);
    font-weight: bold;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

/* Contact Info & Button */
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-info strong {
    color: var(--accent-yellow);
    display: inline-block;
    width: 80px;
}

.contact-btn-wrapper {
    margin-top: 40px;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background: transparent;
    color: var(--accent-yellow);
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid var(--accent-yellow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(255, 214, 0, 0.6);
    text-decoration: none;
}

/* Sport Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
    border-color: var(--accent-blue);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 123, 255, 0.5);
    animation: zoomIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--accent-blue);
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

footer {
    text-align: center;
    padding: 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-dark);
    margin-top: auto;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}
