/* Custom CSS Variables - Core Aesthetic */
:root {
    --color-background: rgb(0, 0, 0);
    --color-primary: #0048ff;
    --color-secondary: #001eb3;      /* Slightly darker accent */
    --color-text: #ffffff;
    --color-text-light: #8b949e;     /* Subtle light gray for body copy */
    --color-module-bg: #0e1115;      /* Off-black for data modules */
    --color-border: #1a2430;         /* Subtle dark border */
    --font-family-sans: 'Inter', sans-serif;
    --font-family-mono: 'Space Mono', monospace;
    --glow-shadow: 0 0 10px rgba(0, 81, 255, 0.5);
}

/* GLOBAL STYLES & RESETS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}
h2 { 
    font-size: 2.5em; 
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-primary);
    text-shadow: var(--glow-shadow);
}
h3 { 
    font-size: 1.2em; 
    font-family: var(--font-family-mono);
    color: var(--color-text);
}

p { color: var(--color-text-light); }

/* BUTTONS / CTAs */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.primary-cta {
    background-color: var(--color-primary);
    color: var(--color-background);
    border: 2px solid var(--color-primary);
    box-shadow: var(--glow-shadow);
}
.primary-cta:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.secondary-cta {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: var(--glow-shadow);
    padding: 10px 20px;
}
.secondary-cta:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    box-shadow: none;
}


.header-content {
    /* 1. Make the container a flex container */
    display: flex;
    /* 2. Pushes items to opposite ends (logo on left, button on right) */
    justify-content: space-between;
    /* 3. Vertically aligns the logo and button in the center */
    align-items: center;
    /* Ensure the content takes up the full width of the container */
    width: 100%;
}

/* Optional: Style the new button to match your aesthetic */
.header-cta {
    /* Example: Darker background for visibility */
    background-color: #0088cc;
    color: white;
    border: none;
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* This assumes you already have a general .cta-button style */
}


/* 1. MINIMAL HEADER */
.minimal-header {
    padding-top: 20px;
    padding-bottom: 20px;
}
.logo {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--color-text);
    font-family: var(--font-family-mono);
}
.logo span {
    color: var(--color-primary);
    font-size: 0.8em;
    text-shadow: 0 0 5px rgba(0, 89, 255, 0.5);
}

.cta-button {
    font-family: var(--font-family-mono);
}


/* 2. CENTRAL ORB / HERO SECTION */
.core-dashboard-section {
    padding: 60px 0 60px 0;
    min-height: 80vh;
    /* Subtle background grid effect */
    background-image: radial-gradient(circle, rgba(0, 255, 200, 0.05) 1px, transparent 1px);
    background-size: 30px 30px; 
}

.core-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Module | Orb | Module */
    align-items: center;
    gap: 40px;
}

#threejs-background {
    position: fixed; /* Keep it fixed even if content scrolls */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* CRITICAL: Puts it behind all other content */
    background-color: var(--color-background); /* Ensures a solid black base */
    overflow: hidden;
}



/* The actual container for the Three.js Canvas */
#threejs-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* Helps maintain shape */
    overflow: hidden;
    /* Ensure the canvas fills the container */
}

/* Initial loading message style */
#threejs-background .orb-title {
    font-family: var(--font-family-mono);
    color: var(--color-text-light);
    opacity: 0.7;
    font-size: 0.9em;
    text-align: center;
}

