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

:root {
    /* Warm Brown & Cream Theme */
    --primary-brown: #8B5E3C;
    --primary-hover: #6D482E;
    --gold: #C5A065;
    --cream-bg: #F5F2EA;
    --cream-surface: #EBE7DD;
    --dark-bg: #1A1816;
    --dark-surface: #262320;
    --accent-green: #4A5D4F;

    /* Grayscale */
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--cream-bg);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 3vw, 3rem); }
h2 { font-size: 32px; }
h3 { font-size: 24px; }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(245, 242, 234, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 40px;
    width: auto;
    transition: opacity 0.2s;
}

.logo img:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle img {
    height: 40px;
    width: auto;
    transition: opacity 0.2s;
}

.mobile-menu-toggle:hover img {
    opacity: 0.7;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--black);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    list-style: none;
    padding: 120px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu-links a {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
    display: block;
}

.mobile-menu-links a:hover {
    opacity: 0.6;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-bg);
    color: var(--white);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 4rem);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}

/* Desktop: Larger hero title */
@media (min-width: 1024px) {
    .hero-title {
        font-size: clamp(4rem, 6vw, 6rem);
    }
}

.hero-title .gold {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.95);
}

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

/* Buttons */
.btn {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 18px 40px;
    border: 2px solid var(--white);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    text-transform: uppercase;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-brown);
    border-color: var(--primary-brown);
}

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

/* Secondary button in hero section - white for contrast on dark bg */
.hero .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
    border-color: var(--white);
}

/* Section Styles */
section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: 42px;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    border-left: 4px solid var(--primary-brown);
    padding-left: 16px;
}

.section-intro {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 64px;
    max-width: 800px;
}

