/* --- Mobile Friendly Enhancements --- */
@media (max-width: 800px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 0.5rem;
        gap: 0.5rem;
    }
    .navbar-logo {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
    }
    .navbar-links {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 0.2rem;
    }
    .navbar-links a {
        padding: 0.8rem 1rem;
        font-size: 1.05rem;
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 700px) {
    .main-container, .container-wrapper, .content-container {
        max-width: 100vw;
        padding: 0.5rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .features-container, .quotes-container {
        padding: 0.5rem !important;
    }
    .resources-grid {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin: 1.2rem 0 1.2rem 0;
    }
    .resource-card {
        width: 98vw;
        min-width: 0;
        max-width: 99vw;
        padding: 0.9rem 0.7rem 1rem 0.7rem !important;
        font-size: 0.98rem;
    }
    .resource-card h3 {
        font-size: 1rem;
        gap: 0.3rem;
    }
    .resource-card p {
        font-size: 0.97rem;
    }
    .feature {
        padding: 1rem 0.5rem !important;
        font-size: 0.98rem;
    }
    .feature h3 {
        font-size: 1.05rem;
    }
    .feature p {
        font-size: 0.97rem;
    }
    .cfx-icon {
        width: 1.1em !important;
        height: 1.1em !important;
    }
}
@media (max-width: 400px) {
    .main-container, .container-wrapper, .content-container, main {
        max-width: 100vw !important;
        width: 100vw !important;
        padding: 0.2rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .resources-grid, .features-container, .quotes-container {
        padding: 0.2rem !important;
        gap: 0.5rem !important;
    }
    .resource-card, .feature {
        width: 99vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        padding: 0.4rem 0.1rem 0.5rem 0.1rem !important;
        font-size: 0.89rem !important;
    }
    .resource-card h3, .feature h3 {
        font-size: 0.92rem !important;
    }
    .resource-card p, .feature p {
        font-size: 0.89rem !important;
    }
    .navbar {
        padding: 0.1rem 0.1rem !important;
        flex-direction: column !important;
        height: auto !important;
    }
    .navbar-logo {
        font-size: 0.85rem !important;
        margin-bottom: 0.2rem !important;
    }
    .navbar-links {
        flex-direction: column !important;
        width: 100% !important;
        align-items: flex-start !important;
        gap: 0.1rem !important;
    }
    .navbar-links a {
        padding: 0.5rem 0.5rem !important;
        font-size: 0.89rem !important;
        width: 100% !important;
        text-align: left !important;
    }
    h1, h2 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 500px) {
    .navbar {
        padding: 0.2rem 0.2rem;
    }
    .navbar-logo {
        font-size: 1rem;
    }
    .resource-card, .feature {
        padding: 0.7rem 0.3rem 0.8rem 0.3rem !important;
        font-size: 0.95rem;
    }
    .resource-card h3, .feature h3 {
        font-size: 0.97rem;
    }
    .resource-card p, .feature p {
        font-size: 0.93rem;
    }
}
/* Animated floating background gradient */
.animated-bg-gradient {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 30%, var(--brand) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, var(--brand-muted) 0%, transparent 60%),
    linear-gradient(120deg, var(--panel) 0%, var(--elev) 100%);
    animation: bg-move 12s ease-in-out infinite alternate;
    opacity: 0.18;
}
@keyframes bg-move {
    0% { background-position: 20% 30%, 80% 70%, 0% 0%; }
    100% { background-position: 60% 10%, 40% 90%, 100% 100%; }
}

/* Section reveal animation */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.2,.6,.2,1), transform 0.7s cubic-bezier(.2,.6,.2,1);
}
.reveal-section.visible {
    opacity: 1;
    transform: none;
}

/* Button ripple/shine effect */
.btn, .github-btn {
    position: relative;
    overflow: hidden;
}
.btn::after, .github-btn::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.35);
    border-radius: 100%;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(.2,.6,.2,1), height 0.4s cubic-bezier(.2,.6,.2,1), opacity 0.4s;
    opacity: 0;
    pointer-events: none;
}
.btn:active::after, .github-btn:active::after {
    width: 200%; height: 200%; opacity: 1;
    transition: 0s;
}
.btn:focus-visible::after, .github-btn:focus-visible::after {
    width: 200%; height: 200%; opacity: 0.7;
}

