:root {
    --bg-main: #F3F4F6;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --primary: #817CFF;
    --primary-dark: #635BFF;
    --primary-hover: #524be0;
    --dark-panel: #222222;
}

/* REST I BAZA */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAWIGACJA */
.navbar {
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

@media (min-width: 768px) {
    .nav-content { justify-content: flex-start; }
}

.nav-logo { 
    height: 80px; width: auto; 
}
.nav-title { 
    font-size: 2.25rem; font-weight: bold; letter-spacing: -0.025em;
}


.hero {
    background-color: var(--primary);
    color: white;
    padding: 80px 24px;
    text-align: center;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.hero-title { 
    font-size: 3rem; font-weight: bold; margin-bottom: 24px; text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.hero-subtitle { 
    font-size: 1.25rem; font-weight: 300; margin: 0 auto 40px; max-width: 42rem; opacity: 0.9;
}


.btn-group { 
    display: flex; flex-direction: column; justify-content: center; gap: 24px; align-items: center; 
}
@media (min-width: 640px) { 
    .btn-group { flex-direction: row; } 
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 40px; border-radius: 1rem; font-weight: bold; text-decoration: none;
    transition: all 0.3s ease; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer; border: none; font-size: 1rem;
}
.btn:hover { 
    transform: scale(1.05); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.btn-white { 
    background-color: white; color: var(--primary); 
}
.btn-white:hover { 
    background-color: #f9fafb; 
}

.btn-dark { 
    background-color: var(--dark-panel); color: white; 
}
.btn-dark:hover { 
    background-color: #362f8a; 
}


.btn-primary { 
    background-color: var(--primary-dark); color: white; 
}
.btn-primary:hover { 
    background-color: var(--primary-hover); 
}

/* Gitea */
.gitea-link-container { 
    display: flex; justify-content: center; margin-top: 32px; 
}
.gitea-link {
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.9);
    text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.3); padding: 8px 24px;
    border-radius: 0.75rem; transition: all 0.3s;
}
.gitea-link:hover { 
    color: white; border-color: white; 
}
.hero-note {
     margin-top: 24px; font-size: 0.875rem; opacity: 0.75; font-style: italic; 
}


.ai-section { 
    margin-top: -40px; position: relative; z-index: 10; padding: 0 24px; 
}
.ai-panel {
    background-color: var(--dark-panel); color: white; border-radius: 1.5rem;
    padding: 40px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex; flex-direction: column; gap: 32px; align-items: center; justify-content: space-between;
}
@media (min-width: 768px) { 
    .ai-panel { flex-direction: row; } 
}

.ai-badge {
    background-color: var(--primary-dark); font-size: 0.75rem; font-weight: bold;
    padding: 6px 16px; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.1em;
    display: inline-flex; align-items: center; gap: 8px;
}
.ai-title { 
    font-size: 1.875rem; font-weight: bold; margin-top: 16px; 
}
.ai-desc { 
    color: #9ca3af; margin-top: 12px; max-width: 28rem; line-height: 1.5; 
}


.features-section { 
    padding: 80px 24px; 
}
.features-grid { 
    display: grid; gap: 32px; 
}
@media (min-width: 768px) { 
    .features-grid { grid-template-columns: repeat(3, 1fr); } 
}

.feature-card {
    background-color: white; padding: 32px; border-radius: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}
.feature-card:hover { 
    transform: scale(1.02); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); 

}


.feature-icon {
    background-color: #eff6ff; width: 56px; height: 56px; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center; color: var(--primary-dark); margin-bottom: 24px;
}
.feature-title { 
    font-size: 1.25rem; font-weight: bold; margin-bottom: 12px; 
}

.feature-desc { 
    color: var(--text-muted); font-size: 0.875rem; line-height: 1.625; 
}

/* widoki */
.carousel-section { 
    padding: 48px 24px; text-align: center; 
}

.section-title { 

    font-size: 1.875rem; font-weight: bold; margin-bottom: 8px; 
}

.section-subtitle { 
    color: var(--text-muted); margin-bottom: 40px; 

}

.carousel-wrapper { 
    position: relative; max-width: 896px; margin: 0 auto; 
}

.carousel-container {
    overflow: hidden; border-radius: 1rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid white; background-color: white;
}
.carousel-track { 
    display: flex; transition: transform 0.5s ease-in-out; 
}

.carousel-slide { 
    width: 100%; flex-shrink: 0; object-fit: cover; 
}



.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: white; color: var(--primary-dark); padding: 16px; border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); cursor: pointer; border: none;
    transition: all 0.3s; opacity: 0; display: none; z-index: 10;
}