/* Side Modules */
.module {
    padding: 25px;
    background-color: var(--color-module-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.module-hidden {
    padding: 25px;
    background-color: var(--color-module-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    visibility: hidden;
}

.module h3 {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
    margin-bottom: 10px;
    color: var(--color-primary);
    text-shadow: 0 0 3px rgba(0, 255, 200, 0.4);
}

.metric-line, .coverage-item {
    font-family: var(--font-family-mono);
    font-size: 1em;
    padding: 5px 0;
}

.data-point {
    float: right;
    font-weight: bold;
    color: var(--color-primary);
}
.risk-high { color: #ff5555; }
.risk-medium { color: #ffaa00; }
.online { color: var(--color-primary); }

.module-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}
.module-link:hover {
    color: var(--color-primary);
}

/* Hero Callout Below Orb */
.hero-callout {
    text-align: center;
    padding-top: 40px;
    max-width: 800px;
    margin-top: 50px;
}
.hero-callout h1 {
    font-size: 3.5em;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* 3. MODULAR FEATURE SECTION */
.modular-features-section {
    background-color: #05070a; /* Slightly lighter black for contrast */
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-top: 80px;
    padding-bottom: 120px;
}

.modular-features-section .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.data-card {
    background-color: var(--color-module-bg);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary); /* Strong top accent */
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px var(--color-primary);
}

.key-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.key-list li {
    font-family: var(--font-family-mono);
    font-size: 0.9em;
    color: var(--color-text-light);
    padding: 5px 0;
}


/* 4. FOOTER / CONTACT (Integrated Console Look) */
.console-footer {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-background);
}

.subtitle {
    /* Example values: adjust 1.4rem to be larger than its current size */
    font-size: 1.4rem;

    /* Optional: Increase line spacing for better readability at a larger size */
    line-height: 1.6;

    /* Optional: If you want it heavier, but not as heavy as the main H1 */
    font-weight: 500;

    /* Add any other specific styling here */
}

.console-box {
    background-color: #111;
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.5);
    max-width: 700px;
    margin: 0 auto 30px auto;
    padding: 20px 30px;
    border-radius: 4px;
    text-align: left;
    font-family: var(--font-family-mono);
}

.prompt-line {
    color: var(--color-text);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.prompt {
    color: var(--color-primary);
}

.cursor {
    display: inline-block;
    background-color: var(--color-primary);
    width: 8px;
    height: 1.2em;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.contact-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.contact-form input {
    flex-grow: 1;
    padding: 10px;
    background-color: #000;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-family-mono);
}

.contact-form input::placeholder {
    color: var(--color-text-light);
}

.status-line {
    color: var(--color-text-light);
    font-size: 0.9em;
    margin-top: 15px;
}

.copyright {
    color: var(--color-text-light);
    font-size: 0.8em;
    margin-top: 50px;
}


/* RESPONSIVENESS */
@media (max-width: 1024px) {
    
    .core-grid {
        grid-template-columns: 1fr; /* Stack all elements vertically */
        text-align: center;
        gap: 60px;
    }
    
    .core-orb-container {
        width: 300px;
        height: 300px;
        margin: 0 auto;
        order: 1; /* Put the 3D container first */
    }

    .module {
        height: auto;
        order: 2; 
    }
    
    .left-module, .right-module { 
        text-align: left; /* Keep module text aligned for readability */
    }
    
    .hero-callout h1 {
        font-size: 2.8em;
    }

    .modular-features-section .container {
        grid-template-columns: 1fr; /* Stack feature cards vertically */
    }
    
    .data-point {
        /* On small screens, prevent the data point from wrapping under the label */
        float: none; 
        display: inline-block;
        margin-left: 10px;
    }
}

.usage-panel {
    width: 100px;
    height: 200px;
    box-shadow: 0px 0px 12px rgba(127, 255, 255, 0.25);
    border: 1px solid rgba(127, 255, 255, 0.25);
    background-color: rgba(0, 0, 0, 0.32);
    border-radius: 10px;
    font-family: Helvetica, sans-serif;
    text-align: left;
    line-height: normal;
    cursor: default;
}

.usage-panel .name_ {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 0px;
    font-size: 13px;
    font-weight: bold;
    word-wrap: break-word;
    color: rgb(194, 56, 25);
}

.partition-panel {
  width: 940px;
  height: 340px;
  box-shadow: 0px 0px 12px rgba(127, 255, 255, 0.25);
  border: 1px solid rgba(127, 255, 255, 0.25);
  background-color: black;
  border-radius: 10px;
  font-family: Helvetica, sans-serif;
  text-align: left;
  line-height: normal;
  cursor: default;
}

.partition-panel:hover {
  box-shadow: 0px 0px 12px rgba(121, 18, 107, 0.75);
  border: 1px solid rgba(48, 145, 41, 0.75);
  background-color: rgba(168, 33, 33, 0.75);
  transform: scale(1.5);
}

.partition-panel .ip_ {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  color: rgb(255, 255, 255);
}

.partition-panel .token_logo_ {
  position: absolute;
  top: 90px;
  right: 195px;
  height: 250px;
  width: 250px;
}

.partition-panel .name_ {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 0px;
  font-size: 13px;
  font-weight: bold;
  word-wrap: break-word;
  color: rgb(194, 56, 25);
}

.partition-panel .usages {
  position: absolute;
  bottom: 15px;
  left: 0px;
  right: 0px;
  font-size: 12px;
  color: rgb(255, 255, 255);
}

.partition-panel .gauge_container_ {
  /* Define the overall size and background of the gauge track */
  width: 50px;
  height: 200px;
  left: 50px;
  top: 70px;
  background-color: #5b5a5a;
  border-radius: 0px;
  overflow: hidden; /* This is crucial to keep the fill inside the container */
  position: absolute;
}

.partition-panel .gauge_fill_ {
  /* Style the fill element */
  width: 100%;
  background-color: #54b05c; /* A nice green color for the fill */
  transition: height 0.5s ease-in-out; /* Smooth transition for the fill */
  position: absolute;
  bottom: 0; /* This is key for the vertical fill from the bottom */
}

.partition-panel .gauge_text_ {
  position: absolute; /* Position the text relative to .gauge_container_ */
  top: 50%; /* Start vertical position at the middle */
  left: 0; /* Align to the left edge */
  width: 100%; /* Make it span the full width of the container */
  transform: translateY(-50%); /* Shift it up by half its own height to truly center it vertically */
  text-align: center; /* Center the text horizontally */
  color: white; /* Choose a color that stands out from the gauge */
  font-size: 0.8em; /* Make the number readable */
  font-weight: bold;
  /* Ensure the text is above the fill and track */
  z-index: 10;
  /* Optional: Add a slight text shadow for better contrast */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}
