/* Mythos Games - Epic Fantasy Landing Page Styles */

:root {
    --mystical-purple: #2D1B4E;
    --aged-parchment: #F0E6D2;
    --magical-gold: #D4AF37;
    --dragon-red: #B22222;
    --dark-purple: #1A0F2E;
    --light-gold: #E6C547;
    --shadow-purple: #3D2A5F;
}

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

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, var(--mystical-purple) 0%, var(--dark-purple) 100%);
    color: var(--aged-parchment);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--magical-gold);
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, var(--dragon-red) 0%, var(--mystical-purple) 100%);
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid var(--magical-gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    background: rgba(45, 27, 78, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--magical-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--magical-gold);
    text-decoration: none;
}

.navbar-brand .logo i {
    font-size: 28px;
    margin-right: 10px;
    color: var(--dragon-red);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-link {
    color: var(--aged-parchment) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--magical-gold) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--magical-gold);
    transition: width 0.3s ease;
}

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

.navbar-toggler {
    border-color: var(--magical-gold);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28212, 175, 55, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.8) 0%, rgba(26, 15, 46, 0.9) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    background: linear-gradient(45deg, var(--magical-gold), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--aged-parchment);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.cta-button {
    background: linear-gradient(45deg, var(--dragon-red), var(--magical-gold));
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
    background: linear-gradient(45deg, var(--magical-gold), var(--dragon-red));
}

/* Game Universe Section */
.game-universe {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--mystical-purple) 0%, var(--dark-purple) 100%);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--magical-gold), var(--dragon-red));
    border-radius: 2px;
}

.games-gallery {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.games-gallery::-webkit-scrollbar {
    height: 8px;
}

.games-gallery::-webkit-scrollbar-track {
    background: var(--dark-purple);
    border-radius: 4px;
}

.games-gallery::-webkit-scrollbar-thumb {
    background: var(--magical-gold);
    border-radius: 4px;
}

.games-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--light-gold);
}

.game-card {
    flex: 0 0 350px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

.game-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mystical-purple) 0%, var(--dragon-red) 100%);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.9) 0%, rgba(178, 34, 34, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.game-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--magical-gold);
}

.game-overlay p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--aged-parchment);
}

/* Developer Diaries Section */
.developer-diaries {
    padding: 100px 0;
    background: var(--dark-purple);
}

.diary-card {
    background: rgba(45, 27, 78, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
}

.diary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.diary-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mystical-purple) 0%, var(--magical-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--mystical-purple);
    transition: all 0.3s ease;
}

.play-button:hover {
    background: var(--magical-gold);
    transform: translate(-50%, -50%) scale(1.1);
}

.diary-content {
    padding: 25px;
}

.diary-content h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--magical-gold);
}

.diary-content p {
    color: var(--aged-parchment);
    margin-bottom: 15px;
}

.diary-date {
    font-size: 0.9rem;
    color: var(--light-gold);
    font-style: italic;
}

/* Community Spotlight Section */
.community-spotlight {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark-purple) 0%, var(--mystical-purple) 100%);
}

.community-card {
    background: rgba(45, 27, 78, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(178, 34, 34, 0.2);
}

.community-image {
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mystical-purple) 0%, var(--dragon-red) 100%);
}

.community-content {
    padding: 30px;
    text-align: center;
}

.community-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--magical-gold);
}

.community-content p {
    color: var(--aged-parchment);
    margin-bottom: 20px;
}

/* Careers CTA Section */
.careers-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dragon-red) 0%, var(--mystical-purple) 100%);
    text-align: center;
}

.careers-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--aged-parchment);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.careers-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.role-tag {
    background: rgba(212, 175, 55, 0.2);
    color: var(--magical-gold);
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid var(--magical-gold);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.role-tag:hover {
    background: var(--magical-gold);
    color: var(--mystical-purple);
    transform: translateY(-2px);
}

.careers-button {
    background: linear-gradient(45deg, var(--magical-gold), var(--light-gold));
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--mystical-purple);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.careers-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
    background: linear-gradient(45deg, var(--light-gold), var(--magical-gold));
}

/* Footer */
.footer {
    background: var(--dark-purple);
    padding: 60px 0 30px;
    border-top: 2px solid var(--magical-gold);
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--magical-gold);
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 28px;
    margin-right: 10px;
    color: var(--dragon-red);
}

.footer-description {
    color: var(--aged-parchment);
    margin-bottom: 20px;
}

.footer h5 {
    color: var(--magical-gold);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form .form-control {
    background: rgba(45, 27, 78, 0.8);
    border: 1px solid var(--magical-gold);
    color: var(--aged-parchment);
    border-radius: 25px;
    padding: 10px 20px;
}

.newsletter-form .form-control:focus {
    background: rgba(45, 27, 78, 0.9);
    border-color: var(--light-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    color: var(--aged-parchment);
}

.newsletter-form .btn {
    border-radius: 25px;
    padding: 10px 20px;
    background: var(--magical-gold);
    border: none;
    color: var(--mystical-purple);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--magical-gold);
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--magical-gold);
    color: var(--mystical-purple);
    transform: translateY(-3px);
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.support-link {
    color: var(--aged-parchment);
    text-decoration: none;
    transition: color 0.3s ease;
}

.support-link:hover {
    color: var(--magical-gold);
}

/* Bottom Bar */
.bottom-bar {
    background: var(--mystical-purple);
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid var(--magical-gold);
    font-size: 14px;
    color: var(--aged-parchment);
}

.copyright-link {
    color: var(--magical-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    border-bottom: 2px solid var(--magical-gold);
    padding-bottom: 2px;
}

.copyright-link:hover {
    color: var(--light-gold);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
    border-bottom-color: var(--light-gold);
    transform: translateY(-1px);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--magical-gold), var(--dragon-red));
    border: none;
    color: var(--aged-parchment);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--dragon-red), var(--magical-gold));
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--aged-parchment);
    color: var(--aged-parchment);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--aged-parchment);
    color: var(--mystical-purple);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--magical-gold);
    color: var(--magical-gold);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--magical-gold);
    color: var(--mystical-purple);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .games-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .game-card {
        flex: none;
        width: 100%;
        max-width: 350px;
    }
    
    .careers-roles {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .support-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand .logo {
        font-size: 20px;
    }
    
    .navbar-brand .logo i {
        font-size: 24px;
    }
}

/* Dynamic Background Effects */
body.game1-bg {
    background: linear-gradient(135deg, #2D1B4E 0%, #4A2C7A 50%, #1A0F2E 100%);
}

body.game2-bg {
    background: linear-gradient(135deg, #2D1B4E 0%, #5D1B4E 50%, #1A0F2E 100%);
}

body.game3-bg {
    background: linear-gradient(135deg, #2D1B4E 0%, #2D4A1B 50%, #1A0F2E 100%);
}

body.game4-bg {
    background: linear-gradient(135deg, #2D1B4E 0%, #4A1B2D 50%, #1A0F2E 100%);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-purple);
}

::-webkit-scrollbar-thumb {
    background: var(--magical-gold);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-gold);
}
