/* =========================================================================
   ECHO ROLEPLAY - PREMIUM CSS
   ========================================================================= */

:root {
    /* Color Palette */
    --color-bg-main: #060913; 
    --color-bg-secondary: #0b101d;
    --color-bg-card: rgba(14, 20, 36, 0.6);
    --color-bg-card-hover: rgba(22, 30, 56, 0.8);
    
    --color-orange: #ff6a00;
    --color-orange-glow: rgba(255, 106, 0, 0.5);
    
    --color-purple: #812be0;
    --color-purple-glow: rgba(129, 43, 224, 0.5);
    
    --color-blue-light: #2bc0e0;
    
    --text-main: #ffffff;
    --text-muted: #a0a8b9;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Effects */
    --card-radius: 16px;
    --btn-radius: 8px;
    --transition-fast: 0.2s ease;
    --transition-mid: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================================
   RESET & BASE STYLES
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.text-center { text-align: center; }
.mt-lg { margin-top: var(--spacing-lg); }
.highlight {
    background: linear-gradient(90deg, var(--color-orange), var(--color-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.container-sm {
    max-width: 800px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--btn-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-mid);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange), #ff3c00);
    color: #fff;
    box-shadow: 0 4px 15px var(--color-orange-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--color-orange-glow);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-discord {
    background: #5865F2; /* Discord branding color */
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    margin-top: 20px;
}
.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--color-orange);
    border: 2px solid var(--color-orange);
}
.btn-outline:hover {
    background: var(--color-orange);
    color: #fff;
    box-shadow: 0 0 15px var(--color-orange-glow);
}

/* =========================================================================
   HEADER / NAVIGATION
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-mid);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(6, 9, 19, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    transition: width var(--transition-mid);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse {
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: pulse-green 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-green {
    to {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
}

.online-count {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .hero {
        background-position: 70% center; /* Shift focus on mobile to see character/logo better */
        height: 100svh; /* Dynamic viewport for modern browsers */
    }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(6, 9, 19, 0.4) 0%, rgba(6, 9, 19, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 20px;
    margin-top: 50px;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cfd4e0;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.connection-ip {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: monospace;
    font-size: 1rem;
    color: #a0a8b9;
    backdrop-filter: blur(5px);
}

.connection-ip strong {
    color: #fff;
    margin-left: 5px;
}

.connection-ip i:hover {
    color: var(--color-orange);
}

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

/* =========================================================================
   ABOUT / STATS SECTION
   ========================================================================= */
.about-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-main);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: var(--card-radius);
    text-align: center;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--color-bg-card-hover);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* =========================================================================
   FEATURES SECTION
   ========================================================================= */
.features-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, var(--color-bg-main), var(--color-bg-secondary));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: var(--card-radius);
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-mid);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: height var(--transition-mid), background var(--transition-mid);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--color-bg-card-hover);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-card.featured::before {
    height: 100%;
    background: linear-gradient(180deg, var(--color-purple-glow), transparent);
    opacity: 0.1;
    z-index: 0;
}

.feature-card.featured {
    border-top: 2px solid var(--color-purple);
}

.feature-icon-wrapper {
    position: relative;
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--color-orange);
    border: 1px solid rgba(255,255,255,0.05);
    z-index: 1;
}

.feature-card.featured .feature-icon-wrapper {
    color: var(--color-purple);
    box-shadow: 0 0 20px var(--color-purple-glow);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.feature-card p,
.feature-card.featured p {
    color: #cfd4e0; /* Optimized for high contrast on all devices */
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-orange);
    position: relative;
    z-index: 1;
}

.feature-card.featured .card-link {
    color: #a445e6;
}

.card-link i {
    transition: transform var(--transition-fast);
}

.card-link:hover i {
    transform: translateX(5px);
}

/* =========================================================================
   FAQ SECTION
   ========================================================================= */
.faq-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-secondary);
}

.faq-wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover, .faq-item[open] {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-item[open] {
    background: var(--color-bg-card-hover);
}

.faq-item summary {
    padding: 20px 25px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
}

/* Custom Arrow */
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-orange);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '-';
}

/* Hide default marker in older browsers */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-content {
    padding: 0 25px 20px 25px;
    color: var(--text-muted);
    animation: fadeInDown 0.3s ease;
}

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


/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    background: #04060c;
    padding: 60px 0 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    max-width: 350px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-orange);
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid var(--color-purple);
    display: inline-block;
    padding-bottom: 5px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--color-orange);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--color-orange);
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #5a647a;
    font-size: 0.85rem;
}

/* =========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================= */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-text .btn { margin: 20px auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(6, 9, 19, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        z-index: 999;
        transition: all 0.4s ease;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: #fff;
    }

    .nav-extra { display: none; }
    
    .mobile-toggle { 
        display: block; 
        z-index: 1001;
        font-size: 2.2rem;
    }
    
    .hero-title { 
        font-size: 2.2rem; /* Scaled down for mobile */
    }
    .hero-actions { 
        flex-direction: column; 
        width: 100%; 
        max-width: 280px; 
        margin: 0 auto 30px auto; 
    }
    
    .features-grid { 
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 20px;
    }

    .feature-card {
        opacity: 1; /* Default to visible */
        visibility: visible;
        background: rgba(18, 24, 40, 0.95);
        padding: 30px 20px;
        min-height: auto;
    }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    
    .footer-brand p, .footer-links h4, .footer-contact p { margin-left: auto; margin-right: auto; }
    .social-links { justify-content: center; }
}
