/* ==========================================================================
   1. HIGH-FIDELITY DOCUMENT FORMATTING RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f4f4f7;
    color: #000000;
    font-family: "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
}

/* Page Emulation Container */
.resume-paper-canvas {
    background-color: #ffffff;
    width: 100%;
    max-width: 850px;
    padding: 3.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* ==========================================================================
   2. RE-ENGINEERED COMPACT HEADER ZONE CARD
   ========================================================================== */
.resume-header {
    background-color: #f8f9fa; /* Matches print layout card styling perfectly */
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1.75rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; /* Dynamically anchors image tracking to text bounding box */
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.header-main-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.resume-name {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: #000000;
}

.resume-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    color: #111111;
}

.resume-contact-block {
    font-size: 0.85rem;
    color: #333333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-line {
    font-weight: 500;
    white-space: normal;
}

.resume-contact-block a {
    color: #333333;
    text-decoration: none;
    display: inline-block;
}

.resume-contact-block a:hover {
    color: #000000;
    text-decoration: underline;
}

/* Precision Bound Circular Profile Frame */
.profile-photo-circle-frame {
    flex-shrink: 0;
    width: 130px; /* Aligns perfectly with the vertical bounds of the left text stack */
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.profile-img-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   3. STRUCTURAL DOCUMENT SECTION MARKS
   ========================================================================== */
.resume-section {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #000000;
    border-bottom: 1.5px solid #000000;
    padding-bottom: 0.15rem;
    margin-bottom: 0.65rem;
}

.profile-text {
    font-size: 0.92rem;
    line-height: 1.45;
    color: #111111;
    margin-bottom: 0.4rem;
}

.profile-text:last-of-type {
    margin-bottom: 0;
}

.main-showreel-space {
    margin-top: 1rem;
}

/* ==========================================================================
   4. TECHNICAL STRUCTURE GRID & ASSET LAYOUTS
   ========================================================================== */
.tech-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tech-row {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 1rem;
    align-items: top;
    font-size: 0.88rem;
    line-height: 1.4;
}

.tech-label {
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.02em;
}

.tech-value {
    color: #111111;
}

/* Side-by-Side Gallery Controls */
.infrastructure-media-gallery {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.media-frame {
    width: 100%;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e5;
    display: block;
}

/* ==========================================================================
   5. CHRONOLOGICAL EXPERIENCE MATRIX
   ========================================================================== */
.experience-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.1rem;
}

.experience-block:last-child {
    margin-bottom: 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.role-company {
    color: #000000;
}

.timeline-date {
    font-weight: 700;
    color: #000000;
    font-size: 0.92rem;
}

.agency-client-sub {
    font-size: 0.88rem;
    font-style: italic;
    color: #333333;
    margin-bottom: 0.35rem;
}

/* Bullet Configuration */
.bullet-list {
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bullet-list li {
    font-size: 0.88rem;
    line-height: 1.4;
    color: #111111;
}

/* Native Bunny Stream Video Delivery Box Mechanics */
.video-delivery-wrapper {
    width: 100%;
    margin-top: 0.75rem;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background-color: #0a0a0c;
    aspect-ratio: 16 / 9; /* Enforces native container aspect preservation layout */
    position: relative;
}

.video-delivery-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==========================================================================
   6. RESPONSIVE COMPACT LAYOUT ENGINE (BREAKPOINT)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding: 0;
        background-color: #ffffff;
    }

    .resume-paper-canvas {
        padding: 1.5rem;
        box-shadow: none;
        gap: 1.5rem;
    }

    .resume-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .profile-photo-circle-frame {
        width: 100px;
        height: 100px;
    }

    .resume-name {
        font-size: 1.75rem;
    }

    .tech-row {
        grid-template-columns: 1fr;
        gap: 0.1rem;
        margin-bottom: 0.4rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }

    .infrastructure-media-gallery {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Physical Paper Print Optimization */
@media print {
    body {
        background-color: #ffffff;
        padding: 0;
    }
    .resume-paper-canvas {
        padding: 0;
        box-shadow: none;
    }
    .resume-header {
        border: none;
        padding: 0;
        background-color: transparent;
    }
    .video-delivery-wrapper, .infrastructure-media-gallery, .profile-photo-circle-frame {
        display: none; /* Keeps output document pristine when printed */
    }
}