/* Resume/Career Section */

.resume-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .resume-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.resume-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.resume-category-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-medium);
}

.resume-category-title .icon {
    color: var(--contrast);
    width: 24px;
    height: 24px;
}

/* Modern Card Style */
.resume-item {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: var(--space-lg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    gap: var(--space-md);
    align-items: flex-start;
    backdrop-filter: blur(10px);
}

/* Hover Effects */
.resume-item:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(232, 26, 26, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(232, 26, 26, 0.1);
}

/* Accent flash on hover */
.resume-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(232, 26, 26, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.resume-item:hover::after {
    opacity: 1;
}

/* Logo Styles */
.resume-logo {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #0a0f0a;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Subtle inner border using box-shadow */
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
    z-index: 1;
    transition: transform 0.3s ease;
}

.resume-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    filter: saturate(0.9);
    transition: filter 0.3s ease;
}

.resume-item:hover .resume-logo {
    transform: scale(1.05);
}

.resume-item:hover .resume-logo img {
    filter: saturate(1.1);
}

/* Content Layout */
.resume-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 1; /* Above the gradient background */
}

/* Institution Name */
.resume-institution-name {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted); /* Darker grey */
    font-weight: 500;
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}

.resume-item:hover .resume-institution-name {
    color: var(--contrast);
}

/* Role Group */
.resume-role-group {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 0;
}

/* Connecting line for multiple roles within same company */
.resume-role-group:not(:last-child) {
    margin-bottom: var(--space-lg);
    padding-bottom: 2px;
}

/* The vertical line connecting dots */
.resume-content .resume-role-group:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 4px; /* Shifted slightly */
    top: 2rem; 
    bottom: -1.5rem;
    width: 2px;
    background: var(--border-medium);
    border-radius: 2px;
}

/* Role Title */
.resume-role-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

/* Date Tag */
.resume-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    opacity: 0.9;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.resume-date svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.resume-item:hover .resume-date {
    background: rgba(232, 26, 26, 0.1);
    border-color: rgba(232, 26, 26, 0.2);
    color: #ffd1d1;
}

/* Mobile adjustment */
@media (max-width: 480px) {
    .resume-item {
        flex-direction: column;
    }
    .resume-logo {
        margin-bottom: var(--space-xs);
        width: 48px;
        height: 48px;
    }
    
    .resume-content .resume-role-group:not(:last-child)::before {
        display: none; /* Hide timeline line on mobile if stacks */
    }
}


/* Animation utilities are handled by animations.css */
/* We use .stagger-children on the container or .fade-up on items */
