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

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* Local Baldur font */
@font-face {
    font-family: 'Baldur';
    src: url('./fonts/Baldur.woff2') format('woff2'),
         url('./fonts/Baldur.woff') format('woff'),
         url('./fonts/Baldur.ttf') format('truetype'),
         url('./fonts/Baldur.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    line-height: 1.6;
    color: #f0e6d3;
    overflow-x: hidden;
    background: #1a120b;
}

/* Navigation - Sleek medieval */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, 
        #4a3222 0%, 
        #5c3d2e 50%, 
        #4a3222 100%);
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 4px solid #2d1f14;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 200, 100, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    position: relative;
}

nav a {
    color: #f4d03f;
    text-decoration: none;
    font-family: 'Marcellus', serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

nav a:hover {
    color: #ffe066;
    text-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
}

/* Section Base Styles */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Transparent sections (show background) */
.transparent-section {
    background: transparent;
}

/* Solid background sections - Base styles */
.solid-section {
    position: relative;
    z-index: 1;
    padding-top: 150px;
    padding-bottom: 150px;
}

/* ============================================
   WOOD TEXTURE SECTIONS (Upper floors)
   ============================================ */

.wood-section {
    background-color: #6b4423;
}

.wood-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./wood.png');
    background-repeat: repeat;
    background-size: 400px auto;
    opacity: 1;
    pointer-events: none;
}

.wood-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            180deg,
            rgba(107, 68, 35, 0.3) 0%,
            rgba(139, 90, 43, 0.2) 50%,
            rgba(107, 68, 35, 0.3) 100%
        );
    pointer-events: none;
}

.wood-section .section-border-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg,
        #5c3d2e 0%,
        #8b5a2b 20%,
        #d4a54a 50%,
        #8b5a2b 80%,
        #5c3d2e 100%
    );
    box-shadow: 0 2px 10px rgba(212, 165, 74, 0.3);
    z-index: 2;
}

.wood-section h2 {
    font-family: 'Baldur', 'Cinzel', serif;
    color: #f4d03f;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.wood-section p {
    color: #e8dcc8;
}

/* ============================================
   STONE TEXTURE SECTIONS (Basement)
   ============================================ */

.stone-section {
    background-color: #3a3a3a;
}

.stone-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./stone.png');
    background-repeat: repeat;
    background-size: 500px auto;
    opacity: 1;
    pointer-events: none;
}

.stone-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            180deg,
            rgba(30, 30, 35, 0.4) 0%,
            rgba(50, 50, 55, 0.2) 50%,
            rgba(30, 30, 35, 0.5) 100%
        );
    pointer-events: none;
}

.stone-section .section-border-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg,
        #2a2a2a 0%,
        #4a4a4a 15%,
        #6a6a6a 30%,
        #8a8a8a 50%,
        #6a6a6a 70%,
        #4a4a4a 85%,
        #2a2a2a 100%
    );
    box-shadow: 0 2px 10px rgba(100, 100, 100, 0.3);
    z-index: 2;
}

.stone-section h2 {
    font-family: 'Baldur', 'Cinzel', serif;
    color: #a8c0d0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.stone-section p {
    color: #c5d0d8;
}

.stone-section .studio-logo {
    border: 4px solid #4a4a4a;
    box-shadow: 
        0 0 0 4px #3a3a3a,
        0 0 0 8px #a8c0d0,
        0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ============================================
   PARALLAX BACKGROUND
   ============================================ */

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform-origin: center center;
    will-change: transform, opacity;
    transition: transform 0.1s ease-out;
    visibility: hidden;
}

.bg-layer.active {
    opacity: 1;
    visibility: visible;
}

.bg-layer-1 {
    background-image: url('./bg1.png');
}

.bg-layer-2 {
    background-image: url('./bg2.png');
}

/* ============================================
   SECTION 1: INTRO
   ============================================ */

#intro {
    height: 100vh;
    overflow: hidden;
    padding: 0;
}

#intro::before,
#intro::after {
    display: none;
}

.intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, 
            rgba(26, 18, 11, 0.2) 0%, 
            rgba(26, 18, 11, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-logo {
    max-width: 80%;
    max-height: 60vh;
    width: auto;
    height: auto;
    z-index: 10;
    animation: fadeInUp 1.5s ease;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.8));
    will-change: transform, opacity;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.intro-title {
    font-family: 'Baldur', 'Cinzel', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #f4d03f;
    text-align: center;
    text-shadow: 
        2px 2px 0 #1a120b,
        4px 4px 0 rgba(0, 0, 0, 0.5),
        0 0 40px rgba(244, 208, 63, 0.4);
    z-index: 10;
    animation: fadeInUp 1.5s ease;
    letter-spacing: 4px;
    will-change: transform, opacity;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTION 2: ABOUT GAME
   ============================================ */

#about-game {
    padding: 8rem 2rem;
}

.about-game-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    background: 
        linear-gradient(135deg,
            rgba(45, 31, 20, 0.95) 0%,
            rgba(61, 42, 28, 0.95) 50%,
            rgba(45, 31, 20, 0.95) 100%);
    padding: 3rem;
    border-radius: 4px;
    border: 3px solid #5c3d2e;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(212, 165, 74, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

.about-game-container::before,
.about-game-container::after {
    content: '⚜';
    position: absolute;
    font-size: 1.5rem;
    color: #d4a54a;
    opacity: 0.6;
}

.about-game-container::before {
    top: 10px;
    left: 15px;
}

.about-game-container::after {
    bottom: 10px;
    right: 15px;
}

