/* Основные настройки */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #888888;
    --grid-gap: 2px; /* Минимальный зазор для стиля r9faa */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 40px;
    z-index: 1000;
}

.logo {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* Hero Секция */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 0.8;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
}

.outline {
    -webkit-text-stroke: 1px var(--accent-color);
    color: transparent;
}

.indented {
    margin-left: 10%;
}

.hero-main-image {
    position: absolute;
    right: 5%;
    top: 0;
    width: 35vw;
    height: 50vh;
    z-index: 5;
    filter: grayscale(100%);
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-footer {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-bio {
    max-width: 400px;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.scroll-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Сетка портфолио (как на MyPortfolio Рагнара) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    background-color: var(--bg-color);
}

.project-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    background-color: #111;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-info {
    text-align: center;
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-footer {
    padding: 60px 40px;
    text-align: center;
    font-size: 0.7rem;
    color: #444;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-main-image {
        width: 60vw;
        opacity: 0.3;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .hero-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}