:root {
    --primary-color: #1a1a1a;
    --secondary-color: #444;
    --accent-color: #007bff;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --card-bg: #fff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-sm: 10px;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    background: var(--card-bg);
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
}

/* Header */
.resume-header {
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.header-content {
    /* Centering header for a more classic resume feel if desired, or keep left aligned */
}

.name {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.title {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.summary {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: 0.95rem;
    margin-top: 15px;
}

.contact-info a,
.contact-info span {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* Sections */
.section {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

/* Experience Timeline */
.timeline-item {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-md);
    border-left: 2px solid #eee;
    margin-left: 20px;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.timeline-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.company-logo,
.company-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(6) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(7) {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.role {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.company {
    font-weight: 600;
    color: var(--text-color);
    padding-right: 15px;
}

.timeline-header .location {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-right: auto;
}

.date {
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
    font-weight: 500;
}

.description-list {
    padding-left: 20px;
    color: var(--text-color);
}

.description-list li {
    margin-bottom: 5px;
    padding-left: 5px;
}

/* Skills */
.skills-category {
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #f1f3f5;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    border: 1px solid #e9ecef;
}

/* Certifications */
.cert-list {
    margin-top: 0.5rem;
}

.cert-item {
    padding: 5px 0;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Education Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.card {
    padding-left: var(--spacing-md);
    border-left: 2px solid #eee;
    margin-left: 5px;
}

.degree {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.school {
    display: block;
    color: var(--text-color);
    margin-top: 5px;
}

.location {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
.resume-footer {
    border-top: 1px solid #eee;
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.print-btn {
    background: none;
    border: 1px solid var(--text-light);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-light);
    font-family: var(--font-body);
    transition: all 0.2s;
}

.print-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Print Styles */
@media print {
    body {
        background: white;
        font-size: 12px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .print-btn,
    .resume-footer p {
        display: none;
    }

    .resume-footer {
        border: none;
        margin: 0;
        padding: 0;
    }

    a {
        text-decoration: none;
        color: black;
    }

    .section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }

    .timeline-item {
        page-break-inside: avoid;
    }

    .skill-tag {
        border: none;
        padding: 0;
        margin-right: 15px;
    }

    .skills-list {
        display: flex;
        flex-wrap: wrap;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 25px;
        margin: 0;
    }

    .header-content {
        text-align: left;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
    }

    .timeline-header {
        flex-direction: column;
    }

    .company {
        margin-left: 0;
        margin-bottom: 5px;
    }

    .resume-footer {
        flex-direction: column;
        gap: 15px;
    }
}