/* 1. GLOBAL RESETS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-margin-top: 90px;
}

html {
    background-color: var(--main-bg);
    scroll-behavior: smooth;
}

/* THEME VARIABLES — DARK MODE (DEFAULT) */
:root {
    --main-bg: #0d0d0d;
    --main-text: #f8f9fa;
    --accent-color: #dbb93c;
    --card-bg: rgba(255, 255, 255, 0.03);
    --header-bg: rgba(13, 13, 13, 0.95);
    --header-border: rgba(219, 185, 60, 0.25);
    --surface-bg: #1a1a1a;
    --surface-subtle: rgba(255, 255, 255, 0.02);
    --muted-text: #cccccc;
    --idea-shadow: rgba(0, 0, 0, 0.5);
    --gold-glow: rgba(219, 185, 60, 0.45);
}

/* 2. BODY */
body {
    background-color: transparent;
    color: var(--main-text);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 3. HEADER */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--header-border);
    min-height: 70px;
    padding: 10px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.4s ease-in-out;
}

.header-hidden {
    transform: translateY(-100%);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.7rem;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo-ocellus {
    color: var(--main-text);
}

.logo-labs {
    color: var(--accent-color);
    text-shadow: 0 0 22px var(--gold-glow);
}

.tagline {
    display: flex;
    align-items: baseline;
}

.tagline h1 {
    margin: 0 8px 0 0;
    padding: 0;
    font-size: 1.9rem;
    font-weight: 500;
}

.tagline h2 {
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    font-weight: 300;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--main-text);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

.wtduo {
    display: flex;
    align-items: baseline;
}

.Welcome {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-right: 40px;
    margin-top: 0;
}

.Welcome h3 {
    font-size: 1rem;
    color: var(--main-text);
    margin: 0;
}

.Welcome p {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- THEME DROPDOWN --- */
.theme-dropdown {
    position: relative;
}

.dropbtn {
    background-color: transparent;
    color: var(--accent-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent-color);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.dropbtn:hover {
    background-color: var(--accent-color);
    color: var(--main-bg);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--header-bg);
    min-width: 140px;
    border: 1px solid var(--header-border);
    border-radius: 4px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow: hidden;
}

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

.dropdown-content span {
    color: var(--main-text);
    padding: 12px 16px;
    display: block;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

/* 4. MAIN CONTENT */
main {
    flex: 1;
    padding: 50px;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 85px;
}

/* 5. HALL OF FAME */
.hoft {
    color: var(--accent-color);
    display: flex;
    justify-content: space-around;
    margin-top: -65px;
}

.hoft h1 {
    font-size: 6rem;
    font-family: "Orbitron", sans-serif;
}

.hof {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    margin-bottom: 100px;
    margin-top: -65px;
    padding: 40px;
    background: var(--surface-subtle);
    border: 1px dashed var(--header-border);
    width: 100%;
}

.hof1 {
    width: 500px;
    height: 600px;
    padding: 40px;
    background-color: var(--surface-bg);
    border-radius: 8px;
    text-align: center;
    z-index: 2;
    margin: 0 -60px;
    border: 1px solid var(--accent-color);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.8);
}

.hof2 {
    width: 450px;
    height: 480px;
    z-index: 1;
    padding: 40px;
    background-color: var(--surface-bg);
    border: 1px dashed var(--header-border);
    border-radius: 8px;
    text-align: center;
}

.hof3 {
    width: 450px;
    height: 480px;
    z-index: 1;
    padding: 40px;
    background-color: var(--surface-bg);
    border: 1px dashed var(--header-border);
    border-radius: 8px;
    text-align: center;
    margin-top: 60px;
}

/* 6. TYPOGRAPHY */
h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
}

h2 {
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 30px;
}

/* 7. PROJECTS */
.proj_title h1 {
    display: flex;
    justify-content: center;
    font-size: 5rem;
    margin-top: 0;
    margin-bottom: 50px;
}

.project_info {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    height: 800px;
}

.project_info ul {
    list-style: none;
}

.project_completed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 500px;
    height: 650px;
}

.projects_planned {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 500px;
    height: 650px;
}

/* 8. MEMBERS & IDEA SECTION */
.members_idea {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    width: 100%;
    max-width: 1400px;
    margin: 100px auto;
}

.members {
    flex: 3;
    min-width: 0;
    margin-top: -60px;
}

.members h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    margin-top: -25px;
}

.cards-wrapper {
    position: relative;
}

.cards ul {
    list-style: none;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 20px;
    scroll-padding-left: 20px;
    scrollbar-width: none;
}

.cards li {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 360px;
    height: 500px;
    background: var(--card-bg);
    border: 1px dashed var(--header-border);
    border-radius: 8px;
    padding: 40px;
    transition: all 0.3s ease;
}