/* Featured badge for top resource */
.featured-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ffb300, #ff8800);
    color: #0A0A0A;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.18em 0.7em;
    margin-bottom: 0.5em;
    margin-right: 0.5em;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255,187,0,0.10);
    vertical-align: middle;
    animation: badge-pop 1.2s cubic-bezier(.2,.6,.2,1);
}
@keyframes badge-pop {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
/* Cfx.re logo icon styling to match other feature icons */
.features-container .cfx-icon {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    transition: filter 0.5s;
    vertical-align: middle;
}
.features-container .feature:hover .cfx-icon,
.features-container .feature:focus .cfx-icon {
    filter: drop-shadow(0 0 6px #ff8800) brightness(1.15);
}
/* CFX profile icon (user-circle) orange color */
.features-container .fa-user-circle {
    color: #ff8800;
}
/* Social icon brand colors in features section */
.features-container .fa-github {
    color: #333;
}
.features-container .fa-discord {
    color: #5865F2;
}

/* On hover/focus, brighten the icon and add a glow */
.features-container .feature:hover .fa-github,
.features-container .feature:focus .fa-github {
    color: #24292f;
    filter: drop-shadow(0 0 6px #3333);
}
.features-container .feature:hover .fa-discord,
.features-container .feature:focus .fa-discord {
    color: #7289da;
    filter: drop-shadow(0 0 6px #5865F2);
}
.features-container .feature:hover .fa-user-circle,
.features-container .feature:focus .fa-user-circle {
    color: #ffaa33;
    filter: drop-shadow(0 0 6px #ff8800);
}

/* 1. Animated gradient text for header */
.jumbotron-header {
    /* Remove gradient from header, move to .jumbotron-gradient-text */
}

.jumbotron-gradient-text {
    background: linear-gradient(90deg, var(--brand), var(--brand-muted), var(--brand-25), var(--brand));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: gradient-move 4s ease-in-out infinite;
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Animated glowing border on resource cards */
.resource-card {
    position: relative;
    box-shadow: 0 2px 8px rgba(10,15,28,0.15);
    border: 1.5px solid var(--brand-25);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.resource-card:hover, .resource-card:focus {
    border-color: #00ffae;
    box-shadow: 0 0 16px 2px #00ffae80, 0 8px 24px rgba(0,0,0,0.25);
    z-index: 2;
}

/* 3. Animated icon color transitions */
.resource-card i, .features-container i, .jumbotron-header i {
    transition: color 0.5s, filter 0.5s;
}
.resource-card:hover i, .resource-card:focus i {
    color: #00ffae;
    filter: drop-shadow(0 0 6px #00ffae);
}
.features-container .feature:hover i, .features-container .feature:focus i {
    color: #ffb300;
    filter: drop-shadow(0 0 6px #ffb300);
}
.jumbotron-header:hover i, .jumbotron-header:focus i {
    color: #ffb300;
    filter: drop-shadow(0 0 6px #ffb300);
}
/* Make the jumbotron code icon green */
.jumbotron-header .fa-code {
    color: #22C55E;
}
/* Themed links inside blockquotes/info */
.blockquote a {
    color: var(--brand);
    text-decoration: underline;
    transition: color var(--fast);
}
.blockquote a:hover, .blockquote a:focus {
    color: var(--brand-hover);
    outline: none;
}
/* Main container for consistent width and centering */
.main-container {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    width: 100%;
}
/* GitHub Button Style */
.github-btn {
    display: inline-block;
    background: var(--brand);
    color: #0A0A0A;
    font-weight: 700;
    border: none;
    border-radius: var(--rsm);
    padding: 0.5rem 1.2rem;
    margin-top: 1rem;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(10,15,28,0.10);
    transition: background var(--fast), color var(--fast), transform 0.15s;
    cursor: pointer;
}
.github-btn:hover, .github-btn:focus {
    background: var(--brand-hover);
    color: #0A0A0A;
    transform: translateY(-2px) scale(1.04);
    outline: 2px solid var(--brand);
}
/* Featured Resources Grid */
/* Featured Resources Grid */
.resources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem 2.2rem;
    margin: 2.5rem 0 2.5rem 0;
    justify-content: center;
}
    
.resource-card {
    background: var(--elev);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(10,15,28,0.18);
    border: 1.5px solid var(--brand-25);
    padding: 1.1rem 1.3rem 1.2rem 1.3rem;
    margin: 0;
    width: 300px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    transition: box-shadow 0.18s, border 0.18s, background 0.18s;
    gap: 0.7rem;
    position: relative;
}
.resource-card h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.resource-card p {
    margin: 0 0 1.1rem 0;
    font-size: 1rem;
    color: var(--muted);
}
.resource-card .github-btn {
    align-self: flex-end;
    margin-top: auto;
}
@media (max-width: 1000px) {
    .resources-grid {
        gap: 1.5rem 1.5rem;
    }
    .resource-card {
        width: 45vw;
        min-width: 220px;
        max-width: 100%;
    }
}
@media (max-width: 700px) {
    .resources-grid {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }
    .resource-card {
        width: 95vw;
        min-width: 0;
        max-width: 99vw;
    }
}
.resource-card:hover, .resource-card:focus-within {
    background: var(--panel);
    border: 1.5px solid var(--brand);
    box-shadow: 0 8px 32px rgba(207,187,136,0.10), 0 4px 18px rgba(10,15,28,0.22);
    z-index: 2;
}
@media (max-width: 900px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@500;600;700&display=swap');

:root {
    --brand: #CFBB88;
    --brand-hover: #D9C9A0;
    --brand-muted: #9C8B67;
    --brand-20: rgba(207, 187, 136, .20);
    --brand-25: rgba(207, 187, 136, .25);
    --brand-30: rgba(207, 187, 136, .30);
    --brand-35: rgba(207, 187, 136, .35);
    --bg: #0A0A0A;
    --panel: #121212;
    --elev: #161616;
    --border: #232323;
    --text: #F4F4F4;
    --muted: #9CA3AF;
    --disabled: #4B5563;
    --error: #EF4444;
    --warn: #F59E0B;
    --success: #22C55E;
    --radius: 14px;
    --rsm: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --fast: 120ms cubic-bezier(.2, .6, .2, 1);
    --blur: 12px;
}

body {
    margin: 0;
    font-family: 'Bai Jamjuree', Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.navbar {
    background: var(--panel);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(10,15,28,0.5);
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 1px;
}

.navbar-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    position: relative;
}

.navbar-links a {
    color: var(--text);
    text-decoration: none;
    padding: 1rem 1.2rem;
    display: block;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: background var(--fast), color var(--fast);
}

.navbar-links a:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.navbar-links a:hover, .navbar-links .dropbtn:hover {
    background: var(--brand-hover);
    color: #0A0A0A;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--panel);
    min-width: 180px;
    z-index: 1;
    box-shadow: 0 8px 16px rgba(10,15,28,0.5);
    border-radius: var(--radius);
    margin-top: 0.5rem;
}

.dropdown-content a {
    padding: 0.75rem 1.2rem;
    color: var(--text);
    border-radius: var(--radius);
    transition: background var(--fast), color var(--fast);
}

.dropdown-content a:hover, .dropdown-content a:focus {
    background: var(--brand-hover);
    color: #0A0A0A;
}

.dropdown:hover .dropdown-content {
    display: block;
}

main {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(10,15,28,0.3);
}

h1, h2 {
    color: var(--brand);
    font-family: 'Bai Jamjuree', Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.script-list {
    list-style: none;
    padding: 0;
}

.script-list li {
    margin: 0.5rem 0;
}

.script-list a {
    color: var(--brand);
    text-decoration: underline;
    border-radius: var(--radius);
    padding: 0.2rem 0.5rem;
    transition: background var(--fast), color var(--fast);
}

.script-list a:hover, .script-list a:focus {
    color: #0A0A0A;
    background: var(--brand);
}
