:root {
    --bg-light: #F8F5F2;
    --bg-dark: #3B2F2F;
    --text-light: #E2D8CF;
    --text-dark: #4F4A45;
    --text-dark-header: #6A5A4F;
    --text-accent: #BC544B;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    margin: 0;
    background-color: var(--bg-light); /* Default background for all pages */
}

.container {
    max-width: 1000px; /* Apply max-width as requested */
    margin-left: auto;
    margin-right: auto;
}

.content-section {
    position: relative;
    background-color: var(--bg-light); 
}

.header-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}
.dark-section h2, .dark-section h3 {
    color: var(--bg-light);
}
.dark-section .text-gray-700, .dark-section .text-gray-600 {
    color: #C8C0B9;
}
.dark-section blockquote p {
    color: var(--text-light);
}
.dark-section cite {
    color: var(--text-accent);
}
.dark-section .glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dark-section .glass-card p[data-counter] {
    color: var(--text-accent);
}
.dark-section .glass-card h3 {
    color: var(--bg-light);
}

.glass-card {
    background-color: var(--bg-dark); /* Dark background */
    color: var(--text-light); /* Light text */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--bg-dark); /* Solid dark border */
    transition: all 0.3s ease;
}
.glass-card h3 {
    color: var(--text-light); /* Ensure h3 is light */
}
.glass-card p {
    color: var(--text-light); /* Ensure p is light */
}
.glass-card p[data-counter] {
    color: var(--text-accent); /* Keep accent color for counter */
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

/* Styles specific to index.html that are not shared */
#hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('./p3_hero.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

#page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: 100vh;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out;
}

#header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: 800px; /* This specific max-width is for the header content, not the main content */
    margin: 0 auto;
    padding: 0 1.5rem;
}

#page-header.scrolled {
    height: 60px;
    background-color: rgba(45, 41, 38, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#page-header.scrolled #header-content {
    justify-content: space-between;
}

.hero-title {
    font-size: clamp(3.9rem, 7.8vw, 7.8rem); /* Increased font size by 30% */
    font-weight: 900;
    color: white;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.7), /* Orange glow */
                 0 0 20px rgba(255, 69, 0, 0.7),  /* Red-orange glow */
                 0 0 30px rgba(255, 0, 0, 0.7);   /* Red glow */
    text-align: left;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: none; /* Remove glowing effect */
    line-height: 0.9em; /* Reduce space between lines */
    transform: translateY(-25%); /* Shift text up */
}

.hero-title a {
    text-decoration: none;
    color: inherit;
}

@keyframes phoenix-glow {
    0% {
        text-shadow: 0px 0 10px rgba(255, 165, 0, 0.7), /* Orange */
                     0px 0 20px rgba(255, 69, 0, 0.7),  /* Red-orange */
                     0px 0 30px rgba(255, 0, 0, 0.7);   /* Red */
        color: white;
    }
    50% {
        text-shadow: 2px 0 15px rgba(255, 140, 0, 0.9), /* Darker orange, slight horizontal shift */
                     -2px 0 30px rgba(255, 69, 0, 0.9),
                     0px 0 45px rgba(255, 0, 0, 0.9),
                     0px 0 60px rgba(255, 100, 0, 0.5); /* Wider, softer glow */
        color: white; /* Keep original color */
    }
    100% {
        text-shadow: 0px 0 10px rgba(255, 165, 0, 0.7), /* Orange */
                     0px 0 20px rgba(255, 69, 0, 0.7),
                     0px 0 30px rgba(255, 0, 0, 0.7);   /* Red */
        color: white;
    }
}

.hero-title span {
    display: block;
}

#page-header.scrolled .hero-title {
    font-size: 1.5rem;
    text-shadow: none;
    line-height: normal; /* Reset line-height for single line */
    transform: translateY(0); /* Reset transform for single line */
}

#page-header.scrolled .hero-title span {
    display: inline; /* Make spans inline again */
}

#main-nav {
    display: none;
    gap: 2rem;
}

#page-header.scrolled #main-nav {
    display: flex;
}

@media (max-width: 440px) {
    #page-header.scrolled {
        height: auto; /* Allow height to adjust based on content */
        padding-bottom: 0.5rem; /* Add some padding below the nav links */
    }

    #page-header.scrolled #header-content {
        flex-direction: column;
        justify-content: center;
        padding-top: 0.5rem; /* Add some padding above the title */
    }

    #page-header.scrolled .hero-title {
        font-size: 1.2rem; /* Slightly reduce font size for very small screens */
        text-align: center;
        margin-bottom: 0.5rem; /* Space between title and nav */
        animation: none; /* Remove glowing effect */
    }

    #page-header.scrolled #main-nav {
        flex-direction: row; /* Nav links on one line */
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.2); /* Separator line */
        padding-top: 0.5rem;
        gap: 1rem; /* Adjust gap between nav links */
    }
}

#main-nav a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

#main-nav a:hover {
    color: var(--text-accent);
}

/* Styles specific to research.html that are not shared */
.blog-post {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #ddd;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark-header);
    margin-bottom: 1rem;
}

.blog-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
}

.blog-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark-header);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-content p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--text-accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}
