:root {
    --main-color: #2D3436;
    --accent-color: #00B894;
    --text-color: #2D3436;
    --background-color: #FFFFFF;
    --secondary-bg: #F8F9FA;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
}

/* Hero Section Base Styles */
.hero {
    position: relative;
    height: 400px;
    background-color: var(--secondary-bg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero h2 {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0.5rem;
}

header {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000; /* Set a consistent z-index for the header */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s ease;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

header h1 {
    margin: 0;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow navigation items to wrap */
    gap: 2rem; /* Consistent spacing between nav items */
    justify-content: center; /* Center nav items horizontally */
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap; /* Prevent wrapping for nav links */
    padding: 0.5rem 0; /* Add top/bottom padding for better hover area */
}

nav a:hover {
    color: var(--accent-color);
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: block; /* Change display to block so it acts as a flex item */
    padding: 0.5rem 0; /* Add top/bottom padding for better hover area */
}

.dropdown-content {
    display: none; /* Revert to hidden by default */
    position: absolute;
    background-color: var(--background-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.05);
    z-index: 2000 !important; /* Extremely high z-index to force it on top */
    border-radius: 8px;
    border: 1px solid var(--secondary-bg);
    top: 100%; /* Position directly below the dropdown trigger with no gap */
    left: 0; /* Align dropdown content to the left of the trigger */
    padding: 0.5rem 0; /* Add some padding to the dropdown content */
    margin-top: 0; /* Ensure no margin creates a gap */
}

header {
    overflow: visible; /* Ensure nothing clips the dropdown */
}

.header-content {
    overflow: visible; /* Ensure nothing clips the dropdown */
}

.dropdown-content a {
    margin-left: 0;
    padding: 8px 20px; /* Adjust padding for dropdown items */
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap; /* Prevent wrapping for dropdown items */
}

.dropdown-content a:hover {
    background-color: var(--secondary-bg);
    color: var(--text-color);
}

/* Handled by JavaScript */


/* Ensure dropdown does not affect navbar height when hidden */
.dropdown-content.hidden {
    display: none;
}

main {
    margin: 0 auto;
}

footer {
    background-color: #FFFFFF;
    color: var(--text-color);
    padding: 3rem 0;
    margin-top: 0;
    border-top: 1px solid #E5E7EB;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 0 1.5rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin: 0 0 1.2rem 0;
    font-weight: 600;
    color: var(--text-color);
}

.about-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.about-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    object-fit: cover;
    flex-shrink: 0;
}

.footer-section p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4A5568;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-section:nth-child(2) p,
.footer-section:nth-child(3) a {
    padding: 0.2rem 0;
}

.footer-section:nth-child(2) p:first-of-type,
.footer-section:nth-child(3) a:first-of-type {
    padding-top: 0;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    margin: 0.2rem 0;
    justify-content: flex-start;
}

.social-icon {
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: white;
    transition: all 0.2s ease;
}

.social-icon i {
    font-size: 1.2rem;
}

.copyright {
    text-align: left;
    margin-top: 0.6rem !important;
    font-size: 0.85rem !important;
    color: #718096 !important;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
    }
}

/* Responsive Design */
@media (min-width: 1440px) {
    main, .footer-content {
        max-width: 1200px; /* Increased from 1000px */
    }

    .hero-section h1 {
        font-size: 4rem; /* Increased from hero h2 */
    }

    .hero-section .positioning-statement {
        font-size: 1.6rem; /* Increased for better readability */
    }
}

@media (max-width: 1024px) {
    main, .footer-content {
        max-width: 900px; /* Increased from 700px */
    }

    .hero-section h1 {
        font-size: 3rem; /* Changed from hero h2 */
    }

    .blog-post .article-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    nav {
        margin-top: 1rem;
    }

    nav a {
        margin: 0 1rem;
        font-size: 0.9rem;
    }

    .hero {
        height: 50vh;
        margin-top: 110px;
    }

    .hero h2 {
        font-size: 2.5rem;
        padding: 0.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Blog Post Image Styles - Responsive */
.blog-post article img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: block;
    object-fit: cover;
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-section {
        align-items: center;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .about-img {
        width: 80px;
        height: 80px;
    }

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

    .blog-post .article-content {
        padding: 1.5rem;
    }

    main, .footer-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }

    nav a {
        margin: 0 0.5rem;
        font-size: 0.85rem;
    }

    .blog-post .article-content {
        padding: 1.25rem;
    }

    .blog-post h2 {
        font-size: 1.5rem;
    }

    .blog-post p {
        font-size: 1rem;
    }
}

/* New Homepage Sections Styling */

/* General Section Styling */
main section {
    padding: 5rem 0; /* Increased vertical padding for better spacing */
    text-align: center;
}

main section:nth-of-type(even) {
    background-color: var(--secondary-bg);
}

/* Override secondary background for trust-section and resume-section */
.trust-section {
    background: #FFFFFF !important;
}

.resume-section {
    background: #FFFFFF !important;
}

main section .container {
    max-width: 100%; /* Use full width to reduce horizontal space */
    margin: 0;
    padding: 0 1.5rem;
    width: auto;
}

main h1, main h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem; /* Reduced margin for better spacing */
    font-weight: 600;
}

main h1 {
    font-size: 3rem;
}

main h2 {
    font-size: 2.2rem;
}

main p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4A5568;
}

