/* ==========================================================================
   1. GLOBAL VARIABLES & BASE BACKGROUND SETUP
   ========================================================================== */
body {
    background-image: url("trees.jpg");
    background-attachment: fixed; 
    background-position: center;  
    background-repeat: no-repeat; 
    background-size: cover;       

    background-color: #121212;    
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ==========================================================================
   2. HEADER ARCHITECTURE
   ========================================================================== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem 2rem;
    border-bottom: 1px solid #2d2d2d;
}

.my-name {
    font-size: 3.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.1rem 0; 
    letter-spacing: -0.04em; 
    line-height: 1.1;
}

.job-title {
    font-size: 1.35rem;
    color: #d35400;
    margin: 0;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.header-right a, .location, .clearance-level, .education-level {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;  
    align-items: center;
    justify-content: flex-end; /* NEW: Aligns the inner content to the right edge */
    text-align: right;         /* NEW: Right-aligns the text nodes */
    gap: 0.5rem;           
    transition: color 0.15s ease;
    width: 100%;
}

/* Adjust the icon margins since they are now on the right side */
.clearance-level i, .education-level i, .location i, .header-right a i, .btn-copy-email i {
    font-size: 0.95rem;
    width: 16px;           
    text-align: center;
    margin-left: 0.1rem;       /* NEW: Adds subtle breathing room between text end and icon start */
}

.header-right a:hover {
    color: #d35400;
}

.btn-copy-email {
    background: none;
    border: none;
    padding: 0;
    color: #a0a0a0;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    
    /* ADDED: Forces the button to act as a proper inline-flex block matching the other rows */
    display: inline-flex;  
    align-items: center;
    
    /* ADDED: Locks the content directly to the right margin wall */
    justify-content: flex-end; 
    text-align: right;
    
    /* ADDED: Forces full width usage within the parent block to prevent text drift */
    width: 100%;               
    gap: 0.5rem;
    transition: color 0.15s ease;
}

.btn-copy-email:hover {
    color: #d35400;
}

.copied-status {
    color: #d35400;
    font-weight: 700;
    font-family: monospace;
    margin-right: 0.25rem;
    animation: fadeReveal 0.2s ease forwards;
}

.pulse-active {
    animation: textPulse 2s ease infinite;
}

/* ==========================================================================
   3. MAIN CONTENT LAYOUT ARCHITECTURE
   ========================================================================== */
.main-content-container {
    display: flex;
    flex-direction: column;     
    width: 100%;
    max-width: 1100px; 
    margin: 0 auto;
    padding: 4rem 2rem 8rem 2rem; 
    gap: 2rem; 
}

.resume-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    position: relative;
}

/* ==========================================================================
   4. TIMELINE TRACK ELEMENTS
   ========================================================================== */
.row-timeline-track {
    width: 110px;               
    position: relative;         
    flex-shrink: 0;
    margin-right: 2rem;         
    display: flex;
    flex-direction: column;
    justify-content: center;    
    align-items: flex-start;    
    align-self: stretch;
}

.track-line {
    position: absolute;
    left: 0;
    top: -1rem;
    bottom: -1rem;
    width: 4px;
    background-color: #2d2d2d;  
    transition: background-color 0.25s ease;
}

.card-date {
    display: flex;
    flex-direction: column;     
    gap: 0.2rem;                
    margin: 0;                  
    padding-left: 20px;         
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #d35400;             
    white-space: nowrap;
    opacity: 0;                 
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(0.9);      
}

.card-date span:nth-child(2) { order: 3; }
.card-date span:nth-child(1) { order: 1; }

.card-date::after {
    content: "▲";               
    display: block;
    order: 2;                   
    text-align: center;         
    font-size: 0.7rem;         
    color: #d35400;             
    margin: 0.1rem 0;           
    line-height: 1;
}

.resume-row:hover .track-line {
    background-color: #d35400;  
}

.resume-row:hover .card-date {
    opacity: 1;                 
    transform: scale(1);     
}

/* ==========================================================================
   5. JOB CARDS COMPONENT
   ========================================================================== */
