/* ==========================================
   RUNESCAPE THEMED PORTFOLIO
   ========================================== */

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

:root {
    --rs-orange: #ff981f;
    --rs-yellow: #ffff00;
    --rs-gold: #c9aa71;
    --rs-brown: #3e3529;
    --rs-dark-brown: #2b2418;
    --rs-darker: #1a1610;
    --rs-stone: #4a4136;
    --rs-stone-light: #5c5347;
    --rs-parchment: #d4c4a8;
    --rs-parchment-dark: #b8a88c;
    --rs-red: #ff3333;
    --rs-green: #00ff00;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cinzel', serif;
    line-height: 1.6;
    color: var(--rs-orange);
    background: #2a2a2a;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: default;
}

/* OG RUNESCAPE STONE BRICK WALL BACKGROUND */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gray stone brick pattern */
    background:
        /* Horizontal mortar lines */
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 47px,
            #1a1a1a 47px,
            #1a1a1a 50px
        ),
        /* Vertical mortar lines - offset every other row */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 97px,
            #1a1a1a 97px,
            #1a1a1a 100px
        ),
        /* Stone color variation */
        repeating-linear-gradient(
            0deg,
            #3d3d3d 0px,
            #454545 25px,
            #3a3a3a 50px
        ),
        /* Base darker gray */
        linear-gradient(180deg, #353535 0%, #2d2d2d 50%, #252525 100%);
    z-index: -1;
}

/* Stone archway frame overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark vignette/depth effect */
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Left stone wall panel */
.stone-wall-left {
    position: fixed;
    left: 0;
    top: 0;
    width: 150px;
    height: 100%;
    background:
        /* Vertical pillar groove */
        linear-gradient(90deg,
            #2a2a2a 0%,
            #3a3a3a 20%,
            #4a4a4a 40%,
            #3d3d3d 60%,
            #333333 80%,
            #2a2a2a 100%
        );
    box-shadow: inset -10px 0 30px rgba(0,0,0,0.5);
    z-index: 50;
}

/* Right stone wall panel */
.stone-wall-right {
    position: fixed;
    right: 0;
    top: 0;
    width: 150px;
    height: 100%;
    background:
        linear-gradient(90deg,
            #2a2a2a 0%,
            #333333 20%,
            #3d3d3d 40%,
            #4a4a4a 60%,
            #3a3a3a 80%,
            #2a2a2a 100%
        );
    box-shadow: inset 10px 0 30px rgba(0,0,0,0.5);
    z-index: 50;
}

/* ==========================================
   LOADING SCREEN
   ========================================== */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-title {
    font-family: 'MedievalSharp', cursive;
    font-size: 4rem;
    color: var(--rs-yellow);
    text-shadow:
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        0 0 20px rgba(255, 152, 31, 0.5);
    margin-bottom: 0.5rem;
}

.loading-subtitle {
    font-size: 1.5rem;
    color: var(--rs-gold);
    margin-bottom: 2rem;
}

