/* Topbar (icons + CTA) */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px 10px;
    min-height: 60px;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --teal-accent: #7dd3c0;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --light-gray: #f5f5f5;
    --max-width: 1400px;
}

body {
    font-family: 'Red Hat Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--primary-black);
    overflow-x: hidden;
}

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

a:hover {
    color: #6bc4b0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Social Media Icons */
.social-icons {
    position: static;
    padding: 0;
    display: flex;
    gap: 25px;
}

.social-icon {
    color: var(--text-white);
    font-size: 28px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.social-icon:hover {
    color: var(--teal-accent);
    transform: scale(1.1);
}

/* Work with Me CTA Button */
.work-with-me-cta {
    position: static;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.work-with-me-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--teal-accent);
    color: var(--primary-black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(125, 211, 192, 0.3);
    text-transform: uppercase;
    height: 48px;
}

.work-with-me-button:hover {
    background-color: #6bc4b0;
    transform: translateY(-2px);
    color: var(--primary-black);
    box-shadow: 0 6px 20px rgba(125, 211, 192, 0.4);
}

/* Navigation */
.navbar {
    background-color: var(--primary-black);
    width: 100%;
    padding: 0 0 10px;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-white);
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

/* animated underline on hover */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--teal-accent);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 0;
    background-color: var(--primary-black);
    color: var(--text-white);
    padding: 40px 40px 100px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.hero-title {
    font-size: 64px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.2;
    color: var(--text-white);
}

.hero-divider {
    width: 100%;
    max-width: 600px;
    height: 2px;
    background-color: var(--teal-accent);
    margin: 40px 0;
}

.hero-tagline {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 50px;
    color: var(--text-gray);
}

.service-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.service-button {
    display: inline-block;
    padding: 18px 35px;
    background-color: var(--teal-accent);
    color: var(--primary-black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.service-button:hover {
    transform: translateY(-3px);
    background-color: #6bc4b0;
    color: var(--primary-black);
    box-shadow: 0 10px 25px rgba(125, 211, 192, 0.3);
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image img {
    max-width: 80%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Organizations Section */
.organizations {
    padding: 80px 40px;
    background-color: var(--light-gray);
}

.organizations-title {
    font-size: 32px;
    color: #333;
    font-weight: 400;
    text-align: center;
    margin-bottom: 60px;
}

.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    align-items: center;
    justify-items: center;
}

.org-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.org-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.org-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Editing Services Section */
.editing-services {
    background-color: var(--primary-black);
    padding-bottom: 100px;
}

.editing-hero {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 80px;
}

.editing-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    font-size: 48px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 20px;
    color: var(--teal-accent);
}

.section-divider {
    width: 100%;
    max-width: 1200px;
    height: 2px;
    background-color: var(--teal-accent);
    margin: 0 auto 60px;
}

.service-intro {
    max-width: 1000px;
    margin: 0 auto 80px;
    text-align: center;
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-white);
}

.service-intro strong {
    font-style: italic;
    font-weight: 600;
}

.subsection-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    margin: 80px 0 50px;
    color: var(--text-white);
}

.edit-options {
    max-width: 1200px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.edit-option {
    margin-bottom: 0;
    padding: 28px;
    background-color: var(--secondary-black);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.edit-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--teal-accent);
}

.edit-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    border-color: #3a3a3a;
}

.edit-option h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-white);
}

.edit-option p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 14px;
}

.cta-button-container {
    text-align: center;
    margin-top: 60px;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background-color: var(--teal-accent);
    color: var(--primary-black);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #6bc4b0;
    color: var(--primary-black);
    box-shadow: 0 10px 25px rgba(125, 211, 192, 0.3);
}

/* Testimonials Section */
.testimonials {
    padding: 120px 40px;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal-accent), transparent);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.testimonial {
    background: linear-gradient(145deg, rgba(125, 211, 192, 0.08) 0%, rgba(125, 211, 192, 0.02) 100%);
    padding: 40px 35px;
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 192, 0.15);
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 60px;
    color: var(--teal-accent);
    font-family: serif;
    opacity: 0.3;
    line-height: 1;
}

.testimonial:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(125, 211, 192, 0.15);
    border-color: rgba(125, 211, 192, 0.3);
}

.testimonial-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-white);
    margin-bottom: 30px;
    margin-top: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.testimonial-title {
    font-size: 15px;
    color: var(--teal-accent);
    font-style: normal;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Workshops Section */
.services {
    padding: 100px 40px;
    background-color: var(--primary-black);
}

.workshop-intro {
    max-width: 1000px;
    margin: 0 auto 80px;
    text-align: center;
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-white);
}