.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.button:hover {
    background-color: #008f71; /* Darker shade of accent color */
}

/* Hero Section */
.hero-section {
    padding: 5rem 0; /* Increased vertical padding */
    background-color: var(--background-color);
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section .positioning-statement {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-color);
}

.hero-section .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Axis Section */
.axis-section .grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns */
    gap: 2rem; /* Reduced gap for better space utilization */
    margin-top: 2rem;
    max-width: 1000px; /* Slightly reduced max width */
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem; /* Add padding to prevent edge-to-edge display */
}

.axis-section .axis-item {
    background-color: var(--background-color);
    padding: 1.5rem; /* Reduced padding for more compact items */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.axis-section .axis-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.axis-section .axis-item h3 {
    font-size: 1.4rem; /* Slightly smaller font */
    color: var(--accent-color);
    margin-bottom: 0.8rem; /* Reduced margin */
}

.axis-section .axis-item p {
    font-size: 0.95rem; /* Slightly smaller font */
    margin-bottom: 1rem; /* Reduced margin */
}
.axis-section .axis-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem; /* Slightly smaller font */
}

.axis-section .axis-item a:hover {
    text-decoration: underline;
}

/* Featured Work Section */
.featured-work-section .featured-work-items {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for smaller items next to the main one */
    grid-template-rows: auto; 
    gap: 2.5rem; /* Increased gap for better visual separation */
    margin-top: 3rem;
    max-width: 1100px; /* Match container width */
    margin-left: auto;
    margin-right: auto;
}

/* Main featured item */
.featured-work-section .featured-main-item {
    grid-column: 1 / -1; /* Span full width initially */
    height: 500px; /* Make the main item larger */
}

@media (min-width: 769px) {
    .featured-work-section .featured-main-item {
        grid-column: span 1; /* For larger screens, it takes 1 column */
        grid-row: span 2; /* takes 2 rows */
        min-height: 600px; /* Adjust height for the main item */
    }
    .featured-work-section .featured-work-items {
        grid-template-columns: 1.5fr 1fr; /* Asymmetric grid for the main item */
    }
}

.featured-work-section .work-item {
    position: relative;
    overflow: hidden;
    padding: 0; /* Remove padding from work-item itself */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* More pronounced shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-work-section .work-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Even more pronounced shadow on hover */
}

.featured-work-section .work-thumbnail-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.featured-work-section .work-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images cover the area without distortion */
    transition: transform 0.5s ease, filter 0.5s ease; /* Smooth zoom and filter effect */
    filter: grayscale(80%) brightness(0.8); /* Grayscale and darker by default */
}

.featured-work-section .work-item:hover .work-thumbnail {
    transform: scale(1.1); /* Zoom effect on hover */
    filter: grayscale(0%) brightness(1); /* Full color and normal brightness on hover */
}

.featured-work-section .work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 52, 54, 0.75); /* Slightly darker overlay */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content to the bottom */
    align-items: flex-start; /* Align content to the left */
    color: white;
    padding: 2rem;
    text-align: left; /* Text alignment to left */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease; /* Smooth fade-in effect */
    border-radius: 8px; /* Match container border-radius */
}

