/* Modern Refined Color Palette */
:root {
    --bg-color: #fafafa;        /* Warm, gallery-style off-white */
    --card-bg: #ffffff;         /* Pure crisp white for elevation */
    --text-main: #09090b;       /* Deep zinc charcoal for premium contrast */
    --text-muted: #52525b;      /* Balanced neutral gray for body copy */
    --primary-color: #4f46e5;   /* Deep electric indigo accent */
    --primary-hover: #4338ca;   /* Darker indigo for active states */
    --border-color: #e4e4e7;    /* Ultra-soft border */
    --tag-bg: #f4f4f5;          /* Subtle gray for technology pills */
}

/* Base Reset & Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-muted);
    max-width: 1100px;           
    margin: 0 auto;
    padding: 80px 24px;         
    line-height: 1.6;           
    -webkit-font-smoothing: antialiased;
}

/* Profile Picture Styling */
.profile-pic-container {
    margin-bottom: 24px;
}
.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Header & Intro Branding */
.intro-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.intro-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.15;
}

.intro-header-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-muted); 
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.4;
}

.intro-location {
    font-size: 0.85rem;
    color: var(--text-muted); 
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main Content Area */
.portfolio-section .intro-bio-container {
    margin-top: 0;
    margin-bottom: 56px;
    font-size: 1.05rem;
    max-width: 720px;
}

.portfolio-section .intro-bio-container p {
    margin-bottom: 20px;
}

.portfolio-section h2.section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

/* Buttons Styling */
.btn-group {
    margin-top: 36px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-sizing: border-box;
    height: 40px;
}

.btn-primary {
    background-color: var(--text-main);
    color: #ffffff;
    border: none;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: #ffffff;
    border-color: var(--text-main);
}

/* Production Showcase Grid Layout */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Premium Project Cards */
.project-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    border-color: #a1a1aa;
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.04);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.project-card p {
    font-size: 0.95rem;
    margin: 0 0 20px 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Tech Tags/Badges */
.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--tag-bg);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-link:hover {
    color: var(--primary-hover);
}

.stretched-link::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
}

/* --- Responsive Split Layout Engine --- */
@media (min-width: 992px) {
    body {
        display: grid;
        grid-template-columns: 240px 1fr; /* Optimized width to avoid text cramping */
        gap: 0;                           
        align-items: start;
    }

    .intro-section {
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 160px);
        overflow-y: auto;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        padding-right: 56px;              /* Breathing room before the divider */
    }

    .portfolio-section {
        padding-left: 56px;               /* Balancing space after the divider */
    }

    .intro-section h1 {
        font-size: 1.8rem; 
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }

    .intro-section::-webkit-scrollbar {
        width: 0px;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}