/* CSS RESET & VARIABLES */
:root {
    /* Dark Theme Default */
    --bg-primary: #0b0f19;
    --bg-card: rgba(22, 30, 49, 0.75);
    --bg-card-hover: rgba(30, 41, 67, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-sub: #cbd5e1;

    --accent-primary: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    --accent-glow: rgba(56, 189, 248, 0.25);

    --badge-bg: rgba(56, 189, 248, 0.12);
    --badge-text: #38bdf8;
    --badge-border: rgba(56, 189, 248, 0.25);

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --nav-bg: rgba(11, 15, 25, 0.85);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(241, 245, 249, 0.95);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-sub: #334155;

    --accent-primary: #0284c7;
    --accent-gradient: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #9333ea 100%);
    --accent-glow: rgba(2, 132, 199, 0.15);

    --badge-bg: rgba(2, 132, 199, 0.08);
    --badge-text: #0284c7;
    --badge-border: rgba(2, 132, 199, 0.2);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);

    --nav-bg: rgba(248, 250, 252, 0.85);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Glow Effects */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.bg-glow-1 {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, #38bdf8 0%, rgba(56, 189, 248, 0) 70%);
}

.bg-glow-2 {
    top: 40%;
    right: -200px;
    background: radial-gradient(circle, #818cf8 0%, rgba(129, 140, 248, 0) 70%);
}

/* Layout Container */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Navbar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-initials {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--badge-bg);
    color: var(--accent-primary);
    border-color: var(--badge-border);
}

/* Base Card Style */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero-section {
    padding: 40px 36px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(15, 23, 42, 0.4) 100%);
    position: relative;
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 32px;
}

.avatar-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 3px;
    background: var(--accent-gradient);
    flex-shrink: 0;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.profile-title-area h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 6px 0 4px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.hero-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Badges */
.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-accent {
    background: rgba(129, 140, 248, 0.12);
    color: #818cf8;
    border: 1px solid rgba(129, 140, 248, 0.25);
}

.badge-success {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.contact-card:hover {
    background: var(--badge-bg);
    border-color: var(--badge-border);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--accent-primary);
    width: 24px;
    text-align: center;
}

.contact-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.88rem;
    font-weight: 600;
    word-break: break-all;
}

/* Section Styling */
.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.section-header h2 i {
    color: var(--accent-primary);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.summary-text {
    font-size: 1.05rem;
    color: var(--text-sub);
    line-height: 1.7;
}

.summary-text strong {
    color: var(--text-main);
}

/* Skills Section */
.filter-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 2px 10px var(--accent-glow);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--badge-border);
    transform: translateY(-2px);
}

.skill-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--badge-bg);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.skill-info {
    display: flex;
    flex-direction: column;
}

.skill-title {
    font-weight: 600;
    font-size: 0.92rem;
}

.skill-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Experience Section & Search */
.search-box {
    position: relative;
    min-width: 260px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 8px 14px 8px 38px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Exp Tabs */
.exp-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    overflow-x: auto;
}

.exp-tab-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.exp-tab-btn:hover {
    color: var(--text-main);
}

.exp-tab-btn.active {
    background: var(--badge-bg);
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-color);
}

.timeline-group-title {
    margin: 12px 0 4px -28px;
    padding: 10px 16px;
    background: var(--badge-bg);
    border-left: 4px solid var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-item {
    position: relative;
    transition: all 0.3s ease;
}

.timeline-marker {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-glow);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(56, 189, 248, 0.25);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.role-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.company-name {
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-top: 2px;
}

.company-name .location {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.date-badge {
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.role-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-bullets li {
    position: relative;
    padding-left: 18px;
    font-size: 0.95rem;
    color: var(--text-sub);
}

.role-bullets li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--accent-primary);
    font-weight: bold;
}

.item-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.mini-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Two Column Grid */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.edu-list,
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edu-card,
.cert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.edu-icon,
.cert-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--badge-bg);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.edu-details h4,
.cert-card h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
}

.edu-institution,
.cert-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--accent-primary);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 850px) {
    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .badge-group {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }
}

/* PRINT SPECIFIC STYLES */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .top-nav,
    .bg-glow,
    .filter-controls,
    .search-box,
    .exp-tabs,
    #themeToggleBtn,
    #printBtn {
        display: none !important;
    }

    .main-container {
        padding: 0 !important;
        max-width: 100% !important;
        gap: 16px !important;
    }

    .card {
        background: #fff !important;
        border: none !important;
        box-shadow: none !important;
        padding: 12px 0 !important;
        page-break-inside: avoid;
    }

    .section-header h2,
    .profile-title-area h1,
    .role-title {
        color: #000 !important;
    }

    .company-name,
    .hero-subtitle,
    .contact-card i {
        color: #1e3a8a !important;
    }

    .date-badge {
        background: #f1f5f9 !important;
        color: #334155 !important;
        border: 1px solid #cbd5e1 !important;
    }

    .contact-card {
        border: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
    }

    .timeline::before {
        background: #cbd5e1 !important;
    }

    .timeline-marker {
        border-color: #1e3a8a !important;
        background: #fff !important;
    }

    .timeline-content {
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
    }
}