/* About Section */
.about {
    background-color: var(--cream-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 64px;
    align-items: start;
    max-width: 1200px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border: 4px solid var(--primary-brown);
    box-shadow: 0 4px 12px rgba(139,94,60,0.2);
}

.about-text p {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.8;
}

/* Services Section */
.services {
    background-color: var(--cream-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background-color: var(--white);
    padding: 40px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--primary-brown);
    box-shadow: 0 4px 12px rgba(139,94,60,0.15);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    color: var(--gray-900);
    transition: color 0.3s;
}

.service-card:hover h3 {
    color: var(--primary-brown);
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Books Section */
.books {
    background-color: var(--dark-bg);
    color: var(--white);
    position: relative;
}

.books .section-title {
    color: var(--white);
    border-left-color: var(--gold);
}

.books .section-intro {
    color: var(--gray-300);
    font-style: italic;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.book-item {
    border: 1px solid var(--gray-700);
    padding: 40px;
    background-color: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.book-item:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: var(--gold);
}

.book-rating {
    font-size: 12px;
    margin-bottom: 16px;
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.book-item h3 {
    font-size: 22px;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    color: var(--white);
}

.book-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-400);
}

/* Portfolio Section */
.portfolio {
    background-color: var(--cream-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.portfolio-item {
    background-color: var(--white);
    border: none;
    border-top: 4px solid var(--primary-brown);
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.portfolio-item:hover {
    box-shadow: 0 4px 12px rgba(139,94,60,0.15);
    transform: translateY(-2px);
}

.portfolio-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    color: var(--gray-900);
}

.portfolio-item p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--gray-700);
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.portfolio-tags span {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    letter-spacing: 0.05em;
    color: var(--gray-600);
}

/* Case Study Styles */
.case-study {
    border: none;
    border-top: 4px solid var(--primary-brown);
    padding: 48px;
    margin-bottom: 0;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.case-study-header {
    border-bottom: none;
    padding-bottom: 8px;
    margin-bottom: 32px;
}

.case-study-header h3 {
    font-size: 28px;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    color: var(--gray-900);
}

.case-study-role {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--gray-600);
    text-transform: uppercase;
}

.case-study-summary {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 500;
}

.case-study-section {
    margin-bottom: 32px;
}

.case-study-section h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    opacity: 0.7;
}

.case-study-section ul {
    list-style: none;
    padding-left: 0;
}

.case-study-section li {
    padding-left: 24px;
    margin-bottom: 12px;
    position: relative;
    line-height: 1.7;
}

.case-study-section li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Tools Section */
.tools {
    background-color: var(--dark-surface);
    color: var(--white);
}

.tools .section-title {
    color: var(--white);
    border-left-color: var(--gold);
}

.tools .section-intro {
    color: var(--gray-400);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.tool-category {
    border: 1px solid var(--gray-700);
    padding: 32px;
    background-color: rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.tool-category:hover {
    background-color: rgba(0,0,0,0.4);
    border-color: var(--gold);
}

.tool-category h3 {
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 0.15em;
    border-bottom: 1px solid var(--gray-700);
    padding-bottom: 12px;
    color: var(--gold);
    text-transform: uppercase;
}

.tool-category ul {
    list-style: none;
    padding: 0;
}

.tool-category li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-400);
}

/* Page Hero */
.page-hero {
    background-color: var(--black);
    color: var(--white);
    padding: 120px 0 80px;
    margin-top: 80px;
    text-align: center;
}

.page-title {
    font-size: 48px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Education Page */
.education-content {
    padding: 80px 0;
    background-color: var(--white);
}

.education-list {
    max-width: 900px;
    margin: 0 auto;
}

.education-item {
    border: 2px solid var(--black);
    padding: 48px;
    margin-bottom: 32px;
    background-color: var(--white);
}

.education-header {
    border-bottom: 2px solid var(--black);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.education-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.education-location {
    font-family: var(--font-mono);
    font-size: 14px;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

.education-details h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.education-emphasis {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.education-years {
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 16px;
}

.education-description {
    line-height: 1.7;
    font-size: 16px;
}

.education-grade,
.education-note {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.education-experience {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-300);
}

.education-experience h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.education-experience p {
    line-height: 1.7;
    font-size: 16px;
    color: var(--gray-700);
}

.languages-section {
    max-width: 900px;
    margin: 48px auto 0;
    padding: 32px 48px;
    border: 2px solid var(--primary-brown);
    background-color: var(--cream-bg);
}

.languages-section h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.languages-section p {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--gray-700);
    margin: 0;
}

/* Career Page */
.career-content {
    padding: 80px 0;
    background-color: var(--white);
}

.career-timeline {
    max-width: 900px;
    margin: 0 auto 80px;
}

.career-item {
    border-left: 4px solid var(--black);
    padding: 0 0 48px 40px;
    margin-bottom: 40px;
    position: relative;
}

.career-item:before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    width: 12px;
    height: 12px;
    background-color: var(--black);
    border-radius: 50%;
}

.career-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.career-company {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.career-meta {
    font-family: var(--font-mono);
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.career-details p {
    line-height: 1.7;
    margin-bottom: 16px;
}

.career-details ul {
    list-style: none;
    padding-left: 0;
    margin-top: 16px;
}

.career-details li {
    padding-left: 24px;
    margin-bottom: 8px;
    position: relative;
    line-height: 1.6;
}

.career-details li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 20px;
}

.career-skills {
    background-color: var(--gray-100);
    padding: 64px;
    margin-top: 64px;
}

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

.skill-group h3 {
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.skill-group p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.8;
}

/* Contact Section */
.contact {
    background-color: var(--gray-100);
}

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

.contact-method {
    text-align: center;
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
}

.contact-icon-link {
    display: inline-block;
    text-decoration: none;
    color: var(--black);
    transition: all 0.2s;
    cursor: pointer;
}

.contact-icon-link:hover {
    opacity: 0.6;
    transform: translateY(-2px);
}

.contact-method p {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.contact-method a {
    color: var(--black);
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.2s;
}

.contact-method a:hover {
    opacity: 0.6;
}

/* Footer */
.footer {
    background-color: var(--cream-bg);
    padding: 80px 0 60px;
    text-align: center;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-brown);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray-600);
    letter-spacing: 0.2em;
    margin-bottom: 48px;
}

.footer-nav {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--primary-brown);
}

.footer-social {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
}

.footer-social a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.2s;
}

.footer-social a:hover {
    color: var(--primary-brown);
    transform: translateY(-2px);
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--gray-500);
    letter-spacing: 0.15em;
}

/* Services Page */
.services-page-content {
    padding: 80px 0;
    background-color: var(--white);
}

.service-detail {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 60px 80px 60px 120px;
    position: relative;
    background-color: var(--cream-bg);
    border-left: 4px solid var(--primary-brown);
}

.service-number {
    position: absolute;
    top: 40px;
    left: 24px;
    font-family: var(--font-heading);
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-brown);
    opacity: 0.15;
    line-height: 1;
}

