/* Apple-style Design System */

:root {
    --bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --heading-color: #1d1d1f;
    --link-color: #0066cc;
    --link-hover-color: #004499;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --card-bg: #ffffff;
    --subtext-color: #86868b;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --text-color: #f5f5f7;
        --heading-color: #ffffff;
        --link-color: #2997ff;
        --link-hover-color: #64d2ff;
        --glass-bg: rgba(28, 28, 30, 0.72);
        --glass-border: rgba(255, 255, 255, 0.15);
        --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
        --card-bg: #1c1c1e;
        --subtext-color: #a1a1a6;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "SF Pro Display", "SF Pro Text", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    font-size: 19px;
    line-height: 1.47059;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 64px;
    line-height: 1.0625;
    letter-spacing: -0.009em;
}

h2 {
    font-size: 48px;
    line-height: 1.08349;
    letter-spacing: -0.003em;
}

h3 {
    font-size: 36px;
    line-height: 1.15;
}

h4 {
    font-size: 26px;
}

/* Navbar Overrides */
/* Navbar Overrides */
.navbar-custom {
    background-color: var(--glass-bg) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: none !important;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    font-size: 12px;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.avatar-container {
    margin-left: 16px;
    display: flex;
    align-items: center;
}

.avatar-img-border {
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Hero / Header */
.intro-header.big-img .page-heading h1 {
    font-weight: 700;
    font-size: 64px;
    letter-spacing: -0.005em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.intro-header .page-heading .page-subheading {
    font-weight: 400;
    font-size: 24px;
    margin-top: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Cards / Posts */
.post-preview {
    border-bottom: none;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease;
}

.post-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.post-preview .post-title {
    font-weight: 700;
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.post-preview .post-subtitle {
    font-weight: 400;
    font-size: 19px;
    color: var(--subtext-color);
    margin-top: 8px;
    line-height: 1.4;
}

/* Typography Enhancements */
p {
    line-height: 1.47059;
    font-size: 19px;
    color: var(--text-color);
    margin-bottom: 1.4em;
    letter-spacing: -0.016em;
}

a {
    transition: color 0.2s ease;
}

/* Buttons */
.btn {
    border-radius: 980px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pager li a {
    border-radius: 980px;
    border: none;
    background: #0071e3;
    color: white;
}

.pager li a:hover {
    background: #0077ed;
    color: white;
    transform: translateY(-2px);
}

/* Experience Page specific styles */
.experience-container {
    padding: 40px 0;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    padding: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    position: relative;
}

.timeline-date {
    font-size: 14px;
    color: #86868b;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 16px;
    color: #0066cc;
    margin-bottom: 12px;
}