:root {
    --bg-color: #0b0f19;
    --surface-color: rgba(22, 27, 34, 0.65);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-color: #0ea5e9;
    --accent-gradient: linear-gradient(135deg, #0ea5e9, #6366f1);
    --border-color: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.12), transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 4rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    font-weight: 800;
}

.subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.contact-info a, .contact-info span {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info a:hover {
    color: #fff;
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.qr-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.qr-container img {
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.qr-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.qr-container p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.qr-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.section {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    border-color: rgba(255, 255, 255, 0.15);
}

h2 {
    color: #f8fafc;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-top: 0;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

h2 i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin-bottom: 1.2rem;
    color: #cbd5e1;
    font-weight: 300;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2.5rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 8px; /* line position */
    top: 24px; /* start slightly below the first dot */
    bottom: -2.5rem; /* extend down to connect with the next item */
    width: 2px;
    background-color: rgba(14, 165, 233, 0.3);
}

.timeline-item:last-child::after {
    display: none; /* Hide line for the last item */
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px; /* align with title text */
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    z-index: 1; /* Keep dot above the line */
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f8fafc;
}

.timeline-subtitle {
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 0.3rem;
    font-size: 1rem;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    color: #f8fafc;
    margin-bottom: 1.2rem;
    margin-top: 0;
    font-weight: 600;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.skill-name {
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 500;
}

.skill-dots {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.dot.filled {
    background: var(--accent-gradient);
    border: none;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(14, 165, 233, 0.1);
    color: #38bdf8;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.skill-tag:hover {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .section {
        padding: 1.5rem 1rem;
        border-radius: 12px;
        margin-bottom: 2rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .contact-info a, .contact-info span {
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.7rem;
    }

    h1 {
        font-size: 2rem;
        margin-top: 1rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    p {
        font-size: 0.95rem;
    }

    /* Timeline Mobile */
    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        top: 7px;
        width: 10px;
        height: 10px;
    }

    .timeline-item::after {
        left: 6px;
        top: 22px;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .timeline-subtitle {
        font-size: 0.9rem;
    }

    .timeline-date {
        font-size: 0.8rem;
    }

    /* Skills Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .skill-dots {
        align-self: flex-start;
    }
}

