/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Italianno&family=Inter:wght@200;300;400;500;600&display=swap');

:root {
    --bg-dark: #050A18;
    /* Deep Midnight Blue */
    --bg-card: #0A1124;
    --text-main: #EAEAEA;
    --text-muted: #8892B0;
    --accent-blue: #2563EB;

    --font-heading: 'Cormorant Garamond', serif;
    --font-script: 'Italianno', cursive;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;

    /* Vertical Grid Background Effect */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: center top;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    position: relative;
    z-index: 100;
}

.brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    transition: transform 0.3s ease;
}

.brand:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    opacity: 0.8;
    position: relative;
}

.nav-links a:hover {
    opacity: 1;
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 101;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    position: relative;
    padding-top: 0;
    opacity: 1;
    /* Changed from 0 for safety */
}

.hero-est {
    color: #3B82F6;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    /* Increased spacing */
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-title-container {
    margin-bottom: 40px;
    line-height: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 9rem;
    /* Increased size */
    font-weight: 400;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 0.8;
    letter-spacing: -0.02em;
    z-index: 2;
    /* Ensure on top if needed */
}

.hero-script {
    font-family: var(--font-script);
    font-size: 10rem;
    /* Increased size significantly */
    font-weight: 400;
    color: #E0E0E0;
    /* Brighter */
    display: block;
    margin-top: -30px;
    /* Overlap effect */
    transform: rotate(-2deg);
    transform-origin: center;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* Sections */
.section {
    padding: 100px 0;
    opacity: 1;
    /* Changed from 0 for safety */
    transform: translateY(0);
    /* Reset transform */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: white;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
}

/* Explore Grid */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    /* Increased letter switching */
    padding: 18px 40px;
    /* Larger padding */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    transition: all 0.3s ease;
    background: rgba(5, 10, 24, 0.8);
    /* Darker background */
    backdrop-filter: blur(10px);
    cursor: pointer;
    margin-top: 40px;
    /* Ensure spacing */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.nav-card-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

.nav-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
}

.nav-card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.principle-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0);
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.principle-item:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-5px);
}

.principle-icon {
    font-size: 1rem;
    margin-bottom: 20px;
    display: inline-flex;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-blue);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.principle-item h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: white;
}

.principle-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===========================
   Bookshelf Specific Styles
   =========================== */

/* Page Header */
.page-header {
    text-align: center;
    padding: 120px 0 60px;
}

.page-title {
    font-size: 4rem;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.page-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px;
    font-family: var(--font-body);
    font-weight: 300;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--text-muted);
}

.filter-btn.active {
    background: var(--text-main);
    color: var(--bg-dark);
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 60px 40px;
    margin-bottom: 120px;
}

.book-card {
    display: flex;
    flex-direction: column;
}

.book-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.book-card:hover .book-cover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.book-card:hover .book-image {
    opacity: 1;
}

/* Tag on cover */
.book-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
}

.book-info h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: white;
}

