.resume-layout {
    max-width: 1200px;
    margin: 6rem auto 2rem; /* Matches terminal-layout margin */
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.resume-container {
    width: 100%;
    background: linear-gradient(180deg, rgba(0,20,0,0.95), rgba(0,5,0,0.98));
    border: 1px solid rgba(0, 255, 0, 0.4);
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.2),
        inset 0 0 20px rgba(0, 255, 0, 0.1),
        0 8px 40px rgba(0, 0, 0, 0.5);
    border-radius: 12px; /* Consistent with id-panel */
    padding: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure content is above ::before circuit pattern */
}

.resume-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 255, 0, 0.02) 10px,
            rgba(0, 255, 0, 0.02) 20px
        );
    pointer-events: none;
    z-index: 0;
}

.resume-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    margin-bottom: 2rem;
    background: #070707; /* Match neon-card background */
    border: 1px solid rgba(0,255,0,0.12);
    box-shadow: 0 10px 40px rgba(0,255,0,0.06), inset 0 0 30px rgba(0,255,0,0.03);
    border-radius: 12px;
    padding: 1.5rem; /* Default padding */
}

.resume-header .avatar-wrap {
    margin-bottom: 1rem;
    margin-top: 0.5rem; /* Adjust margin to match id-card */
}

.resume-header .id-photo.avatar {
    width: 118px;
    height: 118px;
}

.resume-header .avatar-wrap::after {
    width: 132px;
    height: 132px;
}

.resume-header .contact-info {
    margin-top: 1rem;
    color: #9ef99e;
    font-size: 0.95rem;
    font-family: 'Space Mono', monospace;
}

.resume-header .contact-info p {
    margin: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resume-section {
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 0, 0.3); /* Match id-panel border */
    background: linear-gradient(135deg, rgba(0,10,0,0.9), rgba(0,5,0,0.95)); /* Match id-panel background */
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 0, 0.1),
        0 0 30px rgba(0, 0, 0, 0.3); /* Match id-panel shadow */
    border-radius: 12px;
}

.resume-section + .resume-section {
    margin-top: 2rem; /* Add space between subsequent sections */
}

.resume-section h2 {
    color: #7aff7a; /* Similar to meta-name */
    font-size: 1.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 0, 0.2);
    padding-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(122, 255, 122, 0.3);
}

.resume-section p,
.resume-section ul {
    color: #cdeccf; /* Similar to meta-role */
    font-size: 1rem;
    line-height: 1.8;
}

.resume-section ul {
    list-style-type: none; /* Remove default bullets */
    padding-left: 0;
    margin-left: 1.5rem; /* Indent for visual hierarchy */
}

.resume-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.resume-section ul li::before {
    content: '> '; /* Custom bullet point */
    color: #00ff41;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.resume-section strong {
    color: #98f398;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.skills-grid h3 {
    color: #44ffff; /* Cyan color */
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 5px rgba(68, 255, 255, 0.2);
}

.skills-grid ul {
    margin-left: 0; /* Remove extra indent */
    padding-left: 0; /* Remove extra indent */
}

.skills-grid ul li {
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.projects-list .project-item {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(0, 255, 0, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.projects-list .project-item h3 {
    color: #ffff44; /* Yellow color */
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 5px rgba(255, 255, 68, 0.2);
}

.projects-list .project-item p {
    font-size: 0.9rem;
    color: #aef9a9;
}

/* --- Media Queries for responsiveness --- */

/* For screens smaller than 992px (typical tablet landscape) */
@media (max-width: 992px) {
    .resume-layout {
        margin-top: 5rem; /* Slightly less top margin */
        padding: 0 1.5rem;
        gap: 1.5rem; /* Reduced gap between sections */
    }
    .resume-container {
        padding: 1.5rem;
    }
    .resume-header {
        padding: 1rem;
    }
    .resume-header .meta-name {
        font-size: 1.1rem;
    }
    .resume-header .meta-role {
        font-size: 0.95rem;
    }
    .resume-header .meta-sub {
        font-size: 0.8rem;
    }
    .resume-header .contact-info p {
        font-size: 0.9rem;
    }
    .resume-section h2 {
        font-size: 1.6rem;
    }
    .resume-section p,
    .resume-section ul {
        font-size: 0.95rem;
    }
    .skills-grid {
        gap: 1rem;
    }
    .skills-grid h3 {
        font-size: 1.1rem;
    }
    .skills-grid ul li {
        font-size: 0.9rem;
    }
    .projects-list .project-item h3 {
        font-size: 1.05rem;
    }
    .projects-list .project-item p {
        font-size: 0.85rem;
    }
}

/* For screens smaller than 768px (typical tablet portrait / large phone landscape) */
@media (max-width: 768px) {
    .resume-layout {
        margin-top: 4.5rem;
        padding: 0 1rem;
        gap: 1.2rem;
    }
    .resume-container {
        padding: 1.2rem;
    }
    .resume-header {
        padding: 0.8rem;
    }
    .resume-header .id-photo.avatar {
        width: 100px; /* Smaller avatar */
        height: 100px;
    }
    .resume-header .avatar-wrap::after {
        width: 114px; /* Adjust glow size */
        height: 114px;
    }
    .resume-header .meta-name {
        font-size: 1rem;
    }
    .resume-header .meta-role {
        font-size: 0.9rem;
    }
    .resume-header .meta-sub {
        font-size: 0.75rem;
    }
    .resume-header .contact-info p {
        font-size: 0.85rem;
    }
    .resume-section {
        padding: 1rem;
    }
    .resume-section h2 {
        font-size: 1.4rem;
    }
    .resume-section p,
    .resume-section ul {
        font-size: 0.9rem;
    }
    .skills-grid {
        grid-template-columns: 1fr; /* Stack skills categories on smaller screens */
        gap: 0.8rem;
    }
    .skills-grid h3 {
        font-size: 1rem;
    }
    .skills-grid ul li {
        font-size: 0.85rem;
    }
    .projects-list .project-item h3 {
        font-size: 1rem;
    }
    .projects-list .project-item p {
        font-size: 0.8rem;
    }
}

/* For screens smaller than 480px (typical phone portrait) */
@media (max-width: 480px) {
    .resume-layout {
        margin-top: 4rem;
        padding: 0 0.8rem;
        gap: 1rem;
    }
    .resume-container {
        padding: 1rem;
    }
    .resume-header {
        padding: 0.6rem;
    }
    .resume-header .id-photo.avatar {
        width: 80px; /* Even smaller avatar */
        height: 80px;
    }
    .resume-header .avatar-wrap::after {
        width: 90px;
        height: 90px;
    }
    .resume-header .meta-name {
        font-size: 0.9rem;
    }
    .resume-header .meta-role {
        font-size: 0.8rem;
    }
    .resume-header .meta-sub {
        font-size: 0.7rem;
    }
    .resume-header .contact-info p {
        font-size: 0.8rem;
        flex-direction: column; /* Stack contact info vertically */
        align-items: center; /* Align items to center */
        gap: 0.2rem;
    }
    .resume-section {
        padding: 0.8rem;
    }
    .resume-section h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    .resume-section p,
    .resume-section ul {
        font-size: 0.85rem;
    }
    .skills-grid {
        gap: 0.6rem;
    }
    .skills-grid h3 {
        font-size: 0.9rem;
    }
    .skills-grid ul li {
        font-size: 0.8rem;
    }
    .projects-list .project-item {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    .projects-list .project-item h3 {
        font-size: 0.9rem;
    }
    .projects-list .project-item p {
        font-size: 0.75rem;
    }
}