.service-detail h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    color: var(--gray-900);
    position: relative;
    z-index: 1;
}

.service-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.service-section h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    color: var(--gray-600);
    text-transform: uppercase;
}

.service-section ul {
    list-style: none;
    padding-left: 0;
}

.service-section li {
    padding-left: 28px;
    margin-bottom: 14px;
    position: relative;
    line-height: 1.8;
    color: var(--gray-800);
}

.service-section li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--primary-brown);
}

.service-section p {
    font-size: 18px;
    line-height: 1.8;
    font-weight: 400;
    color: var(--gray-700);
    font-style: italic;
}

/* Individual Service Pages */
.breadcrumb-container {
    padding: 24px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-300);
}

.breadcrumb-back {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--primary-brown);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-back:hover {
    color: var(--gold-accent);
}

.service-hero-number {
    font-family: var(--font-heading);
    font-size: 200px;
    font-weight: 700;
    color: var(--primary-brown);
    opacity: 0.08;
    line-height: 1;
    margin-bottom: -120px;
}

.service-single-content {
    padding: 80px 0;
    background-color: var(--white);
}

.service-single-box {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 48px 60px;
    background-color: var(--cream-bg);
    border-left: 4px solid var(--primary-brown);
}

.service-single-box h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
    color: var(--gray-900);
}

.service-single-box ul {
    list-style: none;
    padding-left: 0;
}

.service-single-box li {
    padding-left: 28px;
    margin-bottom: 16px;
    position: relative;
    line-height: 1.8;
    color: var(--gray-800);
}

.service-single-box li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--primary-brown);
}

.service-single-box p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-700);
    font-style: italic;
}

.work-together-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.work-step {
    padding: 24px;
    background-color: var(--white);
    border: 2px solid var(--primary-brown);
    position: relative;
}

.work-step-num {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-brown);
    opacity: 0.2;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.work-step h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--gray-900);
    margin: 0;
}

@media (max-width: 768px) {
    .service-hero-number {
        font-size: 100px;
        margin-bottom: -60px;
    }

    .service-single-box {
        padding: 32px 24px;
    }

    .work-together-grid {
        grid-template-columns: 1fr;
    }
}

.cta-section {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    border-color: var(--white);
}

/* Books Page */
.books-page-content {
    padding: 80px 0;
    background-color: var(--white);
}

.book-detail {
    max-width: 900px;
    margin: 0 auto 64px;
    border: 3px solid var(--black);
    padding: 48px;
}

.book-header {
    border-bottom: 2px solid var(--black);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.book-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.book-status {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.book-theme,
.book-explores,
.book-status-section {
    margin-bottom: 32px;
}

.book-theme h3,
.book-explores h3,
.book-status-section h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    opacity: 0.6;
}

.book-theme p,
.book-status-section p {
    font-size: 18px;
    line-height: 1.7;
}

.book-explores ul {
    list-style: none;
    padding-left: 0;
}

.book-explores li {
    padding-left: 24px;
    margin-bottom: 12px;
    position: relative;
    line-height: 1.7;
}

.book-explores li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: 700;
}

.published-books {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0;
}

.published-books .section-title {
    color: var(--white);
    margin-bottom: 48px;
}

.published-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.published-item {
    border: 2px solid var(--white);
    padding: 40px;
}

.published-item h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.published-item p {
    line-height: 1.7;
    opacity: 0.9;
}

/* Blog Page */
.blog-categories {
    padding: 80px 0;
    background-color: var(--white);
}

.blog-category {
    max-width: 900px;
    margin: 0 auto 48px;
    border: 3px solid var(--black);
    padding: 48px;
    position: relative;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--black);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.category-header h2 {
    font-size: 32px;
    letter-spacing: 0.02em;
}

.category-header h2 a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-header h2 a:hover {
    color: var(--primary-brown);
}

.category-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background-color: var(--primary-brown);
    color: white;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
    border: 2px solid var(--primary-brown);
    transition: all 0.3s ease;
}

.category-btn:hover {
    background-color: transparent;
    color: var(--primary-brown);
    transform: translateY(-2px);
}

