:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #bb86fc; /* Elegancki fiolet */
    --nav-height: 60px;
}

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

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Nawigacja */
nav {
    background-color: rgba(18, 18, 18, 0.95);
    height: var(--nav-height);
    display: flex;
    justify-content: center; /* Wyśrodkowanie linków */
    flex-wrap: wrap;
    align-items: center;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #333;
    backdrop-filter: blur(5px);
    z-index: 1000;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

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

/* Efekt podkreślenia */
nav a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.project a {
    color: var(--text-primary);
    text-decoration: none;
    /*margin: 20px;*/
    font-weight: 400;
    /*font-size: 0.9rem;*/
    /*text-transform: uppercase;*/
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.project a:hover::after,
.project a.active::after {
    width: 100%;
}

.project + p {
    margin-top: 10px;
    margin-bottom: 5px;
}

/* Kontener treści */
main {
    flex: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

/* Animacja wejścia */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
    color: var(--accent-color);
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 300;
    color: var(--accent-color);
}

p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

/* Style dla Galerii */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px;
}

.gallery-item {
    background-color: var(--surface-color);
    height: 200px;
    /*max-width: 80%;*/
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.25);
    transition: cubic-bezier(0.39, 0.575, 0.565, 1) 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.gallery-item:hover img {
    opacity: 1;
}

/* Style formularza kontaktowego */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
}

/*input,
textarea,
button {
    padding: 15px;
    margin-bottom: 15px;
    background-color: var(--surface-color);
    border: 1px solid #333;
    color: var(--text-primary);
    font-family: inherit;
    border-radius: 4px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

button {
    background-color: var(--accent-color);
    color: #000;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.3s;
}

button:hover {
    opacity: 0.9;
}*/

.contact-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
}

.contact-links a {
    font-size: 3.5rem;
    color: #333;
    text-decoration: none;
    transition:
        scale 0.2s ease-out,
        transform 0.2s ease-out,
        color 0.2s ease-out;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
}

.contact-item label {
    font-weight: bold;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: opacity 0.2s ease-out;
    opacity: 0;
    user-select: none;
}

.contact-links a:hover {
    scale: 1.1;
    transform: translateY(-4px);
    color: var(--accent-color);
}

.contact-links a:hover label {
    opacity: 1;
}