.loading-bar-container {
    width: 300px;
    height: 20px;
    background: var(--rs-dark-brown);
    border: 3px solid var(--rs-stone);
    margin: 0 auto 2rem;
    position: relative;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(180deg, var(--rs-red) 0%, #aa0000 100%);
    width: 0%;
    animation: loadingProgress 2s ease forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ==========================================
   RUNESCAPE BUTTONS
   ========================================== */

.rs-btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: bold;
    color: var(--rs-orange);
    background: linear-gradient(180deg, #5c5347 0%, #3e3529 50%, #2b2418 100%);
    border: 3px solid var(--rs-stone-light);
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    text-shadow: 1px 1px 2px #000;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.3),
        0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
    image-rendering: pixelated;
}

.rs-btn:hover {
    color: var(--rs-yellow);
    background: linear-gradient(180deg, #6c6357 0%, #4e4539 50%, #3b3428 100%);
    border-color: var(--rs-gold);
}

.rs-btn:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.5),
        0 1px 2px rgba(0,0,0,0.5);
}

.rs-btn.small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ==========================================
   MUSIC TOGGLE
   ========================================== */

.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(180deg, #5c5347 0%, #3e3529 50%, #2b2418 100%);
    border: 3px solid var(--rs-stone-light);
    color: var(--rs-orange);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
}

.music-btn:hover {
    color: var(--rs-yellow);
    border-color: var(--rs-gold);
}

.music-btn.playing {
    color: var(--rs-green);
}

.music-btn.muted .music-icon::after {
    content: '✕';
    position: absolute;
    color: var(--rs-red);
    font-size: 0.8rem;
    margin-left: -8px;
}

/* ==========================================
   FIRE BRAZIERS - OG RUNESCAPE STYLE
   ========================================== */

.brazier {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brazier-left {
    left: 20px;
}

.brazier-right {
    right: 20px;
}

/* Stone Pillar - OG RUNESCAPE STYLE */
.stone-pillar {
    width: 90px;
    height: 320px;
    background:
        /* Vertical shading for 3D effect */
        linear-gradient(90deg,
            #2d2d2d 0%,
            #3d3d3d 10%,
            #555555 25%,
            #666666 50%,
            #555555 75%,
            #3d3d3d 90%,
            #2d2d2d 100%
        );
    position: relative;
    border-left: 3px solid #222;
    border-right: 3px solid #222;
}

/* Pillar top trim band */
.stone-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -12px;
    width: 114px;
    height: 25px;
    background:
        linear-gradient(180deg,
            #5a5a5a 0%,
            #6a6a6a 30%,
            #5a5a5a 50%,
            #4a4a4a 100%
        );
    border: 3px solid #333;
    border-bottom: 4px solid #222;
}

/* Pillar bottom base */
.stone-pillar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px;
    width: 130px;
    height: 45px;
    background:
        linear-gradient(180deg,
            #4a4a4a 0%,
            #555555 20%,
            #4a4a4a 40%,
            #3a3a3a 100%
        );
    border: 3px solid #222;
    border-top: 4px solid #555;
}

/* Brazier Bowl */
.brazier-bowl {
    width: 100px;
    height: 50px;
    background: linear-gradient(180deg,
        #8b7355 0%,
        #6b5b47 30%,
        #5c4d3d 60%,
        #3d3229 100%
    );
    border-radius: 0 0 50px 50px;
    border: 4px solid #4a4136;
    border-top: none;
    position: relative;
    z-index: 2;
}

/* Bowl rim */
.brazier-bowl::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -8px;
    width: 116px;
    height: 18px;
    background: linear-gradient(180deg, #a08060 0%, #8b7355 50%, #705840 100%);
    border: 3px solid #4a4136;
    border-radius: 4px;
}

/* Bowl inner glow */
.brazier-bowl::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 15px;
    width: 70px;
    height: 25px;
    background: radial-gradient(ellipse, rgba(255,100,0,0.6) 0%, rgba(255,50,0,0.3) 50%, transparent 70%);
    border-radius: 50%;
    animation: innerGlow 0.4s ease-in-out infinite alternate;
}