.category-badge {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    opacity: 0.1;
}

.category-topics,
.category-audience {
    margin-bottom: 24px;
}

.category-topics h3,
.category-audience h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    opacity: 0.6;
}

.category-topics ul {
    list-style: none;
    padding-left: 0;
}

.category-topics li {
    padding-left: 24px;
    margin-bottom: 10px;
    position: relative;
    line-height: 1.6;
}

.category-topics li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 20px;
}

.category-audience p {
    font-size: 16px;
    font-weight: 500;
}

.category-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--black);
    text-decoration: none;
    border: 2px solid var(--black);
    padding: 12px 24px;
    display: inline-block;
    margin-top: 16px;
    transition: all 0.2s;
}

.category-link:hover {
    background-color: var(--black);
    color: var(--white);
}

.blog-tags-section {
    background-color: var(--gray-100);
    padding: 80px 0;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 10px 20px;
    border: 2px solid var(--black);
    background-color: var(--white);
    transition: all 0.2s;
    cursor: pointer;
}

.tag:hover {
    background-color: var(--black);
    color: var(--white);
}

/* Blog Post Styles */
body.blog {
    padding-top: 80px;
}

.blog-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Desktop: Sidebar TOC on left */
/* Mobile: Hide desktop sidebar, show inline TOC */
@media (max-width: 1199px) {
    .blog-sidebar-toc {
        display: none;
    }
}

/* Desktop: Show sidebar, hide inline TOC */
@media (min-width: 1200px) {
    .blog-layout-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 64px;
    }

    .blog-sidebar-toc {
        position: sticky;
        top: 120px;
        height: fit-content;
    }

    /* Hide inline TOC on desktop */
    .blog-toc {
        display: none;
    }
}

.blog-breadcrumbs {
    background-color: var(--cream-bg);
    padding: 16px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-300);
}

.blog-breadcrumbs a {
    color: var(--primary-brown);
    text-decoration: none;
    transition: color 0.2s;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
}

.blog-breadcrumbs a:hover {
    color: var(--gold-accent);
}

.blog-breadcrumbs span {
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray-700);
}

.blog-category-pill {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    background-color: var(--primary-brown);
    color: var(--white);
    text-decoration: none;
    margin-bottom: 24px;
    transition: all 0.2s;
}

.blog-category-pill:hover {
    background-color: var(--gold-accent);
}

.blog-post-hero {
    padding: 80px 0;
    background-color: var(--cream-bg);
    border-bottom: 2px solid var(--primary-brown);
}

.blog-post-title {
    font-size: 56px;
    margin-bottom: 16px;
    line-height: 1.1;
    max-width: 900px;
}

.blog-post-subtitle {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 32px;
    color: var(--gray-700);
    max-width: 800px;
}

.blog-post-meta {
    display: flex;
    gap: 32px;
    align-items: center;
    font-size: 16px;
    color: var(--gray-700);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-post-featured-image {
    background-color: var(--gray-100);
    padding: 60px 0;
}

.blog-post-featured-image figure {
    margin: 0;
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid var(--black);
}

.blog-post-featured-image figcaption {
    font-size: 14px;
    color: var(--gray-700);
    margin-top: 16px;
    text-align: center;
}

.blog-post-content {
    padding: 80px 0;
}

.blog-content {
    max-width: 740px;
    margin: 0 auto;
}

.blog-intro {
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 48px;
    font-weight: 500;
}

.blog-content h2 {
    font-size: 36px;
    margin-top: 64px;
    margin-bottom: 24px;
}

.blog-content h3 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 20px;
}

.blog-content p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 24px;
    padding-left: 32px;
    line-height: 1.8;
}

.blog-content li {
    margin-bottom: 12px;
}

.blog-content blockquote {
    border-left: 4px solid var(--black);
    padding-left: 32px;
    margin: 48px 0;
    font-size: 24px;
    font-style: italic;
    line-height: 1.5;
}

.blog-content blockquote p {
    margin-bottom: 16px;
}