.cards li:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-bg);
    backdrop-filter: blur(5px);
    color: var(--main-text);
    border: 1px solid var(--header-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-btn:hover {
    background: var(--accent-color);
    color: var(--main-bg);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(219, 185, 60, 0.5);
}

.left-btn { left: -25px; }
.right-btn { right: -25px; }

.idea {
    flex: 1;
    background: var(--surface-subtle);
    border: 1px solid var(--header-border);
    border-radius: 8px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: inset 0 0 30px var(--idea-shadow);
}

.idea h1 {
    color: var(--accent-color);
    font-size: 3rem;
    margin: 0 auto;
    margin-top: -25px;
    margin-bottom: 50px;
}

.idea p {
    font-size: 2rem;
    font-family: cursive;
    line-height: 1.6;
    margin: 0 auto;
    color: var(--muted-text);
}

/* 9. ABOUT & DONATE */
.about_us {
    display: flex;
    gap: 50px;
}

.about {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about h1 {
    font-size: 4rem;
}

.about p {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.5rem;
}

.donate {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.donate h1 {
    font-size: 2.5rem;
    font-weight: 500;
}

.donate hr {
    border: none;
    border-top: 1px dashed var(--accent-color);
    width: 100%;
    margin: 40px 0;
}

.donate button {
    background: var(--surface-subtle);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.donate button:hover {
    background: var(--accent-color);
    color: var(--main-bg);
    box-shadow: 0 0 20px rgba(219, 185, 60, 0.4);
    transform: translateY(-3px);
}

.action-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.action-row h1 {
    font-size: 3.5rem;
    font-weight: 500;
    margin: 0;
}

/* 10. FOOTER */
footer {
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 50px;
    text-align: center;
    font-size: 1rem;
    color: #888;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #ffffff;
}

/* 11. SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 12. ACTIVE NAV */
nav a.active {
    color: var(--accent-color);
    font-weight: 700;
}

/* 13. MEMBER CARD PLACEHOLDERS */
.member-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px dashed var(--accent-color);
    margin: 60px auto 25px;
    opacity: 0.35;
}

.member-status {
    text-align: center;
    color: var(--muted-text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 14. CANVAS BACKGROUND */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* 15. SCROLL PROGRESS BAR */
#scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), rgba(219, 185, 60, 0.5));
    box-shadow: 0 0 8px var(--gold-glow);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* 16. CUSTOM CURSOR */
body { cursor: none; }

.cursor-dot {
    position: fixed;
    width: 7px;
    height: 7px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s;
}

@media (pointer: coarse) {
    body { cursor: auto; }
    .cursor-dot { display: none; }
}

/* 17. PROJECT CARDS */
.proj-card {
    width: 100%;
    padding: 18px 20px;
    border: 1px dashed var(--header-border);
    border-radius: 6px;
    margin-bottom: 14px;
    transition: border-color 0.2s;
    list-style: none;
}

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

.proj-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.proj-badge.tba {
    border: 1px solid var(--muted-text);
    color: var(--muted-text);
}

.proj-badge.planned {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.proj-badge.wip {
    border: 1px solid #e8a020;
    color: #e8a020;
}

.proj-badge.done {
    border: 1px solid #5aaa6a;
    color: #5aaa6a;
}

.proj-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--main-text);
    margin: 0 0 6px;
}

.proj-desc {
    font-size: 0.85rem;
    color: var(--muted-text);
    line-height: 1.5;
    margin: 0;
}

/* 18. RESPONSIVE — TABLET (≤900px) */
@media (max-width: 900px) {
    .tagline { display: none; }

    main { padding: 30px; }

    .hoft { margin-top: 20px; }

    .hof {
        flex-direction: column;
        align-items: center;
        margin-top: 0;
        gap: 20px;
        padding: 20px;
    }

    .hof1 {
        width: 90%;
        max-width: 420px;
        margin: 0;
        height: auto;
        min-height: 180px;
    }

    .hof2, .hof3 {
        width: 85%;
        max-width: 380px;
        height: auto;
        min-height: 150px;
        margin-top: 0;
    }

    .project_info {
        flex-direction: column;
        align-items: center;
        height: auto;
        gap: 30px;
    }

    .project_completed, .projects_planned {
        width: 90%;
        max-width: 500px;
        height: auto;
        min-height: 200px;
    }

    .members_idea {
        flex-direction: column;
        gap: 40px;
    }

    .members { margin-top: 0; }

    .cards li { width: 280px; height: 420px; }

    .about_us { flex-direction: column; }

    .action-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .action-row h1 { font-size: 2.5rem; }
}

/* 19. RESPONSIVE — MOBILE (≤600px) */
@media (max-width: 600px) {
    * { scroll-margin-top: 70px; }

    header { padding: 10px 20px; min-height: 60px; }

    .logo { font-size: 1.3rem; }

    .Welcome { display: none; }

    nav ul { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

    nav a { font-size: 0.75rem; letter-spacing: 0.3px; }

    main { padding: 20px; margin-top: 70px; }

    .hoft h1 { font-size: 3.5rem; }

    .proj_title h1 { font-size: 3rem; }

    .members h1 { font-size: 3rem; margin-top: 0; }

    .about h1 { font-size: 2.5rem; }

    .idea h1 { font-size: 2rem; margin-top: 0; }

    .idea p { font-size: 1.4rem; }

    .action-row h1 { font-size: 1.8rem; }

    footer { padding: 25px 20px; }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
