:root {
    --background-dark: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #1bc0ddda;
    --card-background: #1a1a1a;
    --nav-background: rgba(20, 20, 30, 0.3);
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --accent-color-rgb: 0, 255, 170;
}

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

body {
    font-family: var(--font-secondary);
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    background: var(--background-dark);
    margin: 0;
    position: relative;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--background-dark);
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.menu-toggle {
    display: none;
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.nav-link.active {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-link.active::after {
    width: 100%;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--background-dark);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 4rem;
}

.hero-left {
    flex: 1;
}

.hero-left h1 {
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-left .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hero-right {
    flex: 1;
    max-width: 500px;
}

.terminal {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.terminal-header {
    background: #252526;
    padding: 0.75rem 1rem;
}

.terminal-tabs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tab {
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.vscode {
    background: #4a4a4a;
    color: #fff;
}

.branch {
    background: #e4c207;
    color: #000;
}

.git {
    background: #4078c0;
    color: #fff;
}

.via {
    color: #7c7c7c;
}

.version {
    background: #6a9955;
    color: #fff;
}

.terminal-content {
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.command-line {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.prompt {
    color: #6a9955;
}

.command {
    color: #fff;
    position: relative;
}

.command.typing::after,
.command.typing-2::after,
.command.typing-3::after {
    content: '|';
    position: absolute;
    right: -2px;
    animation: blink 1s step-end infinite;
}

.command.typing {
    animation: typing 2s steps(20, end) infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation-delay: 0s;
}

.command.typing-2 {
    animation: typing 2s steps(20, end) infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation-delay: 2s;
}

.command.typing-3 {
    animation: typing 2s steps(20, end) infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation-delay: 4s;
}

@keyframes typing {
    0% { width: 0 }
    50% { width: 100% }
    100% { width: 100% }
}

@keyframes blink {
    from, to { opacity: 1 }
    50% { opacity: 0 }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.command-line:nth-child(1) { animation-delay: 0.1s; }
.command-line:nth-child(2) { animation-delay: 2.1s; }
.command-line:nth-child(3) { animation-delay: 4.1s; }

/* Dodaj czcionkę Fira Code dla terminala */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');

@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        text-align: left;
    }

    .hero-left h1 {
        font-size: 3.5rem;
    }

    .hero-right {
        width: 100%;
        margin-top: 2rem;
    }
}

.cursor {
    color: var(--accent-color);
    animation: blink 1s infinite;
}

.subtitle {
    font-family: var(--font-secondary);
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    margin-bottom: 2rem;
}

/* Projects Section */
.projects {
    padding: 5rem 10%;
}

.section-header {
    margin-bottom: 3rem;
}

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

.project-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.project-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(27, 192, 221, 0.2);
}

.project-content {
    color: var(--text-primary);
    text-decoration: none;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(96, 165, 250, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-link {
    color: var(--accent-color);
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.project-link:hover {
    opacity: 0.8;
}

/* Responsywność */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.tech-stack {
    margin: 1rem 0;
}

.tech-stack span {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* Buttons and Links */
.cta-button {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(100, 255, 218, 0.1);
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-dark);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    /* Hamburger menu */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }

    .lang-switcher {
        margin-right: 1rem;
    }

    /* Dodaj styl dla menu mobilnego */
    .mobile-nav {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-content {
        padding: 0 1rem;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.portfolio-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.portfolio-content h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-family: var(--font-primary);
}

.portfolio-links {
    display: flex;
    gap: 1rem;
}

.portfolio-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.portfolio-link:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .portfolio {
        padding: 4rem 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.about {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.about p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
}

/* Style dla statystyk */
.stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Responsywność */
@media (max-width: 768px) {
    .about {
        padding: 3rem 1rem;
    }

    .about h2 {
        font-size: 2.5rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat {
        align-items: center;
        text-align: center;
    }
}

.experience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.experience-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.experience-item .number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.experience-item .label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .about {
        padding: 4rem 1rem;
    }
    
    .experience {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    border: 1px solid #00ffff;
    color: #00ffff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.submit-btn:hover {
    background-color: #00ffff;
    color: #000;
}

@media (max-width: 768px) {
    .contact {
        padding: 3rem 1rem;
    }

    .contact h2 {
        font-size: 2.5rem;
    }

    .submit-btn {
        width: 100%;
    }
}

.testimonials {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.testimonial-author p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsywność */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 3rem 1rem;
    }

    .testimonials h2 {
        font-size: 2.5rem;
    }

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

/* Dodatkowe style dla sekcji nagłówkowej */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .testimonials {
        padding: 4rem 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Sekcja Dlaczego ja? */
.why-me {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-me h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-number {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--accent-color);
    opacity: 0.7;
}

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

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-me h2 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
}

/* Modyfikacja sekcji kontaktowej - wyśrodkowanie */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4rem;
}

.contact-text {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .why-me {
        padding: 4rem 1rem;
    }
    
    .why-me-grid {
        grid-template-columns: 1fr;
    }
}

.footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--background-dark);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .footer {
        padding: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-right {
        justify-content: center;
    }
    
    .social-links {
        gap: 1rem;
        justify-content: center;
    }
}

/* Style dla przełącznika języka */
.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 100px;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent-color);
    color: var(--background-dark);
}

/* Dodaj do istniejących media queries */
@media (max-width: 768px) {
    .lang-switcher {
        margin-left: auto; /* Przesuń na prawą stronę na mobile */
    }
}

/* Nowy kontener dla menu i przełącznika */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.lang-switcher {
    margin-left: 2rem; /* Odstęp od menu */
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .lang-switcher {
        margin-left: 0;
    }
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.contact-buttons .submit-btn {
    min-width: 180px;
}

@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-buttons .submit-btn {
        width: 100%;
    }
}