.job-card {
    background-color: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 6px;
    padding: 2rem;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.job-card:hover {
    border-color: #d35400;      
    transform: translateY(-2px);
}

.job-card-header {
    flex: 1;
}

.job-card-header h2 {
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.job-card-header h3 {
    font-size: 1.1rem;
    color: #a0a0a0;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
}

.job-card-header h3.job-card-agency {
    color: #d35400;             
    font-size: 1rem;            
    font-weight: 700;           
    margin: 0 0 0.25rem 0;      
    letter-spacing: 0.03em;
}

.job-card-location {
    display: block;
    font-size: 0.9rem;
    color: #666666;
}

/* ==========================================================================
   6. CLEAN INLINE SKILL LAYOUT
   ========================================================================== */
.job-card-skills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;       
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem 1.2rem;   
    padding: 0.5rem 0;
    max-width: 500px;      
    width: 100%;
    flex-shrink: 0;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    background: none;      
    color: #e0e0e0;
    font-family: monospace;
    font-size: 0.85rem;    
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.skill-pill i {
    color: #d35400;        
    font-size: 0.75rem;    
    margin-right: 0.4rem;  
}

/* ==========================================================================
   7. FULL-SCREEN EXPERIENCE MODALS
   ========================================================================== */
.full-screen-job-modal {
    background-color: rgba(18, 18, 18, 0.98);
    border: none;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    color: #e0e0e0;
}

.full-screen-job-modal:focus {
    outline: none;
}

.modal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
}

.btn-close-modal {
    position: absolute;
    top: 3rem;
    right: 2rem;
    background: none;
    border: none;
    padding: 0;
    color: #a0a0a0;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.btn-close-modal:focus {
    outline: none;
    caret-color: transparent;
}

.btn-close-modal:hover {
    color: #d35400;
    text-shadow: 0 0 8px rgba(211, 84, 0, 0.8), 0 0 20px rgba(211, 84, 0, 0.4);
}

.modal-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.modal-header h2 {
    font-size: 1.2rem;
    color: #a0a0a0;
    font-weight: 400;
    margin: 0 0 3rem 0;
}

.accent-orange {
    color: #d35400;
    font-family: monospace;
    font-weight: 700;
}

.modal-body-content h3 {
    font-size: 1.3rem;
    color: #ffffff;
    border-bottom: 1px solid #2d2d2d;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-body-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-body-content li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: #b0b0b0;
}

.modal-body-content li::before {
    content: "";                
    position: absolute;
    left: 0;
    top: 0.35rem;                
    width: 14px;                
    height: 14px;
    background-image: url("code-simple2.svg");
    background-repeat: no-repeat;
    background-size: contain;   
    background-position: center;
}

/* ==========================================================================
   8. FOOTER ACTION SPACE
   ========================================================================== */
.bottom-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid #2d2d2d;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #d35400;
}

/* NEW: Layout wrapper that sits the logos and download button side-by-side */
.footer-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem; /* Distinct separation space between the logo cluster and the button */
}

/* NEW: Alignment grid for the images */
.cert-logos-container {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Space between each individual logo */
}

/* NEW: Controls sizing and prevents image blowing out the footer size */
.cert-logo {
    height: 38px;       /* Constrains the height uniformly so different shapes look balanced */
    width: auto;        /* Allows the width to scale proportionally to prevent distortion */
    object-fit: contain;
    opacity: 0.85;      /* Subtle blend into the dark theme */
    transition: opacity 0.15s ease;
}
.cert-logo:hover {
    opacity: 1;         /* Lights up cleanly on hover */
}
.btn-download-footer {
    background-color: #d35400;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-download-footer:hover {
    background-color: #e67e22;
    transform: translateY(-1px);
}

/* ==========================================================================
   9. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeReveal {
    from { opacity: 0; transform: translateX(-4px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes textPulse {
    0% { color: #a0a0a0; }
    25% { color: #d35400; text-shadow: 0 0 8px rgba(211, 84, 0, 0.5); }
    50% { color: #ffffff; text-shadow: 0 0 12px rgba(255, 255, 255, 0.6); }
    75% { color: #d35400; text-shadow: 0 0 8px rgba(211, 84, 0, 0.5); }
    100% { color: #a0a0a0; }
}

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZATION)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .main-content-container { 
        padding: 2rem 1rem 6rem 1rem; 
        gap: 1.5rem; 
    }
    .resume-row { 
        flex-direction: column; 
        gap: 0.5rem; 
    }
    .row-timeline-track { 
        width: 100%; 
        height: auto; 
        margin-right: 0; 
        align-items: flex-start; 
        padding-left: 0; 
    }
    .track-line { 
        display: none; 
    }
    
    .card-date {
        position: static;
        opacity: 1;
        transform: scale(1);
        padding-left: 0;
        flex-direction: row;
        gap: 0.5rem;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    .card-date::after { content: "▼"; order: 2; margin: 0 0.2rem; }
    .card-date span:nth-child(1) { order: 1; }
    .card-date span:nth-child(2) { order: 3; }

    .job-card { 
        flex-direction: column; 
        align-items: flex-start; 
        padding: 1.5rem; 
        gap: 1.5rem; 
    }
    
    .job-card-skills { 
        align-self: flex-start; 
        margin-top: 0.5rem; 
        max-width: 100%;
    }
    
    .my-name { font-size: 1.8rem; }
    .site-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .header-right { align-items: flex-start; width: 100%; }
    .bottom-action-bar { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
}