/* --- Zmienne i Motywy --- */
:root {
    /* Dark Mode (Default) */
    --bg-color: #030712;
    --text-color: #e5e7eb;
    --text-muted: #9ca3af;
    --accent-primary: #ff54b0;
    /* GTA 6 Pink */
    --accent-secondary: #eadbc8;
    /* Beige/Sand */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: 'Inter', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
}

body.light-theme {
    /* Light Mode (Orange/Yellow) */
    --bg-color: #fff7ed;
    --text-color: #1f2937;
    --text-muted: #4b5563;
    --accent-primary: #ea580c;
    /* Pomarańcz */
    --accent-secondary: #f59e0b;
    /* Żółty/Bursztyn */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.05);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* --- Reset i Baza --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    min-height: 100vh;
}

/* --- Tło Ambient --- */
.ambient-bg,
.ambient-bg-2 {
    position: fixed;
    top: 0;
    left: 0;
    /* Zwiększamy rozmiar, aby animacja drift nie odsłaniała krawędzi */
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    z-index: -1;
    pointer-events: none;
}

.ambient-bg {
    background: radial-gradient(circle at 20% 30%, var(--accent-primary), transparent 40%);
    opacity: 0.15;
    animation: drift 20s infinite alternate;
}

.ambient-bg-2 {
    background: radial-gradient(circle at 80% 70%, var(--accent-secondary), transparent 40%);
    opacity: 0.15;
    animation: drift 15s infinite alternate-reverse;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 30px);
    }
}

/* --- Nawigacja (Hybrid: Old Layout + New Animation) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    background: rgba(3, 7, 18, 0.8);
    /* Default Dark BG */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* --- Floating Certificates --- */
.cert-galaxy {
    position: relative;
    width: 100%;
    height: 100%;
}

.cert-item {
    position: absolute;
    width: 180px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: float-cert 6s ease-in-out infinite alternate;
}

.cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.3s;
}

/* Hover Effect: Center and Enlarge */
.cert-item:hover {
    width: 350px !important;
    height: 240px !important;
    z-index: 1000 !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    border-color: var(--accent-primary);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Pause animation on hover if desired, or keep floating */
    animation-play-state: paused;
}

.cert-item:hover img {
    opacity: 1;
}

/* Floating Animation */
@keyframes float-cert {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(-2deg);
    }
}

/* Mobile Fallback: Grid instead of floating */
@media(max-width: 768px) {
    .cert-galaxy {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        height: auto;
    }

    .cert-item {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: 100px;
        height: 70px;
    }

    .cert-section {
        height: auto !important;
        padding-bottom: 40px;
    }
}

