/* --- FONT FACE --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* --- BASE STYLES & VARIABLES --- */
:root {
    --bg-dark: #1a1a1a;
    --bg-light: #ffffff;
    --text-light: #e0e0e0;
    --text-dark: #333333;
    --accent-color: #ff1744;
    --white: #ffffff;
    --font-main: 'Space Mono', monospace;
    --shadow: rgba(0, 0, 0, 0.5);

    --bg-primary: var(--bg-dark);
    --bg-secondary: #2d2d2d;
    --text-primary: var(--text-light);
    --text-secondary: #aaaaaa;
    --heading-color: var(--white);
    --card-bg: var(--bg-secondary);
    --header-bg: rgba(26, 26, 26, 0.95);
}

.light-theme {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-primary: var(--text-dark);
    --text-secondary: #555555;
    --heading-color: #111111;
    --card-bg: var(--bg-secondary);
    --header-bg: rgba(255, 255, 255, 0.95);
    --shadow: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--heading-color);
}

h1,
h2,
h3,
h4 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

h4 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: -1rem auto 3rem auto;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

h2.section-subtitle {
    text-align: left;
    margin: -1rem 0 2rem 0;
}


/* --- THREE.JS BACKGROUND --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* --- UTILITY & ANIMATIONS --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

.btn-tertiary {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    color: var(--accent-color);
    border: none;
    background: transparent;
}

.btn-tertiary:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px var(--shadow);
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
}

/* Default (Dark Mode) */
.logo-light {
    display: none;
}

.logo-dark {
    display: block;
}

/* Light Mode */
.light-theme .logo-light {
    display: block;
}

.light-theme .logo-dark {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--accent-color);
    transition: all 0.3s ease-in-out;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.theme-toggle svg {
    stroke: var(--accent-color);
    transition: stroke 0.3s ease;
}

.theme-toggle:hover svg {
    stroke: var(--white);
}

.light-theme .theme-toggle .icon-sun {
    display: none;
}

.light-theme .theme-toggle .icon-moon {
    display: block;
}

.theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}


/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Header height */
}

.hero-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    gap: 3rem;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(255, 23, 68, 0.2));
    /* Subtle glow using accent color */
}

/* --- ABOUT SECTION --- */
#about h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-focus h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.about-focus ul {
    list-style: none;
}

.about-focus li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.about-focus li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* --- PLATFORMS SECTION --- */
#platforms h2,
#team h2,
#roadmap h2,
#ecosystem h2,
#contact h2 {
    text-align: center;
}

.platform-cards,
.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card,
.team-card,
.timeline-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px -15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover,
.team-card:hover,
.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px var(--shadow);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: transparent;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.card h3 {
    color: var(--heading-color);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- ECOSYSTEM SECTION --- */
.ecosystem-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ecosystem-column h3 {
    color: var(--accent-color);
}

/* --- ROADMAP SECTION --- */
.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--bg-secondary);
    top: 0;
    bottom: 0;
    left: 30px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    padding-left: 80px;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 4px solid var(--accent-color);
    top: 20px;
    left: 21px;
    z-index: 1;
}

.timeline-content ul {
    list-style-position: inside;
    color: var(--text-secondary);
}

/* --- TEAM SECTION --- */
.team-card {
    align-items: center;
    text-align: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.team-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-card .team-role {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-card .team-detail {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
    background-color: var(--card-bg);
    padding: 4rem 2rem;
    border-radius: 4px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px -15px var(--shadow);
}

.contact-info-centered .contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-list-item {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-list-item strong {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.contact-list-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list-item a:hover {
    color: var(--accent-color);
}

/* --- FOOTER --- */
.main-footer {
    padding: 2rem 0;
    background-color: var(--bg-secondary);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    margin: 0 0.5rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin: 2rem auto 0;
        width: 80%;
        max-width: 300px;
    }

    .about-content,
    .ecosystem-columns,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(75vw, 400px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        background-color: var(--bg-secondary);
        box-shadow: -10px 0px 30px -15px var(--shadow);
        transition: right 0.3s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section {
        padding: 4rem 0;
    }

    .roadmap-timeline::after {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 6px;
    }

    .contact-wrapper {
        padding: 2rem 1rem;
    }

    .contact-list-item {
        font-size: 1rem;
        word-break: break-word;
        /* Ensure long emails wrap */
        display: flex;
        flex-direction: column;
        /* Stack label and value on very small screens if needed, or just let them wrap naturally with text alignment */
        align-items: center;
    }
}