/* Resume/Portfolio Page Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-y: auto;
    overflow-x: hidden;
}

.resume-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    min-height: 100vh;
}

/* Header */
.resume-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #2563eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    padding: 1.5rem 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-top: -2rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.name {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #1e40af;
    background-color: rgba(37, 99, 235, 0.1);
}

.resume-action {
    background-color: #2563eb;
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.resume-action:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.resume-preview {
    background-color: #10b981;
}

.resume-preview:hover {
    background-color: #059669;
}

/* Main Content */
.resume-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Section Styles */
.resume-section {
    scroll-margin-top: 2rem;
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 2px;
}

.section-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Main column spans full width for some sections */
.resume-section.full-width {
    grid-column: 1 / -1;
}

/* Item Styles */
.resume-item {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.resume-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.item-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.25rem;
    display: block;
}

.project-link-icon {
    text-decoration: none;
    cursor: pointer;
    margin-left: 0.25rem;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-link-icon:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.external-icon-img {
    width: 0.9em;
    height: 0.9em;
    display: inline-block;
}

.item-subtitle {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 0.25rem;
    display: block;
    font-weight: 500;
}

.item-location {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 0.25rem;
    display: block;
}

.item-date {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 0.75rem;
    display: block;
    font-style: italic;
}

.item-description {
    color: #444444;
    line-height: 1.7;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.item-description ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 0 0;
}

.item-description ul li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.item-description ul li::before {
    content: '▸';
    color: #2563eb;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category-title {
    font-weight: 600;
    color: #1e40af;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: #e0e7ff;
    color: #3730a3;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #c7d2fe;
}

/* Facts Section (List Items) */
.facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.facts-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: #444444;
    font-size: 0.95rem;
    border-left: 3px solid #2563eb;
    background: #f8faff;
    border-radius: 4px;
}

.facts-list li:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 3px solid #2563eb;
    background: #f8faff;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

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

.contact-label {
    font-weight: 600;
    color: #1e40af;
    min-width: 80px;
    font-size: 0.9rem;
}

.contact-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .resume-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sidebar-column {
        position: static;
    }

    .resume-section {
        padding: 1.5rem;
    }

    .resume-header {
        padding: 1.5rem;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        margin-top: -2rem;
    }

    .resume-section.full-width {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .resume-container {
        padding: 2rem 1.5rem;
    }

    .name {
        font-size: 2.25rem;
    }

    .resume-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 3rem;
    }

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

    .item-title {
        font-size: 1.1rem;
    }

    .item-subtitle {
        font-size: 0.95rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .resume-container {
        padding: 1.5rem 1rem;
    }

    .name {
        font-size: 2rem;
    }

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

    .item-title {
        font-size: 1.05rem;
    }

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

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

