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

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0d1117;
    color: #c9d1d9;
}

/* NAV */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    background: rgba(13, 17, 23, 0.7);
    border-bottom: 1px solid rgba(255,255,255,0.05);

    transition: all 0.3s ease;
}

nav {
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: auto;
    padding: 15px;
} 

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

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-left: 0;
}

.logo-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(88, 166, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    color: #58a6ff;
    transition: color 0.2s ease;
}

/* LAYOUT */
.container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

/* HERO */
.hero {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #58a6ff;
}

/* TEXT */
h1 {
    color: #58a6ff;
}

h2 {
    margin-bottom: 15px;
    color: #58a6ff;
}

.subtitle {
    color: #8b949e;
}

.mt-12 {
    margin-top: 12px;
}

.mt-8 {
    margin-top: 8px;
}

/* TAGS */
.tags span {
    display: inline-block;
    background: #161b22;
    padding: 8px 12px;
    margin: 5px;
    border-radius: 20px;
    border: 1px solid #30363d;
}

/* CARD */
.card {
    background: #161b22;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #30363d;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 20px;
    background: #238636;
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

/* LINKS */
a {
    color: #58a6ff;
}

/* FOOTER */
.footer {
    text-align: center;
    color: #8b949e;
}

/* ANIMACJA */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

body.has-animations .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.85s ease-out, transform 0.85s ease-out;
}

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

@media (max-width: 768px) {
    body.has-animations .fade-in {
        transform: translateY(30px);
        transition-duration: 1s;
    }
}

/* GALERIA */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #30363d;
    transition: 0.3s;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* NAV LINK ACTIVE HOVER */
.nav-links a {
    margin-left: 15px;
    text-decoration: none;
    color: #c9d1d9;
}

.nav-links a:hover {
    color: #58a6ff;
}

/* LEPSZY BUTTON */
.btn:hover {
    background: #2ea043;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: #8b949e;
    font-size: 0.95rem;
}

.status-badge {
    background: rgba(35, 134, 54, 0.2);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.4);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 150px;
    background: #161b22;
    padding: 25px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #30363d;
    transition: 0.3s;
}

.stat:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.stat h3 {
    font-size: 2rem;
    color: #58a6ff;
}

.stat p {
    color: #8b949e;
    margin-top: 5px;
}

@keyframes bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.2); }
    60%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.bounce {
    animation: bounce 0.4s ease;
}

/* DROPDOWN */

.dropdown {
    position: relative;
}

.nav-links a,
.dropbtn {
    position: relative;
    color: #c9d1d9;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.dropbtn {
    background: transparent;
    border: 0;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    -webkit-appearance: none;
    appearance: none;
    display: inline;
    vertical-align: baseline;
    padding: 0;
}

.dropbtn:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 4px;
    border-radius: 4px;
}


.dropdown-content {
    position: absolute;
    top: 120%;
    left: 0;

    min-width: 100px;

    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(12px);

    border: 1px solid #30363d;
    border-radius: 10px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.4);

    opacity: 0;
    transform: translateY(10px) scale(0.98);
    pointer-events: none;

    transition: all 0.25s ease;
}

.dropdown-content a {
    display: block;
    padding: 12px 5px;
    color: #c9d1d9;
}

.dropdown-content a:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown:focus-within .dropdown-content,
.dropdown.open .dropdown-content {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* underline hover animation */
.nav-links a::after,
.dropbtn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #58a6ff;
    transition: 0.3s;
}

.nav-links a:hover::after,
.dropbtn:hover::after,
.dropbtn:focus-visible::after {
    width: 100%;
}

/* HOVER COLOR */
.nav-links a:hover,
.dropbtn:hover,
.dropbtn:focus-visible {
    color: #58a6ff;
}

.logo-link:hover .logo-avatar,
.logo-link:focus-visible .logo-avatar {
    transform: scale(1.04);
    border-color: #58a6ff;
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.16);
}

.logo-link:hover .logo-text,
.logo-link:focus-visible .logo-text {
    color: #79c0ff;
}

.logo-link:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 4px;
    border-radius: 999px;
}

.support-hero {
    align-items: center;
}

.support-avatar {
    width: 96px;
    height: 96px;
    object-fit: cover;
}

@media (max-width: 600px) {
    .support-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}