/* --- Variables & Reset --- */
:root {
    --font-heading: 'Urbanist', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Colors */
    --color-primary: #3b82f6; 
    --color-primary-dark: #2563eb;
    --color-accent: #8b5cf6; 
    --color-dark: #0f172a;   
    --color-text: #334155;   
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: #f0f4f8;
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Background Aesthetics --- */
.background {
    position: fixed; inset: 0; z-index: -1; overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #f8fafc, #eff6ff);
}
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black, transparent);
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5;
    animation: float 12s infinite ease-in-out;
}
.orb-1 { width: 600px; height: 600px; background: #60a5fa; top: -20%; left: -10%; }
.orb-2 { width: 500px; height: 500px; background: #a78bfa; bottom: -10%; right: -10%; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: #34d399; top: 40%; left: 40%; opacity: 0.3; animation-delay: -7s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -30px); } }

/* --- Layout --- */
.container { max-width: 1140px; margin: 0 auto; padding: 40px 24px; }
.hidden-web { display: none; }

/* Header */
.header-section { margin-bottom: 24px; display: flex; flex-direction: column; gap: 24px; }
.profile-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }

.name {
    font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.1; margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-dark), var(--color-primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-primary-dark); font-weight: 600; margin-bottom: 16px; }

.contact-info-group { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.5); padding: 8px 16px;
    border-radius: 50px; font-size: 0.9rem; font-weight: 500;
    color: var(--color-text); text-decoration: none; border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.2s;
}
.contact-link:hover { background: white; color: var(--color-primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* Standard Icon Size (Contact pills) */
.icon { width: 18px; height: 18px; stroke-width: 2px; }

.summary {
    background: rgba(255,255,255,0.5); padding: 24px; border-radius: 16px;
    border-left: 4px solid var(--color-primary); font-size: 1.05rem;
}

/* --- Cards (Glassmorphism + 3D) --- */
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 24px;
    padding: 32px; box-shadow: var(--glass-shadow);
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Grid */
.grid-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.right-col { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 900px) { .grid-layout { grid-template-columns: 1fr; } }

/* Section Titles & Icons */
.section-title {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 28px; padding-bottom: 12px;
    border-bottom: 2px solid rgba(0,0,0,0.05); color: var(--color-dark);
}

/* BIGGER ICONS FOR SECTIONS */
.section-title .icon {
    width: 28px; height: 28px; 
    color: var(--color-primary);
    stroke-width: 2.5px; /* Makes them look solid, not thin */
}

/* --- TIMELINE FIX --- */
.timeline-container { display: flex; flex-direction: column; }

.timeline-item { display: flex; gap: 20px; position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    display: flex; flex-direction: column; align-items: center;
    min-width: 24px; 
}

.timeline-dot {
    width: 14px; height: 14px;
    background: white; border: 3px solid var(--color-primary);
    border-radius: 50%; z-index: 2; flex-shrink: 0;
    margin-top: 6px; 
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.timeline-line {
    flex-grow: 1; width: 2px;
    background: linear-gradient(to bottom, var(--color-primary) 0%, rgba(59, 130, 246, 0.2) 100%);
    margin-top: -2px; margin-bottom: -10px; z-index: 1;
}
.timeline-item:last-child .timeline-line { display: none; }

.timeline-content { flex-grow: 1; }

.job-role { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--color-dark); }
.job-company { display: block; font-size: 0.95rem; color: var(--color-primary); font-weight: 600; margin-bottom: 4px; }
.job-date { display: inline-block; font-size: 0.8rem; background: #e0f2fe; color: #0369a1; padding: 2px 8px; border-radius: 4px; font-weight: 600; margin-bottom: 12px; }

.job-bullets { list-style: none; }
.job-bullets li {
    font-size: 0.95rem; margin-bottom: 8px; padding-left: 14px; position: relative; color: #475569;
}
.job-bullets li::before {
    content: '›'; position: absolute; left: 0; top: -1px;
    color: var(--color-accent); font-weight: bold; font-size: 1.2em;
}

/* Skills & Edu */
.skill-group { margin-bottom: 18px; }
.skill-label { font-size: 0.8rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; margin-bottom: 4px; letter-spacing: 0.5px; }
.skill-list { font-size: 0.95rem; font-weight: 500; color: var(--color-dark); }

.edu-item { margin-bottom: 20px; border-bottom: 1px dashed #cbd5e1; padding-bottom: 16px; }
.edu-item:last-child { border: none; padding-bottom: 0; margin-bottom: 0; }
.edu-degree { font-size: 1rem; font-weight: 700; color: var(--color-dark); margin-bottom: 4px; line-height: 1.3; }
.edu-school { display: block; font-size: 0.9rem; color: #475569; }
.edu-loc { font-size: 0.85rem; color: #94a3b8; }

.cert-list li { list-style: none; margin-bottom: 8px; font-size: 0.9rem; padding: 8px; background: rgba(255,255,255,0.5); border-radius: 8px; }

/* Buttons */
.btn {
    display: inline-block; padding: 12px 32px; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-family: var(--font-heading);
    cursor: pointer; font-size: 0.95rem; transition: all 0.3s;
}
.btn-primary {
    background: var(--color-primary); color: white; border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-text); border: 2px solid #cbd5e1; }
.btn-outline:hover { border-color: var(--color-dark); color: var(--color-dark); background: white; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ================= PRINT / HARVARD FORMAT ================= */
@media print {
    @page { margin: 0.5in 0.6in; size: letter; }
    body { background: white; color: black; font-family: "Georgia", serif; font-size: 11pt; line-height: 1.35; -webkit-print-color-adjust: exact; }
    
    .no-print, .background, .icon { display: none !important; }
    .hidden-web { display: inline !important; color: black; margin: 0 4px; }
    
    .container { max-width: 100%; padding: 0; margin: 0; }
    .glass-card, .summary { 
        background: none !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; transform: none !important; 
    }
    
    .grid-layout { display: block; }
    .header-section { border-bottom: 1px solid #000; padding-bottom: 10px; margin-bottom: 15px; text-align: center; }
    .profile-header { display: block; }
    
    .name { font-size: 22pt; text-transform: uppercase; background: none; -webkit-text-fill-color: black; margin-bottom: 5px; color: black; letter-spacing: 1px; }
    .title { font-size: 12pt; color: black; font-weight: normal; margin-bottom: 5px; font-family: "Georgia", serif; }
    .contact-info-group { justify-content: center; }
    .contact-link { background: none; border: none; padding: 0; color: black; font-size: 10pt; font-weight: normal; }
    .summary { font-size: 10.5pt; text-align: left; padding-top: 5px; margin-bottom: 15px; border: none; }
    
    .section-title { 
        font-family: "Georgia", serif; font-size: 12pt; text-transform: uppercase; border-bottom: 1px solid #000; margin-top: 15px; margin-bottom: 10px; padding-bottom: 2px; letter-spacing: 0.5px;
    }
    
    /* Timeline Reset for Print */
    .timeline-container { display: block; }
    .timeline-item { display: block; padding-bottom: 10px; margin-bottom: 0; gap: 0; }
    .timeline-marker { display: none; }
    .timeline-content { margin-left: 0; }
    
    .job-header { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; margin-bottom: 4px; }
    .job-role { font-size: 11pt; font-weight: bold; font-family: serif; color: black; grid-column: 1; text-align: left; }
    .job-date { font-size: 11pt; font-weight: normal; color: black; background: none; padding: 0; grid-column: 2; text-align: right; }
    .job-company { font-size: 11pt; font-style: italic; color: black; font-weight: normal; grid-column: 1; }
    
    .job-bullets { margin-left: 18px; list-style-type: disc; }
    .job-bullets li { font-size: 10.5pt; margin-bottom: 2px; padding-left: 0; color: black; }
    .job-bullets li::before { display: none; }
    
    .skill-group { display: flex; margin-bottom: 4px; }
    .skill-label { width: 130px; font-size: 10.5pt; font-weight: bold; color: black; text-transform: none; margin: 0; font-family: serif; }
    .skill-label::after { content: ":"; }
    .skill-list { font-size: 10.5pt; color: black; flex: 1; }
    
    .edu-item { display: flex; justify-content: space-between; border: none; margin-bottom: 4px; padding: 0; }
    .edu-degree { font-size: 11pt; font-weight: bold; color: black; font-family: serif; }
    .edu-school { font-size: 11pt; font-style: italic; color: black; text-align: right; }
    .edu-details { text-align: right; } .edu-loc { display: none; }
    
    .cert-list li { background: none; padding: 0; margin-bottom: 2px; list-style: disc; margin-left: 18px; }
}