*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, 'Apple Color Emoji', Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
    padding: 72px 20px 32px;
    position: relative;
    min-height: 100vh;
}


/* Background animation removed */

.container {
    position: relative;
    z-index: 1;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

/* Large screens (1024px and above) */
@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

/* Medium screens (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    body {
        padding: 64px 24px 32px;
    }

    .container {
        max-width: 100%;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px 24px;
    }
}

.header {
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    flex-direction: column;
}


h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
    line-height: 1.2;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 24px;
}

.contact-link {
    font-size: 15px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

.summary {
    padding: 0;
    margin-top: 20px;
}

.summary-text {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    max-width: 100%;
}

.section {
    margin-bottom: 48px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1e293b;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(30, 41, 59, 0.15);
}

.experience-item,
.project-item {
    margin-bottom: 32px;
    padding-left: 24px;
    border-left: 3px solid #cbd5e1;
    position: relative;
}

.project-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 9px;
    height: 9px;
    background: #64748b;
    border-radius: 50%;
    border: 2px solid #f8fafc;
}

.experience-title,
.project-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0f172a;
    line-height: 1.4;
    margin-top: -2px;
}

.project-description {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.project-description p {
    margin: 0 0 8px;
}

.project-description p:last-child {
    margin-bottom: 0;
}

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

.experience-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
}

.experience-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #1e293b;
    font-weight: bold;
}

.education-timeline {
    position: relative;
}

.education-item {
    border: none;
    padding: 0 0 16px;
    margin-bottom: 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    padding-left: 32px;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
}

.education-item::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 18px;
    width: 2px;
    height: calc(100% + 8px);
    background: rgba(96, 165, 250, 0.3);
}

.education-item:last-child::after {
    display: none;
}

.education-duration {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 4px;
}

.education-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 28px;
}

.skill-item {
    position: relative;
    padding-left: 20px;
    font-size: 16px;
}

.skill-item::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: #1e293b;
    font-weight: bold;
}

.certificate-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
}

.certificate-list li {
    margin-bottom: 0;
    position: relative;
    flex: 0 0 auto;
}

.certificate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    max-width: 140px;
}

.certificate-item:hover {
    opacity: 0.8;
    text-decoration: none;
}

.certificate-image {
    width: 120px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    object-fit: cover;
}

.certificate-image {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.certificate-title {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.certificate-item:hover .certificate-title {
    text-decoration: underline;
}

/* Tablet and below (768px) */
@media (max-width: 768px) {
    body {
        padding: 60px 20px 32px;
    }

    h1 {
        font-size: 32px;
        margin-bottom: 16px;
    }


    h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .header {
        margin-bottom: 32px;
    }

    .contact-info {
        gap: 12px 20px;
        margin-bottom: 20px;
    }

    .contact-link {
        font-size: 14px;
    }

    .summary-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .section {
        margin-bottom: 32px;
    }

    .project-item,
    .experience-item {
        padding-left: 20px;
        border-left-width: 2px;
        margin-bottom: 24px;
    }

    .project-item::before {
        left: -5px;
        width: 8px;
        height: 8px;
    }

    .project-title,
    .experience-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .project-description {
        font-size: 14px;
        line-height: 1.65;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 20px;
    }

    .skill-item {
        font-size: 15px;
        padding-left: 18px;
    }

    .education-item {
        padding-left: 28px;
    }

    .education-duration {
        font-size: 13px;
    }

    .education-title {
        font-size: 14px;
    }

    .certificate-list {
        gap: 16px;
        justify-content: center;
    }

    .certificate-item {
        max-width: 120px;
        gap: 10px;
    }

    .certificate-image {
        width: 100px;
    }

    .certificate-title {
        font-size: 12px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    body {
        padding: 56px 16px 28px;
    }

    .contact-info {
        justify-content: center;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 16px;
        line-height: 1.2;
    }


    h2 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .header {
        margin-bottom: 28px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 18px;
    }

    .contact-link {
        font-size: 14px;
        padding: 8px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .summary-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .section {
        margin-bottom: 28px;
    }

    .project-item,
    .experience-item {
        padding-left: 18px;
        border-left-width: 2px;
        margin-bottom: 24px;
    }

    .project-item::before {
        left: -5px;
        width: 7px;
        height: 7px;
    }

    .project-title,
    .experience-title {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .project-description {
        font-size: 13px;
        line-height: 1.65;
    }

    .project-description p {
        margin-bottom: 6px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .skill-item {
        font-size: 14px;
        padding-left: 16px;
    }

    .education-item {
        padding-left: 24px;
        padding-bottom: 14px;
    }

    .education-item::before {
        left: 6px;
        width: 7px;
        height: 7px;
    }

    .education-item::after {
        left: 9px;
        width: 1.5px;
    }

    .education-duration {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .education-title {
        font-size: 13px;
        line-height: 1.5;
    }

    .certificate-list {
        gap: 12px;
        justify-content: center;
    }

    .certificate-item {
        max-width: 100px;
        gap: 8px;
    }

    .certificate-image {
        width: 85px;
    }

    .certificate-title {
        font-size: 11px;
    }
}

/* Small mobile (360px and below) */
@media (max-width: 360px) {
    body {
        padding: 52px 12px 24px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 18px;
    }

    .project-title,
    .experience-title {
        font-size: 15px;
    }

    .project-description {
        font-size: 12px;
    }

}