.workshop-intro strong {
    font-weight: 700;
}

.workshop-list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.workshop-item {
    margin-bottom: 0;
    padding: 28px;
    background-color: var(--secondary-black);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.workshop-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--teal-accent);
}

.workshop-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    border-color: #3a3a3a;
}

.workshop-item h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-white);
}

.workshop-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 14px;
}

.workshop-questions {
    font-style: italic;
    padding-left: 0;
    border-left: none;
    margin: 25px 0;
    color: var(--text-gray);
}

.workshop-note {
    font-size: 15px;
    margin-top: 20px;
    color: var(--text-gray);
}

/* Workshop Testimonials Section */
.workshop-testimonials {
    padding: 120px 40px;
    background: var(--primary-black);
    position: relative;
}

.workshop-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal-accent), transparent);
}

.testimonials-note {
    max-width: 1000px;
    margin: 40px auto 80px;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    padding: 30px;
    background-color: rgba(125, 211, 192, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--teal-accent);
}

/* About Page Styles */
.about-hero {
    background-color: var(--primary-black);
    padding: 100px 40px 80px;
    text-align: center;
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 30px;
}

.about-divider {
    width: 200px;
    height: 2px;
    background-color: var(--teal-accent);
    margin: 0 auto 40px;
}

.about-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 2px;
    font-weight: 600;
}

.about-content {
    padding: 100px 40px;
    background-color: var(--secondary-black);
}

.about-story {
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-white);
    margin-bottom: 30px;
    text-align: center;
}

.about-intro strong {
    color: var(--teal-accent);
    font-weight: 600;
}

.about-philosophy {
    font-size: 20px;
    line-height: 1.6;
    color: var(--teal-accent);
    text-align: center;
    margin: 40px 0;
    font-weight: 600;
}

.story-content {
    margin-top: 60px;
    padding: 40px;
    background-color: rgba(125, 211, 192, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--teal-accent);
}

.story-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-white);
    margin-bottom: 25px;
}

.story-content p:last-child {
    margin-bottom: 0;
}

.story-content strong {
    color: var(--teal-accent);
    font-weight: 600;
}

.story-content em {
    color: var(--text-gray);
    font-style: italic;
}

.story-highlight {
    background-color: rgba(125, 211, 192, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 !important;
}

.inline-link {
    color: var(--teal-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: #6bc4b0;
}

/* Publications Section */
.publications {
    padding: 100px 40px;
    background-color: var(--primary-black);
}

.publications-content {
    max-width: 1200px;
    margin: 0 auto;
}

.publication-list {
    margin-bottom: 60px;
}

.publication-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--secondary-black);
    border-radius: 8px;
    border-left: 3px solid var(--teal-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(125, 211, 192, 0.1);
}

.publication-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.4;
}

.publication-authors {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 5px;
    line-height: 1.5;
}

.publication-authors strong {
    color: var(--teal-accent);
    font-weight: 600;
}

.publication-journal {
    font-size: 14px;
    color: var(--teal-accent);
    font-style: italic;
    margin: 0;
}

.publication-note {
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 30px;
    text-align: center;
}

/* Contact Page Styles */
.contact-hero {
    background-color: var(--primary-black);
    padding: 100px 40px 80px;
    text-align: center;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 30px;
}

.contact-divider {
    width: 200px;
    height: 2px;
    background-color: var(--teal-accent);
    margin: 0 auto 40px;
}

.contact-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section {
    padding: 100px 40px;
    background-color: var(--secondary-black);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-main-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 60px;
    line-height: 1.2;
}

.contact-instructions {
    margin-bottom: 80px;
    text-align: center;
}

.contact-instructions p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.contact-instructions strong {
    color: var(--teal-accent);
    font-weight: 600;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.email-section h2,
.social-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
}

.email-link {
    font-size: 20px;
    color: var(--teal-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #6bc4b0;
}

.social-links {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.social-link {
    color: var(--text-white);
    font-size: 32px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: var(--teal-accent);
    transform: scale(1.1);
}


.contact-cta {
    padding: 100px 40px;
    background-color: var(--primary-black);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--teal-accent);
    border: 2px solid var(--teal-accent);
}

.cta-button.secondary:hover {
    background-color: var(--teal-accent);
    color: var(--primary-black);
}

.nav-link.active {
    color: var(--teal-accent);
}

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

/* Portfolio Page Styles */
.portfolio-hero {
    background-color: var(--primary-black);
    padding: 100px 40px 80px;
    text-align: center;
}

.portfolio-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 30px;
}

