/* ==========================================================================
   CSS Variables - Design System
   ========================================================================== */

:root {
    /* Primary Accent - Vibrant Blue */
    --accent: #215FFF;
    --accent-hover: #1B4FCC;
    --accent-light: #5A8FFF;
    --accent-gradient: linear-gradient(135deg, #215FFF 0%, #5A8FFF 100%);

    /* Secondary Accents for variety */
    --accent-blue: #49B3FC;
    --accent-purple: #502bd8;
    --accent-green: #52c67e;

    /* Text Colors - Higher contrast */
    --primary: #222222;
    --text-primary: #222222;
    --text-secondary: #666666;
    --text-muted: #999999;

    /* Backgrounds - Warmer neutrals */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-tertiary: #ededed;
    --bg-dark: #222222;

    /* Borders - Lighter, more subtle */
    --border: #e5e5e5;
    --border-light: rgba(0, 0, 0, 0.1);

    /* Modern shadows (lighter, more subtle) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1);

    /* Spacing (8px grid) */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 80px;

    /* Typography */
    --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   Container and Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1440px;
}

section {
    padding: var(--spacing-md) 0;
}

section.bg-secondary {
    background-color: var(--bg-secondary);
}

section.bg-dark {
    background-color: var(--bg-dark);
    color: #ffffff;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 500;
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
}

h3 {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 500;
}

h4 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-sm);
}

.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 500;
    text-align: left;
    margin-bottom: 24px;
}

.career-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 48px;
    line-height: 1.6;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    padding: var(--spacing-xs) 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-cta {
    background: transparent;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    padding: 10px 24px !important;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--accent);
    color: white !important;
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Spacer */
.nav-spacer {
    height: 72px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(33, 95, 255, 0.3);
}

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

