/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Logo Green Palette */
    --logo-green: #52D17C;
    --logo-green-light: #6FE396;
    --logo-green-dark: #3FB968;
    --logo-green-darker: #2FA055;

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sansation', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--logo-green-darker);
    background-color: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    background: var(--bg-primary);
    border-bottom: 2px solid #000000;
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-image {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-image {
    transform: rotate(10deg) scale(1.1);
}

.nav-logo h2 {
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.logo-link h2 {
    color: var(--logo-green);
    transition: all 0.3s ease;
}

.logo-link:hover h2 {
    color: var(--logo-green-dark);
}

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

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: #000000;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: var(--bg-primary);
    color: var(--logo-green-darker);
    padding: 180px 0 140px;
    margin-top: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1000px;
    margin-left: 5%;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #000000;
    position: relative;
}

.hero h1::after {
    content: '';
    display: block;
    width: 200px;
    height: 5px;
    background: #000000;
    margin: 1.5rem 0;
    border-radius: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: #000000;
    line-height: 1.7;
    font-weight: 400;
    max-width: 700px;
}

/* Hero Illustration */
.hero-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1000px;
    height: auto;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.pulse-node {
    animation: pulse-scale 3s ease-in-out infinite;
}

@keyframes pulse-scale {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.animate-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: line-draw 4s ease-in-out infinite;
}

@keyframes line-draw {
    0% {
        stroke-dashoffset: 200;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -200;
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: #000000;
    color: white;
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
}

.btn-secondary {
    background: transparent;
    color: #000000;
}

.btn-secondary:hover {
    background: #000000;
    color: white;
}

.btn-large {
    padding: 1.3rem 3rem;
    font-size: 1.1rem;
}

/* Sections */
section {
    padding: 120px 0;
}

section.contact {
    padding: 80px 0;
}

section h2 {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #000000;
    font-weight: 700;
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 4px;
    background: #000000;
    border-radius: 0;
}

/* Section Intro */
.section-intro {
    text-align: left;
    font-size: 1.3rem;
    color: #000000;
    max-width: 900px;
    margin: -2rem 0 4rem;
    line-height: 1.8;
}

/* Techniques Section */
.techniques {
    background: var(--bg-secondary);
}

.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1100px;
}

.technique-item {
    background: var(--bg-primary);
    border: 2px solid var(--gray-200);
    border-radius: 0;
    padding: 2.5rem;
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}

.technique-item:hover {
    border-left-color: #000000;
}

.technique-item h3 {
    font-size: 1.4rem;
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.technique-item p {
    font-size: 1.05rem;
    color: #000000;
    line-height: 1.7;
}

/* Team Section */
.team {
    background: var(--bg-primary);
}

.team-page {
    padding-top: 140px;
    min-height: 100vh;
}

.team-page h2 {
    color: #000000;
}

.team-page h2::after {
    background: #000000;
}

.team-single-page h2 {
    color: #000000;
}

.team-single-page h2::after {
    background: #000000;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.team-member {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.member-photo {
    flex-shrink: 0;
}

.member-photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

.team-page .member-photo img {
    border: none;
}

.team-single-page .member-photo img {
    border: none;
}

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

.team-page .member-info h3 {
    color: #000000;
}

.team-single-page .member-info h3 {
    color: #000000;
}

.member-title {
    font-size: 1.1rem;
    color: var(--logo-green-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-page .member-title {
    color: #333333;
}

.team-single-page .member-title {
    color: #333333;
}

.member-bio {
    font-size: 1.05rem;
    color: var(--logo-green-darker);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.team-page .member-bio {
    color: #000000;
}

.team-single-page .member-bio {
    color: #000000;
}

.member-link {
    color: var(--logo-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.team-page .member-link {
    color: #000000;
}

.team-single-page .member-link {
    color: #000000;
}

.member-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--logo-green);
    transition: width 0.3s ease;
}

.team-page .member-link::after {
    background: #000000;
}

.team-single-page .member-link::after {
    background: #000000;
}

.member-link:hover {
    color: var(--logo-green-dark);
}

.team-page .member-link:hover {
    color: #333333;
}

.team-single-page .member-link:hover {
    color: #333333;
}

.member-link:hover::after {
    width: 100%;
}

/* Research Section */
.research {
    background-color: var(--bg-primary);
}

.research-page {
    padding-top: 140px;
    min-height: 100vh;
}

.research-grid {
    max-width: 800px;
    margin: 0 auto;
}

.research-card {
    background: var(--bg-primary);
    border: 2px solid var(--gray-200);
    border-radius: 0;
    padding: 3rem;
    transition: all 0.3s ease;
    border-top: 5px solid transparent;
}

.research-card:hover {
    border-top-color: #000000;
}

.research-content h3 {
    color: #000000;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.research-excerpt {
    color: #000000;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.research-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.research-date {
    color: #666666;
    font-weight: 500;
}

.research-type {
    background: #000000;
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.85rem;
}

.research-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.research-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.research-link:hover {
    color: #333333;
}

.research-link:hover::after {
    width: 100%;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    text-align: left;
    max-width: 900px;
    margin: 0;
}

.contact-intro {
    font-size: 1.25rem;
    color: var(--logo-green-darker);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-info {
    margin-top: 0;
}

.contact-email {
    display: inline-block;
    font-size: 1.4rem;
    color: var(--logo-green);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--logo-green);
    transition: width 0.3s ease;
}

.contact-email:hover {
    color: var(--logo-green-dark);
}

.contact-email:hover::after {
    width: 100%;
}

.contact-location {
    color: var(--gray-400);
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 2px solid #000000;
    padding: 3rem 0 2rem;
    text-align: left;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-image {
    width: 36px;
    height: 36px;
    opacity: 0.9;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--logo-green);
}

.footer-text {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin: 0;
}

/* Blog Styles */
.blog-main {
    padding-top: 100px;
    min-height: calc(100vh - 200px);
}

.blog-header {
    text-align: left;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.blog-header h1 {
    font-size: 3rem;
    color: #000000;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.2rem;
    color: #000000;
}

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

.blog-post-card {
    background: white;
    border-radius: 0;
    border: 2px solid var(--gray-200);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.blog-post-card:hover {
    border-color: #000000;
}

.blog-post-card.upcoming {
    opacity: 0.7;
    border: 2px dashed #000000;
}

.post-image {
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    font-size: 3rem;
    color: #000000;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.post-date {
    color: #666666;
    font-weight: 500;
}

.post-category {
    background: #000000;
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.post-content h2 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h2 a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h2 a:hover {
    color: #333333;
}

.post-excerpt {
    color: #000000;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #333333;
}

.coming-soon-label {
    background: #f0f0f0;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #000000;
}

/* Blog Post Page */
.blog-post {
    padding-top: 100px;
}

.post-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.post-header {
    margin-bottom: 3rem;
    text-align: left;
    border-bottom: 2px solid #000000;
    padding-bottom: 2rem;
}

.post-header .post-meta {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.read-time {
    background: #f0f0f0;
    padding: 0.2rem 0.8rem;
    border-radius: 0;
    font-size: 0.8rem;
    color: #666;
}

.post-header h1 {
    font-size: 2.5rem;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-subtitle {
    font-size: 1.2rem;
    color: #000000;
    line-height: 1.6;
    max-width: 700px;
    margin: 0;
}

.post-content {
    color: #000000;
    line-height: 1.8;
}

.post-content h2 {
    color: #000000;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #000000;
    text-align: left;
}

.post-content h3 {
    color: #000000;
    margin: 1.5rem 0 1rem;
    text-align: left;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.code-block {
    background: #f8f9fa;
    border: 2px solid #000000;
    border-radius: 0;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: #000000;
}

.results-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 2px solid #000000;
    border-radius: 0;
    overflow: hidden;
}

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #000000;
}

.results-table th {
    background: #f8f9fa;
    color: #000000;
    font-weight: 600;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #000000;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #000000;
}

.post-navigation {
    text-align: left;
}

.nav-back {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-back::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.nav-back:hover {
    color: #333333;
}

.nav-back:hover::after {
    width: 100%;
}

/* Citations and References */
.post-content sup {
    line-height: 0;
}

.post-content sup a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75em;
    padding: 0 2px;
    transition: color 0.3s ease;
}

.post-content sup a:hover {
    color: #666666;
}

.references {
    list-style: decimal;
    padding-left: 2rem;
    margin-top: 1.5rem;
}

.references li {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #000000;
    font-size: 0.95rem;
    padding-left: 0.5rem;
}

.references li strong {
    font-weight: 600;
    color: #000000;
}

.references li a {
    color: #000000;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.references li a:hover {
    color: #666666;
}

.references li em {
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-illustration {
        opacity: 0.08;
    }

    .logo-image {
        width: 35px;
        height: 35px;
    }

    .nav-logo h2 {
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 14px;
    }

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 80px 0;
    }

    section h2 {
        font-size: 2.2rem;
    }

    .section-intro {
        font-size: 1.1rem;
    }

    .techniques-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .technique-item {
        padding: 2rem;
    }

    .research-card {
        padding: 2rem;
    }

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

    .team-member {
        flex-direction: column;
    }

    .member-photo img {
        width: 120px;
        height: 120px;
    }

    .post-article {
        padding: 1rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px;
    }

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

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

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .logo-link {
        gap: 0.5rem;
    }

    .nav-logo h2 {
        font-size: 1.2rem;
    }

    .footer-logo-image {
        width: 32px;
        height: 32px;
    }

    .footer-brand {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .research-card {
        padding: 1.5rem;
    }

    .research-content h3 {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 1rem;
    }

    .team-grid {
        gap: 2.5rem;
    }

    .team-member {
        gap: 1.5rem;
    }

    .member-photo img {
        width: 100px;
        height: 100px;
    }

    .member-info h3 {
        font-size: 1.3rem;
    }

    .member-bio {
        font-size: 1rem;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}