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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #000000, #1a1a2e, #16213e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.matrix-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.matrix-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #00ff88, transparent);
    animation: matrixMove 3s linear infinite;
}

@keyframes matrixMove {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    animation: pulse 2s infinite;
}

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

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-menu a:hover::before {
    width: calc(100% + 20px);
}

.nav-menu a:hover {
    color: #000000;
}

/* Hero Section - Terminal Style */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 2rem;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ff88, #00d4ff, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #00ff88;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    color: #000000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: #00ff88;
    padding: 1rem 2rem;
    border: 2px solid #00ff88;
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #00ff88;
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Terminal */
.terminal {
    background: #111111;
    border: 1px solid #00ff88;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
}

.terminal-header {
    background: #1a1a1a;
    padding: 1rem;
    border-bottom: 1px solid #00ff88;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.red {
    background: #ff5555;
}

.terminal-btn.yellow {
    background: #ffff55;
}

.terminal-btn.green {
    background: #55ff55;
}

.terminal-title {
    margin-left: 1rem;
    color: #00ff88;
    font-size: 0.9rem;
    font-weight: 600;
}

.terminal-content {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: #00ff88;
    margin-right: 0.5rem;
}

.terminal-command {
    color: #ffffff;
}

.terminal-output {
    color: #00d4ff;
    margin-left: 1rem;
}

.cursor {
    background: #00ff88;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Skills Section */
.skills {
    padding: 6rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
}

.skills::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 100 100"><defs><pattern id="hexagon" width="20" height="20" patternUnits="userSpaceOnUse"><polygon points="10,2 18,7 18,13 10,18 2,13 2,7" fill="none" stroke="rgba(0,255,136,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagon)" /></svg>');
    opacity: 0.3;
}

.skills-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff88;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #00ff88;

    img {
        width: 30%;
        height: 30%;
        font-size: 12px;
    }
}

.skill-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-description {
    color: #cccccc;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background: #0a0a0a;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Nagłówek */
.about-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tekst */
.about-content p {
    color: #cccccc;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Tech stack */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.tech-item {
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    color: #000000;
    padding: 0.5rem .5rem;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.about-visual {
    position: relative;
}

/* Wizualizacja kodu - max szerokość i scroll na mniejszych ekranach */
.code-block {
    max-width: 100%;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    background: #111;
    padding: 1rem;
    border-radius: 8px;
    color: #0f0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsywność */

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-content h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .about-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .tech-stack {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
    }

    .tech-item {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 4rem 1rem;
    }

    .about-content h2 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .about-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .tech-stack {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.6rem;
    }

    .tech-item {
        font-size: 0.8rem;
        padding: 0.5rem 0.7rem;
    }

    .code-block {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
}


@keyframes codeShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.code-line {
    margin: 0.5rem 0;
    position: relative;
    z-index: 2;
}

.comment {
    color: #666666;
}

.keyword {
    color: #00ff88;
}

.string {
    color: #00d4ff;
}

.function {
    color: #ff0080;
}

.variable {
    color: #ffffff;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: rgba(0, 0, 0, 0.9);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 136, 0.05), transparent);
    animation: contactBg 10s linear infinite;
}

@keyframes contactBg {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-content {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff88;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.contact-icon {
    font-size: 3rem;
    color: #00ff88;
    margin-bottom: 1rem;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    color: #cccccc;
    font-size: 1.1rem;
}

.contact-info a {
    color: #00ff88;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #00d4ff;
}

/* Footer */
.footer {
    background: #000000;
    padding: 3rem 2rem;
    border-top: 1px solid #00ff88;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #00ff88;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    color: #cccccc;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00ff88;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;

    p {
        color: #00ff88;
    }
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid #00ff88;
    padding: 1rem 2rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-text {
    color: #cccccc;
    font-size: 0.9rem;
}

.cookie-text a {
    color: #00ff88;
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #00ff88;
    background: transparent;
    color: #00ff88;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.cookie-btn:hover {
    background: #00ff88;
    color: #000000;
}

.cookie-btn-accept {
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 5px;
}

.cookie-btn-accept:hover {
    background: linear-gradient(50deg, #147a4a, #00d4ff);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-menu {
        display: none;
    }

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

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

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

    .tech-stack {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .cta-buttons {
        justify-content: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-size: 2rem;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: loadingPulse 1.5s ease infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}