@media (min-width: 640px) { 
    .carousel-btn { display: block; } 

}

.carousel-wrapper:hover .carousel-btn { 
    opacity: 1; 
}

.carousel-btn:hover { 
    background: var(--primary-dark); color: white; transform: translateY(-50%) scale(1.1); 
}

.carousel-prev { 
    left: -20px; 
}
.carousel-next { 
    right: -20px; 
}

.carousel-dots { 
    display: flex; justify-content: center; gap: 12px; margin-top: 24px; 
}
.carousel-dot {
    width: 12px; height: 12px; border-radius: 50%; background-color: #d1d5db;
    border: none; cursor: pointer; transition: all 0.3s;
}
.carousel-dot:hover { 
    background-color: #9ca3af; 
}
.carousel-dot.active {
    background-color: var(--primary-dark); transform: scale(1.25); 
}

/* Zdjęcia zespołu */
.team-section { 
    padding: 80px 24px; text-align: center; 
}
.team-grid { 
    display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; 
}
@media (min-width: 768px) { 
    .team-grid { gap: 48px; } 
}

.team-member { 
    display: flex; flex-direction: column; items-center: center; width: 144px; text-decoration: none; cursor: pointer; 
}

.avatar-wrapper {
    position: relative; width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; padding: 4px;
    transition: transform 0.3s; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.team-member:hover .avatar-wrapper { 
    transform: scale(1.1); 
}

.avatar-img { 
    width: 100%; height: 100%; border-radius: 50%; border: 2px solid white; object-fit: cover; 
}
/* Styl dla awatarów */
.grad-krzysztof {
    background: linear-gradient(to top right, #635BFF, #c084fc);
}

.grad-oleksii {
    background: linear-gradient(to top right, #fb923c, #ef4444);
}

.grad-robert {
    background: linear-gradient(to top right, #34d399, #14b8a6);
}

.grad-szymon {
    background: linear-gradient(to top right, #60a5fa, #6366f1);
}

.grad-mateusz {
    background: linear-gradient(to top right, #fb7185, #ec4899);
}


.team-name { 
    font-weight: bold; color: var(--text-main); font-size: 0.875rem; 
}
.team-role { 
    font-size: 0.75rem; font-weight: 500; color: var(--primary-dark); margin-top: 4px; 
}
.team-spec { 
    font-size: 11px; color: #9ca3af; margin-top: 2px; 
}


.footer {
    background-color: white; color: var(--text-muted); padding: 48px 0;
    text-align: center; border-top: 1px solid #f3f4f6; margin-top: auto;
}

.footer-title { 
    font-weight: bold; color: #374151; margin-bottom: 12px; font-size: 1.125rem; 
}
.footer-desc { 
    max-width: 36rem; margin: 0 auto; line-height: 1.625; 
}
.footer-license { 
    margin-top: 24px; padding-top: 24px; border-top: 1px solid #f9fafb; display: inline-block; 
}
.license-text { 
    font-size: 0.75rem; color: #9ca3af; display: flex; align-items: center; justify-content: center; gap: 4px; 
}
.license-text a { 
    font-weight: bold; color: inherit; text-decoration: none; transition: color 0.3s; 
}
.license-text a:hover { 
    color: var(--primary-dark); 
}


.modal-overlay {
    position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
    background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px);
    transition: all 0.3s;
}
.modal-content {
    background: white; border-radius: 1.5rem; padding: 32px; max-width: 32rem; width: 100%;
    margin: 0 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); position: relative;
    transition: all 0.3s;
}


.modal-active { 
    opacity: 1; pointer-events: auto; 
}
.modal-inactive { 
    opacity: 0; pointer-events: none; 
}
.modal-content-active { 
    transform: scale(1); 
}
.modal-content-inactive { 
    transform: scale(0.95); 
}


.modal-close {
    position: absolute; top: 20px; right: 20px; color: #9ca3af;
    background: none; border: none; cursor: pointer; transition: color 0.3s;

}
.modal-close:hover { 
    color: var(--text-main); 
}

.modal-header { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    margin-bottom: 20px; 
}
.modal-icon {
    background-color: #eef2ff; width: 48px; height: 48px; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center; color: var(--primary-dark);
}
.modal-title { 

    font-size: 1.5rem; font-weight: bold; color: var(--text-main); 
}
.modal-body { 
    color: #4b5563; line-height: 1.625; margin-bottom: 24px; 
}


.btn-full { 
    width: 100%; 
}

