:root {
    --bg-color: #0d0221;
    --primary-color: #00f7ff;
    --text-color: #f0f0f0;
    --text-secondary-color: #c0c0c0;
    --glass-bg: rgba(16, 18, 27, 0.8);
    --glass-border: rgba(0, 247, 255, 0.2);
    --separator-color: rgba(0, 247, 255, 0.3);
    --font-main: 'Fira Code', monospace;
    --transition-speed: 0.3s;
}

@keyframes pulse-text-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pulsating-link {
  background: linear-gradient( to left, #85ffc7, #79d4ff, #a279ff, #ff85a2 );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-decoration: none;
  animation: pulse-text-gradient 3s ease-in-out infinite;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden; 
    background-image: radial-gradient(circle, #1a233a, #000011 70%);
}

#tsparticles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.main-nav a {
    color: var(--text-secondary-color);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 400;
    transition: var(--transition-speed) ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--text-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.main-nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 6rem 2rem 2rem; 
}

#home-hub {
    text-align: center;
}

.profile-picture { 
    width: 150px; 
    height: 150px; 
    border-radius: 50%; 
    border: 3px solid var(--primary-color); 
    box-shadow: 0 0 20px var(--primary-color); 
    margin-bottom: 1.5rem; 
}

#home-hub h1 { 
    font-size: 3rem; 
    color: var(--text-color); 
    text-shadow: 0 0 10px var(--primary-color); 
    font-weight: 400; 
}
#home-hub .subtitle { 
    color: var(--text-secondary-color); 
    margin-top: 0.5rem;
}

.content-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.content-wrapper h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--separator-color);
}

.content-wrapper .page-subtitle {
    color: var(--text-secondary-color);
    margin-top: -1rem;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}
.content-wrapper p {
    color: var(--text-secondary-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: rgba(13, 2, 33, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 247, 255, 0.15);
    border-color: var(--primary-color);
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.project-logo {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 8px;
}

.project-title h3 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.project-title .role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.project-card p {
    color: var(--text-secondary-color);
    line-height: 1.6;
    flex-grow: 1;
}

.project-button {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-speed) ease;
}

.project-button:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary-color);
}


/* === Siatka Skilli (/stack) === */
.stack-category {
    margin-bottom: 3rem;
}

.stack-category h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(13, 2, 33, 0.5);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    font-size: 1rem;
}
.stack-item i {
    font-size: 2rem;
    color: var(--primary-color);
}
.stack-item span {
    color: var(--text-secondary-color);
}

.creation-section {
    margin-bottom: 3rem;
}
.creation-section h3 {
    font-size: 1.7rem; color: var(--text-color); margin-bottom: 0.5rem;
}
.creation-section p {
    max-width: 80ch;
}
.sub-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.sub-item {
    padding: 1rem;
    background: rgba(13, 2, 33, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}
.sub-item h4 { color: var(--primary-color); margin-bottom: 0.5rem; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.contact-button { display: flex; align-items: center; justify-content: flex-start; padding: 1rem 1.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(8px); color: var(--text-secondary-color); text-decoration: none; font-family: var(--font-main); font-weight: 400; border-radius: 8px; transition: all 0.3s ease-out; }
.contact-button:hover { background: var(--primary-color); color: var(--bg-color); transform: translateY(-5px) scale(1.03); box-shadow: 0 8px 20px rgba(0, 247, 255, 0.3); }
.contact-button i { font-size: 1.6rem; margin-right: 1rem; transition: transform 0.3s ease; }
.contact-button:hover i { transform: scale(1.1) rotate(-5deg); }
.contact-button span { font-size: 1rem; line-height: 1; }

@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
        justify-content: center;
    }
    .main-nav a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
    .content-wrapper {
        padding: 1.5rem;
    }
    .content-wrapper h2 {
        font-size: 1.8rem;
    }
}