.book-author {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-quote {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    padding-left: 16px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Newsletter Section */
.newsletter-section {
    text-align: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 24px;
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    padding: 16px;
    border-radius: 50%;
}

.newsletter-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.newsletter-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-family: var(--font-body);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #1d4ed8;
}

/* ===========================
   Book Summary Page Styles
   =========================== */
.book-summary-header {
    text-align: center;
    padding: 100px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 60px;
}

.book-summary-title {
    font-size: 4rem;
    margin-bottom: 16px;
    line-height: 1.1;
}

.book-summary-author {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.book-content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.book-sidebar {
    position: sticky;
    top: 40px;
}

.book-sidebar .book-cover {
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.book-sidebar-meta {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item {
    margin-bottom: 16px;
}

.meta-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.meta-value {
    color: white;
    font-weight: 500;
}

.book-main-content {
    font-family: var(--font-body);
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.8;
}

.book-main-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 24px;
    color: white;
    font-family: var(--font-heading);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.book-main-content p {
    margin-bottom: 24px;
    color: #ccc;
}

.book-main-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 24px;
    color: #ccc;
}

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

.highlight-box {
    background: rgba(37, 99, 235, 0.1);
    border-left: 4px solid var(--accent-blue);
    padding: 24px;
    margin: 30px 0;
    font-style: italic;
    color: white;
}

.buy-button {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 24px;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.buy-button:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.copyright {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {

    .principles-grid,
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

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

    .hero-script {
        font-size: 7rem;
    }

    .explore-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 40px;
    }

    .book-content-layout {
        grid-template-columns: 1fr;
    }

    .book-sidebar {
        position: static;
        max-width: 300px;
        margin: 0 auto 60px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 3rem;
    }

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

    .hero-script {
        font-size: 5rem;
        margin-top: -10px;
    }

    .navbar {
        padding: 20px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #0A1124;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }
}

/* ===========================
   Articles Page Specific Styles
   =========================== */

.main-content-wrapper {
    padding-top: 40px;
    padding-bottom: 100px;
}

/* Featured Section */
.featured-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.featured-content {
    padding-right: 20px;
}

.featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #9da6b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.featured-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 300;
    max-width: 90%;
}

.featured-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-blue);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    gap: 16px;
}

.featured-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.featured-image-container:hover .featured-image {
    transform: scale(1.05);
}

.featured-glow {
    position: absolute;
    inset: -20px;
    background: var(--accent-blue);
    opacity: 0.2;
    filter: blur(40px);
    z-index: -1;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 20px;
}

.filter-groups {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-weight: 500;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.filter-sort {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 120px;
}

.article-card {
    display: flex;
    flex-direction: column;
    group: article;
}

.article-thumb {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.article-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(5, 10, 24, 0.8);
    backdrop-filter: blur(8px);
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.article-meta .dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-family: var(--font-body);
    font-weight: 700;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--accent-blue);
}

.article-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.article-card:hover .article-link {
    gap: 12px;
}

/* Newsletter Glass */
.newsletter-glass {
    position: relative;
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 60px;
}

.newsletter-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    opacity: 0.15;
    filter: blur(100px);
    border-radius: 50%;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    font-family: var(--font-body);
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

.glass-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

.glass-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
}

.glass-form button {
    background: white;
    color: var(--bg-dark);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.glass-form button:hover {
    background: #f0f0f0;
}

.newsletter-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
    padding-left: 8px;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .featured-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .featured-content {
        order: 2;
        padding-right: 0;
    }

    .featured-image-container {
        order: 1;
        aspect-ratio: 16/9;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .glass-form {
        flex-direction: column;
    }

    .glass-form button {
        width: 100%;
    }
}

/* ===========================
   Advice / Compendium Page Styles
   =========================== */

/* Grain Effect */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 50;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Hero */
.compendium-hero {
    text-align: center;
    padding: 80px 0;
    background: radial-gradient(circle at 50% -20%, rgba(37, 99, 235, 0.15) 0%, rgba(5, 10, 24, 0) 50%);
    margin-bottom: 60px;
}

.compendium-title {
    font-size: 5rem;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 24px;
    font-weight: 700;
}

.highlight-text {
    color: var(--accent-blue);
    opacity: 0.9;
}

.compendium-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-pill {
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
}

/* Featured Reflection */
.reflection-featured {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.reflection-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.reflection-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.2);
    mix-blend-mode: overlay;
    z-index: 10;
}

.reflection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    transition: transform 0.7s ease;
}

.reflection-image-wrapper:hover .reflection-img {
    transform: scale(1.05);
}

.reflection-badge-container {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 20;
}