body.light-theme .navbar {
    background: rgba(255, 247, 237, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.logo span {
    color: var(--accent-secondary);
}

/* Light Mode Logo */
body.light-theme .logo span {
    color: var(--text-color);
}


/* Center: Home, Projects, Contact + Marker */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    position: relative;
}

.nav-link {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    /* Default Dark Text */
    padding: 10px 5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(110, 231, 255, 0.6);
}

/* Light Mode Nav Links */
body.light-theme .nav-link {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .nav-link:hover,
body.light-theme .nav-link.active {
    color: var(--accent-primary);
    /* Dark Orange */
    text-shadow: 0 0 10px rgba(234, 88, 12, 0.3);
}

/* Sliding glowing underline */
.nav-marker {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #6ee7ff, #8b5cf6, #6ee7ff);
    background-size: 200% auto;
    animation: shine 3s linear infinite;
    box-shadow: 0 0 15px #6ee7ff, 0 0 5px #8b5cf6;
    border-radius: 3px;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    width: 0;
    opacity: 0;
}

/* Light Mode Marker */
body.light-theme .nav-marker {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    box-shadow: 0 0 15px var(--accent-primary), 0 0 5px var(--accent-secondary);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Right: Dropdown for extras */
.nav-right {
    position: relative;
}

.dropdown-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(19, 23, 36, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-right:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.dropdown-menu a:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* Light Mode Dropdown Overrides */
body.light-theme .dropdown-btn {
    color: var(--text-color);
    /* Dark Text */
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .dropdown-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--accent-primary);
}

body.light-theme .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-theme .dropdown-menu a {
    color: var(--text-color);
}

body.light-theme .dropdown-menu a:hover {
    background: var(--accent-primary);
    color: #fff;
}

@media(max-width: 850px) {
    .navbar {
        padding: 10px 15px;
    }

    .nav-center {
        position: static;
        transform: none;
        flex: 1;
        justify-content: center;
    }

    .nav-list {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 8px 2px;
    }

    .logo {
        font-size: 1.2rem;
        margin-right: 10px;
    }

    /* Hide right dropdown text or iconify it on mobile if needed, but keeping simple for now */
    .dropdown-btn span {
        display: none;
    }

    .dropdown-btn::after {
        content: '☰';
    }
}

/* --- Sekcje --- */
section {
    min-height: auto;
    /* Remove forced viewport height */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    /* Reduced from 6rem */
    position: relative;
}

section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

/* --- Karta Holograficzna (Styl Holo) --- */
.hero {
    min-height: 100vh;
    perspective: 1500px;
    /* Głębia 3D */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding-top: 100px;
    /* Więcej miejsca od góry */
}

.hero-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.holo-container {
    position: relative;
    z-index: 10;
}

.holo-card {
    position: relative;
    width: 320px;
    height: 440px;
    /* Fixed height to match book exactly */
    /* Match book */
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.holo-content {
    text-align: center;
    transform: translateZ(40px);
    width: 100%;
    /* Ensure full width for centering */
}

.img-box {
    width: 150px;
    /* Balanced size */
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details h2 {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    /* Balanced */
    color: var(--text-color);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.job-title {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 700;
    letter-spacing: 2px;
    /* More space above Certificates */
    margin-top: 5px;
    /* Fixed margins */
    text-align: center;
    margin-bottom: 20px;
}

#passions {
    /* Reduced space above Passions */
    margin-top: 0px;
    padding-top: 40px;
}

.data-rows {
    margin-top: 10px;
    /* Compact */
    text-align: left;
    width: 100%;
    padding: 0 10px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    padding: 6px 0;
    /* Compact */
    font-family: var(--font-tech);
    font-size: 0.9rem;
}

.data-row .label {
    color: var(--text-muted);
}

.data-row .value {
    color: var(--accent-primary);
    font-weight: 600;
}

.blink {
    animation: blink 2s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

.hero-text {
    text-align: center;
    margin-top: 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
}

.hero-text p {
    margin-top: 15px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* --- 3D Book (O mnie) --- */
.book-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.book {
    position: relative;
    width: 320px;
    height: 440px;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.book:hover {
    transform: translateX(50px) rotateY(-30deg);
}

.nav-marker {
    position: absolute;
    bottom: -5px;
    height: 3px;
    background: var(--accent-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-primary);
    border-radius: 2px;
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
    transform-style: preserve-3d;
    /* Naprawa: zachowanie 3D dla dzieci */
}

/* Front okładki */
.book-cover .front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 2px solid var(--accent-primary);
    border-radius: 4px 12px 12px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    backface-visibility: hidden;
    z-index: 2;
}

/* Tył okładki (lewa strona) */
.book-cover .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 4px 12px 12px 4px;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    z-index: 1;
    box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.05);
}

.book:hover .book-cover {
    transform: rotateY(-160deg);
}

.cover-content h3 {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.book-page {
    position: absolute;
    width: 96%;
    height: 96%;
    top: 2%;
    left: 2%;
    background: #f8fafc;
    border-radius: 2px 8px 8px 2px;
    z-index: 5;
    padding: 30px;
    color: #334155;
    font-size: 0.95rem;
    box-shadow: inset 10px 0 20px rgba(0, 0, 0, 0.05);
}

/* --- Grid Projektów (Hacker/Holo Style) --- */
.project-grid {
    display: grid;
    /* Force 3 columns on larger screens */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    /* Allow it to be wider */
}

.hacker-card {
    position: relative;
    background-color: rgba(10, 10, 15, 0.8);
    /* Dark base */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 30px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    height: 600px;
    /* Tall vertical cards */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Text at bottom */
}

.hacker-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.card-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
    transition: 0.3s;
}

.card-content h3,
.card-content p,
.card-content .tags {
    pointer-events: auto;
}

.hacker-text {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    min-height: 1.2em;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hacker-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    height: 110%;
    /* Larger for parallax movement */
    width: 110%;
    background-image: url('assets/card_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 1;
    transition: all 0.5s ease;
    filter: grayscale(100%) contrast(1.2);
    /* B/W initially */
}

.hacker-card:hover .card-background {
    opacity: 0.8;
    filter: grayscale(0%) contrast(1.1);
    /* Color on hover */
    transform: translate(-10px, -10px);
    /* Parallax drift */
}

/* Light Mode Overrides for Cards */
body.light-theme .hacker-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .hacker-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.2);
}

body.light-theme .hacker-text {
    color: var(--text-color);
    text-shadow: none;
}

body.light-theme .hacker-card p {
    color: var(--text-muted);
    text-shadow: none;
}

body.light-theme .card-background {
    opacity: 0.1;
    filter: grayscale(0%);
}

/* --- Animated Cat/Guy Section (Bongo SVG) --- */
.bongo-cat {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.left-paw {
    transform-origin: 90px 125px;
    /* Adjusted for new position */
    animation: tap-left 0.15s ease-in-out infinite alternate;
}

.right-paw {
    transform-origin: 160px 125px;
    animation: tap-right 0.15s ease-in-out infinite alternate 0.07s;
}

@keyframes tap-left {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(10px) rotate(-15deg);
    }
}

@keyframes tap-right {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(10px) rotate(15deg);
    }
}

/* Music notes remain similar but positioned better */
.music-note {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 24px;
    color: var(--accent-primary);
    opacity: 0;
    pointer-events: none;
    animation: float-note 2s linear infinite;
}

/* Staggered Notes */
.music-note:nth-child(2) {
    left: 60%;
    animation-delay: 0.5s;
    font-size: 20px;
    color: #6ee7ff;
}

.music-note:nth-child(3) {
    left: 40%;
    animation-delay: 1.0s;
    font-size: 28px;
    color: #a78bfa;
}

.music-note:nth-child(4) {
    left: 30%;
    animation-delay: 1.5s;
    font-size: 18px;
    color: var(--accent-secondary);
}

.music-note:nth-child(5) {
    left: 70%;
    animation-delay: 0.2s;
    font-size: 22px;
}

.music-note:nth-child(6) {
    left: 55%;
    animation-delay: 1.2s;
    font-size: 26px;
}

@keyframes float-note {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(-80px) rotate(20deg) scale(1.2);
        opacity: 0;
    }
}

/* --- 3D Passions Gallery --- */
.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    padding: 60px 40px;
    /* Added horizontal padding to prevent cut-off */
    overflow: visible;
    /* Allow 3D elements to extend beyond container */
    width: 100%;
}

.gallery-3d {
    display: flex;
    gap: 10px;
    transform-style: preserve-3d;
}

.gallery-item {
    position: relative;
    width: 200px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Initial state: tilted and slightly dimmed */
    transform: rotateY(25deg) scale(0.9);
    filter: brightness(0.7) grayscale(0.4);
    box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.5);
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

/* Apply overlay tint to project images */
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
    z-index: 0;
    /* GTA Filter logic */
    filter: sepia(0.5) contrast(1.2) brightness(0.8);
}

