/* ============================================================
   Shared stylesheet for adarshmohan.in
   Covers: reset, variables, body, nav, footer, buttons, chips,
           page-header, and responsive breakpoints
   ============================================================ */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design tokens */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --border: #e2e8f0;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #06b6d4;
}

/* Body */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Navigation
   ============================================================ */
nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

nav .logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text-primary);
    background: white;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background: white;
    color: var(--text-primary);
}

.btn-white:hover {
    background: var(--bg-gray);
}

/* ============================================================
   Chips / Tags
   ============================================================ */
.chip {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    margin-right: 6px;
}

.chip.promotion {
    background: #dcfce7;
    color: #15803d;
}

.chip-top-right {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
}

/* ============================================================
   Page header (blogs + experience pages)
   ============================================================ */
.page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 32px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary);
}

footer p {
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    nav .container {
        padding: 0 16px;
    }

    nav ul {
        gap: 20px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .page-header {
        padding: 60px 16px 40px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    footer {
        padding: 40px 16px;
    }

    .social-links {
        gap: 20px;
    }
}

/* ============================================================
   Blog CTA Blocks
   ============================================================ */
.blog-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    border-left: 4px solid #4f46e5;
    border-radius: 14px;
    padding: 24px 28px;
    margin: 44px 0;
}

.cta-icon {
    font-size: 38px;
    flex-shrink: 0;
    line-height: 1;
}

.cta-body {
    flex: 1;
}

.cta-body h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.cta-body p {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
}

.cta-button {
    display: inline-block;
    background: #4f46e5;
    color: white !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease;
}

.cta-button:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .blog-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }
}
