@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

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

body {
    font-family: 'MedievalSharp', cursive, serif;
    background: #1a0f0a;
    color: #d4af37;
    overflow-x: hidden;
}

/* Magic Background */
.magic-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #1a0f0a 0%, #2d1810 100%);
    z-index: -1;
    animation: magicPulse 10s ease-in-out infinite;
}

@keyframes magicPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Header & Nav */
header {
    background: linear-gradient(180deg, rgba(26, 15, 10, 0.95) 0%, rgba(26, 15, 10, 0.8) 100%);
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #d4af37;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.dragon-icon {
    font-size: 3rem;
    animation: dragonFloat 3s ease-in-out infinite;
}

@keyframes dragonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav ul li a {
    color: #d4af37;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 5%;
    background: 
        radial-gradient(ellipse at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.highlight {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.hero-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: #c19a6b;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    color: #1a0f0a;
    border: 2px solid #d4af37;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    border: 2px solid #d4af37;
    color: #d4af37;
    background: transparent;
}

.btn-outline:hover {
    background: #d4af37;
    color: #1a0f0a;
}

/* Floating Elements */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-elements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.element {
    font-size: 5rem;
    text-align: center;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.element:hover {
    transform: scale(1.1);
    border-color: #d4af37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* Sections */
.section {
    padding: 5rem 5%;
    background: rgba(26, 15, 10, 0.9);
}

.section-parchment {
    background: 
        linear-gradient(135deg, #2d1810 0%, #1a0f0a 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23d4af37" opacity="0.05" width="100" height="100"/></svg>');
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #d4af37, transparent);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    font-size: 3rem;
    background: #1a0f0a;
    border: 2px solid #d4af37;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.timeline-content {
    background: rgba(212, 175, 55, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 40%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 10%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 10%;
}

.timeline-content h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.timeline-content p {
    color: #c19a6b;
    line-height: 1.6;
}

/* Classes Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.class-card {
    background: rgba(26, 15, 10, 0.8);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
}

.class-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.class-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.class-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.class-card p {
    color: #c19a6b;
    margin-bottom: 1.5rem;
}

.class-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #d4af37;
}

/* World Map */
.world-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.map-region {
    background: rgba(26, 15, 10, 0.8);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.map-region:hover {
    transform: scale(1.05);
    border-color: #d4af37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.map-region span {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.map-region p {
    font-size: 1.3rem;
    color: #ffd700;
}

/* Footer */
.footer-parchment {
    background: #0d0805;
    padding: 3rem 5%;
    text-align: center;
    border-top: 2px solid #d4af37;
    color: #c19a6b;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 3rem;
    }
    
    .timeline-icon {
        left: 0;
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .timeline-content {
        width: 100% !important;
        margin: 1rem 0 0 0 !important;
    }
    
    nav ul {
        display: none;
    }
}