:root {
    --bg: #f8fafc;
    --text: #1e293b;
    --accent: #3b82f6;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text);
    line-height: 1.6;
}

/* Resume Container */
.resume-container {
    width: 100%;
    max-width: 850px;
    background: white;
    padding: 50px 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
}

.resume-container.shifted {
    transform: scale(0.98);
    filter: blur(3px);
    pointer-events: none;
}

/* Typography */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin: 0;
    color: #0f172a;
}

.contact-info {
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
}

.section-title {
    font-weight: 800;
    border-bottom: 2px solid #334155;
    margin: 35px 0 15px;
    padding-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #334155;
}

.entry {
    margin-bottom: 25px;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.05rem;
    color: #0f172a;
}

.entry-sub {
    font-style: italic;
    color: #475569;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

ul {
    padding-left: 20px;
    margin: 8px 0;
}

li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.skills-list {
    margin: 10px 0;
    font-size: 0.95rem;
}

.skills-list strong {
    color: #0f172a;
}

.coursework {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 5px;
}

.highlight {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

/* Overlay Comment Window */
#comment-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.9);
    width: 450px;
    padding: 35px;
    border-radius: 24px;
    backdrop-filter: blur(15px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    text-align: center;
}

#comment-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.comment-header {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
    color: #1e293b;
}

.comment-body {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #0f172a;
    font-weight: 500;
}

.timer-track {
    margin-top: 30px;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: width 8s linear;
}

.close-hint {
    margin-top: 20px;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
}

.home-btn {
    position: absolute;
    top: 50px;
    right: 70px;
    padding: 8px 16px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Welcome Modal Overlay */
#welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#welcome-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Welcome Modal Card */
.modal-content {
    background: white;
    padding: 45px 40px;
    border-radius: 24px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(0) scale(1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#welcome-modal.hidden .modal-content {
    transform: translateY(20px) scale(0.95);
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    margin-bottom: 15px;
    color: #0f172a;
    font-size: 1.8rem;
}

.modal-content p {
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.modal-content strong {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.start-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}