/* Jollycrw.top - Medieval Arthur's Legacy Theme */

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

:root {
    --royal-gold: #D4AF37;
    --deep-purple: #4A148C;
    --dark-slate: #2C2C54;
    --stone-gray: #706F6F;
    --parchment: #F5E6D3;
    --emerald: #2ECC71;
    --text-light: #F8F9FA;
}

body {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    background: linear-gradient(to bottom, #1a1a2e 0%, #2C2C54 100%);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Header */
.header {
    background: rgba(74, 20, 140, 0.95);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    border-bottom: 3px solid var(--royal-gold);
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--royal-gold);
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    letter-spacing: 2px;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--parchment);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-size: 1.05rem;
}

.nav-menu a:hover {
    color: var(--royal-gold);
    background: rgba(212, 175, 55, 0.1);
}

.nav-menu a.active {
    color: var(--royal-gold);
    background: rgba(212, 175, 55, 0.2);
    border-bottom: 2px solid var(--royal-gold);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--royal-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(74, 20, 140, 0.8)), url('hero.jpg') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(26, 26, 46, 0.4) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--royal-gold), var(--emerald), var(--royal-gold));
    z-index: 2;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 3;
    animation: heroFadeIn 1.5s ease-out;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    color: var(--royal-gold);
    margin-bottom: 2rem;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.9);
    font-style: italic;
    letter-spacing: 3px;
    line-height: 1.1;
    background: linear-gradient(45deg, var(--royal-gold), #FFE55C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.7));
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--parchment);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    font-weight: 300;
    letter-spacing: 1px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

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

.btn-primary {
    display: inline-block;
    padding: 1.1rem 3rem;
    background: var(--royal-gold);
    color: var(--deep-purple);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    border: 2px solid var(--royal-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: transparent;
    color: var(--royal-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: linear-gradient(135deg, #8B0000 0%, #4A148C 100%);
    border: 3px solid var(--royal-gold);
    padding: 2.5rem;
    margin: 4rem 0;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
    position: relative;
    text-align: center;
}

.disclaimer-banner::before {
    content: '⚠';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: var(--royal-gold);
    background: var(--deep-purple);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--royal-gold);
}

.disclaimer-banner h2 {
    color: var(--royal-gold);
    margin-bottom: 1.2rem;
    font-size: 2rem;
    text-align: center;
    font-style: italic;
}

.disclaimer-banner p {
    color: var(--parchment);
    font-size: 1.15rem;
    line-height: 1.9;
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: transparent;
    color: var(--royal-gold);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--royal-gold);
    text-transform: uppercase;
}

.btn-secondary:hover {
    background: var(--royal-gold);
    color: var(--deep-purple);
    transform: translateY(-2px);
}

/* Game Section */
.game-section {
    background: rgba(44, 44, 84, 0.6);
    padding: 4rem 0;
    margin: 4rem 0;
    border-top: 3px solid var(--royal-gold);
    border-bottom: 3px solid var(--royal-gold);
}

.game-section h2 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--royal-gold);
    margin-bottom: 2.5rem;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.game-frame {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    border: 4px solid var(--royal-gold);
    border-radius: 5px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
    display: block;
    background: #000;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, rgba(44, 44, 84, 0.1) 0%, rgba(74, 20, 140, 0.1) 100%);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--royal-gold), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 3.2rem;
    color: var(--royal-gold);
    margin-bottom: 2.5rem;
    font-style: italic;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--royal-gold), var(--emerald));
    border-radius: 2px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    color: var(--parchment);
    text-align: justify;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.about-image {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(74, 20, 140, 0.1));
    border: 2px solid var(--royal-gold);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image:hover::after {
    opacity: 1;
}

/* Additional About Image */
.about-secondary {
    margin-top: 3rem;
    text-align: center;
}

.about-secondary-image {
    position: relative;
    height: 400px;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.about-secondary-image:hover {
    transform: scale(1.02);
}

.about-secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-secondary-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(46, 204, 113, 0.2));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-secondary-image:hover::before {
    opacity: 1;
}

/* Reviews Section */
.reviews-section {
    padding: 5rem 0;
    background: rgba(74, 20, 140, 0.3);
    margin: 4rem 0;
    border-top: 3px solid var(--royal-gold);
    border-bottom: 3px solid var(--royal-gold);
}

.reviews-section h2 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--royal-gold);
    margin-bottom: 3.5rem;
    font-style: italic;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.review-card {
    background: rgba(44, 44, 84, 0.8);
    padding: 2.5rem;
    border-radius: 5px;
    border: 2px solid var(--royal-gold);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    border-color: var(--emerald);
}