.blog-content blockquote cite {
    font-style: normal;
    font-size: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.blog-content pre {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 32px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 32px 0;
    border: 2px solid var(--black);
}

.blog-content code {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
}

.blog-content figure {
    margin: 48px 0;
}

.blog-content figure img {
    width: 100%;
    height: auto;
    border: 2px solid var(--black);
}

.blog-content figcaption {
    font-size: 14px;
    color: var(--gray-700);
    margin-top: 12px;
    text-align: center;
}

.blog-content hr {
    border: none;
    border-top: 2px solid var(--gray-300);
    margin: 48px 0;
}

.blog-post-tags {
    max-width: 740px;
    margin: 64px auto 0;
    padding-top: 48px;
    border-top: 2px solid var(--gray-300);
}

.blog-post-tags h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    opacity: 0.6;
}

.blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-tag {
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 8px 16px;
    border: 2px solid var(--black);
    background-color: var(--white);
    color: var(--black);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.blog-tag:hover {
    background-color: var(--black);
    color: var(--white);
}

.blog-related-posts {
    background-color: var(--gray-100);
    padding: 80px 0;
    border-top: 3px solid var(--black);
}

.blog-related-posts h3 {
    font-size: 32px;
    margin-bottom: 48px;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-related-item {
    background-color: var(--white);
    border: 2px solid var(--black);
    padding: 32px;
    transition: all 0.2s;
}

.blog-related-item:hover {
    border-width: 3px;
    transform: translateY(-2px);
}

.blog-related-item h4 {
    font-size: 20px;
    margin: 16px 0 12px;
    line-height: 1.3;
}

.blog-related-item h4 a {
    color: var(--black);
    text-decoration: none;
}

.blog-related-item time {
    font-size: 14px;
    color: var(--gray-700);
}

/* Blog Index & Category Pages */
.blog-posts-list,
.blog-category-content {
    padding: 80px 0;
    background-color: var(--white);
}

.blog-grid,
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.blog-post-card {
    border: 2px solid var(--primary-brown);
    padding: 40px;
    background-color: var(--cream-bg);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--gray-900);
    display: block;
    position: relative;
}

.blog-post-card:hover {
    border-color: var(--gold-accent);
    border-width: 3px;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(139, 94, 60, 0.15);
}

.blog-post-card .post-category {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--primary-brown);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.blog-post-card h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin: 0 0 16px;
    line-height: 1.3;
    color: var(--gray-900);
}

.blog-post-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-card h3 a:hover {
    color: var(--primary-brown);
}

.blog-post-card p {
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 20px;
    font-size: 16px;
}

.blog-post-card .post-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray-600);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.blog-post-card .btn-text {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary-brown);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.blog-post-card .btn-text:hover {
    color: var(--gold-accent);
}

.blog-recent-posts {
    background-color: var(--cream-bg);
    padding: 80px 0;
}

.coming-soon,
.no-posts-message {
    text-align: center;
    color: var(--gray-600);
    font-style: italic;
    padding: 80px 40px;
    font-size: 18px;
    background-color: var(--cream-bg);
    border: 2px dashed var(--gray-300);
}

.no-posts-message p {
    margin: 0;
    line-height: 1.6;
}

/* Blog Template Enhancements */
.blog-key-takeaways {
    background-color: var(--cream-surface);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary-brown);
    padding: 32px;
    margin: 48px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.blog-key-takeaways h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-key-takeaways ul {
    list-style: none;
    padding: 0;
}

.blog-key-takeaways li {
    padding-left: 24px;
    margin-bottom: 16px;
    position: relative;
    line-height: 1.7;
}

.blog-key-takeaways li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-brown);
    font-weight: 700;
}

.blog-key-takeaways strong {
    color: var(--gray-900);
    font-weight: 600;
}

.blog-toc,
.blog-sidebar-toc {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    padding: 32px;
    margin: 48px 0;
}

.blog-sidebar-toc {
    margin: 0;
}

.blog-toc h3,
.blog-sidebar-toc h3,
.toc-heading {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.blog-toc nav a,
.blog-sidebar-toc nav a {
    display: block;
    color: var(--gray-700);
    text-decoration: none;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.blog-toc nav a:hover,
.blog-sidebar-toc nav a:hover {
    color: var(--primary-brown);
    border-left-color: var(--primary-brown);
}

.blog-sidebar-toc nav a.active {
    color: var(--primary-brown);
    border-left-color: var(--primary-brown);
    font-weight: 500;
}

.blog-author-bio {
    background-color: var(--cream-surface);
    border: 1px solid var(--gray-200);
    padding: 32px;
    margin: 64px 0;
    display: flex;
    align-items: start;
    gap: 24px;
}

.blog-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-brown);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid var(--primary-brown);
}