.btn-secondary:hover {
    background: var(--text-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 10px 24px;
    font-size: 16px;
    line-height: 1.25;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: 80px 0 120px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.network-background {
    position: absolute;
    top: 0;
    left: 20%;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(33, 95, 255, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 0 32px 0;
    line-height: 1.7;
}

.hero-stats-plain {
    display: flex;
    justify-content: flex-start;
    gap: var(--spacing-xl);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
    max-width: 900px;
}

.stat {
    text-align: left;
    min-width: 200px;
}

.stat-number {
    font-size: 36px;
    font-weight: 500;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

/* ==========================================================================
   Card Components
   ========================================================================== */

.card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--text-secondary);
    font-size: 15px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Metrics Display
   ========================================================================== */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.metric-item {
    text-align: left;
}

.metric-value {
    font-size: 48px;
    font-weight: 500;
    color: var(--accent);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.metric-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==========================================================================
   About Me Section - "Who I Am"
   ========================================================================== */

section.bg-secondary {
    padding: 100px 0;
}

section.bg-secondary:last-of-type {
    padding-bottom: 0;
}

.about-header {
    margin-bottom: 64px;
    text-align: left;
}

.about-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.about-title {
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin: 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 48px;
}

.about-intro-card {
    padding: 48px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.about-intro-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.intro-icon {
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1;
}

.intro-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

.about-philosophy-card {
    padding: 48px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.about-philosophy-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.philosophy-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.philosophy-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.approach-section {
    margin-top: 48px;
}

.approach-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.approach-card {
    padding: 32px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.approach-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.approach-icon {
    font-size: 40px;
    margin-bottom: 16px;
    line-height: 1;
}

.approach-card h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.approach-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.about-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    background: rgba(33, 95, 255, 0.05);
    border-radius: 12px;
    margin-top: 48px;
    text-align: center;
}

.location-badge {
    font-size: 16px;
    font-weight: 500;
    color: var(--accent);
}

.about-footer-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */

.philosophy-paragraph {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 900px;
    margin-top: 32px;
}

/* ==========================================================================
   Approach Section - Small Cards
   ========================================================================== */

.approach-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.approach-card-small {
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.approach-card-small:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.approach-icon-lucide {
    width: 20px;
    height: 20px;
    stroke-width: 1.25px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.approach-card-small h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.approach-card-small p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline {
    position: relative;
    max-width: 1000px;
    margin: var(--spacing-xl) auto;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-md);
}

.timeline-content {
    flex: 1;
    background-color: white;
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--spacing-xs);
}

.timeline-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.timeline-description {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ==========================================================================
   CTA Cards (with SVG backgrounds)
   ========================================================================== */

.cta-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.cta-card {
    position: relative;
    border-radius: 12px;
    padding: var(--spacing-lg) var(--spacing-xl);
    cursor: pointer;
    border: 1px solid var(--border);
    background: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.cta-card-content {
    flex: 1;
}

.cta-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    margin-top: 0;
}

.cta-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.cta-arrow {
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.cta-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.cta-card:hover .cta-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.brand-card {
    background-color: white;
    border-radius: 12px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.brand-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.brand-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm) auto;
    border-radius: 16px;
    object-fit: cover;
}

.brand-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.brand-metric {
    font-size: 14px;
    color: var(--text-secondary);
}

.brand-highlight {
    color: var(--accent);
    font-weight: 500;
}

/* ==========================================================================
   Resume Section
   ========================================================================== */

.resume-header {
    text-align: left;
    padding: var(--spacing-lg) 0;
}

.resume-name {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.resume-title {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.resume-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-start;
    margin-top: var(--spacing-sm);
}

.resume-links a {
    color: var(--accent);
    font-weight: 500;
}

.resume-section {
    margin-top: var(--spacing-xl);
}

.resume-section h2 {
    font-size: 28px;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border);
}

.job-entry {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background-color: var(--bg-secondary);
    border-radius: 12px;
}

.job-header {
    margin-bottom: var(--spacing-sm);
}

.job-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.job-company {
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
}

.job-date {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.job-description {
    font-size: 16px;
    line-height: 1.6;
    margin: var(--spacing-sm) 0;
}

.job-achievements {
    list-style: none;
    margin-top: var(--spacing-sm);
}

.job-achievements li {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-md);
    position: relative;
}

.job-achievements li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 500;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.skill-tag {
    background: transparent;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   Table Styles (Before/After Comparisons)
   ========================================================================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-xl) 0;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background-color: var(--bg-dark);
    color: white;
    font-weight: 500;
    font-size: 16px;
}

.comparison-table td {
    font-size: 15px;
    color: var(--text-secondary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-live {
    background-color: #dcfce7;
    color: #166534;
}

.badge-pilot {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.badge-primary {
    background-color: transparent;
    color: rgba(59, 130, 246, 0.8);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: inline-block;
    margin-bottom: 16px;
}

.badge-small {
    padding: 3px 10px;
    font-size: 11px;
    margin-bottom: 12px;
    background-color: transparent;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: rgba(59, 130, 246, 0.8);
}

.badge-complete {
    background-color: #f3e8ff;
    color: #6d28d9;
}

/* ==========================================================================
   Dashboard Style Cards
   ========================================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.dashboard-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-card-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 8px 0;
    line-height: 1.2;
}

.dashboard-card-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.dashboard-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 12px;
}

.dashboard-card-trend.positive {
    background: rgba(219, 234, 254, 0.5);
    color: rgba(59, 130, 246, 0.8);
}

.dashboard-card-trend.negative {
    background: #fee2e2;
    color: #dc2626;
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 6px;
}

.dashboard-tab {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-tab.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.dashboard-metric-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.dashboard-metric-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.dashboard-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.dashboard-metric-change {
    font-size: 12px;
    color: #16a34a;
    margin-top: 4px;
    display: block;
}

/* Progress bar */
.dashboard-progress {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.dashboard-progress-bar {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.success {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.info {
    background: #dbeafe;
    color: #2563eb;
}

/* Timeline dashboard style */
.timeline-dashboard {
    position: relative;
    padding-left: 40px;
}

.timeline-dashboard::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.5) 0%, rgba(219, 234, 254, 1) 50%, rgba(219, 234, 254, 0.5) 100%);
}

.timeline-dashboard-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.timeline-dashboard-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    z-index: 1;
}

.timeline-dashboard-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.timeline-dashboard-item:hover::before {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.8);
    transform: scale(1.2);
}

.timeline-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.timeline-dashboard-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.timeline-dashboard-date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Education cards */
.education-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.education-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

/* Stat card */
.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-card-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.stat-card-trend {
    font-size: 12px;
    color: #16a34a;
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-metric-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-dashboard {
        padding-left: 0;
    }

    .timeline-dashboard::before,
    .timeline-dashboard-item::before {
        display: none;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: var(--accent);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl) 0;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-name {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    color: white;
}

.footer-location {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-map {
    margin-top: 12px;
    max-width: 280px;
}

.footer-credentials {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 400px;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.footer-social a {
    color: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    justify-content: end;
}

.sitemap-column h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.sitemap-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-column li {
    margin-bottom: 12px;
}

.sitemap-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.2s ease;
}

.sitemap-column a:hover {
    color: white;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.scroll-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-fade-in {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-md) 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        display: block;
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .nav-cta {
        margin: var(--spacing-sm) var(--spacing-md);
        display: block;
    }

    /* Typography */
    h1 {
        font-size: 32px;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    /* About Section */
    .about-title {
        font-size: 32px;
    }

    .about-intro-card,
    .about-philosophy-card {
        padding: 32px;
    }

    .intro-text {
        font-size: 18px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    section.bg-secondary {
        padding: 60px 0;
    }

    /* Hero */
    .hero-stats-plain {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .stat-number {
        font-size: 28px;
    }

    /* Approach Cards Small */
    .approach-grid-small {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-sitemap {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Card Grids */
    .card-grid,
    .card-grid-2,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    /* Philosophy Cards - Stack on mobile */
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    /* CTA Cards - 2 columns on tablet */
    .cta-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Sections */
    section {
        padding: var(--spacing-xl) 0;
    }

    /* Timeline */
    .timeline-item {
        flex-direction: column;
    }

    /* Table */
    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    h1 {
        font-size: 28px;
    }

    .hero {
        padding: 48px 0 64px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-tag {
        font-size: 12px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* About Section - Mobile */
    .about-intro-card,
    .about-philosophy-card {
        padding: 24px;
    }

    /* CTA Cards - Stack on mobile */
    .cta-cards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Hide elements with pdf-only class from webpage, but keep them in PDF */
.pdf-only {
    display: none !important;
}

/* ==========================================================================
   Mobile-Specific Fixes
   ========================================================================== */

@media (max-width: 768px) {
    /* Home page - Show only first 2 badges on mobile */
    .badge-group .badge:nth-child(n+3) {
        display: none;
    }

    /* Current Impact & Case Study - Timeline badges stack under title */
    .timeline-dashboard-item > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .timeline-dashboard-item > div:first-child > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100%;
    }

    /* Multiple badges in timeline items should wrap/stack */
    .timeline-dashboard-item div[style*="display: flex"][style*="gap: 8px"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .timeline-dashboard-item .badge-small {
        margin-top: 0;
        margin-bottom: 8px;
    }

    /* Business revenue dashboard - stack vertically and truncate */
    .dashboard-metric-row {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Business impact summary grid - 3 columns to 1 */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* 2 column grids to 1 */
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Truncate card descriptions to keep consistent height */
    .dashboard-card-description {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 4.5em;
        line-height: 1.5;
    }

    /* Dashboard grid for business impact - stack vertically */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Case Study - Phase 1 & 3 cards stack vertically */
    section .container > div[style*="display: grid"][style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    section .container > div[style*="display: grid"][style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* CTA Cards */
    .cta-cards {
        grid-template-columns: 1fr !important;
    }

    /* Ensure all card-based layouts stack properly */
    .approach-grid-small,
    .approach-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    /* Ensure badge group wrapping on very small screens */
    .badge-group {
        max-width: 100%;
    }

    .badge-group .badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    /* Timeline item padding adjustments */
    .timeline-dashboard-item {
        padding: 16px;
    }

    /* Smaller dashboard cards on mobile */
    .dashboard-metric-card,
    .dashboard-card {
        padding: 16px;
    }

    .dashboard-metric-value {
        font-size: 24px;
    }

    .dashboard-card-value {
        font-size: 28px;
    }
}