.card-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(255, 84, 176, 0.4), rgba(234, 219, 200, 0.2));
    mix-blend-mode: overlay;
    transition: 0.3s;
}

.hacker-card:hover .card-background {
    transform: scale(1.1);
    filter: sepia(0) contrast(1.1) brightness(1);
    /* Reveal true colors on hover */
}

.hacker-card:hover .card-background::after {
    opacity: 0;
    /* Remove tint on hover */
}

/* Hover Effects */
.gallery-3d:hover .gallery-item {
    transform: rotateY(20deg) scale(0.85);
    /* Push others back slightly */
    filter: brightness(0.5);
}

.gallery-item:hover {
    transform: rotateY(0deg) scale(1.1) !important;
    /* Bring active to front */
    filter: brightness(1) grayscale(0) !important;
    z-index: 100;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent-primary);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsive */
@media(max-width: 900px) {
    .gallery-3d {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        transform-style: flat;
    }

    .gallery-item {
        transform: none !important;
        width: 160px;
        height: 240px;
        margin-bottom: 20px;
        filter: brightness(0.9);
    }

    .gallery-caption {
        opacity: 1;
        transform: translateY(0);
    }
}

body.light-theme .hacker-card:hover .card-background {
    opacity: 0.3;
}

@media(max-width: 1000px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .hacker-card {
        height: 400px;
    }
}

