/* Shared Styles for Professional Profile */

/* CSS Variables */
:root {
    --primary: #2180C3;
    --primary-dark: #1a65a3;
    --accent: #32B8C6;
    --success: #2D6A6F;
    --warning: #E67E23;
    --text: #1f2121;
    --text-light: #626c71;
    --bg-light: #fcfcf9;
    --bg-white: #ffffff;
    --border: #a7a9a9;
    --shadow-sm: 0 2px 8px rgba(31, 33, 33, 0.08);
    --shadow-md: 0 4px 16px rgba(31, 33, 33, 0.12);
    --shadow-lg: 0 12px 32px rgba(31, 33, 33, 0.15);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary: #4da3ff;
    --primary-dark: #66b3ff;
    --accent: #5fd4e0;
    --success: #4a9da3;
    --warning: #ff9558;
    --text: #e4e4e7;
    --text-light: #a1a1aa;
    --bg-light: #18181b;
    --bg-white: #27272a;
    --border: #52525b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

[data-theme="dark"] header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border-bottom-color: var(--primary);
}

[data-theme="dark"] .footer, [data-theme="dark"] footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border-top-color: var(--primary);
}

[data-theme="dark"] .cert-card,
[data-theme="dark"] .expertise-card,
[data-theme="dark"] .reference-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .matrix-cell,
[data-theme="dark"] .clause-card,
[data-theme="dark"] .roadmap-card,
[data-theme="dark"] .volunteer-card {
    background: var(--bg-white);
    border-color: var(--border);
}

[data-theme="dark"] .cert-card:hover,
[data-theme="dark"] .expertise-card:hover,
[data-theme="dark"] .reference-card:hover,
[data-theme="dark"] .contact-card:hover,
[data-theme="dark"] .matrix-cell:hover,
[data-theme="dark"] .clause-card:hover {
    border-color: var(--primary);
}

[data-theme="dark"] .nav-menu {
    background: var(--bg-white);
    border: 1px solid var(--border);
}