@keyframes innerGlow {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Fire Container - OG RUNESCAPE PIXELATED STYLE */
.fire {
    width: 100px;
    height: 280px;
    position: relative;
    margin-bottom: -15px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Pixelated flame base style - RIGID TRIANGLES */
.flame {
    position: absolute;
    bottom: 0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform-origin: bottom center;
    image-rendering: pixelated;
}

/* Main center flame - TALL RIGID TRIANGLE */
.flame1 {
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 220px;
    background: linear-gradient(0deg,
        #cc2200 0%,
        #dd4400 15%,
        #ee6600 30%,
        #ff8800 45%,
        #ffaa00 60%,
        #ffcc00 75%,
        #ffdd44 90%,
        #ffee88 100%
    );
    animation: flicker1 0.1s steps(2) infinite;
    z-index: 5;
}

/* Left main flame */
.flame2 {
    left: 22%;
    transform: translateX(-50%);
    width: 40px;
    height: 170px;
    background: linear-gradient(0deg,
        #bb1100 0%,
        #dd3300 25%,
        #ee5500 50%,
        #ff8800 75%,
        #ffbb33 100%
    );
    animation: flicker2 0.12s steps(2) infinite;
    z-index: 3;
}

/* Right main flame */
.flame3 {
    left: 78%;
    transform: translateX(-50%);
    width: 40px;
    height: 175px;
    background: linear-gradient(0deg,
        #bb1100 0%,
        #dd3300 25%,
        #ee5500 50%,
        #ff8800 75%,
        #ffbb33 100%
    );
    animation: flicker3 0.11s steps(2) infinite;
    z-index: 3;
}

/* Far left flame */
.flame4 {
    left: 8%;
    transform: translateX(-50%);
    width: 28px;
    height: 110px;
    background: linear-gradient(0deg,
        #aa0000 0%,
        #cc2200 40%,
        #ee5500 70%,
        #ff8800 100%
    );
    animation: flicker4 0.08s steps(2) infinite;
    z-index: 2;
}

/* Far right flame */
.flame5 {
    left: 92%;
    transform: translateX(-50%);
    width: 28px;
    height: 105px;
    background: linear-gradient(0deg,
        #aa0000 0%,
        #cc2200 40%,
        #ee5500 70%,
        #ff8800 100%
    );
    animation: flicker5 0.09s steps(2) infinite;
    z-index: 2;
}

/* Inner left flame */
.flame6 {
    left: 35%;
    transform: translateX(-50%);
    width: 35px;
    height: 150px;
    background: linear-gradient(0deg,
        #cc2200 0%,
        #ee5500 35%,
        #ff9900 65%,
        #ffcc44 100%
    );
    animation: flicker6 0.13s steps(2) infinite;
    z-index: 4;
}

/* Inner right flame */
.flame7 {
    left: 65%;
    transform: translateX(-50%);
    width: 35px;
    height: 145px;
    background: linear-gradient(0deg,
        #cc2200 0%,
        #ee5500 35%,
        #ff9900 65%,
        #ffcc44 100%
    );
    animation: flicker7 0.14s steps(2) infinite;
    z-index: 4;
}

/* RIGID stepped animations - no smooth transitions */
@keyframes flicker1 {
    0% { height: 220px; }
    50% { height: 235px; }
    100% { height: 220px; }
}

@keyframes flicker2 {
    0% { height: 170px; }
    50% { height: 185px; }
    100% { height: 170px; }
}

@keyframes flicker3 {
    0% { height: 175px; }
    50% { height: 188px; }
    100% { height: 175px; }
}

@keyframes flicker4 {
    0% { height: 110px; }
    50% { height: 125px; }
    100% { height: 110px; }
}

@keyframes flicker5 {
    0% { height: 105px; }
    50% { height: 118px; }
    100% { height: 105px; }
}

@keyframes flicker6 {
    0% { height: 150px; }
    50% { height: 165px; }
    100% { height: 150px; }
}

@keyframes flicker7 {
    0% { height: 145px; }
    50% { height: 158px; }
    100% { height: 145px; }
}

/* Harsh pixelated glow - not smooth */
.fire::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 280px;
    background: radial-gradient(ellipse,
        rgba(255, 100, 0, 0.5) 0%,
        rgba(255, 50, 0, 0.25) 30%,
        rgba(200, 50, 0, 0.1) 50%,
        transparent 65%
    );
    animation: glow 0.15s steps(2) infinite;
    z-index: -1;
}

/* Remove smooth embers - add blocky sparks */
.fire::after {
    content: '';
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 120px;
    background:
        linear-gradient(transparent 0%, transparent 95%, #ffff00 95%, #ffff00 100%) 10px 0px,
        linear-gradient(transparent 0%, transparent 90%, #ffcc00 90%, #ffcc00 100%) 30px 20px,
        linear-gradient(transparent 0%, transparent 92%, #ffaa00 92%, #ffaa00 100%) 50px 10px,
        linear-gradient(transparent 0%, transparent 88%, #ffff00 88%, #ffff00 100%) 20px 40px;
    background-size: 4px 30px;
    background-repeat: no-repeat;
    animation: sparks 0.2s steps(3) infinite;
    opacity: 0.9;
}

@keyframes glow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes sparks {
    0% { transform: translateX(-50%) translateY(0); }
    33% { transform: translateX(-50%) translateY(-10px); }
    66% { transform: translateX(-50%) translateY(-20px); opacity: 0.5; }
    100% { transform: translateX(-50%) translateY(-30px); opacity: 0; }
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

#main-content {
    opacity: 1;
    transition: opacity 0.5s ease;
}

#main-content.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================
   STONE BORDERS
   ========================================== */

.stone-border {
    background: linear-gradient(180deg, #4a4136 0%, #3e3529 50%, #2b2418 100%);
    border: 4px solid var(--rs-stone-light);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.1),
        inset 0 -2px 0 rgba(0,0,0,0.3),
        0 4px 8px rgba(0,0,0,0.5);
}

/* ==========================================
   NAVIGATION
   ========================================== */

header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding-top: 20px;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.8rem;
    color: var(--rs-yellow);
    text-decoration: none;
    text-shadow: 2px 2px 0 #000;
}

.logo:hover {
    color: var(--rs-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    font-size: 0.95rem;
    color: var(--rs-orange);
    text-decoration: none;
    text-shadow: 1px 1px 2px #000;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
    border: 2px solid transparent;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--rs-yellow);
    border-color: var(--rs-gold);
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

/* ==========================================
   PARCHMENT SECTIONS
   ========================================== */

.parchment {
    background:
        linear-gradient(135deg, transparent 10px, var(--rs-parchment) 10px),
        linear-gradient(225deg, transparent 10px, var(--rs-parchment) 10px),
        linear-gradient(315deg, transparent 10px, var(--rs-parchment) 10px),
        linear-gradient(45deg, transparent 10px, var(--rs-parchment) 10px);
    background-color: var(--rs-parchment);
    padding: 3rem;
    position: relative;
    box-shadow:
        0 0 0 4px var(--rs-parchment-dark),
        0 0 0 6px var(--rs-brown),
        0 10px 30px rgba(0,0,0,0.5);
    color: var(--rs-dark-brown);
    max-width: 600px;
    margin: 0 auto;
}

.parchment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 24px,
            rgba(139, 115, 85, 0.1) 24px,
            rgba(139, 115, 85, 0.1) 25px
        );
    pointer-events: none;
}

/* ==========================================
   HERO SECTION
   ========================================== */

#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    padding-top: 120px;
}

.hero-image {
    width: 150px;
    height: 150px;
    border-radius: 0;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--rs-brown);
    box-shadow:
        0 0 0 2px var(--rs-gold),
        0 4px 8px rgba(0,0,0,0.5);
    image-rendering: pixelated;
}

#hero h1,
.parchment h1 {
    font-family: 'MedievalSharp', cursive;
    font-size: 2.5rem;
    color: var(--rs-dark-brown);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--rs-brown);
    margin-bottom: 0.25rem;
}

