/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #e0e0e0;
    background: #0a0a0f;
    line-height: 1.7;
}

a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #90caf9;
}

/* ── Container ───────────────────────────────────────── */
.container {
    max-width: 100%;
    margin: 0;
}

/* ── Header / Hero ───────────────────────────────────── */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    min-height: auto;
    padding: 48px 10%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0f 0%, #111119 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.profile-pic-wrapper {
    width: 110px;
    height: 110px;
    min-width: 110px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(100, 181, 246, 0.3);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.15), 0 0 40px rgba(100, 181, 246, 0.05);
    flex-shrink: 0;
}

.profile-pic {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #64b5f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .tag-line {
    font-size: 1.15rem;
    color: #8892a4;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-info {
    text-align: right;
    font-size: 0.9rem;
    line-height: 2;
}

.contact-info a {
    color: #8892a4;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #64b5f6;
}

.contact-info .contact-address {
    color: #555d6e;
}

.cv-download {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 6px;
    color: #64b5f6 !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.cv-download:hover {
    background: rgba(100, 181, 246, 0.1);
    border-color: rgba(100, 181, 246, 0.5);
}

/* ── Sections ────────────────────────────────────────── */
.section {
    padding: 80px 10%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.section h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #64b5f6;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(100, 181, 246, 0.3), transparent);
}

/* ── Summary ─────────────────────────────────────────── */
.section.summary {
    padding-left: clamp(24px, 4vw, 64px);
    padding-right: clamp(24px, 4vw, 64px);
}

.summary {
    background: linear-gradient(180deg, #111119 0%, #0f0f17 100%);
}

.summary-content {
    width: 100%;
    max-width: none;
}

.summary p {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-bottom: 10px;
    line-height: 1.8;
    width: 100%;
    max-width: none;
}

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

.summary b {
    color: #ffffff;
    font-weight: 600;
}

/* ── Skills ──────────────────────────────────────────── */
.skills {
    background: #0d0d14;
}

.skills h3 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555d6e;
    margin-top: 32px;
    margin-bottom: 16px;
}

.skills h3:first-of-type {
    margin-top: 0;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill {
    background: rgba(100, 181, 246, 0.06);
    color: #b0bec5;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(100, 181, 246, 0.1);
    transition: all 0.25s;
}

.skill:hover {
    background: rgba(100, 181, 246, 0.15);
    color: #ffffff;
    border-color: rgba(100, 181, 246, 0.3);
    transform: translateY(-2px);
}

/* ── Experience ──────────────────────────────────────── */
.experience {
    background: #0a0a0f;
}

.experience-item {
    margin-bottom: 40px;
    padding-left: 24px;
    border-left: 2px solid #1a1d28;
    transition: border-color 0.3s;
}

.experience-item:hover {
    border-left-color: #64b5f6;
}

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

.experience-role {
    margin-top: 16px;
}

.experience-role:first-of-type {
    margin-top: 10px;
}

.experience-role + .experience-role {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.experience-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
}

.experience-company {
    font-weight: 500;
    color: #64b5f6;
}

.experience-year {
    font-size: 0.82rem;
    color: #555d6e;
    font-style: normal;
    font-weight: 500;
}

.experience-item ul {
    margin-top: 14px;
    padding-left: 0;
    list-style: none;
}

.experience-item li {
    font-size: 0.9rem;
    color: #8892a4;
    line-height: 1.7;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.experience-item li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 1px;
    background: #64b5f6;
}

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

/* ── Projects ────────────────────────────────────────── */
.projects {
    background: #0d0d14;
}

.project-item {
    margin-bottom: 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 32px;
}

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

.project-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.project-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(100, 181, 246, 0.08);
    border: 1px solid rgba(100, 181, 246, 0.15);
    color: #64b5f6;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.project-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.project-name a {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    color: #ffffff;
    transition: color 0.2s;
}

.project-name a::after {
    content: '';
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    flex-shrink: 0;
    background-color: #64b5f6;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.project-name a:hover {
    color: #64b5f6;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.project-name a:hover::after {
    opacity: 1;
    transform: translate(2px, -2px);
}

.project-description {
    grid-column: 1 / -1;
    font-size: 0.95rem;
    color: #8892a4;
    line-height: 1.75;
    margin-bottom: 16px;
}

.project-tech,
.project-role {
    grid-column: 1 / -1;
    font-size: 0.88rem;
    color: #8892a4;
    line-height: 1.7;
    margin-bottom: 10px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.project-tech b,
.project-role b {
    color: #64b5f6;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-role:last-child,
.project-tech:last-child {
    margin-bottom: 0;
}

/* ── Education & Languages ───────────────────────────── */
.education {
    background: #0a0a0f;
}

.education p,
.education-item p {
    font-size: 0.95rem;
    color: #8892a4;
    margin-bottom: 4px;
}

.education b,
.education-item b {
    color: #ffffff;
}

.education-item {
    margin-bottom: 24px;
}

.education-item:last-of-type {
    margin-bottom: 0;
}

.education-detail {
    font-size: 0.88rem !important;
    color: #555d6e !important;
}

.subsection-heading {
    margin-top: 48px;
}

/* ── Print Styles ────────────────────────────────────── */
@media print {
    body {
        background: #fff;
        color: #222;
    }

    .container {
        max-width: 100%;
    }

    .header {
        min-height: auto;
        background: #1a1a2e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 40px 5%;
    }

    .section {
        padding: 30px 5%;
    }

    .summary p,
    .experience-item li,
    .project-description,
    .project-tech,
    .project-role,
    .education p,
    .education-item p {
        color: #444;
    }

    .skill {
        border-color: #ddd;
        color: #333;
    }

    .project-number {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 36px 6%;
        min-height: auto;
    }

    .header-left {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic-wrapper {
        width: 100px;
        height: 100px;
        min-width: 100px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .contact-info {
        text-align: center;
    }

    .section {
        padding: 50px 6%;
    }

    .experience-item {
        padding-left: 18px;
    }

    .project-item {
        grid-template-columns: 1fr;
    }
}