:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #21262d;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --danger: #f85149;
    --success: #56d364;
    --border: #30363d;
    --shadow: rgba(0, 0, 0, 0.3);
}

/* More specific CSS rule to hide content during loading */
html.i18n-loading > body {
    visibility: hidden !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(88, 166, 255, 0.08) 0%, transparent 70%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 20px auto 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 40px 30px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.feature-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
}

/* Tech Preview Section */
.tech-preview {
    padding: 80px 0;
    text-align: center;
}
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}
.tech-badge {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 25px;
    border-radius: 30px;
    border: 1px solid var(--border);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}
.tech-badge:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    text-align: center;
}
.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

/* Responsywność dla index.html */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* --- Tech Stack Page Specific Styles --- */

/* Header section */
.tech-header {
    padding: 80px 0 40px;
    text-align: center;
}
.tech-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tech-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}
.content-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Architecture Overview */
.architecture-overview {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}
.architecture-overview h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.architecture-overview p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Module Grid */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.module-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.module-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--accent);
}
.module-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.module-card ul {
    list-style: none;
    padding-left: 0;
}
.module-card li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--text-secondary);
}
.module-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.tech-item {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.tech-item i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
}
.tech-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.tech-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* DevOps Section */
.devops-section {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid var(--border);
}
.devops-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.devops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.devops-item {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border);
}
.devops-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.devops-item ul {
    list-style: none;
    padding-left: 0;
}
.devops-item li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
}
.devops-item li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Challenges Section */
.challenges-section {
    margin-top: 40px;
}
.challenge-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}
.challenge-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.challenge-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .tech-header h1 {
        font-size: 2.5rem;
    }
    .tech-header p {
        font-size: 1.1rem;
    }
}


/* --- Project Page Specific Styles --- */
.project-header {
    padding: 80px 0 40px;
    text-align: center;
}
.project-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.project-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Sections */
.content-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}
.content-section:last-child {
    border-bottom: none;
}

/* Overview Card */
.overview-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}
.overview-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.overview-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Feature Details */
.feature-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-detail-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.feature-detail-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--accent);
}
.feature-detail-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-detail-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* MVP Section */
.mvp-section {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid var(--border);
}
.mvp-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.mvp-goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.mvp-goal {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border);
    text-align: center;
}
.mvp-goal i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}
.mvp-goal h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.mvp-goal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: var(--bg-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}
.back-to-top.visible {
    opacity: 1;
}
.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--accent-hover);
}

/* Responsive - Project Page */
@media (max-width: 768px) {
    .project-header h1 {
        font-size: 2.5rem;
    }
    .project-header p {
        font-size: 1.1rem;
    }
}


body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2rem;
    color: var(--accent);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover {
    background-color: rgba(88, 166, 255, 0.1);
    color: var(--accent);
}

.lang-btn.active {
    background-color: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* About Header */
.about-header {
    padding: 80px 0 40px;
    text-align: center;
}

.about-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.content-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Profile Section */
.profile-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.profile-image {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(88, 166, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.profile-image i {
    font-size: 10rem;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.profile-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.profile-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Skills Section */
.skills-container {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border);
    margin-top: 30px;
}

.skills-container h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.skills-container p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
}

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

.skill-category {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border);
}

.skill-category h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.skill-tag {
    background-color: var(--bg-secondary);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.skill-tag:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* Journey Section */
.journey-section {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid var(--border);
}

.journey-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.journey-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 30px;
}

.journey-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 3px solid var(--bg-primary);
}

.timeline-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

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

/* Contact Section */
.contact-section {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid var(--border);
    text-align: center;
}

.contact-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-section p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 166, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background-color: rgba(88, 166, 255, 0.1);
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 50%;
    border: 1px solid var(--border);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: var(--bg-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--accent-hover);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .about-header h1 {
        font-size: 2.5rem;
    }

    .about-header p {
        font-size: 1.1rem;
    }

    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image i {
        font-size: 8rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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