.highlight {
    color: var(--rs-orange);
    text-shadow: 1px 1px 0 var(--rs-dark-brown);
}

.hero-tagline {
    font-size: 1rem;
    color: var(--rs-stone);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    color: var(--rs-gold);
}

footer p {
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px #000;
}

/* ==========================================
   PAGE CONTENT (Non-home pages)
   ========================================== */

.page-content {
    padding-top: 140px;
    padding-bottom: 4rem;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.page-content h1 {
    font-family: 'MedievalSharp', cursive;
    font-size: 2.5rem;
    color: var(--rs-yellow);
    text-align: center;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 0.5rem;
}

.page-intro {
    text-align: center;
    color: var(--rs-gold);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==========================================
   QUEST-STYLE PROJECT CARDS
   ========================================== */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quest-card {
    background: linear-gradient(180deg, #4a4136 0%, #3e3529 100%);
    border: 3px solid var(--rs-stone-light);
    padding: 0;
    overflow: hidden;
}

.quest-header {
    background: linear-gradient(180deg, #5c5347 0%, #4a4136 100%);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--rs-stone-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quest-icon {
    width: 40px;
    height: 40px;
    background: var(--rs-dark-brown);
    border: 2px solid var(--rs-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.quest-title {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.4rem;
    color: var(--rs-yellow);
    text-shadow: 1px 1px 2px #000;
}

.quest-difficulty {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.quest-difficulty .star {
    color: var(--rs-gold);
    font-size: 1rem;
}

.quest-difficulty .star.empty {
    color: var(--rs-stone);
}

.quest-body {
    padding: 1.5rem;
}

.quest-body p {
    color: var(--rs-orange);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px #000;
}

.quest-requirements {
    margin-bottom: 1rem;
}

.quest-requirements h4 {
    color: var(--rs-gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.quest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quest-tag {
    background: var(--rs-dark-brown);
    color: var(--rs-green);
    padding: 4px 10px;
    font-size: 0.8rem;
    border: 1px solid var(--rs-stone);
}

.quest-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* ==========================================
   SKILLS PANEL
   ========================================== */

.skills-panel {
    background: linear-gradient(180deg, #3e3529 0%, #2b2418 100%);
    border: 3px solid var(--rs-stone-light);
    padding: 1rem;
    max-width: 400px;
    margin: 2rem auto;
}

.skills-panel h3 {
    font-family: 'MedievalSharp', cursive;
    color: var(--rs-yellow);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px #000;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.skill-box {
    background: var(--rs-dark-brown);
    border: 2px solid var(--rs-stone);
    padding: 8px;
    text-align: center;
    transition: all 0.2s;
}

.skill-box:hover {
    border-color: var(--rs-gold);
    background: var(--rs-brown);
}

.skill-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.skill-name {
    font-size: 0.7rem;
    color: var(--rs-orange);
    text-transform: uppercase;
}

.skill-level {
    font-size: 0.9rem;
    color: var(--rs-yellow);
    font-weight: bold;
}

/* ==========================================
   ABOUT PAGE STYLES
   ========================================== */

.about-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 4px solid var(--rs-stone-light);
    box-shadow: 0 0 0 2px var(--rs-gold);
}

.about-intro {
    text-align: center;
}

.about-intro h1 {
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--rs-gold);
    font-size: 1.1rem;
}

.about-body {
    background: linear-gradient(180deg, #4a4136 0%, #3e3529 100%);
    border: 3px solid var(--rs-stone-light);
    padding: 2rem;
}

.about-body h2 {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.5rem;
    color: var(--rs-yellow);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px #000;
}

.about-body h2:first-child {
    margin-top: 0;
}

.about-body p {
    color: var(--rs-orange);
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background: var(--rs-dark-brown);
    color: var(--rs-green);
    padding: 6px 14px;
    font-size: 0.85rem;
    border: 2px solid var(--rs-stone);
}

.fun-facts {
    list-style: none;
    margin-top: 1rem;
}

.fun-facts li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--rs-orange);
    position: relative;
}

.fun-facts li::before {
    content: "►";
    position: absolute;
    left: 0;
    color: var(--rs-gold);
}

/* ==========================================
   CONTACT PAGE
   ========================================== */

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    background: linear-gradient(180deg, #4a4136 0%, #3e3529 100%);
    border: 3px solid var(--rs-stone-light);
    padding: 2rem;
}

.contact-info h2 {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.3rem;
    color: var(--rs-yellow);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    text-shadow: 1px 1px 2px #000;
}

.contact-info h2:first-child {
    margin-top: 0;
}

.contact-item {
    margin-bottom: 1rem;
}

.contact-label {
    display: block;
    font-weight: 600;
    color: var(--rs-gold);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.contact-item a,
.contact-item span {
    color: var(--rs-orange);
}

.contact-item a {
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--rs-yellow);
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--rs-dark-brown);
    border: 2px solid var(--rs-stone);
    text-decoration: none;
    transition: all 0.2s;
}

.social-card:hover {
    border-color: var(--rs-gold);
    background: var(--rs-brown);
}

.social-name {
    font-weight: 600;
    color: var(--rs-yellow);
    margin-bottom: 0.25rem;
}

.social-handle {
    color: var(--rs-orange);
    font-size: 0.85rem;
}

/* ==========================================
   PROJECT PAGE SPECIFICS
   ========================================== */

.project-media {
    min-height: 200px;
    background: var(--rs-dark-brown);
    border-bottom: 2px solid var(--rs-stone);
}

.project-media img,
.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================
   HAMBURGER MENU
   ========================================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(180deg, #5c5347 0%, #3e3529 50%, #2b2418 100%);
    border: 2px solid var(--rs-stone-light);
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.hamburger:hover {
    border-color: var(--rs-gold);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--rs-orange);
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ==========================================
   RESPONSIVE - TABLET (max-width: 900px)
   ========================================== */

@media (max-width: 900px) {
    .stone-wall-left,
    .stone-wall-right {
        width: 80px;
    }

    .brazier-left {
        left: 0;
        transform: translateY(-50%) scale(0.7);
    }

    .brazier-right {
        right: 0;
        transform: translateY(-50%) scale(0.7);
    }
}

/* ==========================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ========================================== */

@media (max-width: 768px) {
    /* Hide decorative elements */
    .brazier {
        display: none;
    }

    .stone-wall-left,
    .stone-wall-right {
        display: none;
    }

    /* Navigation */
    header {
        left: 0;
        right: 0;
        transform: none;
        padding: 10px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        gap: 0;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 1rem;
        margin-top: 0.75rem;
        border-top: 2px solid var(--rs-stone);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Music button */
    .music-btn {
        top: 10px;
        right: 70px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    /* Loading screen */
    .loading-title {
        font-size: 2.5rem;
    }

    .loading-subtitle {
        font-size: 1.2rem;
    }

    .loading-bar-container {
        width: 80%;
        max-width: 300px;
    }

    /* Hero section */
    #hero {
        padding: 1rem;
        padding-top: 100px;
    }

    #hero h1,
    .parchment h1 {
        font-size: 1.6rem;
    }

    .parchment {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        max-width: 100%;
    }

    .hero-image {
        width: 100px;
        height: 100px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Buttons - touch-friendly */
    .rs-btn {
        padding: 14px 24px;
        min-height: 44px;
        font-size: 0.95rem;
    }

    .rs-btn.small {
        padding: 12px 16px;
        min-height: 44px;
        font-size: 0.85rem;
    }

    /* Page content */
    .page-content {
        padding-top: 120px;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
    }

    .page-content h1 {
        font-size: 2rem;
    }

    .page-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Skills panel */
    .skills-panel {
        max-width: 100%;
        margin: 1.5rem auto;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }

    .skill-box {
        padding: 6px;
    }

    .skill-icon {
        font-size: 1.2rem;
    }

    .skill-name {
        font-size: 0.6rem;
    }

    .skill-level {
        font-size: 0.8rem;
    }

    /* About page */
    .about-header {
        flex-direction: column;
        gap: 1rem;
    }

    .profile-image {
        width: 140px;
        height: 140px;
    }

    .about-body {
        padding: 1.5rem 1rem;
    }

    .about-body h2 {
        font-size: 1.3rem;
    }

    /* Quest cards */
    .quest-header {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }

    .quest-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .quest-title {
        font-size: 1.1rem;
        flex: 1;
        min-width: 150px;
    }

    .quest-difficulty {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .quest-body {
        padding: 1rem;
    }

    .quest-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .quest-links .rs-btn {
        width: 100%;
        text-align: center;
    }

    /* Contact page */
    .contact-info {
        padding: 1.5rem 1rem;
    }

    .contact-info h2 {
        font-size: 1.2rem;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .social-card {
        min-height: 44px;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    /* Footer */
    footer {
        padding: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    footer p {
        font-size: 0.8rem;
    }

    /* Video containers */
    .video-container {
        padding-bottom: 56.25%;
    }

    .project-media {
        min-height: 150px;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ========================================== */

@media (max-width: 480px) {
    .loading-title {
        font-size: 2rem;
    }

    .loading-subtitle {
        font-size: 1rem;
    }

    #hero h1,
    .parchment h1 {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-content h1 {
        font-size: 1.6rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .skill-box {
        padding: 5px;
    }

    .quest-title {
        font-size: 1rem;
    }

    .rs-btn {
        padding: 12px 18px;
    }

    .social-links {
        gap: 0.4rem;
    }

    .social-links .rs-btn.small {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* ==========================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================== */

@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects that don't work well on touch */
    .rs-btn:hover {
        color: var(--rs-orange);
        background: linear-gradient(180deg, #5c5347 0%, #3e3529 50%, #2b2418 100%);
        border-color: var(--rs-stone-light);
    }

    .rs-btn:active {
        color: var(--rs-yellow);
        background: linear-gradient(180deg, #6c6357 0%, #4e4539 50%, #3b3428 100%);
        border-color: var(--rs-gold);
        transform: translateY(2px);
    }

    /* Ensure touch targets are adequate */
    .nav-links a,
    .social-card,
    .skill-box {
        min-height: 44px;
    }
}

/* ==========================================
   CLICK EFFECT
   ========================================== */

.click-effect {
    position: fixed;
    pointer-events: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--rs-yellow);
    border-radius: 50%;
    animation: clickPulse 0.3s ease-out forwards;
    z-index: 9999;
}

@keyframes clickPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}