[data-theme="dark"] .nav-menu-item {
    background: var(--bg-white);
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .nav-menu-item:hover {
    background: linear-gradient(90deg, rgba(77, 163, 255, 0.1) 0%, rgba(95, 212, 224, 0.1) 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text);
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: var(--transition);
}

a:hover {
    text-decoration-thickness: 2px;
    color: var(--primary-dark);
}

a:focus {
    background: rgba(33, 128, 195, 0.1);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 500;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    min-height: 44px;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.theme-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle-icon {
    font-size: 16px;
}

/* Header Styles - Executive C-Suite Aesthetic */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 16px 0;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: white;
    border-bottom: 2px solid var(--primary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    color: white;
    letter-spacing: -0.5px;
}

.logo a {
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.logo a:hover {
    color: rgba(255, 255, 255, 0.95);
}

.logo-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin-top: 3px;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* Hero Section Styles - Compact */
.hero {
    background: var(--bg-white);
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: left;
}

.hero-content > div:first-child {
    min-width: 100px;
    max-width: 140px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
}

.hero-content > div:last-child {
    flex: 1 1 400px;
    min-width: 300px;
    max-width: 100%;
}

.hero-content img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(33, 128, 195, 0.2);
}

.hero-content h1 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 2em;
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    margin-bottom: 16px;
    font-size: 1.2em;
    color: var(--primary);
    font-weight: 600;
}

.hero-content p {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Testimonial Carousel Styles */
.testimonial-carousel {
    background: linear-gradient(135deg, rgba(33, 128, 195, 0.05) 0%, rgba(50, 184, 198, 0.05) 100%);
    border: 2px solid rgba(33, 128, 195, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    text-align: center;
}

.carousel-quote {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-style: italic;
    line-height: 1.4;
}

.carousel-author {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.carousel-title {
    font-size: 0.8em;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* CTA Section Styles */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 32px 24px;
    margin: 32px 0;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.cta-title {
    color: white !important;
    font-size: 2.2em;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    color: white !important;
    font-size: 1.15em;
    margin-bottom: 28px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    opacity: 1;
}

/* Layout and Section Styles - Executive Compact */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
    margin: 16px 0;
    border: none;
}

.section h2 {
    margin-top: 12px;
    color: var(--primary);
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.section p {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 16px;
}

.hero-stats {
    margin-top: 12px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(33, 128, 195, 0.3);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 13px;
    opacity: 0.95;
    display: block;
}

/* Download Button Styles */
.download-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.download-btn-icon {
    font-size: 20px;
}

/* Achievement Badges */
.achievement-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.achievement-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.achievement-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.badge-icon {
    font-size: 24px;
}

.badge-label {
    font-size: 14px;
    font-weight: 600;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
    display: block;
}

.timeline-item {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
    display: block;
    width: 100%;
}

.timeline-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.timeline-description {
    color: var(--text);
    line-height: 1.7;
    margin-top: 16px;
}

.timeline-description strong {
    color: var(--primary);
    font-size: 16px;
    display: block;
    margin-top: 16px;
    margin-bottom: 8px;
}

.timeline-description ul {
    margin-top: 8px;
    padding-left: 20px;
    list-style-type: disc;
}

.timeline-description li {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

/* Volunteer Section */
.volunteer-content {
    margin-top: 20px;
}

.volunteer-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.volunteer-date {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.volunteer-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
}

.volunteer-location {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
}

.volunteer-ward {
    color: var(--text-light);
    font-size: 13px;
    font-style: italic;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--bg-light);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
}

.volunteer-description {
    margin-top: 20px;
}

.volunteer-description strong {
    display: block;
    color: var(--primary);
    font-size: 17px;
    margin-bottom: 16px;
}

.volunteer-description ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.volunteer-description li {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}

.job-preview {
    margin-top: 12px;
}

.job-full {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 5000px;
    }
}

/* Expertise Labels and Values */
.expertise-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.expertise-value {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

/* Skills Proficiency Section */
.skills-section {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border);
    margin-bottom: 32px;
}

.skill-item {
    margin-bottom: 20px;
}

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

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-header span:first-child {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.skill-level {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(33, 128, 195, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

.skill-bar {
    height: 10px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    transition: width 0.8s ease;
}

/* Button Styles */
.cta-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-btn {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px; /* Touch target */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.cta-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.cta-btn.playing {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-color: #4CAF50;
    animation: pulse 1.5s ease-in-out infinite;
}

.cta-btn.playing .cta-btn-desc {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.6);
    }
}

.cta-btn-icon {
    font-size: 20px;
}

.cta-btn-label {
    font-weight: 600;
    font-size: 14px;
}

.cta-btn-desc {
    font-size: 12px;
    color: var(--text-light);
}

/* Grid Styles */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Card Styles */
.cert-card, .expertise-card, .reference-card, .contact-card, .formal-letter-card {
    border-radius: 10px;
    padding: 16px;
    transition: var(--transition);
    cursor: pointer;
    min-height: 44px; /* Touch target */
}

.cert-card {
    background: var(--bg-white);
    border: 2px solid #e0e0e0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-height: 200px;
    max-height: 200px;
    position: relative;
    overflow: hidden;
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.cert-card::after {
    content: '🔗 View';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 6px;
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(33, 128, 195, 0.2);
    border-color: var(--primary);
}

.cert-card:hover::after {
    bottom: 0;
}

.cert-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.cert-icon {
    font-size: 36px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.cert-name {
    font-weight: 600;
    color: var(--text);
    font-size: 12px;
    margin-bottom: 2px;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.cert-issuer {
    font-size: 10px;
    color: var(--text-light);
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

.expertise-card {
    background: var(--bg-white);
    border: 2px solid #e3f2fd;
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(33, 128, 195, 0.05) 0%, rgba(50, 184, 198, 0.05) 100%);
}

.expertise-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.expertise-title {
    font-weight: 600;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 8px;
}

.expertise-description {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.reference-card {
    background: linear-gradient(135deg, rgba(50, 184, 198, 0.08) 0%, rgba(33, 128, 195, 0.08) 100%);
    border: 2px solid #d0e8ef;
}

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

.reference-name {
    font-weight: 700;
    color: var(--text);
    font-size: 18px;
    margin-bottom: 4px;
}

.reference-title {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.reference-quote {
    font-style: italic;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.reference-date {
    font-size: 12px;
    color: var(--text-light);
}

.contact-card {
    background: linear-gradient(135deg, rgba(33, 128, 195, 0.08) 0%, rgba(50, 184, 198, 0.08) 100%);
    border: 2px solid var(--border);
    text-align: center;
    padding: 12px;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.contact-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.contact-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.formal-letter-card {
    background: linear-gradient(135deg, rgba(33, 128, 195, 0.06) 0%, rgba(50, 184, 198, 0.06) 100%);
    border: 2px solid rgba(50, 184, 198, 0.15);
}

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

/* Floating Navigation */
.floating-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 200;
    display: none;
}

.floating-nav.visible {
    display: block;
}

.nav-toggle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: 3px solid var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(33, 128, 195, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(33, 128, 195, 0.6);
    border-color: rgba(255, 255, 255, 0.9);
}

.nav-toggle:focus {
    border-color: white;
    box-shadow: 0 0 0 4px rgba(33, 128, 195, 0.5), 0 6px 30px rgba(33, 128, 195, 0.6);
}

.nav-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.nav-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    display: none;
    overflow: hidden;
}

.nav-menu.show {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: none;
    border-left: 4px solid transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 44px; /* Touch target */
}

.nav-menu-item:last-child {
    border-bottom: none;
}

.nav-menu-item:hover {
    background: linear-gradient(90deg, rgba(33, 128, 195, 0.1) 0%, rgba(50, 184, 198, 0.1) 100%);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 22px;
}

.nav-menu-item:focus {
    background: linear-gradient(90deg, rgba(33, 128, 195, 0.15) 0%, rgba(50, 184, 198, 0.15) 100%);
    border-left-color: var(--primary);
    outline-offset: -3px;
}

.nav-menu-item.active {
    background: linear-gradient(90deg, rgba(33, 128, 195, 0.15) 0%, rgba(50, 184, 198, 0.15) 100%);
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
    border-left-width: 4px;
}

.nav-menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Section Styles */
.section {
    padding: 24px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section.hidden {
    display: none;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

/* Footer - Executive Style */
.footer, footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    border-top: 2px solid var(--primary);
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
        width: 100vw;
    }

    .container {
        padding: 0 12px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .cta-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cert-grid, .expertise-grid, .reference-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-grid {
        padding: 0 8px;
    }

    .nav-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .section {
        padding: 20px 12px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .core-competencies-grid {
        grid-template-columns: 1fr !important;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 12px;
        margin: 0 0 16px 0;
        border-radius: 8px;
        width: auto;
        max-width: none;
        box-sizing: border-box;
        overflow: hidden;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        width: auto;
        max-width: none;
    }

    .hero-content > div:first-child,
    .hero-content > div:last-child {
        min-width: 0;
        max-width: none;
        width: auto;
        flex: none;
    }

    .hero-content img {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 1.35em;
        line-height: 1.3;
        margin: 0 0 8px 0;
        padding: 0;
    }

    .hero-subtitle {
        font-size: 0.85em;
        margin: 0 0 10px 0;
        padding: 0;
        font-weight: 600;
    }

    .hero-content p {
        font-size: 12px;
        line-height: 1.6;
        text-align: left;
        margin: 0;
        padding: 0;
    }

    /* Hero Stats Mobile */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .stat {
        padding: 16px;
    }

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

    .stat-label {
        font-size: 13px;
    }

    /* Header Mobile */
    header {
        padding: 12px 0;
    }

    .header-content {
        padding: 0 12px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 20px;
        line-height: 1.2;
    }

    .logo-subtitle {
        font-size: 10px;
        line-height: 1.3;
        margin-top: 4px;
    }

    /* Timeline Mobile */
    .timeline-item {
        padding: 18px;
    }

    .timeline-title {
        font-size: 18px;
    }

    /* CTA Section Mobile */
    .cta-section {
        padding: 24px 12px;
        margin: 20px 0;
        border-radius: 8px;
    }

    .cta-title {
        font-size: 1.6em;
        margin-bottom: 8px;
    }

    .cta-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .cta-btn {
        padding: 14px 12px;
    }

    .cta-btn-icon {
        font-size: 24px;
    }

    .cta-btn-label {
        font-size: 15px;
    }

    .cta-btn-desc {
        font-size: 12px;
    }

    /* Testimonial Carousel Mobile */
    .testimonial-carousel {
        padding: 20px 12px;
        margin: 20px 0;
    }

    .carousel-quote {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .carousel-author {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .carousel-title {
        font-size: 12px;
    }

    .carousel-dots {
        gap: 12px;
        margin-top: 20px;
    }

    .carousel-dot {
        min-width: 32px;
        min-height: 32px;
        padding: 10px;
    }

    .testimonial-card {
        padding: 18px 12px;
    }

    .testimonial-text {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 1.6em;
    }

    .section h2 {
        font-size: 20px;
        padding: 0 8px;
    }

    .section p {
        font-size: 13px;
        padding: 0 8px;
    }

    /* Download Buttons Mobile */
    .download-btn {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }

    .download-btn-icon {
        font-size: 18px;
    }

    /* Theme Toggle Mobile */
    .theme-toggle {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 13px;
        min-height: 40px;
    }

    .theme-toggle-icon {
        font-size: 14px;
    }

    /* Volunteer Section Mobile */
    .volunteer-card {
        padding: 16px 12px;
    }

    /* Work Preferences Mobile */
    [style*="work-preferences"], 
    div[style*="Work Preferences"] {
        padding: 16px 12px !important;
        margin: 20px 0 !important;
    }

    [style*="work-preferences"] ul,
    div[style*="Work Preferences"] ul {
        gap: 8px !important;
    }

    [style*="work-preferences"] li,
    div[style*="Work Preferences"] li {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* Core Competencies Grid */
.core-competencies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .core-competencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .header-content {
        padding: 0 10px;
    }

    .logo {
        font-size: 18px;
        max-width: 90%;
    }

    .logo-subtitle {
        font-size: 9px;
        line-height: 1.2;
    }

    .cta-btn {
        padding: 12px 8px;
    }

    .cta-btn-icon {
        font-size: 20px;
    }

    .cta-btn-label {
        font-size: 14px;
    }

    .cta-btn-desc {
        font-size: 11px;
    }

    /* Hero Extra Small Mobile */
    .hero {
        padding: 12px 8px;
    }

    .hero-content {
        gap: 12px;
    }

    .hero-content img {
        width: 80px;
        height: 80px;
    }

    .hero-content h1 {
        font-size: 1.25em;
    }

    .hero-subtitle {
        font-size: 0.85em;
    }

    .hero-content p {
        font-size: 11.5px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .section {
        padding: 16px 10px;
    }

    .section h2 {
        font-size: 18px;
    }

    .carousel-quote {
        font-size: 15px;
    }

    .download-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .hero-content p {
        font-size: 14px;
    }

    /* Timeline Extra Small */
    .timeline-item {
        padding: 16px;
    }

    .timeline-title {
        font-size: 16px;
    }

    .timeline-description {
        font-size: 14px;
    }

    /* Section Titles Extra Small */
    .section-title {
        font-size: 1.5em;
    }

    /* Cards Extra Small */
    .cert-card, .expertise-card, .reference-card, .contact-card {
        padding: 12px 8px;
    }

    .cert-card {
        min-height: 200px;
        max-height: 200px;
    }

    .cert-name {
        font-size: 11px;
    }

    .cert-issuer {
        font-size: 9px;
    }

    /* Competency Badges Extra Small */
    .competency-badge {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Filter Buttons */
.filter-btn {
    padding: 12px 16px;
    min-height: 44px; /* Touch target */
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

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

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

/* Carousel Styles */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    position: relative;
    min-width: 24px;
    min-height: 24px;
}

.carousel-dot:hover {
    background: var(--primary);
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Certification Search & Filter Styles */
.cert-search-container {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border);
    margin-bottom: 24px;
}

.cert-search {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.cert-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 128, 195, 0.1);
}

.cert-filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.cert-tag {
    background: var(--bg-light);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cert-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.cert-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cert-count {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
}

/* ISO Matrix Page Styles */
.iso-matrix-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 30px;
}

.iso-matrix-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.iso-matrix-header p {
    font-size: 1.1em;
    opacity: 0.95;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.control-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s ease;
    min-height: 44px;
}

.control-btn:hover, .control-btn.active {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.iso-content {
    padding: 30px;
}

.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 24px;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(33, 128, 195, 0.1) 0%, rgba(50, 184, 198, 0.1) 100%);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 128, 195, 0.2);
}

.tab-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(33, 128, 195, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text);
    position: sticky;
    top: 0;
    z-index: 10;
}

tr:hover {
    background: var(--bg-white);
}

.control-tag {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    margin: 2px;
}

.overlap-highlight {
    background: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

.integration-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.integration-card h3 {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.integration-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.roadmap-phase {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.roadmap-phase h3 {
    color: var(--text);
    margin-bottom: 10px;
}

.roadmap-phase p {
    color: var(--text-light);
    line-height: 1.6;
}

.phase-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 600;
    margin-right: 15px;
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(33, 128, 195, 0.4);
}

.menu-options {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 999;
    min-width: 200px;
}

.menu-options.show {
    display: block;
}

.menu-option {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.menu-option:hover {
    background: var(--bg-light);
}

.menu-option:last-child {
    border-bottom: none;
}

.menu-option a {
    color: var(--text);
    text-decoration: none;
    display: block;
}

.menu-option a:hover {
    color: var(--primary);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: scale(1.1);
}

.back-to-top.show {
    display: flex;
}

.legend {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.legend h3 {
    color: var(--text);
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: 0 8px;
}

.legend-box {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.legend-box.overlap {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #90caf9;
}

.legend-box.unique {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ffb74d;
}

.legend-box.shared {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #81c784;
}

.legend-text {
    color: var(--text-light);
}

/* ISO Standards Cards */
.standards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.standard-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
    cursor: default;
    box-shadow: var(--shadow-sm);
}

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

.standard-card.core {
    border-left: 4px solid var(--primary);
}

.standard-card.specialized {
    border-left: 4px solid var(--accent);
}

.standard-card h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

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

.standard-card strong {
    color: var(--text);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Matrix Grid Layout */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.matrix-cell {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.matrix-cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.cell-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.cell-content {
    line-height: 1.8;
    color: var(--text);
}

.cell-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* Clauses Grid Layout */
.clauses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.clause-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.clause-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.clause-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(33, 128, 195, 0.3);
}

.clause-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
    padding-right: 50px;
}

.clause-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.clause-tag.shared {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.clause-tag.overlap {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.clause-tag.overlap-medium {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

.clause-tag.unique {
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid #f48fb1;
}

.clause-desc {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Roadmap Timeline with Time Tube Layout */
.timeline-container {
    margin: 40px 0;
    padding: 20px 0;
}

.time-tube {
    position: relative;
    margin: 0 auto 60px;
    width: 90%;
    max-width: 1200px;
}

.tube-bar {
    height: 20px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(33, 128, 195, 0.3);
    position: relative;
}

.time-marker {
    position: absolute;
    top: 28px;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.time-marker::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 12px;
    background: var(--primary);
}

.time-label {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.roadmap-phases {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 450px;
}

.roadmap-card {
    position: absolute;
    width: 18%;
    min-width: 200px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    z-index: 1;
}

.roadmap-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(33, 128, 195, 0.25);
    border-color: var(--primary);
    z-index: 10;
}

.card-connector {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 40px;
    background: var(--primary);
}

.card-connector::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.phase-time {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(33, 128, 195, 0.3);
}

.phase-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 16px;
    box-shadow: 0 3px 10px rgba(33, 128, 195, 0.4);
}

.phase-name {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 12px 0;
    text-align: center;
}

.phase-summary {
    color: #666;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.phase-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-steps li {
    padding: 7px 0;
    padding-left: 22px;
    position: relative;
    color: var(--text);
    font-size: 12px;
    line-height: 1.5;
}

.phase-steps li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 15px;
}

/* Table Badges/Tags */
.overlap,
.unique,
.shared {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.overlap {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.unique {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

.shared {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.standard-name {
    font-weight: 600;
    color: var(--primary);
}

/* ISO Matrix Media Queries */
@media (max-width: 768px) {
    .iso-matrix-header {
        padding: 20px 15px;
    }

    .iso-matrix-header h1 {
        font-size: 2em;
    }

    .controls {
        flex-direction: column;
        align-items: center;
    }

    .tabs {
        flex-direction: column;
        width: 100%;
    }

    .tab-button {
        width: 100%;
        text-align: center;
    }

    .table-wrapper {
        font-size: 0.8em;
        overflow-x: auto;
    }

    th, td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .matrix-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .matrix-cell {
        padding: 18px;
    }

    .cell-title {
        font-size: 1.1em;
    }

    .clauses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .clause-card {
        padding: 18px;
    }

    .clause-number {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }

    .clause-title {
        font-size: 1.1em;
    }

    .clause-description {
        font-size: 13px;
    }

    /* Roadmap Mobile */
    .roadmap-phases {
        position: static;
        width: 100%;
    }

    .roadmap-card {
        position: static !important;
        width: 100% !important;
        min-width: auto;
        margin-bottom: 20px;
    }

    .card-connector {
        display: none;
    }

    .time-tube {
        width: 95%;
        margin-bottom: 40px;
    }

    .tube-bar {
        height: 16px;
    }

    .time-marker {
        font-size: 11px;
        top: 24px;
    }

    .time-marker::before {
        height: 10px;
        top: -26px;
    }

    .time-label {
        font-size: 13px;
        top: 45px;
    }

    .phase-name {
        font-size: 1.2em;
    }

    .phase-steps li {
        font-size: 13px;
    }

    /* Legend Mobile */
    .legend {
        flex-wrap: wrap;
        justify-content: center;
    }

    .legend-item {
        font-size: 12px;
    }

    /* Section Title Mobile */
    .section-title {
        font-size: 1.75em;
        padding: 0 10px;
    }
}

/* Extra Small Devices - ISO Matrix */
@media (max-width: 480px) {
    .iso-matrix-header h1 {
        font-size: 1.5em;
    }

    .time-marker {
        font-size: 10px;
    }

    .time-label {
        font-size: 11px;
    }

    .clause-card {
        padding: 14px;
    }

    .matrix-cell {
        padding: 14px;
    }

    .phase-time {
        font-size: 11px;
        padding: 6px 12px;
    }

    .phase-steps li {
        font-size: 12px;
    }
}