/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    max-width: 640px;
    margin: 0 1rem;
    padding: 3rem 3rem;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Header */
header {
    margin-bottom: 48px;
}

header h1 {
    font-size: 1.6rem;
    font-weight: 400;
    color: #000;
}

/* Sections */
section {
    margin-bottom: 48px;
}

section h2 {
    font-size: 0.96rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

section p {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 16px;
    max-width: 480px;
}

/* About section */
.about p {
    line-height: 1.7;
}

/* Links in more on section */
.more-on a {
    color: #2d34eb;
    text-decoration: none;
}

.more-on a:visited {
    color: #2d34eb;
}

.more-on a:hover {
    color: #dfdddd;
}


/* Consulting section styles */

.consulting-item-title {
    font-size: 0.84rem;
    font-weight: 400;
    color: #000;
    margin: 0;
    /* text-transform: uppercase; */
    /* letter-spacing: 0.5px; */
}
.consulting-item-title:hover {
    color: #dfdddd;
}

.consulting-item-description {
    margin: 0;
}

/* Career section styles */


.experience-item-title {
    font-size: 0.94rem;
    font-weight: 400;
    margin-bottom: 4px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.experience-item-date {
    font-size: 0.96rem;
    font-weight: 500;
    margin-bottom: 32px;
    margin-left: 16px;
    color: #000;
    text-align: right;
}

/* Education section styles */

.education-item-title {
    font-size: 0.94rem;
    font-weight: 400;
    margin-bottom: 4px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}


/* Projects */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-item {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 24px;
    align-items: center;
    scroll-margin-top: 24px;
}

.project-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-item h3 {
    font-size: 0.8rem;
    font-weight: 500;
    color: #000;
}

.project-summary {
    margin: 0;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.7;
}

.project-links {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-media {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f5f5;
    box-shadow: 0 8px 20px rgba(45, 52, 235, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-media:hover,
.project-media:focus {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(45, 52, 235, 0.18);
}

.project-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* Portfolio page */
.portfolio-page a {
    color: #2d34eb;
    text-decoration: none;
}

.portfolio-page a:visited {
    color: #2d34eb;
}

.portfolio-page a:hover,
.portfolio-page a:focus-visible {
    color: #dfdddd;
}

/* Contact */
.contact-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-links a {
    color: #000;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: #666;
}

/* Resume page */
.resume-page {
    max-width: 720px;
}

.resume-page header p a {
    color: #2d34eb;
    text-decoration: none;
    font-size: 0.8rem;
}

.resume-page header p a:hover {
    color: #dfdddd;
}

.contact-line {
    font-size: 0.8rem;
    color: #333;
    line-height: 1.7;
}

.contact-line a {
    color: #2d34eb;
    text-decoration: none;
}

.contact-line a:hover { color: #dfdddd; }

.resume-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resume-bullets li {
    font-size: 0.8rem;
    color: #333;
    line-height: 1.7;
    position: relative;
    padding-left: 16px;
}

.resume-bullets li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: #2d34eb;
    font-weight: 700;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.stat-num {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2d34eb;
}

.stat-label {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.4;
}

.skill-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}

.skill-grid li {
    font-size: 0.8rem;
    color: #333;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.exp-item {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.exp-item:last-child {
    border-bottom: none;
}

.exp-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 6px;
}

.exp-head h3 {
    font-size: 0.86rem;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.exp-meta {
    font-size: 0.74rem;
    color: #666;
    white-space: nowrap;
}

.exp-company {
    font-size: 0.78rem;
    color: #666;
    margin: 0 0 6px 0;
}

.exp-role {
    font-size: 0.8rem;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.edu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edu-list li {
    font-size: 0.8rem;
    color: #333;
    line-height: 1.6;
}

.stack-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 6px 16px;
}

.stack-list dt {
    font-size: 0.76rem;
    color: #000;
    font-weight: 500;
}

.stack-list dd {
    font-size: 0.8rem;
    color: #333;
    margin: 0;
}

.resume-footer-cta {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.resume-footer-cta a {
    color: #2d34eb;
    text-decoration: none;
    font-size: 0.8rem;
}

.resume-footer-cta a:hover { color: #dfdddd; }

/* Mobile styles */
@media (max-width: 768px) {
    body {
        padding: 16px 12px;
    }
    
    header {
        margin-bottom: 32px;
    }
    
    header h1 {
        font-size: 1.44rem;
    }
    
    section {
        margin-bottom: 32px;
    }
    
    section h2 {
        font-size: 0.88rem;
    }
    
    .project-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-media {
        order: -1;
    }

    .contact-links {
        flex-direction: column;
        gap: 12px;
    }

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }

    .exp-head {
        flex-direction: column;
        gap: 2px;
    }

    .exp-meta { white-space: normal; }

    .stack-list {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }

    .stack-list dt { margin-top: 8px; }
}

@media (max-width: 480px) {
    body {
        padding: 12px 8px;
    }
    
    header h1 {
        font-size: 1.28rem;
    }
    
    section h2 {
        font-size: 0.8rem;
    }
    
    section p {
        font-size: 0.76rem;
    }
}