.blog-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-author-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.blog-author-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-author-info h3 a:hover {
    color: var(--primary-brown);
}

.blog-author-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 16px;
}

.blog-author-social {
    display: flex;
    gap: 16px;
}

.blog-author-social a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-author-social a:hover {
    color: var(--primary-brown);
}

.blog-read-next {
    margin-top: 64px;
}

.blog-read-next h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 32px;
}

.blog-next-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.blog-next-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    padding: 32px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.blog-next-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.blog-next-card .category {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-brown);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.blog-next-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.blog-next-card:hover h4 {
    color: var(--primary-brown);
}

.blog-next-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 48px 0;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.blog-content thead {
    background-color: var(--cream-surface);
}

.blog-content th {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-900);
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid var(--gray-300);
}

.blog-content td {
    padding: 16px;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.blog-content tbody tr:hover {
    background-color: var(--cream-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

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

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

    .section-intro {
        font-size: 18px;
    }

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

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image img {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }

    .services-grid,
    .books-grid,
    .portfolio-grid,
    .tools-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .case-study {
        padding: 32px 24px;
    }

    .case-study-header h3 {
        font-size: 24px;
    }

    .career-item {
        padding-left: 24px;
    }

    .career-skills {
        padding: 32px 24px;
    }

    .education-item {
        padding: 32px 24px;
    }

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

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .logo img {
        height: 35px;
    }

    .service-detail,
    .book-detail,
    .blog-category {
        padding: 40px 32px 40px 80px;
    }

    .service-number {
        font-size: 72px;
        top: 24px;
        left: 16px;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .category-badge {
        font-size: 48px;
    }

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

    body {
        font-size: 16px;
    }

    /* Blog Responsive */
    .blog-post-title {
        font-size: 36px;
    }

    .blog-post-subtitle {
        font-size: 20px;
    }

    .blog-grid,
    .blog-related-grid {
        grid-template-columns: 1fr;
    }

    .blog-intro {
        font-size: 20px;
    }

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

    .blog-content h3 {
        font-size: 22px;
    }

    .blog-content blockquote {
        font-size: 20px;
        padding-left: 24px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 30px;
    }

    .footer-quote {
        font-size: 20px;
    }

    .footer-social {
        flex-direction: column;
        gap: 16px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--black);
    color: var(--white);
}

/* ===================================
   SITEMAP PAGE STYLES
   =================================== */

.sitemap-content {
    padding: 80px 0;
    background: var(--cream-bg);
}

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

.sitemap-column {
    min-width: 0;
}

.sitemap-section {
    margin-bottom: 48px;
}

.sitemap-section:last-child {
    margin-bottom: 0;
}

.sitemap-section h2 {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--primary-brown);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-brown);
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list > li {
    margin-bottom: 12px;
}

.sitemap-list > li > a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    transition: color 0.2s ease;
    display: inline-block;
}

.sitemap-list > li > a:hover {
    color: var(--primary-brown);
}

.sitemap-list > li > a::before {
    content: "▸ ";
    color: var(--primary-brown);
    margin-right: 8px;
    font-size: 12px;
}

/* Child items container */
.sitemap-child {
    list-style: none;
}

/* Sublists - first level indent */
.sitemap-sublist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 24px;
}

.sitemap-sublist li {
    margin-bottom: 10px;
}

.sitemap-sublist li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.2s ease;
    display: inline-block;
}

.sitemap-sublist li a:hover {
    color: var(--primary-brown);
}

.sitemap-sublist li a::before {
    content: "→ ";
    color: var(--accent-gold);
    margin-right: 8px;
    font-size: 12px;
}

/* Deep sublists - second level indent */
.sitemap-sublist-deep {
    margin-left: 24px;
    margin-top: 8px;
}

.sitemap-sublist-deep li a {
    font-size: 14px;
    color: #666;
}

.sitemap-sublist-deep li a::before {
    content: "· ";
    color: var(--accent-gold);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sitemap-section {
        margin-bottom: 32px;
    }
}