.portfolio-divider {
    width: 200px;
    height: 2px;
    background-color: var(--teal-accent);
    margin: 0 auto 40px;
}

.portfolio-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.portfolio-categories {
    padding: 40px 40px 0;
    background-color: var(--primary-black);
}

.category-navigation {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 60px;
}

.category-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-gray);
    text-decoration: none;
    padding: 15px 0;
    position: relative;
    transition: color 0.3s ease;
}

.category-link:hover,
.category-link.active {
    color: var(--teal-accent);
}

.category-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--teal-accent);
    transition: width 0.3s ease;
}

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

.science-writing,
.creative-writing {
    padding: 80px 40px 100px;
    background-color: var(--primary-black);
}

.portfolio-item {
    margin-bottom: 60px;
    padding: 40px;
    background-color: var(--secondary-black);
    border-radius: 12px;
    border-left: 4px solid var(--teal-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(125, 211, 192, 0.1);
}

.portfolio-item.featured {
    background: linear-gradient(145deg, rgba(125, 211, 192, 0.08) 0%, rgba(125, 211, 192, 0.02) 100%);
    border-left: 4px solid var(--teal-accent);
}

.portfolio-item-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.4;
}

.portfolio-divider-small {
    width: 100px;
    height: 2px;
    background-color: var(--teal-accent);
    margin-bottom: 30px;
}

.portfolio-content {
    color: var(--text-gray);
    line-height: 1.7;
}

.portfolio-content p {
    font-size: 16px;
    margin-bottom: 20px;
}

.portfolio-content p:last-child {
    margin-bottom: 0;
}

.portfolio-content em {
    color: var(--teal-accent);
    font-style: italic;
}

.portfolio-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.portfolio-list li {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.portfolio-list li::before {
    content: '•';
    color: var(--teal-accent);
    position: absolute;
    left: 0;
}

/* Portfolio Gallery Styles */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.portfolio-gallery-flex {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 30px 0;
}

/* NIH Cards Grid */
.nih-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.nih-card {
    background-color: var(--secondary-black);
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.nih-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(125, 211, 192, 0.15);
    border-color: var(--teal-accent);
}

.nih-card a {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.nih-card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--teal-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.nih-card-icon i {
    font-size: 20px;
    color: var(--primary-black);
}

.nih-card-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 5px;
    line-height: 1.3;
}

.nih-card-content p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    width: 250px;
    height: 250px;
    border-radius: 12px;
    background-color: var(--secondary-black);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(125, 211, 192, 0.2);
}

.gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--text-white);
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-white);
}

.gallery-caption p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

/* Blog Posts Container Styles */
.blog-posts-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 30px 0;
}

.blog-post-item {
    display: flex;
    gap: 30px;
    background-color: var(--secondary-black);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(125, 211, 192, 0.15);
    border-color: var(--teal-accent);
}

.blog-post-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-item:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-post-content h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-content h4 a:hover {
    color: var(--teal-accent);
}

