@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&family=Merriweather:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pharaoh-gold: #d4af37;
    --nile-blue: #1e3a5f;
    --pyramid-sand: #c4a35a;
    --obsidian: #0a0a0f;
    --papyrus: #f5e6c8;
    --deep-purple: #2d1b4e;
}

body {
    font-family: 'Merriweather', serif;
    background: var(--obsidian);
    color: var(--papyrus);
    line-height: 1.8;
}

h1, h2, h3, h4 {
    font-family: 'Uncial Antiqua', cursive;
    color: var(--pharaoh-gold);
}

a {
    color: var(--pharaoh-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--pyramid-sand);
    text-shadow: 0 0 8px var(--pharaoh-gold);
}

.masthead {
    background: linear-gradient(180deg, var(--deep-purple) 0%, var(--obsidian) 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid var(--pharaoh-gold);
}

.masthead-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-area svg {
    width: 52px;
    height: 52px;
}

.brand-area span {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1.9rem;
    color: var(--pharaoh-gold);
}

.primary-nav {
    display: flex;
    gap: 2.5rem;
}

.primary-nav a {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.toggle-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.toggle-menu span {
    width: 30px;
    height: 3px;
    background: var(--pharaoh-gold);
}

.hidden-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--deep-purple);
    z-index: 1001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.hidden-nav.open {
    display: flex;
}

.hidden-nav a {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1.8rem;
}

.nav-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--pharaoh-gold);
}

.main-content {
    padding-top: 90px;
}

.pharaoh-banner {
    background: linear-gradient(135deg, var(--nile-blue) 0%, var(--obsidian) 70%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.pharaoh-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23d4af37' fill-opacity='0.02'/%3E%3C/svg%3E");
}

.pharaoh-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    position: relative;
    z-index: 1;
}

.pharaoh-banner p {
    max-width: 750px;
    margin: 0 auto 2.5rem;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.royal-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--pharaoh-gold) 0%, #b8860b 100%);
    color: var(--obsidian);
    padding: 1.1rem 3rem;
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1.2rem;
    border-radius: 0;
    border: 2px solid var(--pharaoh-gold);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.royal-btn:hover {
    background: transparent;
    color: var(--pharaoh-gold);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.seal-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.seal {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--pharaoh-gold);
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

.tomb-section {
    padding: 4rem 2rem;
    background: var(--obsidian);
}

.tomb-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.tomb-frame {
    max-width: 1250px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--nile-blue) 0%, var(--obsidian) 100%);
    border: 3px solid var(--pharaoh-gold);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2), inset 0 0 30px rgba(0,0,0,0.5);
}

.tomb-frame iframe {
    width: 100%;
    height: 640px;
    border: none;
    display: block;
}

.treasures-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--obsidian) 0%, var(--deep-purple) 50%, var(--obsidian) 100%);
}

.treasures-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.treasure-item {
    background: rgba(30, 58, 95, 0.4);
    padding: 2rem;
    text-align: center;
    border-left: 3px solid var(--pharaoh-gold);
    transition: all 0.3s;
}

.treasure-item:hover {
    background: rgba(30, 58, 95, 0.7);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.treasure-item .glyph {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.treasure-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.treasure-item p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.scroll-section {
    padding: 5rem 2rem;
    background: var(--obsidian);
}

.scroll-inner {
    max-width: 950px;
    margin: 0 auto;
}

.scroll-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.scroll-section p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.papyrus-section {
    padding: 4rem 2rem;
    background: var(--obsidian);
}

.papyrus-inner {
    max-width: 900px;
    margin: 0 auto;
}

.papyrus-section h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.papyrus-section h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.papyrus-section p {
    margin-bottom: 1rem;
}

.papyrus-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.papyrus-section li {
    margin-bottom: 0.6rem;
}

.temple-footer {
    background: var(--deep-purple);
    padding: 3rem 2rem;
    border-top: 2px solid var(--pharaoh-gold);
}

.temple-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.temple-links {
    margin-bottom: 2rem;
}

.temple-links a {
    margin: 0 1.2rem;
    font-size: 0.9rem;
}

.support-area {
    margin-bottom: 1.5rem;
}

.support-area p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.support-area a {
    margin: 0 0.8rem;
    font-size: 0.85rem;
}

.hieroglyph-copy {
    font-size: 0.8rem;
    opacity: 0.5;
}

.sarcophagus-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.97);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sarcophagus-popup.sealed {
    display: none;
}

.popup-chamber {
    background: var(--nile-blue);
    border: 3px solid var(--pharaoh-gold);
    padding: 3rem;
    max-width: 520px;
    margin: 1rem;
    text-align: center;
}

.popup-chamber h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.popup-chamber p {
    margin-bottom: 1.5rem;
}

.chamber-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.chamber-btn {
    padding: 1rem 2.5rem;
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.chamber-btn.enter {
    background: var(--pharaoh-gold);
    color: var(--obsidian);
}

.chamber-btn.exit {
    background: transparent;
    border: 2px solid var(--papyrus);
    color: var(--papyrus);
}

.chamber-btn:hover {
    transform: scale(1.05);
}

.forbidden-msg {
    display: none;
    text-align: center;
}

.forbidden-msg h2 {
    color: #c62828;
}

@media (max-width: 1024px) {
    .treasures-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .primary-nav {
        display: none;
    }
    
    .toggle-menu {
        display: flex;
    }
    
    .pharaoh-banner h1 {
        font-size: 2.2rem;
    }
    
    .treasures-grid {
        grid-template-columns: 1fr;
    }
    
    .tomb-frame iframe {
        height: 420px;
    }
    
    .chamber-buttons {
        flex-direction: column;
    }
}
