/* Universal Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #0f172a; /* Deep dark blue/grey background */
    color: #cbd5e1; /* Soft off-white text */
    padding: 40px 20px;
}

/* Base Container */
.resume-container {
    max-width: 800px;
    margin: 0 auto;
    background: #1e293b; /* Dark card background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Header Styling */
.resume-header {
    border-bottom: 2px solid #334155;
    padding-bottom: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.resume-header h1 {
    font-size: 2.5rem;
    color: #f8fafc; /* Crisp white for the name */
    margin-bottom: 5px;
}

.job-title {
    font-size: 1.2rem;
    color: #2dd4bf; /* Vibrant teal accent */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.contact-info {
    font-size: 0.9rem;
    color: #94a3b8; /* Muted slate for contact text */
}

/* Layout Grid */
.resume-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Section Typo */
.resume-section {
    margin-bottom: 30px;
}

.resume-section h2 {
    font-size: 1.3rem;
    color: #f8fafc;
    border-bottom: 1px solid #334155;
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Experience & Education Items */
.experience-item, .education-item {
    margin-bottom: 20px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-header h3 {
    font-size: 1.1rem;
    color: #e2e8f0;
}

.date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
}

.company, .school {
    font-weight: 600;
    color: #2dd4bf; /* Matching teal accent */
    margin-bottom: 8px;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Skills Badges */
.skills-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skills-list li {
    background: #115e59; /* Dark teal background for badges */
    color: #ccfbf1; /* Light teal text for badges */
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Responsive design for Mobile Screens */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .resume-container {
        padding: 20px;
    }
    .resume-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .item-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Print optimizations for PDF saving */
@media print {
    body {
        background: none;
        color: #000000; /* Force dark text for printing */
        padding: 0;
    }
    .resume-container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }
    .skills-list li {
        border: 1px solid #115e59; /* Add borders since background colors might not print */
    }
    /* Prevents sections from breaking awkwardly across pages */
    .resume-section, .experience-item {
        page-break-inside: avoid; 
    }
}

