:root {
    --bg-dark: #0f0f0f;
    --bg-light: #1c1c1c;
    --text-primary: #e0e0e0;
    --text-secondary: #9a9a9a;
    --accent: #2c7be5;
    --hover-accent: #5e95e8;
    --line-color: #2b2b2b;
}

body {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 2rem;
}

.resume-container {
    max-width: 8.5in;
    margin: 0 auto;
    padding: 1in;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-light);
    border-radius: 8px;
}

/* Header and Contact Info */
.contact-info {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 1rem;
}

.contact-info h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--text-primary);
}

.contact-info p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--hover-accent);
}

/* Sections and Headings */
.section {
    margin-bottom: 2rem;
}

h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    color: var(--accent);
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* General Entry Styling */
.entry {
    margin-bottom: 1.5rem;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.entry-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
}

.entry-header .date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.subtitle {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0.2rem 0 0.5rem;
}

.gpa {
    color: var(--accent);
    font-style: normal;
    font-weight: bold;
}

.bullet-list {
    list-style-type: '— ';
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.bullet-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

.skills-grid h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 0.2rem;
}

.skills-grid p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    body {
        padding: 1rem; /* Reduce overall padding on smaller screens */
    }

    .resume-container {
        padding: 1rem; /* Reduce the resume container's padding */
        box-shadow: none; /* Remove box shadow for a cleaner look */
        max-width: 100%; /* Allow it to take up the full width */
    }
    
    .contact-info {
        margin-bottom: 1rem;
    }
    
    .contact-info h1 {
        font-size: 2rem; /* Make the name smaller for mobile */
    }

    .contact-info p {
        font-size: 0.8rem;
    }
    
    /* Stack the skills grid into a single column for mobile readability */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Ensure entry headers wrap nicely on small screens */
    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .entry-header .date {
        font-size: 0.8rem;
    }

    .entry-header h3 {
        font-size: 1rem;
    }
}


/* Print Optimization */
@media print {
    body {
        background: #fff;
        color: #000;
        padding: 0;
    }
    .resume-container {
        box-shadow: none;
        padding: 0;
        background-color: #fff;
    }
    .contact-info, .entry-header h3, .bullet-list li, .subtitle, .skills-grid p {
        color: #000 !important;
    }
    h2 {
        border-color: #000 !important;
        color: #000 !important;
    }
    .contact-info a {
        color: #000 !important;
        text-decoration: underline;
    }
}