@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

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

:root {
    --primary: #ff6b35;
    --secondary: #d4a574;
    --dark-bg: #0a0806;
    --medium-bg: #1a1510;
    --light-bg: #2d1f14;
    --accent: #ffa500;
    --text: #e8d5c4;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(212, 165, 116, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, var(--dark-bg) 0%, var(--medium-bg) 50%, var(--dark-bg) 100%);
}

.sand-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, var(--secondary) 2px, var(--secondary) 4px);
    animation: sandMove 20s linear infinite;
}

@keyframes sandMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(50px) translateY(50px); }
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1800px;
    margin: 0 auto;
}

header {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-bottom: 3px solid var(--primary);
}

.header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.guild-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 8em;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 
        0 0 40px rgba(255, 107, 53, 0.8),
        0 0 80px rgba(255, 107, 53, 0.4),
        0 5px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 40px rgba(255, 107, 53, 0.8), 0 0 80px rgba(255, 107, 53, 0.4); }
    50% { text-shadow: 0 0 60px rgba(255, 107, 53, 1), 0 0 120px rgba(255, 107, 53, 0.6); }
}

.guild-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    color: var(--secondary);
    letter-spacing: 8px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.guild-motto {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4em;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    margin-top: 15px;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3em;
    color: var(--primary);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
}

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 21, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.main-content {
    padding: 80px 40px;
    margin-top: 80px;
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.nav-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.main-content {
    padding: 80px 40px;
}

.content-section {
    display: none;
    animation: fadeInUp 0.6s ease;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section.active {
    display: block;
}

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

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.section-subtitle {
    font-size: 1.3em;
    color: var(--secondary);
    letter-spacing: 2px;
}

.divider {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 30px auto;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.member-card {
    background: linear-gradient(135deg, rgba(45, 31, 20, 0.7) 0%, rgba(26, 21, 16, 0.9) 100%);
    border: 2px solid var(--secondary);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.member-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.member-card:hover::before {
    opacity: 1;
}

.member-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3);
}

.member-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.member-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.member-rank {
    color: var(--secondary);
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.events-timeline {
    position: relative;
    padding: 40px 0;
}

.event-item {
    background: linear-gradient(135deg, rgba(45, 31, 20, 0.6) 0%, rgba(26, 21, 16, 0.8) 100%);
    border-left: 4px solid var(--primary);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event-item:hover {
    border-left-width: 8px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    transform: translateX(10px);
}

.event-date {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.event-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6em;
    color: var(--secondary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.event-description {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text);
}

.cta-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(212, 165, 116, 0.1) 100%);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 60px;
    text-align: center;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.cta-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 1.3em;
    color: var(--text);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 18px 50px;
    border: none;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

footer {
    background: var(--medium-bg);
    border-top: 2px solid var(--primary);
    padding: 40px;
    text-align: center;
    margin-top: 80px;
}

.footer-text {
    font-size: 1.1em;
    color: var(--secondary);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .guild-logo { font-size: 4em; }
    .nav-links { gap: 20px; }
    .nav-link { font-size: 0.9em; padding: 8px 15px; }
    .section-title { font-size: 2.5em; }
}