/* ==========================================
   PAUL HUMAN CV - DESIGN SYSTEM & STYLESHEET
   ========================================== */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #0b0f19;
    --bg-body: #080c14;
    --bg-card: rgba(22, 30, 49, 0.7);
    --bg-card-hover: rgba(28, 39, 64, 0.85);
    --border-color: rgba(36, 51, 84, 0.6);
    --border-glow: rgba(14, 165, 233, 0.25);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --color-primary: #0ea5e9;       /* Electric Blue */
    --color-primary-rgb: 14, 165, 233;
    --color-secondary: #f59e0b;     /* Amber Gold */
    --color-secondary-rgb: 245, 158, 11;
    --color-accent: #38bdf8;        /* Teal/Cyan Accent */
    --color-success: #10b981;       /* Emerald */
    --color-danger: #ef4444;        /* Ruby Red */

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --max-width: 1200px;
    --header-height: 80px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
    zoom: 1.2;
}

body {
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(14, 165, 233, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-accent);
}

button {
    font-family: var(--font-body);
    cursor: pointer;
}

ul {
    list-style: none;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
    margin: 2rem 0;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Global Layout & Main Container */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0 3rem 0;
    scroll-margin-top: calc(var(--header-height) + 10px);
}

/* Glassmorphism Panel Helper */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-glow);
    box-shadow: 0 12px 35px -12px rgba(14, 165, 233, 0.15);
}

/* Custom Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-primary) 70%, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #fff 20%, var(--color-secondary) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sticky Header & Nav */
header#pageHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header#pageHeader.scrolled {
    height: 70px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.header-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--color-secondary);
    cursor: pointer;
    transition: var(--transition-bounce);
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--color-secondary);
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.theme-toggle-btn .sun-icon {
    display: block;
}
.theme-toggle-btn .moon-icon {
    display: none;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--color-secondary);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

nav a.active {
    color: var(--text-primary);
    background-color: rgba(245, 158, 11, 0.1);
}

nav a.active::after {
    width: 60%;
}

nav a:hover:not(.active) {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.header-spacer {
    height: var(--header-height);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    z-index: 1100;
}

/* Badges and Buttons */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-gold {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-status {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-status .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-bounce);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #0284c7);
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45), 0 0 12px var(--color-accent);
}

.btn-secondary {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #fff;
    border-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
}

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

.btn-outline:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(14, 165, 233, 0.05);
    transform: translateY(-3px);
}

/* SECTION HEADER STYLE */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================
   COMPACT & CONSERVATIVE TWO-COLUMN LAYOUT
   ========================================== */

/* Two Column CV Layout */
.cv-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2rem;
    height: calc(100vh - var(--header-height) - 40px);
    margin: 20px 0;
    align-items: stretch;
    overflow: hidden;
}

.cv-left-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cv-right-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 1.5rem !important; /* Overrides default section padding */
}

/* Thin Scrollbars for left/right columns */
.cv-left-col::-webkit-scrollbar,
.timeline-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.cv-left-col::-webkit-scrollbar-track,
.timeline-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}
.cv-left-col::-webkit-scrollbar-thumb,
.timeline-scroll-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
.cv-left-col::-webkit-scrollbar-thumb:hover,
.timeline-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.cv-layout section {
    padding: 1.5rem;
    scroll-margin-top: 20px;
}

/* 1. PROFILE SECTION CARD */
.profile-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.profile-portrait-compact {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.profile-portrait-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-portrait-compact .status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-success);
    border: 2px solid var(--bg-dark);
}

.profile-meta h1 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.profile-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.profile-card .badge-status {
    margin-top: 0.25rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
}

.profile-summary {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Compact Stats Grid */
.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.stat-item-compact {
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.stat-number-compact {
    font-size: 1.15rem;
    font-weight: 800;
}

.stat-label-compact {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-top: 0.1rem;
}

/* 2. EXPERTISE & ATTRIBUTES CARD */
.skills-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
    color: var(--text-primary);
}

.skills-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-group-compact {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.skill-group-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-primary);
}