.badge-featured {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.reflection-featured-title {
    font-size: 2.5rem;
    color: white;
    font-family: var(--font-heading);
    line-height: 1.1;
    margin: 0;
}

.reflection-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sub-label {
    color: var(--accent-blue);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    font-weight: 700;
}

.quote-large {
    font-size: 1.8rem;
    color: #e2e8f0;
    line-height: 1.4;
    font-weight: 300;
    margin-bottom: 24px;
    font-family: var(--font-body);
}

.reflection-text {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-weight: 700;
    transition: gap 0.3s ease;
}

.read-link:hover {
    gap: 12px;
}

/* Insights Grid */
.insights-section {
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: white;
}

.section-sub {
    color: var(--text-muted);
}

.view-all-btn {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.view-all-btn:hover {
    color: white;
    border-color: white;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.insight-card {
    background: var(--bg-dark);
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
}

.insight-card:hover {
    background: rgba(37, 99, 235, 0.03);
}

.card-top {
    margin-bottom: 24px;
}

.card-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-blue);
    font-weight: 700;
}

.card-title {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.insight-card:hover .card-title {
    color: var(--accent-blue);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    flex-grow: 1;
}

.card-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.insight-card:hover .card-link {
    color: white;
}

/* Maxims Section */
.maxims-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 80px 0;
    background: rgba(255, 255, 255, 0.01);
}

.maxims-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 1;
}

.maxims-content {
    position: relative;
    z-index: 2;
}

.maxims-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--accent-blue);
    margin-bottom: 60px;
    font-weight: 700;
}

.maxims-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: center;
}

.maxim-text {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: white;
    line-height: 1.2;
}

.maxim-divider {
    height: 1px;
    width: 50px;
    background: rgba(37, 99, 235, 0.4);
    margin: 30px auto 0;
}

/* Connect Section */
.connect-section {
    text-align: center;
    padding: 60px 0;
    max-width: 600px;
    margin: 0 auto;
}

.connect-title {
    font-size: 2rem;
    margin-bottom: 16px;
    color: white;
}

.connect-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.connect-form {
    display: flex;
    gap: 12px;
}

.connect-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 20px;
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
}

.connect-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.connect-btn:hover {
    background: #1d4ed8;
}

/* Mobile Responsiveness for Advice Page */
@media (max-width: 900px) {
    .reflection-featured {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .reflection-content {
        order: 2;
    }

    .reflection-image-wrapper {
        order: 1;
    }

    .compendium-title {
        font-size: 3rem;
    }

    .maxim-text {
        font-size: 1.8rem;
    }

    .connect-form {
        flex-direction: column;
    }
}

/* ===========================
   Projects / The Lab Page Styles
   =========================== */

.top-spacing {
    padding-top: 40px;
}

/* ===========================
   Single Article Page Styles
   =========================== */

.article-page {
    /* Limit width for readability for the article content, but hero can be wider */
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 12px;
}

.article-header {
    margin-bottom: 40px;
}

.article-hero-title {
    font-family: var(--font-body);
    /* Sans-serif for title as per screenshot */
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.article-hero-meta .category-tag {
    color: var(--accent-blue);
    font-weight: 600;
}

.article-hero-image-container {
    width: 100%;
    aspect-ratio: 21/9;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--accent-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.1em;
}

/* Content Typography */
.article-content {
    max-width: 700px;
    /* Optimal reading width */
    margin: 0 auto 100px;
}

.article-content p {
    font-family: var(--font-body);
    /* Sans-serif for body text */
    font-size: 1.15rem;
    /* Slightly smaller than serif for balance */
    line-height: 1.8;
    color: #d1d5db;
    /* Light gray */
    margin-bottom: 32px;
    font-weight: 300;
}

.article-content .intro-text {
    font-style: italic;
    font-size: 1.3rem;
    color: #e5e7eb;
    margin-bottom: 40px;
    font-weight: 300;
}

.drop-cap {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 0px;
    color: var(--accent-blue);
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-blue), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-body);
}

.article-content h2 {
    font-family: var(--font-body);
    /* Sans-serif for headings within article */
    font-weight: 700;
    color: white;
    font-size: 2rem;
    margin-top: 60px;
    margin-bottom: 24px;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-blue);
    padding: 20px 0 20px 30px;
    margin: 40px 0;
    background: rgba(37, 99, 235, 0.05);
    /* Slight blue tint background */
    border-radius: 0 12px 12px 0;
}

