:root {
    --bg-color: #000000;
    --accent-color: #ff0000;
    --text-primary: #ff0000;
    --text-secondary: #cc0000;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: auto;
    /* Revert custom cursor */
}

/* Custom Cursor Hidden */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: none;
    /* Hidden until JS activates */
}

.cursor-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent-color);
}

.cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px dashed var(--accent-color);
    border-radius: 50%;
    animation: spinCursor 4s linear infinite;
    opacity: 0.7;
}

@keyframes spinCursor {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Matrix Background Hidden */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    /* Behind everything */
    opacity: 0.15;
    /* Subtle background */
    display: none;
}

/* Fullscreen Layers Hidden */
.fullscreen-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background-color: var(--bg-color);
    transition: opacity 1.0s ease-out;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    height: 0;
    overflow: hidden;
}

/* Typewriter Effect */
.typewriter {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--accent-color);
    white-space: pre-wrap;
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.cursor {
    display: inline-block;
    width: 10px;
    background-color: var(--accent-color);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    height: 2.5rem;
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Intro Globe */
.globe-container {
    position: relative;
    width: 80px;
    height: 80px;
    perspective: 600px;
    transform-style: preserve-3d;
}

.globe-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    box-sizing: border-box;
}

.ring1 {
    animation: rotate1 2s linear infinite;
}

.ring2 {
    animation: rotate2 2s linear infinite;
}

.ring3 {
    animation: rotate3 2s linear infinite;
}

.globe-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--accent-color);
}

@keyframes rotate1 {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes rotate2 {
    0% {
        transform: rotateX(60deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(60deg) rotateY(360deg);
    }
}

@keyframes rotate3 {
    0% {
        transform: rotateX(-60deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(-60deg) rotateY(360deg);
    }
}

/* Main Content */
.main-container {
    position: relative;
    z-index: 50;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navigation */
.main-nav {
    width: 100%;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #330000;
    background: #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 0 1rem;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    opacity: 0.8;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: #220000;
    border-color: #ff0000;
    opacity: 1;
}

/* Gradient Text Utility - Redefined for Red */
.gradient-text,
h1,
.logo-header h1 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--accent-color);
    display: inline-block;
}

/* Logo Header */
.logo-header {
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.main-logo {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    /* Removed drop-shadow filter */
}

.main-logo:hover {
    /* Removed hover effect */
}

/* Mission Section */
.mission-section {
    text-align: center;
    /* Centered */
    margin-bottom: 4rem;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1rem;
    width: 100%;
    max-width: 800px;
    /* Constrain width for readability center */
    margin-left: auto;
    margin-right: auto;
}

#mission-text-container p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 1.2rem;
    min-height: 20px;
    letter-spacing: normal;
    text-shadow: none;
}

/* Animations Removed (Overrides) */
.fly-in-hidden {
    opacity: 1;
    transform: none;
}

.fly-in-visible {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Contact & Links */
.contact-section {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-section h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--text-primary);
}

.contact-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.contact-section a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Key Link Styling */
.key-link-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.key-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
}

.key-link:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.key-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

footer {
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .typewriter {
        font-size: 1.5rem;
    }

    .main-logo {
        max-height: 250px;
        filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.1));
    }
}

/* ------------------------------
   Co-Founders Section
   (below mission, above database)
------------------------------ */

.founders-section {
    width: 100%;
    max-width: 1000px;
    margin: 3rem auto 5rem;
    padding: 0 1.5rem;
    text-align: center;
}

.founders-section h3 {
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.founders-grid {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

.founder-card {
    flex: 1 1 350px;
    /* two columns on most desktops, wraps on smaller widths */
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* More subtle border */
    border-radius: 20px;
    padding: 2rem;
    background: rgba(20, 20, 25, 0.6);
    /* Slightly darker/more neutral */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    gap: 1.5rem;
    text-align: left;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.founder-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.1);
    background: rgba(25, 25, 35, 0.8);
}

.founder-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* Circular for more modern feel */
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

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

.founder-meta h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    font-weight: 600;
}

.founder-meta p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--accent-color);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

@media (max-width: 760px) {
    .founders-section {
        padding: 1.25rem 1rem;
    }

    .founder-card {
        padding: 1rem;
        max-width: 100%;
    }

    .founder-photo {
        width: 88px;
        height: 88px;
    }
}