.skill-group-title svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.skill-group-title h3 {
    font-size: 0.85rem;
    font-weight: 700;
}

.skill-group-compact p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    padding-left: 1.4rem;
}

/* Attributes Grid - Compact */
.attributes-compact-container {
    margin-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.75rem;
}

.attributes-compact-container h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.attributes-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.attribute-pill-compact {
    display: flex;
    gap: 0.4rem;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    align-items: flex-start;
}

.attribute-pill-compact .attr-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.attribute-pill-compact .attr-text {
    line-height: 1.3;
}

.attribute-pill-compact .attr-text strong {
    display: block;
    color: var(--text-primary);
}

/* 3. EDUCATION & CERTIFICATIONS CARD */
.edu-card-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edu-sections-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edu-group-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edu-group-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.2rem;
}

.edu-group-title h3 {
    font-size: 0.9rem;
    font-weight: 700;
}

.edu-list-compact, .cert-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edu-item-compact {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.edu-year-compact {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.edu-info-compact h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.edu-info-compact p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cert-item-compact {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
}

.cert-icon-compact {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cert-info-compact h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.cert-info-compact p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 4. CONTACT & DOWNLOADS CARD */
.contact-card-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-links-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.contact-item-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon-box-compact {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.contact-details-compact {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.contact-details-compact span {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.contact-details-compact a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
}

.contact-details-compact a:hover {
    color: var(--color-primary);
}

.email-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.copy-btn {
    background: transparent;
    border: none;
    padding: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 4px;
    transition: var(--transition-smooth);
    width: 20px;
    height: 20px;
}

.copy-btn:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
}

.copy-btn svg {
    display: block;
}

.reveal-btn {
    background: transparent;
    border: 1px dashed var(--color-primary);
    color: var(--color-primary);
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
}

.reveal-btn:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--text-primary);
    border-color: var(--color-accent);
}

.downloads-compact {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.downloads-compact h3 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.download-buttons-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 8px;
}

/* Footer in Left Column */
.footer-left-col {
    display: none;
    padding: 0.4rem 0 0 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 0.25rem;
}

.footer-left-col p {
    font-size: 0.55rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* 5. EXPERIENCE SIDEBAR TIMELINE */
.timeline-header-sticky {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.experience-title-area h2 {
    font-size: 1.35rem;
    margin-bottom: 0.15rem;
}

.experience-title-area p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-scroll-container {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 0.4rem;
}

/* PROFESSIONAL EXPERIENCE - TIMELINE STYLE */
.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary) 0%, var(--border-color) 70%, transparent 100%);
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 1.25rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 20px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--bg-body);
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
    transition: var(--transition-bounce);
    z-index: 2;
}

