:root {
    --bg-color: #0a0a0c;
    --text-primary: #f0f0f0;
    --text-secondary: #999999;
    --border-color: #222222;
    --accent: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

.layout-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 30px; /* Reduced top padding for nav */
}

.about-content {
    max-width: 800px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

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

.nav-link.active {
    color: var(--text-primary);
}

/* Header Profile */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 70px; 
    margin-bottom: 70px;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img {
    width: 200px; 
    height: 200px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.profile-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 700px;
}

.profile-title-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
}

.name {
    font-weight: 600;
    font-size: 3.2rem;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1.1;
}

.job-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.job-tags {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-style: italic;
}

.bio {
    font-size: 1.1rem; 
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.link-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0;
    min-width: 150px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.link-btn.primary-btn {
    background: #e0e0e0;
    color: #000;
    border-color: #e0e0e0;
}

.link-btn.primary-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.link-btn.secondary-btn {
    border-color: rgba(255, 255, 255, 0.15);
}

.link-btn:not(.primary-btn):hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #555;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.social-links a:hover {
    border-bottom: 1px solid var(--text-primary);
}

/* Portfolio Section Headers */
.portfolio-section {
    margin-top: 50px;
}

.personal-section {
    margin-top: 80px;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-primary);
}

/* Commercial Projects Grid V2 (Poster Strips) */
.commercial-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.commercial-item-v2 {
    display: flex;
    flex-direction: column;
}

.poster-wrap {
    width: 100%;
    aspect-ratio: 2 / 3;
    background-color: #111;
    overflow: hidden;
    margin-bottom: 12px;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85); /* Slight dim to avoid glaring */
    transition: filter 0.3s ease;
}

.commercial-item-v2:hover .poster-wrap img {
    filter: brightness(1);
}

.commercial-item-v2 h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.commercial-item-v2 span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Portfolio Grids */
.portfolio-grid {
    display: grid;
    gap: 8px; 
}

.personal-grid {
    grid-template-columns: repeat(3, 1fr);
}

.grid-item {
    position: relative;
    overflow: hidden;
    background-color: #111;
    cursor: pointer;
}

.personal-item {
    aspect-ratio: 16 / 10; /* Cinematic concept art ratio */
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Grid Overlay (Hover Effect) */
.grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    text-align: left;
    padding: 25px 20px;
}

.grid-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-overlay span {
    font-size: 0.85rem;
    color: #cccccc;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.05s;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

.grid-item:hover .grid-overlay h4,
.grid-item:hover .grid-overlay span {
    transform: translateY(0);
}

@media (hover: none) {
    .grid-overlay {
        opacity: 1;
    }
    .grid-overlay h4,
    .grid-overlay span {
        transform: translateY(0);
    }
}

/* Compact Info Sections at bottom */
.info-sections-bottom.compact-info {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

.compact-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.compact-info p {
    font-size: 0.9rem;
    color: #888888;
    line-height: 1.6;
}

/* About Page Styles */
.about-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.about-avatar img {
    width: 140px;
    height: 140px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.about-section p {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-section.text-block ul.credits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-section.text-block ul.credits-list li {
    font-size: 1rem;
    color: var(--text-secondary);
}

.about-section.text-block ul.credits-list strong {
    color: var(--text-primary);
}

.about-cta {
    margin-top: 60px;
}

/* Project Page Styles */
.project-wrapper {
    max-width: 1000px;
}

.project-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-header {
    text-align: center;
    margin-bottom: 50px;
}

.project-title {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.project-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.text-block {
    max-width: 760px;
    width: 100%;
}

.project-intro p,
.project-text-section p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-media {
    width: 100%;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-img {
    width: 100%;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.project-media.image-stack {
    gap: 30px;
}

.img-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* Credits Table */
.project-credits-table {
    width: 100%;
    max-width: 760px;
    margin: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.credit-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.credit-label {
    flex-basis: 30%;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credit-value {
    flex-basis: 70%;
    color: var(--text-primary);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .project-title { font-size: 2.2rem; }
    .credit-row { flex-direction: column; gap: 5px; }
    .credit-label { flex-basis: auto; }
}

/* Back Links */
.back-link-wrapper {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.back-link-wrapper-bottom {
    margin-top: 60px;
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.project-img.gallery-img {
    cursor: zoom-in;
}

/* Footer */
.footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer a:hover { color: var(--text-primary); }

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.98);
}

.lightbox-content {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
    from {transform: scale(0.95); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 45px;
    color: #888;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: #fff;
}

/* Responsiveness */
@media (max-width: 900px) {
    .profile-header { gap: 40px; }
    .profile-avatar img { width: 160px; height: 160px; }
    .name { font-size: 2.5rem; }
    
    .personal-grid { grid-template-columns: repeat(2, 1fr); }
    .commercial-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 60px; }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .profile-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .about-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
@media (max-width: 500px) {
    .personal-grid { grid-template-columns: 1fr; }
    .commercial-grid-v2 { grid-template-columns: 1fr; gap: 40px; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .link-btn { width: 100%; }
}
