/* Modern Professional CV Stylesheet */

:root {
    --primary-navy: #6D94C5;
    --light-navy: #6D94C5;
    --secondary-color: #1f2937;
    --accent-color: #6D94C5;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #E8DFCA;
    --bg-light: #CBDCEB;
    --bg-white: #F5EFE6;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: #E8DFCA;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: var(--primary-navy);
    position: relative;
    color: white;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(109, 148, 197, 0.1) 100%);
    pointer-events: none;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(109, 148, 197, 0.3);
}

.contact-item svg {
    flex-shrink: 0;
}

.section {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.75rem;
    color: var(--primary-navy);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--light-navy);
    display: inline-block;
    font-weight: 700;
}

.timeline-item {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--light-navy);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--bg-white), 0 0 0 6px var(--border-color);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-left-color: var(--light-navy);
    background: rgba(109, 148, 197, 0.02);
    border-radius: 8px;
}

.timeline-item:hover::before {
    background: var(--primary-navy);
    transform: scale(1.4);
    box-shadow: 0 0 0 3px var(--bg-white), 0 0 0 6px var(--light-navy);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1.5rem;
}

.company,
.degree-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.department,
.institution {
    color: var(--light-navy);
    font-weight: 600;
    font-size: 1.05rem;
}

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

.meta {
    text-align: right;
    min-width: 180px;
    flex-shrink: 0;
}

.period {
    display: block;
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

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

.description {
    color: var(--text-color);
    line-height: 1.8;
    text-align: justify;
}

.description strong {
    color: var(--primary-navy);
    font-weight: 600;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
}

.two-column .section {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
}

.two-column .section:last-child {
    border-right: none;
}

.simple-list {
    list-style: none;
    padding: 0;
}

.simple-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.simple-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--light-navy);
    font-weight: bold;
}

.cert-link {
    color: var(--light-navy);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.cert-link:hover {
    color: var(--primary-navy);
    border-bottom-color: var(--primary-navy);
}

.publications-list {
    list-style: decimal;
    padding-left: 2rem;
}

.publications-list li {
    padding: 0.75rem 0;
    line-height: 1.8;
    color: var(--text-color);
}

.publications-list em {
    font-style: italic;
    color: var(--text-color);
}

.footer {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .container {
        border-radius: 8px;
    }

    .header {
        padding: 2rem 1.5rem;
    }

    .name {
        font-size: 1.75rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .timeline-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .meta {
        text-align: left;
        min-width: auto;
    }

    .company,
    .degree-title {
        font-size: 1.15rem;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .two-column .section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .two-column .section:last-child {
        border-bottom: none;
    }

    .timeline-item {
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.5rem;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }
}

@media print {
    body {
        background: #F5EFE6;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    .header {
        background: var(--primary-navy);
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

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

    .section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: none;
    }

    .contact-item:hover,
    .timeline-item:hover {
        transform: none;
    }
}