.timeline-item.active-item .timeline-dot {
    border-color: var(--color-secondary);
    background-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.timeline-card {
    padding: 1.15rem;
    cursor: pointer;
}

.timeline-card:hover {
    border-color: var(--color-secondary);
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(245, 158, 11, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.timeline-year-left {
    display: none;
}

.timeline-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    gap: 0.75rem;
}

.timeline-header h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.timeline-intro {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

.timeline-chevron {
    color: var(--text-muted);
    transition: var(--transition-bounce);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
}

.timeline-item.expanded .timeline-chevron {
    transform: rotate(180deg);
    color: var(--color-secondary);
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.timeline-item.expanded .timeline-details {
    max-height: 1500px;
    opacity: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.achievements-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievements-list li {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.25rem;
}

.achievements-list li::before {
    content: '▪';
    color: var(--color-secondary);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
}

.achievements-list li strong {
    color: var(--color-primary);
}

.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.proj-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* FOOTER SECTION */
footer {
    border-top: 1px solid var(--border-color);
    padding: 0.8rem 0;
    text-align: center;
    background-color: var(--bg-dark);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-logo span {
    color: var(--color-secondary);
}

.footer-copyright {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Tooltip style */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(11, 15, 25, 0.95);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-bounce);
    z-index: 10;
}

.tooltip.show-tooltip::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

@media (max-width: 1024px) {
    .cv-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
        overflow: visible;
        margin: 10px 0;
    }
    
    .cv-left-col, .cv-right-col {
        height: auto;
        overflow: visible;
        padding-right: 0;
    }
    
    .cv-right-col {
        padding: 1.25rem !important;
    }
    
    .timeline-scroll-container {
        overflow: visible;
        height: auto;
        padding-right: 0;
    }

    .timeline-header-sticky {
        position: relative;
        background: transparent;
        backdrop-filter: none;
        padding-bottom: 0.5rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 1rem 0;
    }

    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid var(--border-color);
        padding: 2.5rem 1.5rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }
    
    nav.open {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.75rem;
        width: 100%;
    }
    
    nav a {
        font-size: 1.1rem;
        width: 100%;
        display: block;
        padding: 0.5rem 0;
        border-radius: 0;
    }
    
    nav a::after {
        left: 0;
        transform: none;
    }
    
    nav a.active::after {
        width: 40px;
    }
    
    .timeline-wrapper::before {
        left: 10px;
    }
    
    .timeline-item {
        padding-left: 35px;
    }
    
    .timeline-dot {
        left: 1px;
    }
    
    .timeline-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}

@media (max-width: 480px) {
    .timeline-card {
        padding: 1rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .timeline-chevron {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .attributes-grid-compact {
        grid-template-columns: 1fr;
    }

    .download-buttons-compact {
        grid-template-columns: 1fr;
    }
}

/* Desktop Timeline Adjustments (Year Indicator on the Left) */
@media (min-width: 1025px) {
    .timeline-wrapper::before {
        left: 50px;
    }
    
    .timeline-dot {
        left: 41px;
    }
    
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline-year-left {
        display: inline-flex;
        position: absolute;
        left: 12px;
        width: 24px;
        top: 20px;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        white-space: nowrap;
        margin: 0;
        padding: 0.6rem 0.25rem;
        justify-content: center;
        align-items: center;
        height: auto;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--color-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background: rgba(245, 158, 11, 0.08);
        border-radius: 50px;
        border: 1px solid rgba(245, 158, 11, 0.15);
    }
}

/* ==========================================
   LIGHT MODE OVERRIDES
   ========================================== */
body.light-mode {
    --bg-dark: #ffffff;
    --bg-body: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: #ffffff;
    --border-color: #cbd5e1;
    --border-glow: rgba(2, 132, 199, 0.35);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --color-primary: #0284c7;
    --color-primary-rgb: 2, 132, 199;
    --color-secondary: #d97706;
    --color-secondary-rgb: 217, 119, 6;
    --color-accent: #0284c7;
    --color-success: #059669;
    --color-danger: #dc2626;

    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(217, 119, 6, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(2, 132, 199, 0.05) 0px, transparent 50%);
    color: var(--text-secondary);
}

/* Glass Panels in Light Mode */
body.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light-mode .glass-panel:hover {
    border-color: var(--color-primary);
    box-shadow: 0 14px 35px -10px rgba(2, 132, 199, 0.15);
}

/* Header in Light Mode */
body.light-mode header#pageHeader.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.08);
}

/* Navigation Links in Light Mode */
body.light-mode nav a.active {
    color: var(--color-secondary);
    background-color: rgba(217, 119, 6, 0.12);
}

body.light-mode nav a:hover:not(.active) {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.04);
}

/* Mobile Nav in Light Mode */
@media (max-width: 768px) {
    body.light-mode nav {
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid #cbd5e1;
    }
}

/* Theme Toggle Button in Light Mode */
body.light-mode .theme-toggle-btn {
    background: rgba(2, 132, 199, 0.08);
    color: var(--color-primary);
    border-color: rgba(2, 132, 199, 0.3);
}

body.light-mode .theme-toggle-btn:hover {
    background: rgba(2, 132, 199, 0.15);
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.25);
}

body.light-mode .theme-toggle-btn .sun-icon {
    display: none;
}
body.light-mode .theme-toggle-btn .moon-icon {
    display: block;
}

/* Card Elements in Light Mode */
body.light-mode .stat-item-compact,
body.light-mode .attribute-pill-compact,
body.light-mode .skill-group-compact,
body.light-mode .contact-item-compact {
    background: rgba(241, 245, 249, 0.7);
    border-color: #cbd5e1;
}

body.light-mode .gradient-text-gold {
    background: linear-gradient(135deg, #0f172a 20%, var(--color-secondary) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .gradient-text {
    background: linear-gradient(135deg, #0f172a 30%, var(--color-primary) 70%, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badges & Buttons in Light Mode */
body.light-mode .proj-badge,
body.light-mode .badge {
    background: rgba(2, 132, 199, 0.1);
    color: var(--color-primary);
    border-color: rgba(2, 132, 199, 0.25);
}

body.light-mode .badge-gold {
    background: rgba(217, 119, 6, 0.1);
    color: var(--color-secondary);
    border-color: rgba(217, 119, 6, 0.25);
}

body.light-mode .btn-secondary {
    background: rgba(217, 119, 6, 0.1);
    color: var(--color-secondary);
    border-color: rgba(217, 119, 6, 0.3);
}

body.light-mode .btn-secondary:hover {
    background: var(--color-secondary);
    color: #ffffff;
}

body.light-mode .btn-outline {
    border-color: #cbd5e1;
    color: var(--text-secondary);
}

body.light-mode .btn-outline:hover {
    background: rgba(2, 132, 199, 0.08);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Timeline Cards & Header in Light Mode */
body.light-mode .timeline-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e2e8f0;
}

body.light-mode .timeline-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.15);
}

body.light-mode .timeline-header-sticky {
    background: rgba(248, 250, 252, 0.92);
}

body.light-mode .timeline-wrapper::before {
    background: #cbd5e1;
}

body.light-mode .timeline-dot {
    border-color: #f8fafc;
}

/* ADMIN CONTENT EDITOR MODAL STYLES */
.discreet-admin-link {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.discreet-admin-link:hover {
    color: var(--color-primary, #0284c7);
}
.admin-trigger-btn {
    background: transparent;
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.2s;
}

.admin-trigger-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(2, 132, 199, 0.08);
}

.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal-card {
    background: #1e293b;
    color: #f8fafc;
    width: 100%;
    max-width: 850px;
    height: 85vh;
    max-height: 800px;
    border-radius: 12px;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.admin-modal-header h2 {
    font-size: 1.1rem;
    margin: 0;
    color: #38bdf8;
}

.admin-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    cursor: pointer;
}

.admin-close-btn:hover { color: #ffffff; }

.admin-tabs {
    display: flex;
    background: #0f172a;
    border-bottom: 1px solid #334155;
    padding: 0 16px;
    gap: 8px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

.admin-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    background: #0f172a;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.form-control:focus {
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group { flex: 1; }

.admin-item-box {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.btn-primary-admin {
    background: #0284c7;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary-admin:hover { background: #0369a1; }

.btn-secondary-admin {
    background: #334155;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-danger-admin {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-sm-admin {
    background: #0284c7;
    color: white;
    border: none;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-delete-item {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
}

.admin-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #0f172a;
    border-top: 1px solid #334155;
    flex-shrink: 0;
    z-index: 10;
}

.admin-modal-footer-btns {
    display: flex;
    gap: 10px;
    align-items: center;
}

.save-status-text {
    font-size: 0.85rem;
    color: #4ade80;
}

/* CV DOWNLOAD CONFIRMATION MODAL */
.cv-download-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cv-download-modal-card {
    background: #0f172a;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    color: #f8fafc;
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.cv-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}

.cv-modal-close-btn:hover {
    color: #ffffff;
}

.cv-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.cv-download-modal-card h3 {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.cv-modal-subtitle {
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.cv-modal-desc {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.cv-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-modal-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
}