/* Import Computer Modern Web (LaTeX-style) */
@import url('https://fonts.googleapis.com/css2?family=CMU+Serif:wght@400;700&family=CMU+Sans+Serif:wght@400;700&display=swap');

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

/* ---------------------------------------------------
   DARK THEME (DEFAULT)
--------------------------------------------------- */
:root {color-scheme: dark;}

body {
    font-family: "CMU Sans Serif", "CMU Serif", Arial, Helvetica, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

select {
    font-size: 1rem;        /* match your input text size */
    padding: 8px 20px;      /* match the vertical + horizontal padding of inputs */
    height: 40px;           /* optional: force exact height */
    box-sizing: border-box; /* ensures padding doesn't break layout */
}


/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Grid of cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: #111111;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(255,255,255,0.05);
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.1);
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Subpage nav */
.topnav {
    margin-bottom: 20px;
}

.topnav a {
    text-decoration: none;
    color: #66aaff;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    color: #888888;
}

/* ORION header layout */
.orion-header {
    text-align: center;
    margin-top: 40px;
}

/* Letter navigation */
.orion-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.orion-letter {
    font-family: "CMU Sans Serif", sans-serif;
    font-size: 3rem;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover reveal effect */
.orion-letter::after {
    content: attr(data-full);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0;
    color: #66aaff;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.orion-letter:hover {
    color: #66aaff;
}

.orion-letter:hover::after {
    opacity: 1;
}

/* Logo styling */
.orion-logo img {
    width: 180px;
    height: auto;
    margin-top: 20px;
}

/* Make the third paragraph look subtly interactive */
.clickable {
    cursor: pointer;
    transition: color 0.3s ease;
}

.clickable:hover {
    color: #66aaff;
}

a.clickable:hover {
    color: #9f7fff !important;
    font-weight: bold;
}



/* Popup overlay */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Popup box */
.popup-content {
    background: #111;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    font-family: "CMU Sans Serif", sans-serif;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.popup-content button {
    margin-top: 20px;
    padding: 8px 20px;
    background: #66aaff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #000;
    font-weight: bold;
}

.popup-content button:hover {
    background: #88bbff;
}

.nexus-section {
    margin-top: 40px;
}

.nexus-section h2 {
    margin-bottom: 10px;
    color: #66aaff;
}

.nexus-section p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.nexus-section ul {
    list-style: disc;
    padding-left: 60px;   /* increase this number until it looks right */
    margin-left: 0;      /* prevents double‑indentation */
}

.nexus-section li {
    margin-bottom: 6px;
}

.nexus-section a {
    color: #cce0ff;              /* soft, readable link color */
    text-decoration: none;
    transition: color 0.2s ease;
}

.nexus-section a:hover {
    color: #ffffff;              /* subtle hover pop */
}

.guarantee {
    margin-top: 60px;
    padding: 40px;
    background: #0a0a0a;
    border: 2px solid #1f1f1f;
    border-radius: 8px;
    text-align: center;
    color: #e6e6e6;
    font-family: "CMU Sans Serif", sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.guarantee strong {
    color: #9f7fff; /* ORION violet accent */
    font-weight: 700;
}

.guarantee p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}


.repo-list {
    list-style: none;
    padding-left: 0;
}

.repo-list li {
    margin: 8px 0;
}

.repo-list a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.repo-list a:hover {
    color: #66aaff;
}

.staff-entry {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.staff-pfp {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    background: #222;
}

.staff-bio h3 {
    margin: 0 0 8px 0;
    color: #66aaff;
}

.staff-bio p {
    margin: 0;
}

.staff-name-link {
    color: #66aaff;
    text-decoration: none;
}

.staff-name-link:hover {
    color: #88bbff;
}

.org-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.org-list li {
    margin: 10px 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form button {
    background: #66aaff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: #000;
}

.contact-form button:hover {
    background: #88bbff;
}

.hidden-reveal {
    color: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hidden-reveal:hover {
    opacity: 1;
}

.secret-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.secret-modal-content {
    background: #111;
    padding: 30px;
    border: 1px solid #333;
    border-radius: 6px;
    max-width: 400px;
    text-align: center;
    color: #fff;
    font-family: inherit;
}

.secret-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

#secret-close {
    margin-top: 20px;
    background: #66aaff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#secret-close:hover {
    background: #88bbff;
}

.orion-breathing {
    animation: orion-breathe 8s ease-in-out infinite;
}

/* Starfield */
#starfield {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0;
    --direction: 1;
    --shape-rotate: 0deg;
    transform-origin: center;
    transform:
        rotate(var(--shape-rotate))
        rotate(calc(360deg * var(--direction)));
    animation:
        star-appear 1.2s ease forwards,
        star-twinkle 4s ease-in-out infinite,
        drift-rotate 40s linear infinite;
}

.star .inner {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px white);
}

/* Dark star */
.dark-star {
    width: 200px;
    height: 200px;
    position: relative;
    border-radius: 50%;
    overflow: visible;
    animation: portal-spin 12s linear infinite;
    filter:
        drop-shadow(0 0 20px rgba(0,0,0,0.9))
        drop-shadow(0 0 40px rgba(0,0,0,0.6));
}

.dark-star::before {
    content: "";
    position: absolute;
    inset: -15%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(0,0,0,0.9) 0deg,
        rgba(20,20,20,0.6) 90deg,
        rgba(0,0,0,1) 180deg,
        rgba(20,20,20,0.6) 270deg,
        rgba(0,0,0,0.9) 360deg
    );
    filter: blur(12px);
    animation: horizon-spin 6s linear infinite reverse;
}