.featured-work-section .work-item:hover .work-overlay {
    opacity: 1; /* Show overlay on hover */
}

.featured-work-section .work-overlay > * {
    opacity: 0; /* Hide all direct children by default in overlay */
    transform: translateY(10px); /* Initially slightly down */
    transition: opacity 0.0s ease, transform 0.0s ease; /* No transition by default */
    transition-delay: 0.0s; /* No delay by default */
}

.featured-work-section .work-item:hover .work-overlay > * {
    opacity: 1; /* Fade in on hover */
    transform: translateY(0); /* Move to original position */
}

.featured-work-section .work-item:hover .work-overlay .work-category { transition-delay: 0.1s; }
.featured-work-section .work-item:hover .work-overlay h3 { transition-delay: 0.2s; }
.featured-work-section .work-item:hover .work-overlay .work-context { transition-delay: 0.3s; }
.featured-work-section .work-item:hover .work-overlay .work-insight { transition-delay: 0.4s; }
.featured-work-section .work-item:hover .work-overlay .case-study-link { transition-delay: 0.5s; }

.featured-work-section .work-overlay .work-category {
    background-color: var(--accent-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    display: inline-block; 
}

.featured-work-section .work-overlay h3 {
    font-size: 2rem; /* Larger title for impact */
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.2;
}

.featured-work-section .work-overlay .work-context {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.featured-work-section .work-overlay .work-insight {
    font-size: 0.9rem;
    margin-bottom: 1.5rem; /* More space before CTA */
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.featured-work-section .work-overlay .case-study-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid white; /* White border for CTA */
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.featured-work-section .work-overlay .case-study-link:hover {
    background-color: var(--accent-color); /* Accent background on hover */
    border-color: var(--accent-color); /* Accent border on hover */
    color: white; /* White text on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-work-section .featured-work-items {
        grid-template-columns: 1fr; /* Stack all items on smaller screens */
        height: auto; /* Remove fixed height for stacked items */
    }
    .featured-work-section .featured-main-item {
        height: 400px; /* Adjust height for main item when stacked */
        min-height: 400px; 
    }

    .featured-work-section .work-overlay h3 {
        font-size: 1.6rem;
    }

    .featured-work-section .work-overlay .work-context {
        font-size: 1rem;
    }

    .featured-work-section .work-overlay .work-insight {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .featured-work-section .featured-main-item {
        height: 300px; /* Further adjust height for very small screens */
        min-height: 300px; 
    }
    .featured-work-section .work-overlay h3 {
        font-size: 1.4rem;
    }
    .featured-work-section .work-overlay .work-category {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    .featured-work-section .work-overlay .case-study-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Selected Writing Section */
.selected-writing-section .selected-writing-content {
    max-width: 900px; /* Aligns with container width */
    margin: 3rem auto 0 auto; /* Top margin, centered */
    display: grid;
    grid-template-columns: 2fr 1fr; /* Asymmetric layout: 2/3 for featured, 1/3 for secondary */
    gap: 4rem; /* Generous gap between featured and secondary */
    text-align: left; /* Aligns content within grid items */
}

/* Featured Article Styling */
.selected-writing-section .featured-article a {
    display: block;
    text-decoration: none;
    color: var(--text-color); /* Default text color */
    transition: color 0.2s ease;
    padding-bottom: 0.5rem; /* For interaction state */
    border-bottom: 1px solid rgba(0,0,0,0.1); /* Subtle separator */
}

.selected-writing-section .featured-article a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color); /* Accent hover */
}

.selected-writing-section .featured-article .article-category {
    display: block;
    font-size: 0.75rem; /* Small */
    letter-spacing: 1px; /* Slightly tighter */
    text-transform: uppercase;
    color: #6c757d; /* Neutral gray */
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.selected-writing-section .featured-article a:hover .article-category {
    color: var(--accent-color);
}

.selected-writing-section .featured-article h3 {
    font-size: 2.2rem; /* Largest text */
    font-weight: 500; /* Medium weight */
    letter-spacing: -0.5px; /* Tighter tracking */
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.selected-writing-section .featured-article a:hover h3 {
    color: var(--accent-color);
}

.selected-writing-section .featured-article .article-abstract {
    font-size: 1.15rem;
    line-height: 1.8; /* Generous line-height */
    color: #495057; /* Dark gray */
    margin-bottom: 0.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.selected-writing-section .featured-article a:hover .article-abstract {
    color: var(--accent-color);
}

.selected-writing-section .featured-article .article-meta {
    font-size: 0.9rem;
    color: #868e96; /* Light gray */
    display: block;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.selected-writing-section .featured-article a:hover .article-meta {
    color: var(--accent-color);
}

/* Secondary Articles Styling */
.selected-writing-section .secondary-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selected-writing-section .secondary-articles li {
    margin-bottom: 1.5rem; /* Increase vertical spacing */
}

.selected-writing-section .secondary-articles a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.selected-writing-section .secondary-articles a:hover {
    color: var(--accent-color);
}

.selected-writing-section .secondary-articles .article-category {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #8c8c8c; /* Slightly darker gray for secondary */
    margin-bottom: 0.3rem;
    transition: color 0.2s ease;
}

.selected-writing-section .secondary-articles a:hover .article-category {
    color: var(--accent-color);
}

.selected-writing-section .secondary-articles h4 {
    font-size: 1.1rem;
    font-weight: 500; /* Medium weight */
    letter-spacing: -0.2px;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0;
    transition: color 0.2s ease;
}

.selected-writing-section .secondary-articles a:hover h4 {
    color: var(--accent-color);
}

/* General Section Responsive Adjustments */
@media (max-width: 768px) {
    .selected-writing-section .selected-writing-content {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        gap: 3rem;
    }

    .selected-writing-section .featured-article h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .selected-writing-section .featured-article h3 {
        font-size: 1.6rem;
    }

    .selected-writing-section .featured-article .article-abstract {
        font-size: 1rem;
    }

    .selected-writing-section .secondary-articles h4 {
        font-size: 1rem;
    }

    .selected-writing-section .secondary-articles li {
        margin-bottom: 1rem;
    }
}

/* --- Narrative Connect Section --- */
.narrative-connect-section {
    padding: 1rem 0;
    background-color: var(--secondary-bg);
}

.narrative-connect-section .container {
    max-width: 1100px; /* Increased max-width for better horizontal space */
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex; /* Enable flexbox for horizontal alignment */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    justify-content: space-around; /* Distribute space around items */
    align-items: flex-start; /* Align items to the start of the cross axis */
    gap: 3rem; /* Add some gap between the items */
}

.narrative-connect-section .profile-container {
    position: relative;
    flex: 1; /* Allow to grow and shrink */
    min-width: 300px; /* Minimum width to prevent excessive squishing */
    margin: 0;
    padding: 1rem 1.5rem; /* Reduced padding */
    text-align: left; /* Align text to the left */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start; /* Align content to the start */
    gap: 1.5rem; /* Reduced gap */
}

/* Removed ::before pseudo-element */

.narrative-connect-section .narrative-profile-img {
    width: 90px; /* Reduced image size */
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color); /* Slightly thinner border */
    box-shadow: 0 0 0 6px rgba(0, 184, 148, 0.1), 0 3px 10px rgba(0, 0, 0, 0.08); /* Reduced shadow and glow */
    margin: 0;
    transition: all 0.3s ease;
}

.narrative-connect-section .narrative-profile-img:hover {
    transform: scale(1.03); /* Slightly less pronounced enlarge on hover */
    box-shadow: 0 0 0 9px rgba(0, 184, 148, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1); /* Adjusted hover shadow */
}

.narrative-connect-section .philosophy-statement {
    font-size: 1rem; /* Reduced font size */
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0;
    text-align: left; /* Aligned text to the left */
    position: relative;
    padding-bottom: 0; /* Removed bottom padding */
    flex: 1; /* Allow text to take up remaining space */
}

.narrative-connect-section .philosophy-statement::after {
    display: none; /* Removed the squiggly line */
}

.narrative-connect-section .divider {
    display: none; /* Removed the divider with squiggly line */
}

.narrative-connect-section .divider:hover {
    opacity: 1;
    transform: scale(1.05);
}

.narrative-connect-section .email-signup-narrative {
    position: relative;
    flex: 1; /* Allow to grow and shrink */
    min-width: 300px; /* Minimum width to prevent excessive squishing */
    margin: 0;
    padding: 2rem; /* Adjusted padding to match profile-container */
    border-radius: 12px;
    background-color: var(--background-color); /* Kept background as per previous logic for sign-up */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 184, 148, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.narrative-connect-section .email-signup-narrative:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.narrative-connect-section .email-signup-narrative::before,
.narrative-connect-section .email-signup-narrative::after {
    display: none; /* Removed the squiggly lines */
}

.narrative-connect-section .email-signup-narrative p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 1.5rem; /* Adjusted margin-bottom */
    text-align: left; /* Ensure left alignment for professionalism */
    position: relative;
    padding-bottom: 0; /* Removed bottom padding */
}

.narrative-connect-section .email-signup-narrative p::after {
    display: none; /* Removed the squiggly line */
}

.narrative-connect-section .narrative-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center; /* Vertically align items */
    width: 100%; /* Ensure form takes full width to allow left alignment */
    justify-content: flex-start; /* Left align the form content */
}
/* Portfolio Hero Section */
.portfolio-hero {
    padding: 4rem 1.5rem 2rem;
    text-align: center;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-image: 
        radial-gradient(circle, rgba(0, 184, 148, 0.15) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 184, 148, 0.1) 1px, transparent 1px);
    background-size: 30px 30px, 60px 60px;
    background-position: 0 0, 15px 15px;
    opacity: 0.6;
    animation: gridFloat 20s linear infinite;
}

.portfolio-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.7) 100%);
    pointer-events: none;
}

@keyframes gridFloat {
    0% { background-position: 0 0, 15px 15px; }
    100% { background-position: 30px 30px, 45px 45px; }
}

.portfolio-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    z-index: 3;
}

