/* RESET I BAZA */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0c29;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #24243e, #302b63, #0f0c29);
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px; /* Szerokość typowa dla smartfona/wizytówki */
    text-align: center;
}

/* NAGŁÓWEK */
header {
    margin-bottom: 40px;
    animation: fadeIn 1s ease-in;
}

.avatar-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, #3700ff, #6928ff); /* Ramka w kolorze ZKA */
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1a1a2e; /* Odcięcie od tła */
}

h1 { font-size: 2em; margin-bottom: 5px; letter-spacing: 1px; }
.tagline { color: #aaa; font-size: 0.95em; margin-bottom: 15px; }

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* SEKCJE */
.section-title {
    text-align: left;
    font-size: 0.9em;
    text-transform: uppercase;
    color: #666;
    margin: 30px 0 15px;
    padding-left: 5px;
    border-left: 3px solid #0078d7;
    padding-left: 10px;
}

/* KARTY PROJEKTÓW */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    transition: transform 0.2s, background 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #0078d7;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: #0078d7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    margin-right: 15px;
}

.text-box { flex: 1; text-align: left; }
.text-box h3 { font-size: 1.1em; margin-bottom: 2px; }
.text-box p { font-size: 0.8em; color: #aaa; }

.arrow { color: #555; transition: 0.2s; }
.card:hover .arrow { color: #fff; transform: translateX(3px); }

/* SOCIAL MEDIA GRID */
.social-grid {
    display: grid;
    grid-template-columns: 1fr; 
    
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    transition: 0.2s;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover { filter: brightness(1.2); }

/* Kolory konkretnych social mediów */
.social-btn.facebook { background: #3b5998; }
.social-btn.instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
}
.social-btn.github { background: #333; }
.social-btn.mail { background: #222; border: 1px solid #444; }
.social-btn.discord { background: #7289da; }

/* STOPKA */
footer {
    margin-top: 50px;
    font-size: 0.75em;
    color: #555;
}

/* ANIMACJA WEJŚCIA */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}