/* --- VARIABLES --- */
:root {
    --bg-dark: #121212;
    --bg-panel: #1E1E1E;
    --crimson: #D32F2F;
    --red-accent: #C0392B;
    --gold: #F1C40F;
    --green: #2ECC71;
    --text-main: #E0E0E0;
    --text-muted: #A0A0A0;
    
    --font-header: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

/* --- RESET & GLOBAL --- */
html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- BACKGROUND TEXTURE --- */
.bg-texture {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Ensure you have bg_stone.jpg in your assets folder */
    background-image: url('assets/bg_stone.jpg');
    background-size: 500px; 
    background-repeat: repeat;
    opacity: 0.15; 
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVIGATION --- */
nav {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    z-index: 10;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--gold);
    text-shadow: 2px 2px 0px #000;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--crimson);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

/* Hero Content */
.hero-logo {
    max-width: 90%;
    width: 500px;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.8));
    animation: breathe 4s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 20px 0 40px;
    font-family: var(--font-header);
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

/* Buttons */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #d4ac0d);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.btn-secondary {
    background: transparent;
    border-color: var(--crimson);
    color: var(--crimson);
}

.btn:hover {
    transform: translateY(-5px);
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.5);
    background: #fff;
}
.btn-secondary:hover {
    background: var(--crimson);
    color: white;
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

/* --- FLOATING CARDS (UPDATED) --- */
.floating-card {
    position: absolute;
    width: 260px; /* INCREASED SIZE */
    opacity: 0.5; /* Slightly lowered opacity so text is readable over them */
    z-index: 0;
    filter: blur(0.5px) drop-shadow(0 0 15px rgba(0,0,0,0.8));
    pointer-events: none;
}
.floating-card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-left {
    top: 15%;
    left: 5%;
    transform: rotate(-15deg);
    animation: float 6s infinite ease-in-out;
}

.card-right {
    bottom: 15%;
    right: 5%;
    transform: rotate(10deg);
    animation: float 7s infinite ease-in-out 1s;
}

/* --- FEATURES SECTION --- */
.features {
    padding: 80px 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8), transparent);
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-family: var(--font-header);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 60px;
    text-shadow: 0 0 10px rgba(211, 47, 47, 0.5);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-card {
    background: rgba(30, 30, 30, 0.6);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.icon-wrapper img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
    transition: transform 0.3s;
    object-fit: contain;
}
.feature-card:hover .icon-wrapper img {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-family: var(--font-header);
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* --- RULES SECTION --- */
.rules-section {
    padding: 80px 0;
    background-color: #151515;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rule-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}

.rule-box h3 {
    font-family: var(--font-header);
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.rule-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.rule-box.full-width {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(241, 196, 15, 0.1), rgba(0,0,0,0.4));
    border-color: var(--gold);
    border-left: 1px solid var(--gold); 
    border-top: 3px solid var(--gold);
}
.rule-box.full-width h3 {
    justify-content: center;
}

/* --- SHOWCASE SECTION --- */
.showcase {
    padding: 100px 0;
}
.showcase-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.showcase-card {
    width: 200px;
    transform: rotate(-5deg);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    border-radius: 12px;
}
.showcase-text {
    max-width: 500px;
}
.showcase-text h2 {
    font-family: var(--font-header);
    font-size: 2rem;
    color: var(--crimson);
    margin-bottom: 20px;
}

/* --- FOOTER --- */
footer {
    padding: 60px 0 20px;
    text-align: center;
    background: #0a0a0a;
    border-top: 1px solid #333;
}
footer h3 {
    font-family: var(--font-header);
    color: var(--text-main);
    margin-bottom: 10px;
}
.contact-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--gold);
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
}
.footer-bottom {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #555;
}

/* --- MODAL --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 100; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9); 
}
.modal-content {
    background-color: var(--bg-panel);
    margin: 15% auto; 
    padding: 40px;
    border: 1px solid var(--gold);
    border-radius: 10px;
    width: 80%; 
    max-width: 600px;
    color: var(--text-main);
}
.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-modal:hover { color: var(--crimson); }

/* --- ANIMATIONS --- */
@keyframes float {
    0% { transform: translateY(0px) rotate(-15deg); }
    50% { transform: translateY(-20px) rotate(-10deg); }
    100% { transform: translateY(0px) rotate(-15deg); }
}

@keyframes breathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* Navigation Adjustments */
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links a {
        font-size: 0.8rem;
        margin-left: 10px;
        margin-right: 10px;
    }
    .brand {
        font-size: 1.8rem;
    }

    /* Hero Adjustments */
    .hero-logo { width: 300px; }
    .hero-tagline { padding: 0 10px; }
    
    /* FLOATING CARDS ON MOBILE */
    .floating-card { 
        display: block; /* Ensure they are visible */
        width: 140px; /* Smaller than desktop, but still visible */
        opacity: 0.3; /* More fade so text pops */
    }
    .card-left {
        top: 5%;
        left: -20px; /* Hang slightly off screen */
    }
    .card-right {
        bottom: 5%;
        right: -20px; /* Hang slightly off screen */
    }
    
    .showcase-box { text-align: center; }
}