.portfolio-hero p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    color: #4A5568;
    position: relative;
    z-index: 3;
}

/* Portfolio Grid Section */
.portfolio-grid-section {
    padding: 3rem 1.5rem 5rem;
}

/* Portfolio Grid - Enhanced Design */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Portfolio Item - Enhanced with Hover Effects */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: var(--secondary-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(20%) brightness(0.95);
}

.portfolio-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(1);
}

/* Design Overlay - Subtle and Minimal */
.design-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 52, 54, 0.85) 0%, rgba(45, 52, 54, 0.6) 40%, rgba(45, 52, 54, 0) 100%);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .design-overlay {
    transform: translateY(0);
}

.design-overlay h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0 0 0.3rem 0;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.design-overlay p {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

/* Expand Icon */
.design-expand-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.95);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.design-expand-icon i {
    font-size: 1rem;
}

.portfolio-item:hover .design-expand-icon {
    opacity: 1;
    transform: scale(1);
}

.design-expand-icon:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Lightbox Styles - Minimal */
.design-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    box-sizing: border-box;
}

.design-lightbox.active {
    display: flex;
    opacity: 1;
}

.design-lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.design-lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}

.design-lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 1.5rem;
}

.design-lightbox-caption h3 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.design-lightbox-caption p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.design-lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