.blog-excerpt {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-excerpt:last-child {
    margin-bottom: 0;
}

.blog-excerpt a {
    color: var(--teal-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-excerpt a:hover {
    color: var(--text-white);
}

/* Portfolio Image Styles */
.portfolio-image {
    margin: 30px 0;
    text-align: center;
}

.portfolio-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(125, 211, 192, 0.2);
}

/* Featured Portfolio Item Images */
.portfolio-item.featured .portfolio-image {
    margin: 20px 0;
}

.portfolio-item.featured .portfolio-image img {
    max-width: 400px;
    height: auto;
}

/* Responsive Gallery */
@media screen and (max-width: 768px) {
    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .portfolio-item.featured .portfolio-image img {
        max-width: 100%;
    }
    
    .nih-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .blog-post-item {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .blog-post-image {
        width: 100%;
        height: 200px;
    }
    
    .blog-post-content h4 {
        font-size: 18px;
    }
    
    .blog-excerpt {
        font-size: 15px;
    }
    
    .nih-card a {
        padding: 15px;
    }
    
    .nih-card-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .nih-card-icon i {
        font-size: 16px;
    }
    
    .nih-card-content h4 {
        font-size: 15px;
    }
    
    .nih-card-content p {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .portfolio-gallery {
        gap: 15px;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .nih-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .blog-posts-container {
        gap: 25px;
    }
    
    .blog-post-item {
        padding: 15px;
        gap: 15px;
    }
    
    .blog-post-image {
        height: 150px;
    }
    
    .blog-post-content h4 {
        font-size: 16px;
    }
    
    .blog-excerpt {
        font-size: 14px;
    }
    
    .nih-card a {
        padding: 12px;
    }
    
    .nih-card-icon {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .nih-card-icon i {
        font-size: 14px;
    }
    
    .nih-card-content h4 {
        font-size: 14px;
    }
    
    .nih-card-content p {
        font-size: 12px;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-black);
    color: var(--text-gray);
    padding: 40px 40px;
    text-align: center;
    border-top: 1px solid #333;
}

.footer p {
    font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .hero-image img {
        max-width: 400px;
    }

    .edit-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .social-icons {
        left: 20px;
        gap: 20px;
    }

    .social-icon {
        font-size: 24px;
    }

    .work-with-me-cta {
        right: 20px;
    }

    .work-with-me-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--secondary-black);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.8);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-content {
        max-width: 100vw;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .service-buttons {
        flex-direction: column;
        max-width: 90vw;
    }

    .hero-image {
        max-width: 90vw;
    }

    .service-button {
        text-align: center;
    }

    .section-title {
        font-size: 36px;
    }

    .service-intro,
    .workshop-intro {
        font-size: 16px;
    }

    .edit-options {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .edit-option {
        padding: 25px;
    }

    /* workshops: stack to single column on small screens */
    .workshop-list {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonial {
        padding: 30px 25px;
    }

    .testimonial::before {
        font-size: 50px;
        top: 15px;
        left: 20px;
    }

    .testimonial-text {
        font-size: 16px;
        margin-top: 15px;
    }

    .testimonial-author {
        font-size: 17px;
    }

    .testimonials-note {
        padding: 25px;
        margin: 30px auto 60px;
    }

    .workshop-item {
        padding: 0;
    }

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

    .organizations {
        padding: 60px 20px;
    }

    .editing-services,
    .workshops,
    .testimonials,
    .workshop-testimonials,
    .about-content,
    .publications,
    .science-writing,
    .creative-writing {
        padding: 60px 20px;
    }

    .portfolio-hero {
        padding: 80px 20px 60px;
    }

    .portfolio-title {
        font-size: 36px;
    }

    .portfolio-subtitle {
        font-size: 16px;
    }

    .category-navigation {
        gap: 40px;
    }

    .category-link {
        font-size: 16px;
    }

    .portfolio-item {
        padding: 30px;
        margin-bottom: 40px;
    }

    .portfolio-item-title {
        font-size: 20px;
    }

    .portfolio-gallery-flex {
        flex-direction: column;
    }

    .about-hero {
        padding: 80px 20px 60px;
    }

    .about-title {
        font-size: 36px;
    }

    .about-subtitle {
        font-size: 18px;
    }

    .about-intro {
        font-size: 16px;
    }

    .about-philosophy {
        font-size: 18px;
    }

    .story-content {
        padding: 30px;
    }

    .story-content p {
        font-size: 15px;
    }

    .story-highlight {
        font-size: 16px;
        padding: 15px;
    }

    .publication-item {
        padding: 15px;
    }

    .publication-title {
        font-size: 15px;
    }

    .publication-authors {
        font-size: 13px;
    }

    .publication-journal {
        font-size: 13px;
    }

    /* Contact page responsive */
    .contact-hero {
        padding: 80px 20px 60px;
    }

    .contact-title {
        font-size: 36px;
    }

    .contact-subtitle {
        font-size: 18px;
    }

    .contact-section {
        padding: 60px 20px;
    }

    .contact-main-title {
        font-size: 36px;
    }

    .contact-instructions {
        margin-bottom: 60px;
    }

    .contact-instructions p {
        font-size: 16px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .social-links {
        gap: 25px;
    }

    .social-link {
        font-size: 28px;
    }

    .contact-cta {
        padding: 60px 20px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .social-icons {
        gap: 15px;
        left: 15px;
    }

    .social-icon {
        font-size: 20px;
    }

    .work-with-me-cta {
        right: 15px;
    }

    .work-with-me-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .service-button {
        padding: 15px 25px;
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .organizations-title {
        font-size: 24px;
    }

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

    /* Testimonials mobile responsive */
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .testimonial {
        padding: 25px 20px;
    }

    .testimonial::before {
        font-size: 40px;
        top: 12px;
        left: 15px;
    }

    .testimonial-text {
        font-size: 15px;
        margin-top: 12px;
    }

    .testimonial-author {
        font-size: 16px;
    }

    .testimonials-note {
        padding: 20px;
        margin: 25px auto 50px;
        font-size: 14px;
    }

    /* Contact page mobile responsive */
    .contact-hero {
        padding: 60px 15px 40px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-subtitle {
        font-size: 16px;
    }

    .contact-section {
        padding: 40px 15px;
    }

    .contact-main-title {
        font-size: 28px;
    }

    .contact-instructions {
        margin-bottom: 40px;
    }

    .contact-instructions p {
        font-size: 14px;
    }

    .contact-info {
        gap: 40px;
    }

    .email-section h2,
    .social-section h2 {
        font-size: 20px;
    }

    .email-link {
        font-size: 18px;
    }

    .social-links {
        gap: 20px;
    }

    .social-link {
        font-size: 24px;
    }

    .contact-cta {
        padding: 40px 15px;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .cta-content p {
        font-size: 14px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* About page mobile responsive */
    .about-hero {
        padding: 60px 15px 40px;
    }

    .about-title {
        font-size: 28px;
    }

    .about-subtitle {
        font-size: 16px;
    }

    .about-content,
    .publications,
    .science-writing,
    .creative-writing {
        padding: 40px 15px;
    }

    .portfolio-hero {
        padding: 60px 15px 40px;
    }

    .portfolio-title {
        font-size: 28px;
    }

    .portfolio-subtitle {
        font-size: 15px;
    }

    .category-navigation {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }

    .category-link {
        font-size: 15px;
    }

    .portfolio-item {
        padding: 20px;
        margin-bottom: 30px;
    }

    .portfolio-item-title {
        font-size: 18px;
    }

    .portfolio-content p {
        font-size: 14px;
    }

    .portfolio-list li {
        font-size: 14px;
    }

    .about-intro {
        font-size: 15px;
    }

    .about-philosophy {
        font-size: 16px;
    }

    .story-content {
        padding: 20px;
    }

    .story-content p {
        font-size: 14px;
    }

    .story-highlight {
        font-size: 15px;
        padding: 12px;
    }

    .publication-item {
        padding: 12px;
    }

    .publication-title {
        font-size: 14px;
    }

    .publication-authors {
        font-size: 12px;
    }

    .publication-journal {
        font-size: 12px;
    }
}

/* Accordion Styles */
.accordion {
    background-color: var(--secondary-black);
    border-radius: 12px;
    /* border-left: 4px solid var(--teal-accent); */
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    transform: translateY(-2px);
}

.accordion-header h3 {
    margin: 0;
    color: var(--text-white);
    font-size: 24px;
    font-weight: 600;
    /* padding: 40px 40px 20px 40px; */
}

.accordion-toggle {
    transition: transform 0.3s ease;
    color: var(--teal-accent);
    /* padding: 40px 40px 20px 0; */
}

.accordion-toggle i {
    font-size: 18px;
}

.accordion.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion.active .accordion-content {
    max-height: 500px;
}

.contributing-writer-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.writer-item {
    padding: 20px;
    background-color: var(--primary-black);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.writer-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(125, 211, 192, 0.1);
}

.writer-item h4 {
    margin: 0 0 8px 0;
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
}

.writer-item p {
    margin: 0;
    color: var(--text-gray);
    font-size: 14px;
    font-style: italic;
}

/* Responsive accordion styles */
@media screen and (max-width: 768px) {
    .accordion-header h3 {
        font-size: 20px;
        padding: 30px 30px 15px 30px;
    }
    
    .accordion-toggle {
        padding: 30px 30px 15px 0;
    }
    
    .accordion-content .portfolio-content {
        padding: 0 30px 30px 30px;
    }
    
    .contributing-writer-list {
        gap: 15px;
    }
    
    .writer-item {
        padding: 15px;
    }
    
    .writer-item h4 {
        font-size: 16px;
    }
    
    .writer-item p {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .accordion-header h3 {
        font-size: 18px;
        padding: 20px 20px 10px 20px;
    }
    
    .accordion-toggle {
        padding: 20px 20px 10px 0;
    }
    
    .accordion-content .portfolio-content {
        padding: 0 20px 20px 20px;
    }
    
    .writer-item {
        padding: 12px;
    }
    
    .writer-item h4 {
        font-size: 15px;
    }
    
    .writer-item p {
        font-size: 12px;
    }
}
