/* Brain Stem - Scale.com Inspired Dark Theme */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary: #40cb34;
    --primary-dark: #35a82b;
    --secondary: #66FF99;
    --link: #40cb34;
    --link-hover: #66FF99;
    --dark: #000000;
    --dark-lighter: #0A0A0A;
    --dark-card: #050505;
    --light: #FFFFFF;
    --gray: #A3A3A3;
    --gray-dark: #525252;
    --border: rgba(255, 255, 255, 0.1);
    --gradient: radial-gradient(398.67% 100% at 50% 100%, rgba(64, 203, 52, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
    --ai-gradient: linear-gradient(135deg, #40cb34 0%, #66FF99 100%);
    --hero-gradient: radial-gradient(50% 50% at 50% 50%, rgba(64, 203, 52, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
}

/* ============================================
   Base Reset & Typography
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--dark);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--light);
    background: var(--dark);
    overflow-x: hidden;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--light);
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
    color: var(--light);
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}

p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
    line-height: 1.7;
}

section {
    width: 100%;
    padding: 4rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* ============================================
   Layout - Container & Section
   ============================================ */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.centered {
    text-align: center;
}

/* ============================================
   Page Header - Top section of pages
   ============================================ */
.page-header {
    width: 100%;
    padding: 6rem 0 3rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ============================================
   Section Header - Titles with badges
   ============================================ */

.section-heading {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--gray);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
}

/* ============================================
   Typography Classes
   ============================================ */

.paragraph-bold {
    font-size: 1.25rem;
    color: var(--light);
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.7;
}
/* ============================================
   Background Elements
   ============================================ */
.page-background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url('/img/brain_people_transparent.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
}

#bg-canvas {
    display: none;
}

/* ============================================
   Cards
   ============================================ */
.card {
    padding: 1.5rem;
    background: rgba(64, 203, 52, 0.015);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(64, 203, 52, 0.03);
    box-shadow: 0 10px 30px rgba(64, 203, 52, 0.05);
}

.card h4, .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.card p, .card-text {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.card h2 a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card h2 a:hover {
    color: var(--primary);
}

.card-bordered {
    padding: 1.5rem;
    background: rgba(64, 203, 52, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.card-bordered:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(64, 203, 52, 0.1);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* ============================================
   Badges
   ============================================ */
.category-badge {
    display: inline-block;
    background: rgba(94, 255, 94, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ============================================
   Lists
   ============================================ */
.principles-list {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--light);
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.principles-list li {
    margin-bottom: 1rem;
}

.principles-list strong {
    color: var(--primary);
}

/* ============================================
   Hero
   ============================================ */

.list-bold {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    margin: 4rem auto 3rem auto;
    font-size: 1.25rem;
}

.list-bold li {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--light);
}

.list-bold li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.list-bold a {
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.list-bold a:hover {
    border-bottom-color: var(--link);
    color: var(--link-hover);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: var(--primary);
    color: black;
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(94, 255, 94, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(94, 255, 94, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(94, 255, 94, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   Blog
   ============================================ */
.blog-section {
    padding: 5rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.blog-preview-section {
    padding: 6rem 0;
}

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

.content-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    text-align: left;
}

.content-cards .content-card {
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.content-cards .content-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(94, 255, 94, 0.1);
}

.content-card-badge {
    margin-bottom: 1rem;
}

.blog-category-tag {
    background: rgba(94, 255, 94, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.content-card .service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.content-card .service-title a {
    color: var(--light);
    text-decoration: none;
}

.content-card .service-description {
    margin-bottom: 1.5rem;
}

.content-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 0.875rem;
}

.content-card-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.content-card-content p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
    margin: 0;
}

.blog-image {
    width: 100%;
    height: 200px;
    background: var(--ai-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-link {
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 1rem;
}

.blog-view-all {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   Team Section
   ============================================ */
.team-section {
    padding-top: 1rem;
}

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

.team-member {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.member-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.member-title {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

.member-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.member-links a {
    color: var(--link);
}

.member-links a:hover {
    color: var(--link-hover);
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    background: transparent;
    padding: 2rem 2rem 6rem;
    position: relative;
    z-index: 1;
}

.services-section {
    background: transparent;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   Modal Dialog
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--light);
}

.modal-content h2 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

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