.design-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Portfolio CTA Section */
.portfolio-cta {
    padding: 4rem 1.5rem;
    text-align: center;
    background-color: var(--secondary-bg);
}

.portfolio-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.portfolio-cta p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    color: #4A5568;
}

/* Responsive Design - Enhanced */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .design-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(45, 52, 54, 0.9) 0%, rgba(45, 52, 54, 0.5) 60%, rgba(45, 52, 54, 0.1) 100%);
        padding: 4rem 1rem 1rem 1rem;
    }
    
    .design-expand-icon {
        opacity: 1;
        transform: scale(1);
    }
    
    .portfolio-hero h1 {
        font-size: 2.2rem;
    }
    
    .design-lightbox {
        padding: 1rem;
    }
    
    .design-lightbox-content img {
        max-height: 55vh;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-hero h1 {
        font-size: 1.8rem;
    }
    
    .portfolio-hero p {
        font-size: 1rem;
    }
    
    .design-lightbox {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 4rem;
    }
    
    .design-lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 44px;
        height: 44px;
        font-size: 2rem;
    }
    
    .design-lightbox-content img {
        max-height: 45vh;
        border-radius: 4px;
    }
    
    .design-lightbox-caption h3 {
        font-size: 1.2rem;
    }
    
    .design-lightbox-caption p {
        font-size: 0.85rem;
    }
}