.dark-star .inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        #000 0%,
        #0a0a0a 25%,
        #000 60%,
        #000 100%
    );
    animation: portal-pulse 4s ease-in-out infinite;
    transform-origin: center;
}

.dark-star::after {
    content: "";
    position: absolute;
    inset: -5%;
    border-radius: 50%;
    backdrop-filter: blur(6px) contrast(1.4);
    opacity: 0.4;
}

.accretion {
    position: absolute;
    inset: -30%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(80,0,0,0.4),
        rgba(0,0,0,0.8),
        rgba(80,0,0,0.4)
    );
    animation: accretion-spin 3s linear infinite;
    filter: blur(20px);
}

/* ---------------------------------------------------
   LIGHT MODE OVERRIDE (EXPLICIT USER OPT-IN)
--------------------------------------------------- */

body.light-mode {
    background: #ffffff;
    color: #000000;
}

body.light-mode .card {
    background: #f2f2f2;
    color: #000000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

body.light-mode .card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

body.light-mode a {
    color: #0066cc;
}

body.light-mode a:hover {
    color: #004c99;
}

body.light-mode img.invertable {
    filter: invert(1);
}


/* Video placeholder */
.video-slot {
    display: flex;
    justify-content: center;
    margin: 4rem 0;
}

.video-placeholder {
    width: 640px;
    height: 360px;
    border: 2px dashed #666;
    color: #aaa;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    background: rgba(255,255,255,0.05);
}

/* Starfield canvas */
#starfield2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: black; /* dark mode default */
}

/* Light mode canvas override */
body.light-mode #starfield2 {
    background: white;
}


/* Content styling */
.content-block {
    margin: 4rem auto;
    width: 70%;
    color: white;
    font-size: 1.2rem;
    line-height: 1.6;
}

.repo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.repo-list li {
    margin: 0 0 12px 0;
    position: relative;
}

.repo-list a {
    font-weight: 600;
    cursor: pointer;
}

.repo-desc {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    padding-left: 12px;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Expand on hover */
.repo-list li:hover .repo-desc {
    max-height: 200px; /* enough for 2–3 lines */
    opacity: 1;
}

.repo-list a[data-disabled="true"] {
    opacity: 0.6;
    cursor: default;
    pointer-events: auto; /* still hoverable */
}

.repo-list a[data-disabled="true"]:hover {
    text-decoration: none;
}

#chiCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: -1;
    background: #000;
}

/* Light mode canvas override */
body.light-mode #chiCanvas {
    background: white;
}


/* ---------------------------------------------------
   KEYFRAME ANIMATIONS FOR ORION'S COSMIC EFFECTS
--------------------------------------------------- */

@keyframes orion-breathe {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(1.08); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes drift-rotate {
    0%   { transform: rotate(var(--shape-rotate)) rotate(0deg); }
    100% { transform: rotate(var(--shape-rotate)) rotate(calc(360deg * var(--direction))); }
}

@keyframes star-appear {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.8; }
    50%      { opacity: 0.3; }
}

/* slow gravitational spin */
@keyframes portal-spin {
    0%   { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* breathing event-horizon pulse */
@keyframes portal-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.2); }
}

@keyframes accretion-spin {
    to { transform: rotate(360deg); }
}

@keyframes horizon-spin {
    to { transform: rotate(-360deg); }
}
