:root {
    --surface: #F7FAFF;
    --primary: #2746FF;
    --primary-600: #1E36DB;
    --primary-400: #4B6BFF;
    --accent: #00C2FF;
    --muted: #6B7A99;
    --success: #00B37A;
    --warning: #FFB020;
    --danger: #FF4757;
    --glass: rgba(255, 255, 255, 0.214);
    --shadow: 0 8px 24px rgba(39, 70, 255, 0.08);
    --text: #0F1724;
    --primary-gradient:linear-gradient(90deg, #16aedd, #4157e5, #760cee);
    
    /* Light Mode */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7FAFF;
    --text-primary: #0F1724;
    --text-secondary: #6B7A99;
    --border-color: #E0E8F5;
}

body.dark-mode {
    --bg-primary: #0F1724;
    --bg-secondary: #1A2847;
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --border-color: #2D4159;
    --surface: #1A2847;
}

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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    cursor: pointer;
}
/* LOGO IMAGE */
.nav-logo-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid var(--primary);
    background-color: white;
}

/* LOGO TEXT (Gradient like your theme) */
.logo-text {
    font-size: 2.1rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00C2FF, #2E4BFF, #7A1FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.4rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.btn-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: 2px solid var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero {
    background: var(--primary-gradient);
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 600px;
}

.hero-content {
    margin-left: 50px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 300;
}

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