.review-rating {
    color: var(--royal-gold);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.2rem;
    color: var(--parchment);
    line-height: 1.8;
}

.review-author {
    color: var(--emerald);
    font-weight: 700;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--royal-gold);
    margin-bottom: 3.5rem;
    font-style: italic;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.feature-box {
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.4), rgba(44, 44, 84, 0.6));
    padding: 3rem;
    border-radius: 5px;
    border: 2px solid var(--royal-gold);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.3);
    border-color: var(--emerald);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-box h3 {
    color: var(--royal-gold);
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.feature-box p {
    color: var(--parchment);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Content Pages */
.content-page {
    padding: 5rem 0;
    min-height: 70vh;
}

.content-page h1 {
    font-size: 3rem;
    color: var(--royal-gold);
    margin-bottom: 2.5rem;
    text-align: center;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.content-section {
    background: rgba(44, 44, 84, 0.5);
    padding: 3rem;
    margin-bottom: 2.5rem;
    border-radius: 5px;
    border-left: 5px solid var(--royal-gold);
    border-right: 5px solid var(--royal-gold);
}

.content-section h2 {
    color: var(--royal-gold);
    font-size: 2.2rem;
    margin-bottom: 1.8rem;
    font-style: italic;
}

.content-section h3 {
    color: var(--emerald);
    font-size: 1.6rem;
    margin: 1.8rem 0 1.2rem;
    font-style: italic;
}

.content-section p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
    color: var(--parchment);
}

.content-section ul {
    margin: 1.2rem 0 1.2rem 2.5rem;
    line-height: 2;
}

.content-section ul li {
    margin-bottom: 0.7rem;
    color: var(--parchment);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form {
    background: rgba(44, 44, 84, 0.6);
    padding: 3rem;
    border-radius: 5px;
    border: 2px solid var(--royal-gold);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--royal-gold);
    font-weight: 700;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--stone-gray);
    border-radius: 5px;
    color: var(--parchment);
    font-size: 1.05rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--royal-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-info {
    background: rgba(44, 44, 84, 0.6);
    padding: 3rem;
    border-radius: 5px;
    border: 2px solid var(--royal-gold);
}

.contact-info h3 {
    color: var(--royal-gold);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-style: italic;
}

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

.contact-item h4 {
    color: var(--emerald);
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--parchment);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--royal-gold);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, rgba(74, 20, 140, 0.95), rgba(26, 26, 46, 1));
    padding: 3.5rem 0 1.5rem;
    margin-top: 5rem;
    border-top: 4px solid var(--royal-gold);
}

.footer-disclaimer {
    background: rgba(139, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 3rem;
    border: 2px solid var(--royal-gold);
    text-align: center;
}

.footer-disclaimer p {
    color: var(--parchment);
    font-size: 1rem;
    line-height: 1.8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 3rem;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    color: var(--royal-gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-style: italic;
}

.footer-section p,
.footer-section ul {
    color: var(--parchment);
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.9rem;
}

.footer-section a {
    color: var(--parchment);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--royal-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 2px solid var(--stone-gray);
    color: var(--parchment);
    font-size: 0.95rem;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background: var(--royal-gold);
    color: var(--deep-purple);
    width: 55px;
    height: 55px;
    border-radius: 5px;
    border: 2px solid var(--deep-purple);
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--deep-purple);
    color: var(--royal-gold);
    transform: translateY(-5px);
}

/* Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.98), rgba(44, 44, 84, 0.98));
    padding: 3.5rem;
    border-radius: 8px;
    max-width: 650px;
    width: 90%;
    border: 4px solid var(--royal-gold);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-content h2 {
    color: var(--royal-gold);
    margin-bottom: 2rem;
    font-size: 2.3rem;
    text-align: center;
    font-style: italic;
}

.popup-content p {
    color: var(--parchment);
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.popup-buttons {
    text-align: center;
    margin-top: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(74, 20, 140, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        display: none;
        border-top: 3px solid var(--royal-gold);
    }

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

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

    .nav-menu a {
        display: block;
        padding: 1.2rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .hero {
        min-height: 70vh;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 3rem;
        letter-spacing: 1px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .about-section {
        padding: 4rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .about-text p {
        font-size: 1.1rem;
        text-align: left;
    }

    .about-image {
        height: 350px;
        margin: 0 auto;
        max-width: 450px;
    }

    .about-secondary-image {
        height: 300px;
        max-width: 500px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .popup-content {
        width: 95%;
        padding: 2.5rem;
    }

    h1 { font-size: 2.3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

    .about-text h2 {
        font-size: 2rem;
    }

    .about-image {
        height: 280px;
    }

    .about-secondary-image {
        height: 250px;
    }

    .btn-primary {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}