.article-content blockquote p {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0;
    font-weight: 400;
}

/* Article Footer/Share */
.article-footer-nav {
    max-width: 700px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.share-links {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-icon:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.next-article-link a {
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .article-hero-title {
        font-size: 2.5rem;
    }

    .article-hero-image-container {
        aspect-ratio: 16/9;
    }

    .article-content blockquote {
        font-size: 1.2rem;
        padding-left: 20px;
    }

    .drop-cap {
        font-size: 3.5rem;
    }
}

.hire-me-btn {
    background: var(--accent-blue);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    opacity: 1 !important;
    transition: background 0.3s ease;
}

.hire-me-btn:hover {
    background: #1d4ed8;
}

/* Lab Hero */
.lab-hero {
    margin-bottom: 60px;
    padding: 0 20px;
}

.lab-title {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
}

.highlight-lab {
    color: var(--accent-blue);
}

.lab-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.lab-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lab-filter {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-weight: 600;
}

.lab-filter.active,
.lab-filter:hover {
    background: var(--accent-blue);
    color: white;
}

/* Lab Grid (Masonry-ish) */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 120px;
}

/* Make some cards span two rows for masonry feel if supported, 
   or just rely on aspect ratio of images/containers */
.lab-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.lab-card.tall {
    grid-row: span 2;
}

.lab-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lab-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.lab-card.tall .lab-img {
    aspect-ratio: 9/16;
}

.lab-card:not(.tall) .lab-img {
    aspect-ratio: 4/5;
}

.lab-card:hover .lab-img {
    transform: scale(1.05);
}

.lab-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.lab-card:hover .lab-overlay {
    opacity: 0.8;
}

.lab-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 10;
}

.lab-tag {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.lab-project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
}

/* Lab CTA */
.lab-cta {
    background: rgba(5, 10, 24, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 80px;
}

.lab-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    font-family: var(--font-body);
}

.lab-cta-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.lab-cta-btn {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.3s ease;
}

.lab-cta-btn:hover {
    background: #1d4ed8;
}

/* Footer Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: white;
}

/* Mobile Adjustments for Projects */
@media (max-width: 600px) {
    .lab-grid {
        grid-template-columns: 1fr;
    }

    .lab-title {
        font-size: 3rem;
    }
}

/* ===========================
   Influences / Architects Page Styles
   =========================== */

.influences-hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 60px;
}

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 16px;
    font-weight: 700;
}

.influences-title {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, white, #a0aec0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    margin: 0 auto 32px;
    border-radius: 2px;
}

.influences-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

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

/* Architects Grid */
.architects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 120px;
    padding: 0 20px;
}

.architect-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    /* Fallback */
    height: 600px;
    /* Fixed height for consistency as per mockup look */
    display: flex;
    flex-direction: column;
}

.architect-card.tall {
    height: 600px;
    /* Matching height for uniform rows, or could be varied */
}

.architect-img-container {
    padding: 20px 20px 0 20px;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #2d3748, #1a202c);
}

.architect-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.architect-card:hover .architect-img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.architect-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.9));
    pointer-events: none;
}

.architect-info {
    padding: 24px;
    background: #0f1219;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.architect-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.architect-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-blue);
    font-weight: 700;
    display: block;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.architect-quote {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
    opacity: 0.8;
}

/* Architects CTA */
.architects-cta {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 60px;
}

.architects-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.architects-cta-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.architects-btn {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background 0.3s ease;
}

.architects-btn:hover {
    background: #1d4ed8;
}

@media (max-width: 600px) {
    .influences-title {
        font-size: 2.5rem;
    }

    .architect-card,
    .architect-card.tall {
        height: auto;
    }

    .architect-img-container {
        height: 300px;
    }
}