/* 0. Html stuffs */
html {
  scroll-behavior: smooth;
}

/* 1. Global Variables & Reset */
:root {
    /* RED THEME ONLY */
    --bg: #120b0d;
    --card: #2a1418;
    --accent: #ff3b3b;
    --accent-hover: #ff1f1f;
    --text: #ffecec;
    --muted: #c9a3a3;
    --border: #3a1d22;
    --glass: rgba(42, 20, 24, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. Navigation */
.navbar {
    background: rgba(18, 11, 13, 0.85);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border: 2px solid var(--accent);
}

/* 3. Dropdown Menu */
.dropdown {
    position: relative;
}

.dropbtn {
    background: var(--card);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.dropbtn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0%;
    top: 100%;
    background: var(--card);
    min-width: 180px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background: var(--accent);
    color: var(--bg);
}

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

/* 4. Layout & Containers */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

/* 5. Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(to right, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.mascot {
    margin-top: 20px;
    max-width: 250px;
    border-radius: 20px;
    filter: drop-shadow(0 0 18px rgba(255, 59, 59, 0.35));
}

/* 6. Cards & Grids */
.card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* red accent strip */
.instruction-box {
    border-left: 5px solid var(--accent);
    background: linear-gradient(90deg, rgba(255, 59, 59, 0.12) 0%, transparent 100%);
}

/* 7. Buttons */
.explore-btn, .project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
}

.explore-btn, .project-btn:not(.secondary) {
    background: var(--accent);
    color: var(--bg);
}

.project-btn.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.explore-btn:hover, .project-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.4);
}

/* 8. Forms & Inputs */
input, select, textarea {
    width: 100%;
    background: #1a0c0f;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.25);
}

/* 9. Footer */
.footer {
    margin-top: 100px;
    border-top: 1px solid var(--border);
    background: rgba(18, 11, 13, 0.7);
    backdrop-filter: blur(10px);
}

.footer-top {
    padding: 25px 40px;
    text-align: left;
}

.powered-by {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    align-items: center;
}

.powered-by .title {
    grid-column: 1 / -1;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.powered-by .link {
    padding-left: 20px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    width: fit-content;
    white-space: nowrap;
}

.powered-by .link::before {
    content: "➜";
    position: absolute;
    left: 6px;
    color: var(--accent);
}

.powered-by .link:hover {
    color: var(--accent);
}

@media (max-width: 600px) {
    .powered-by {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

/* 10. Utils */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 50px 0;
}

/* 11. Basic button */
.basicbutton {
    background: var(--card);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s;
    text-decoration: none;
}

/* member role */
@keyframes rgbCycle {
  0% { color: #ff3b3b; }
  33% { color: #ff7b7b; }
  66% { color: #ff1f1f; }
  100% { color: #ff3b3b; }
}

.member-role {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(255, 59, 59, 0.12);
    border: 1px solid rgba(255, 59, 59, 0.25);
    color: #ff3b3b;
    font-size: 0.64rem;
    text-shadow: 0 0 8px rgba(255, 59, 59, 0.35);
}

.hero-wrapper {
    margin-top: 0 !important;
    background-image: linear-gradient(rgba(18, 11, 13, 0.9), rgba(18, 11, 13, 0.8)),
        url('/static/bg.png');

    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    border-radius: 24px;
    padding: 20px;
}

/* transparent charts */
.chart {
    background-color: transparent !important;
    display: block;
    width: 100%;
    height: auto;
    border: none;
    outline: none;
}

/* graph popup */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}