/* Light Mode Overrides for Cards */
body.light-theme .hacker-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .hacker-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.15);
}

body.light-theme .hacker-text {
    color: var(--text-color);
}

body.light-theme .card-background {
    background-image:
        radial-gradient(var(--accent-primary) 1px, transparent 1px),
        radial-gradient(var(--accent-primary) 1px, transparent 1px);
    opacity: 0;
}

body.light-theme .hacker-card:hover .card-background {
    opacity: 0.1;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-secondary);
    font-size: 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

body.light-theme .tag {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent-primary);
}

/* Lista certyfikatów w doświadczeniu */
.cert-list {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Timeline (Doświadczenie) --- */
.timeline {
    width: 100%;
    max-width: 800px;
    border-left: 2px solid var(--glass-border);
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    transition: 0.3s;
}

/* Highlighted Item (DevOps) */
.timeline-item.highlight h3 {
    font-size: 2.5rem;
    /* Even Larger */
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
    margin-bottom: 10px;
}

.timeline-item.highlight p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 1;
}

.timeline-item.highlight::before {
    width: 16px;
    height: 16px;
    left: -39px;
    top: 5px;
    background: #fff;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
    animation: pulse-dot 2s infinite;
}

.timeline-item.highlight {
    margin-bottom: 50px;
    /* More space after the main item */
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 102, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
    }
}

/* Secondary Items - Smaller and closer together */
.timeline-item:not(.highlight) {
    opacity: 0.7;
    margin-bottom: 15px;
    /* Compact spacing */
    transform-origin: left top;
    padding-left: 10px;
}

.timeline-item:not(.highlight) h3 {
    font-size: 1.1rem;
    /* Smaller title */
    margin-bottom: 2px;
}

.timeline-item:not(.highlight) p {
    font-size: 0.9rem;
    /* Smaller text */
    margin-top: 0;
}

.timeline-item:not(.highlight):hover {
    opacity: 1;
    transform: translateX(10px);
    /* Slight movement instead of scale */
}

/* Light Theme Adjustments for Highlight */
body.light-theme .timeline-item.highlight h3 {
    text-shadow: 0 0 15px rgba(234, 88, 12, 0.3);
}

body.light-theme .timeline-item.highlight::before {
    background: var(--accent-secondary);
    border-color: var(--accent-primary);
    animation: pulse-dot-orange 2s infinite;
}

@keyframes pulse-dot-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(234, 88, 12, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
    }
}

.timeline-item .date {
    font-family: var(--font-tech);
    color: var(--accent-secondary);
    font-size: 0.9rem;
}

.timeline-item p {
    margin-top: 5px;
    color: var(--text-muted);
}

/* --- Pasje (Karuzela) --- */
.passions-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.passion-card {
    min-width: 200px;
    height: 150px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    scroll-snap-align: center;
    transition: 0.3s;
}

.passion-card:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: scale(1.05);
}