.hero-visualization {
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#brainCanvas {
    width: 100%;
    height: 100%;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
   
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(39, 70, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: whitesmoke;
    border-radius: 20px;
    border: 1px solid white;
}

.btn-secondary:hover {
    background: var(--glass);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-control {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-control:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.full-width {
    width: 100%;
}

/* ========== FEATURES SECTION ========== */
.features {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(39, 70, 255, 0.15);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== DASHBOARD ========== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s;
}

.dashboard-card:hover {
    box-shadow: 0 8px 24px rgba(39, 70, 255, 0.12);
}

.dashboard-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.health-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    position: relative;
}

.circular-progress {
    width: 150px;
    height: 150px;
    transform: rotate(-90deg);
}

.progress-background {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.progress-circle {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-dasharray: 282.7;
    stroke-dashoffset: calc(282.7 - (282.7 * var(--progress) / 100));
    transition: stroke-dashoffset 0.5s;
}

.score-text {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-description {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.activity-list {
    list-style: none;
}

.activity-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-link {
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s;
    font-weight: 500;
}

.quick-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric-item {
    text-align: center;
    padding: 1rem;
    background: var(--glass);
    border-radius: 0.5rem;
}

.metric-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== ANALYTICS ========== */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.analytics-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.analytics-card.full-width {
    grid-column: 1 / -1;
}

.analytics-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.analytics-card canvas {
    width: 100%;
    height: auto;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-item {
    padding: 1.25rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.insight-item.success {
    background: rgba(0, 179, 122, 0.1);
    border-left-color: var(--success);
}

.insight-item.warning {
    background: rgba(255, 176, 32, 0.1);
    border-left-color: var(--warning);
}

.insight-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.risk-meter {
    height: 40px;
    background: var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 1rem 0;
}

.risk-level {
    height: 100%;
    background: rgb(29, 175, 85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ========== RESOURCES ========== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(39, 70, 255, 0.15);
}

.resource-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

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

.resource-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.resource-link:hover {
    color: var(--accent);
}

/* ========== ABOUT SECTION ========== */
.about-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.about-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-section ul {
    list-style-position: inside;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.about-section li {
    margin-bottom: 0.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.team-member {
    background: var(--glass);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(39, 70, 255, 0.15);
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.team-member h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.team-member p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== CONTACT ========== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-details {
    margin-top: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glass);
}

.form-group textarea {
    resize: vertical;
}

/* ========== AUTH PAGES ========== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--primary-gradient);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card h1 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox input {
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    color: var(--text-secondary);
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 1.5rem);
    height: 1px;
    background: var(--border-color);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.btn-social {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s;
}

.btn-social:hover {
    border-color: var(--primary);
    background: var(--glass);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ========== SIDEBAR LAYOUT ========== */
.app-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--primary-gradient);
    border-right: 1px solid var(--border-color);
    color: wheat;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: 120vh;
    overflow-y: auto;
}

.sidebar-logo {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 700;
  
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-size: 1rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--glass);
    color: white;
    border-left: 3px solid var(--primary);
    padding-left: calc(1rem - 3px);
}

.main-content {
    background: var(--bg-primary);
    min-height: 100vh;
}

.top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.theme-toggle {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: rotate(20deg);
}

/* ========== VISUALIZER ========== */
.visualizer-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.canvas-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#brainVisualizerCanvas {
    width: 100%;
    height: 100%;
}

.visualizer-controls {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.control-group select,
.control-group input[type="range"] {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.button-group {
    display: flex;
    gap: 0.5rem;
}

.brain-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 1rem;
}

.brain-info h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.region-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.region-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--glass);
    border-radius: 0.4rem;
}

.region-name {
    font-weight: 500;
    color: var(--text-primary);
}

.region-status {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.region-status.healthy {
    background: rgba(0, 179, 122, 0.2);
    color: var(--success);
}

.region-status.warning {
    background: rgba(255, 176, 32, 0.2);
    color: var(--warning);
}

/* ========== QUIZ ========== */
.quiz-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 10%;
    transition: width 0.3s;
}

#progressText {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.quiz-content {
    margin: 2rem 0;
}

.quiz-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-options label {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--glass);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-options label:hover {
    border-color: var(--primary);
    background: rgba(39, 70, 255, 0.15);
}

.quiz-options input[type="radio"] {
    margin-right: 1rem;
    cursor: pointer;
}

.quiz-options input[type="radio"]:checked + span {
    color: var(--primary);
    font-weight: 600;
}

.quiz-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.quiz-navigation .btn {
    flex: 1;
}

.quiz-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
}

.quiz-summary h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.score-result {
    font-size: 4rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.score-number {
    font-size: 3.5rem;
}

.score-text {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

#scoreInterpretation {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.summary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ========== REPORT GENERATOR ========== */
.report-generator {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.report-options h2,
.date-range-selector h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.option-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--glass);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.option-card:hover {
    border-color: var(--primary);
    background: rgba(39, 70, 255, 0.15);
}

.option-card input {
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.option-title {
    font-weight: 600;
    color: var(--text-primary);
}

.option-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.date-range-selector {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--glass);
    border-radius: 0.5rem;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.report-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.report-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
}

.report-document {
    max-width: 800px;
    margin: 0 auto;
}

.report-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.report-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.report-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.report-section {
    margin-bottom: 2rem;
}

.report-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.report-metrics > div {
    padding: 1rem;
    background: var(--glass);
    border-radius: 0.5rem;
}

.report-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========== SETTINGS ========== */
.settings-container {
    max-width: 800px;
}

.settings-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
}

.settings-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.75rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item.danger {
    background: rgba(255, 71, 87, 0.05);
    padding: 1.25rem;
    margin: 0 -2rem 0;
    border-radius: 0.5rem;
}

.setting-label {
    flex: 1;
}

.setting-label span {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.setting-label p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    width: 50px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* ========== NEURAL VISUALIZATION ========== */
.neural-visualization {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    height: 500px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#neuralCanvas {
    width: 100%;
    height: 100%;
}

.neural-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 1rem;
}

.neural-info h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.signal-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.signal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.signal-item.healthy {
    background: rgba(0, 179, 122, 0.1);
    border-left-color: var(--success);
}

.signal-item.warning {
    background: rgba(255, 176, 32, 0.1);
    border-left-color: var(--warning);
}

.signal-name {
    font-weight: 500;
    color: var(--text-primary);
}

.signal-strength {
    font-weight: 600;
    color: var(--primary);
}
/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: #060123;
    padding: 4rem 2rem 2rem;
    color: white; 
    margin-top: 0 !important;

}

.footer-container {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

/* Footer Titles */
.footer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e5e7ff;
}

/* Description */
.footer-desc {
    color: #eaf4ff;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Links */
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: #eaf4ff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

/* Contact Button */
.footer-btn {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.6rem 1.3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* Bottom Footer */
.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 1rem;
    text-align: center;
    color: #eaf4ff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}


/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--primary-gradient);
    padding: 4rem 3rem;
    text-align: center;
    color: white;
    margin-bottom: 0;
    max-height: 600px;
}

.cta-section h2 {
    font-size: 2.7rem;
    margin-bottom: 0.5rem;
}

.cta-section p {
    font-size: 1.35rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* ========== POLICY CONTENT ========== */
.policy-content {
    max-width: 900px;
}

.policy-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary);
}

.policy-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.policy-section p,
.policy-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
}

.policy-section ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .visualizer-container {
        grid-template-columns: 1fr;
    }

    .metrics {
        grid-template-columns: 1fr;
    }

    .app-layout {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-link {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s;
        width: 250px;
    }

    .sidebar.active {
        left: 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        justify-content: space-around;
    }

    .quiz-options {
        gap: 0.75rem;
    }

    .date-inputs {
        grid-template-columns: 1fr;
    }

    .summary-actions {
        flex-direction: column;
    }

    .summary-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .hero {
        padding: 1.5rem;
        min-height: 300px;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .contact-item {
        font-size: 0.875rem;
    }

    .option-grid {
        grid-template-columns: 1fr;
    }

    .signal-status {
        grid-template-columns: 1fr;
    }
}
/* Hero Background Animation Canvas */
#heroAnimation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

.hero {
    position: relative;
    overflow: hidden;
}