.about-game-text {
    flex: 1;
}

.about-game-text h2 {
    font-family: 'Baldur', 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #d4a54a;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.about-game-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #e8dcc8;
}

.about-game-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: 'Marcellus', serif;
    font-size: 1rem;
    text-decoration: none;
    color: #f0e6d3;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 220px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn-kickstarter {
    background: linear-gradient(180deg, #2e8b57 0%, #1e5c3a 100%);
    border-color: #3cb371;
    box-shadow: 
        0 4px 15px rgba(46, 139, 87, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-kickstarter:hover {
    background: linear-gradient(180deg, #3cb371 0%, #2e8b57 100%);
    box-shadow: 
        0 10px 30px rgba(46, 139, 87, 0.4),
        0 0 20px rgba(60, 179, 113, 0.3);
}

.btn-steam {
    background: linear-gradient(180deg, #2a475e 0%, #1b2838 100%);
    border-color: #66c0f4;
    box-shadow: 
        0 4px 15px rgba(27, 40, 56, 0.3),
        inset 0 1px 0 rgba(102, 192, 244, 0.2);
}

.btn-steam:hover {
    background: linear-gradient(180deg, #3a6a8a 0%, #2a475e 100%);
    box-shadow: 
        0 10px 30px rgba(27, 40, 56, 0.4),
        0 0 20px rgba(102, 192, 244, 0.3);
}

/* ============================================
   SECTION 3: SCREENSHOTS
   ============================================ */

#screenshots {
    padding: 10rem 2rem;
}

.screenshots-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.screenshots-container h2 {
    font-family: 'Baldur', 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    letter-spacing: 3px;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
    border: 4px solid #3d2817;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 0 2px rgba(212, 165, 74, 0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #8b5a2b 0%, #5c3d2e 100%);
    color: #f4d03f;
    border: 3px solid #3d2817;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.carousel-btn:hover {
    background: linear-gradient(180deg, #9a6b3c 0%, #8b5a2b 100%);
    color: #ffe066;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(212, 165, 74, 0.3);
}

.carousel-btn-prev {
    left: 15px;
}

.carousel-btn-next {
    right: 15px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #5c3d2e;
    border: 2px solid #8b5a2b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: #8b5a2b;
}

.carousel-dot.active {
    background: #f4d03f;
    border-color: #ffe066;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
}

.carousel-counter {
    margin-top: 1rem;
    color: #d4a54a;
    font-size: 0.9rem;
    font-family: 'Marcellus', serif;
    letter-spacing: 2px;
}

/* ============================================
   SECTION 4: SOCIAL
   ============================================ */

#social {
    padding: 8rem 2rem;
}

.social-container {
    text-align: center;
    background: 
        linear-gradient(135deg,
            rgba(45, 31, 20, 0.95) 0%,
            rgba(61, 42, 28, 0.95) 50%,
            rgba(45, 31, 20, 0.95) 100%);
    padding: 3rem 4rem;
    border-radius: 4px;
    border: 3px solid #5c3d2e;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(212, 165, 74, 0.2);
    position: relative;
}

.social-container::before {
    content: '— ❧ —';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3d2a1c;
    padding: 0 1rem;
    color: #d4a54a;
    font-size: 1rem;
}

.social-container h2 {
    font-family: 'Baldur', 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #d4a54a;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(180deg, #8b5a2b 0%, #5c3d2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #f4d03f;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 3px solid #3d2817;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: scale(1.1) rotate(5deg);
    color: #ffe066;
    border-color: #d4a54a;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 165, 74, 0.3);
}

.social-icon.bluesky:hover {
    background: linear-gradient(180deg, #1185fe 0%, #0066cc 100%);
    border-color: #1185fe;
    color: white;
}

.social-icon.twitter:hover {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    border-color: #555;
    color: white;
}

.social-icon.youtube:hover {
    background: linear-gradient(180deg, #ff0000 0%, #cc0000 100%);
    border-color: #ff0000;
    color: white;
}

.social-icon.discord:hover {
    background: linear-gradient(180deg, #5865f2 0%, #4752c4 100%);
    border-color: #5865f2;
    color: white;
}

/* ============================================
   SECTION 5: ABOUT STUDIO
   ============================================ */

#about-studio {
    padding: 10rem 2rem;
}

.about-studio-container {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-studio-container h2 {
    font-family: 'Baldur', 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 3px;
}

.about-studio-container p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.studio-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(180deg, 
        #2a2a2a 0%, 
        #3a3a3a 50%, 
        #2a2a2a 100%);
    color: #a8c0d0;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    border-top: 4px solid #4a4a4a;
    font-family: 'Marcellus', serif;
    letter-spacing: 1px;
}

footer::before {
    content: '⚔';
    display: block;
    font-size: 1.5rem;
    color: #a8c0d0;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a120b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5a2b 0%, #5c3d2e 100%);
    border: 2px solid #1a120b;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9a6b3c 0%, #8b5a2b 100%);
}

::selection {
    background: #d4a54a;
    color: #1a120b;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
        font-size: 0.85rem;
    }

    nav a {
        letter-spacing: 1px;
    }

    .intro-logo {
        max-width: 90%;
        max-height: 50vh;
    }

    .intro-title {
        font-size: 2.5rem;
        padding: 0 1rem;
        letter-spacing: 2px;
    }

    .about-game-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .about-game-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .carousel-slide img {
        height: 250px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .social-container {
        padding: 2rem;
    }

    .social-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .solid-section {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    #screenshots,
    #about-studio {
        padding: 8rem 2rem;
    }
}