/* --- Animacje Scrolla --- */
.reveal {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(10px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* --- Contact Buttons (Premium) --- */
.contact-links {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.contact-links a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* --- Drukarka CV Styles (Final Refactor) --- */
.printer-wrapper {
    position: relative;
    width: 220px;
    height: 120px;
    margin-bottom: 200px;
    /* Space for paper */
    transform: scale(1.3);
    transform-origin: top center;
    margin-top: 40px;
}

/* 1. The Lid (Top Cover) - Z-Index 20 */
.printer-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, #444, #333);
    border-radius: 20px 20px 0 0;
    z-index: 20;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 4px solid #1a1a1a;
    /* The visual slot lip */
}

/* 2. The Paper - Z-Index 15 (Between Lid and Base) */
.paper {
    position: absolute;
    width: 160px;
    height: 200px;
    background: #fff;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    /* Starts tucked under the lid */
    z-index: 15;
    transition: top 2.5s cubic-bezier(0.45, 0, 0.55, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    font-family: var(--font-tech);
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
    overflow: hidden;
    /* Clean edges */
}

.paper::after {
    content: '';
    width: 80%;
    height: 2px;
    background: #ccc;
    margin-top: 15px;
    box-shadow: 0 10px 0 #ccc, 0 20px 0 #ccc, 0 30px 0 #ccc, 0 40px 0 #ccc, 0 50px 0 #ccc;
}

.paper.printed {
    top: 100px;
    /* Slides down past the base */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 3. The Base - Z-Index 10 (Bottom) */
.printer-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    /* Shifts visual weight down */
    background: #222;
    border-radius: 0 0 20px 20px;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
}

.printer-lights {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 25;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
    transition: 0.3s;
    box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid #555;
}

.light.green {
    background: #15803d;
}

.light.red {
    background: #b91c1c;
}

.printer-base.printing .light.green {
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: blink-light 0.2s infinite alternate;
}

@keyframes blink-light {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.5;
    }
}

/* --- Premium Button Styles (Theme Adapted) --- */
.btn-action {
    background: var(--glass-bg);
    /* Match glassmorphism */
    border: 1px solid var(--accent-primary);
    padding: 15px 35px;
    border-radius: 30px;
    color: var(--accent-primary);
    /* Text color matches accent */
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 30;
    margin-top: 20px;
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Hover Glitch/Fill Effect */
.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-action:hover {
    color: #fff;
    /* White text on hover */
    box-shadow: 0 0 30px var(--accent-primary);
    transform: translateY(-2px);
}

.btn-action:hover::before {
    transform: scaleX(1);
}

/* Text tweak for button found below */
.btn-text {
    font-size: 1rem;
}

/* --- Useless Toggle Switch --- */
.toggle-input {
    display: none;
}

.toggle-label {
    width: 60px;
    height: 30px;
    background: #333;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    display: block;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.toggle-slider {
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.toggle-input:checked+.toggle-label {
    background: var(--accent-primary);
}

.toggle-input:checked+.toggle-label .toggle-slider {
    transform: translateX(30px);
}

/* Useless Toggle Glow Effect */
.toggle-label.error-glow {
    animation: messy-glow 0.8s ease-out forwards;
}

@keyframes messy-glow {
    0% {
        box-shadow: 0 0 0 rgba(255, 0, 0, 0);
        background: #333;
    }

    20% {
        box-shadow: 0 0 20px 10px rgba(255, 0, 0, 0.6);
        background: #500;
        transform: scale(1.1) rotate(5deg);
    }

    40% {
        box-shadow: 0 0 30px 15px rgba(255, 0, 0, 0.8);
        background: #a00;
        transform: scale(1.05) rotate(-5deg);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 0, 0, 0);
        background: #333;
        transform: scale(1) rotate(0deg);
    }
}

/* --- iPhone Mockup --- */
.iphone-mockup {
    width: 280px;
    height: 550px;
    /* Taller for keypad */
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f2937, #111827);
    /* Dark iOS theme */
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    position: relative;
    overflow: hidden;
    /* For calling screen overlay */
}

/* Calling Overlay */
.calling-screen {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
    transform: translateY(100%);
}

.calling-screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.calling-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    filter: sepia(1) hue-rotate(-50deg) saturate(3);
    /* Pinkish GTA vibe */
}

.calling-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calling-info {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 40px;
}

.calling-name {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.calling-status {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 5px;
    animation: pulse 1.5s infinite;
}

.calling-number {
    font-family: var(--font-tech);
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-top: 10px;
}

.end-call-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ef4444;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
    z-index: 2;
    position: relative;
    margin-bottom: 20px;
}

.end-call-btn:hover {
    transform: scale(1.1);
}

/* Notch ish header */
.signal-bar {
    position: absolute;
    top: 15px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #fff;
    opacity: 0.8;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-name {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
}

.phone-status {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.dialed-number {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    color: var(--accent-primary);
    min-height: 25px;
    margin-bottom: 10px;
}

/* Keypad Grid */
.phone-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.key {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.key:hover {
    background: rgba(255, 255, 255, 0.3);
}

.key:active {
    background: rgba(255, 255, 255, 0.5);
}

.call-btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #22c55e;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
    transition: 0.2s;
    margin-top: auto;
    /* Push to bottom */
    margin-bottom: 20px;
}

.call-btn-circle:active {
    transform: scale(0.95);
    background: #16a34a;
}

.call-btn-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
}

.btn-action:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-primary);
}

.contact-links {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--accent-secondary);
}

/* --- Theme Toggle --- */
.theme-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.theme-btn:hover {
    transform: rotate(15deg) scale(1.1);
    background: var(--accent-primary);
}