/* Portfolio Resume Styles - Visual Card-Based Design with Microsoft Branding */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --ms-blue: #0078D4;
    --ms-blue-dark: #005A9E;
    --ms-green: #107C10;
    --ms-orange: #D83B01;
    --ms-purple: #5C2D91;
    --ms-teal: #008272;
    --ms-gray-dark: #201F1E;
    --ms-gray-medium: #605E5C;
    --ms-gray-light: #F3F2F1;
    --ms-linkedin: #0077B5;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 4px 16px rgba(0, 120, 212, 0.2);
}

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

body {
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--ms-gray-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 120, 212, 0.05) 0%, 
        rgba(92, 45, 145, 0.05) 50%, 
        rgba(0, 130, 114, 0.05) 100%);
    z-index: -1;
    pointer-events: none;
}

.resume-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem; /* Further reduced for 3-page target */
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* Header Styles */
.resume-header {
    text-align: center;
    background: linear-gradient(135deg, var(--ms-blue) 0%, var(--ms-purple) 100%);
    color: white;
    padding: 3rem 2rem;
}

h1 {
    font-family: 'Crimson Text', 'Georgia', serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-family: 'Crimson Text', 'Georgia', serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    font-style: italic;
}

.availability-callout {
    font-size: 15px;
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.contact-info {
    font-size: 16px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-info span {
    margin: 0 1rem;
    display: inline-block;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ms-blue);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.linkedin-link svg {
    fill: currentColor;
}

.portfolio-link svg {
    fill: currentColor;
}

/* Section Styles */
.resume-section {
    position: relative;
}

h2 {
    font-family: 'Crimson Text', 'Georgia', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--ms-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--ms-blue);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--ms-purple);
}

h3 {
    font-family: 'Crimson Text', 'Georgia', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ms-gray-dark);
    margin-bottom: 0.4rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.1) 0%, rgba(92, 45, 145, 0.1) 100%);
    border-left: 4px solid var(--ms-blue);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Competency Grid */
.competency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.competency-card {
    background: var(--ms-gray-light);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--ms-blue);
    transition: all 0.3s ease;
}

.competency-card:hover {
    border-left-color: var(--ms-purple);
    transform: translateX(4px);
}

.competency-card h3 {
    font-size: 16px;
    color: var(--ms-blue);
    margin-bottom: 0.75rem;
}

.competency-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ms-gray-medium);
}

/* Awards Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.award-card {
    background: linear-gradient(135deg, var(--ms-gray-light) 0%, white 100%);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.award-card:hover {
    border-color: var(--ms-blue);
    transform: translateY(-4px);
}

.award-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.award-card h3 {
    font-size: 16px;
    color: var(--ms-blue);
    margin-bottom: 0.5rem;
}

.award-year {
    font-size: 14px;
    color: var(--ms-purple);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.award-card p:last-child {
    font-size: 13px;
    color: var(--ms-gray-medium);
    line-height: 1.5;
}

/* Job Cards */
.job-card {
    background: var(--ms-gray-light);
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 5px solid var(--ms-blue);
    transition: all 0.3s ease;
}

.job-card:hover {
    border-left-color: var(--ms-purple);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.job-header h3 {
    font-size: 20px;
    color: var(--ms-blue);
    margin-bottom: 0.25rem;
}

.company {
    font-size: 15px;
    color: var(--ms-gray-medium);
    font-style: italic;
}

.date-badge {
    background: var(--ms-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.promotion-badge {
    background: var(--ms-green);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.achievement-list {
    list-style: none;
    padding-left: 0;
}

.achievement-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    line-height: 1.5;
}

.achievement-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--ms-blue);
    font-weight: bold;
}

.metric {
    color: var(--ms-purple);
    font-weight: 700;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-card {
    background: linear-gradient(135deg, white 0%, var(--ms-gray-light) 100%);
    padding: 1.75rem;
    border-radius: 12px;
    border: 2px solid var(--ms-gray-light);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--ms-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 120, 212, 0.15);
}

.project-icon {
    font-size: 56px;
    margin-bottom: 1rem;
    text-align: center;
}

.project-card h3 {
    font-size: 20px;
    color: var(--ms-blue);
    margin-bottom: 0.75rem;
    text-align: center;
}

.project-desc {
    font-size: 14px;
    color: var(--ms-gray-medium);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.metric-badge {
    background: var(--ms-purple);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.tech-stack {
    font-size: 13px;
    color: var(--ms-gray-medium);
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ms-gray-light);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.tech-category {
    background: var(--ms-gray-light);
    padding: 1.5rem;
    border-radius: 10px;
}

.tech-category h3 {
    font-size: 16px;
    color: var(--ms-blue);
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: white;
    color: var(--ms-gray-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 13px;
    border: 1px solid var(--ms-blue);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--ms-blue);
    color: white;
}

/* Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.education-card {
    background: var(--ms-gray-light);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.education-card:hover {
    border-color: var(--ms-blue);
    transform: translateY(-2px);
}

.degree-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.education-card h3 {
    font-size: 18px;
    color: var(--ms-blue);
    margin-bottom: 0.5rem;
}

.institution {
    font-size: 16px;
    color: var(--ms-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.details {
    font-size: 14px;
    color: var(--ms-gray-medium);
}

/* Certifications */
.certifications {
    margin-top: 2rem;
}

.certifications h3 {
    font-size: 20px;
    color: var(--ms-blue);
    margin-bottom: 1rem;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cert-tag {
    background: linear-gradient(135deg, var(--ms-blue) 0%, var(--ms-purple) 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cert-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 120, 212, 0.3);
}

.cert-tag.in-progress {
    background: linear-gradient(135deg, var(--ms-orange) 0%, var(--ms-purple) 100%);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .resume-container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .contact-info span {
        display: block;
        margin: 0.25rem 0;
    }
    
    .job-header {
        flex-direction: column;
    }
    
    .date-badge {
        align-self: flex-start;
    }
}

@media print {
    body {
        background: white;
    }
    
    .background-gradient {
        display: none;
    }
    
    .card {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .card:hover {
        transform: none;
    }
}


/* Project Detail Sections (Problem-Solution-Impact) */
.project-detail-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 120, 212, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--ms-blue);
}

.detail-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ms-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.detail-text {
    font-size: 14px;
    color: var(--ms-gray-dark);
    line-height: 1.6;
    margin: 0;
}

.detail-text strong {
    color: var(--ms-purple);
    font-weight: 700;
}
