:root {
    --accent: #382626; /* Dark red for fantasy accent */
    --shadow-color: rgba(44, 5, 5, 0.5);
    --text-color: #f0f0f0;
    --bg-secondary: #1a1a1a;
}

@font-face {
    font-family: 'Swordskulls'; /* Название, которое будете использовать */
    /* путь относительно css/style.css: файлы лежат в корне проекта */
    src: url('../Swordskull PERSONAL USE.woff2') format('woff2');
    /* если позже появится .woff, можно добавить в список ниже:
       url('../Swordskull PERSONAL USE.woff') format('woff') */
    font-weight: normal;
    font-style: normal;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    background:
        url("../img/bg.png");
    background-size: auto;
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: center top;
    color: var(--text-color);
    font-family: 'Swordskulls'; /* Gothic serif font */
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to bottom, black 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 10;
}

body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to top, black 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 10;
}

.intro {
    padding: 30px 20px;
    text-align: center;
    flex-shrink: 0;
}

.title {
    font-family: 'Swordskulls', serif;
    font-size: clamp(2rem, 8vw, 4rem);
    margin: 0;
    /* Эффект травления металла или старого камня */
    background: linear-gradient(to bottom, #cfcfcf 0%, #525252 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--accent));
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--accent); }
    to { text-shadow: 0 0 20px var(--accent), 0 0 30px var(--accent); }
}

.scene {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene img {
    transition: transform 1s, filter 1s;
    transform-style: preserve-3d;
    position: absolute;
    filter: drop-shadow(0 0 10px var(--shadow-color));
}

.scene img:hover {
    filter: drop-shadow(0 0 20px var(--accent)) brightness(1.2);
}

.scroll {
    max-width: 1000px;
    margin: 30px auto;
    padding: 30px;
    background: #1a1612;
    border: 2px solid #3d2f23;
    border-image: url("https://www.transparenttextures.com/patterns/dark-matter.png"); 
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.9),
        inset 0 0 100px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.scroll::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 15px var(--accent);
    opacity: 0.3;
    pointer-events: none;
}

.project {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    border: 1px solid var(--accent);
}

.project img {
    width: 100%;
    border-radius: 4px;
    filter: sepia(0.3) contrast(1.2);
}

.main-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(41, 39, 35, 0.9);
    color: var(--text-color);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7), inset 0 0 30px rgba(0,0,0,0.25);
    border: 2px solid var(--accent);
}



.artifact {
    position: absolute;
    width: clamp(100px, 18vw, 200px);
    height: auto;
    transition: transform 0.3s, filter 0.3s;
    z-index: 3;
    cursor: pointer;
}

.artifact.skull { 
    top: 60%;
    left: 13%;
    transform: translateY(-50%);
}

.artifact.skull:hover {
    transform: translateY(-50%) rotate(20deg) scale(1.15);
}

.artifact.cassette { 
    top: 30%;
    left: 38%;
    transform: translateY(-50%);
}

.artifact.cassette:hover {
    transform: translateY(-50%) rotate(20deg) scale(1.15);
}

.artifact.katana { 
    top: 35%;
    right: 15%;
    transform: translateY(-50%);
}

.artifact.katana:hover {
    transform: translateY(-50%) rotate(20deg) scale(1.15);
}

/* Link styles */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Artifact links have no underline */
.scene a {
    text-decoration: none !important;
}

.scene a:hover {
    text-decoration: none !important;
}


/* Фоны для внутренних страниц */
body.notes-page {
    background:
        linear-gradient(
            to bottom,
            black 0%,
            rgba(0,0,0,0) 20%,
            rgba(0,0,0,0) 80%,
            black 100%
        ),
        url("../img/blog-bg.png");
    background-size: auto, auto;
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: center top;
}

body.about-page {
    background:
        linear-gradient(
            to bottom,
            black 0%,
            rgba(0,0,0,0) 20%,
            rgba(0,0,0,0) 80%,
            black 100%
        ),
        url("../img/bgn2.png");
    background-size: auto, auto;
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: center top;
}

body.projects-page {
    background:
        linear-gradient(
            to bottom,
            black 0%,
            rgba(0,0,0,0) 20%,
            rgba(0,0,0,0) 80%,
            black 100%
        ),
        url("../img/projects-bg.png");
    background-size: auto, auto;
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: center top;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .title {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }
    
    .intro {
        padding: 20px 15px;
    }
    
    .scene {
        min-height: 300px;
    }
    
    .artifact {
        width: clamp(80px, 15vw, 150px);
    }
    
    .scroll {
        max-width: 90%;
        margin: 20px auto;
        padding: 20px;
    }
    
    .main-container {
        max-width: 90%;
        margin: 20px auto;
        padding: 15px;
    }
}
