/* COLOR DEFINITIONS 001 - Original Light Theme (Backup)
Primary Background: white (#ffffff)
Primary Text: #111827 (dark gray)
Secondary Text: #6b7280 (medium gray)
Light Text: #374151 (lighter gray)
Accent: #14B04C (green)
Borders: #e5e7eb (light gray)
Light Background: #f9fafb (very light gray)
Card Background: white (#ffffff)
Badge Background: #f0fdf4 (very light green)
Status Dot: #14B04C (green)
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background: #0f172a;
}

/* Utility Classes */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Clean typography hierarchy */
.methodology-icon {
    transition: opacity 0.2s ease;
}
.methodology-icon:hover {
    opacity: 0.7;
}

/* Card layouts - clean borders, no decorative effects */
.clean-card {
    border: 1px solid #334155;
    background: #1e293b;
    transition: border-color 0.2s ease;
}
.clean-card:hover {
    border-color: #14B04C;
}

/* Project card layout */
.project-card {
    transition: all 0.3s ease;
    transform-origin: top;
}
.project-card.expanded {
    border-color: #14B04C;
}

/* Right column tabs - minimal styling */
.right-column-tabs {
    border-bottom: 1px solid #334155;
    margin-bottom: 16px;
    display: flex;
}
.tab-button {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
}
.tab-button.active {
    color: #14B04C;
    border-bottom-color: #14B04C;
}
.tab-button:hover:not(.active) {
    color: #e2e8f0;
}

/* Media items - clean presentation */
.media-item {
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.media-item:hover {
    border-color: #14B04C;
}
.media-placeholder {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 8px;
    background: #0f172a;
}
.media-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
    line-height: 1.3;
}
.media-item-description {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.3;
}

/* Lightbox - clean overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.show {
    opacity: 1;
}
.lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    padding-top: 60px; /* Space for close button and title */
    padding-bottom: 20px; /* Minimal bottom padding */
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: 600;
    z-index: 10;
}
.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #14B04C;
    color: #14B04C;
}
.lightbox-media-placeholder {
    width: 100%;
    height: calc(100vh - 220px); /* Reserve space for UI elements */
    max-height: calc(95vh - 140px); /* Account for padding and UI */
    min-height: 300px; /* Minimum height for consistent sizing */
    border: 1px solid #334155;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 16px;
    text-align: center;
    background: #0f172a;
    overflow: hidden;
    position: relative;
}

.lightbox-media-placeholder img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    transition: opacity 0.3s ease;
}
.lightbox-title {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
    z-index: 20;
    max-width: calc(100% - 120px); /* Account for close button */
}

/* Remove the general description - only per-image captions will be used */
.lightbox-description {
    display: none;
}

/* Per-Image Caption (applies to all lightbox types) */
.lightbox-image-caption {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 8px;
    margin-top: 8px;
    text-align: left;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid #374151;
    max-width: 100%;
}

.lightbox-navigation-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    margin-top: 8px;
    min-height: 24px;
}

.lightbox-navigation-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
    border: 1px solid #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-navigation-dot:hover {
    background: #94a3b8;
    border-color: #cbd5e1;
}

.lightbox-navigation-dot.active {
    background: #14B04C;
    border-color: #14B04C;
    transform: scale(1.2);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #334155;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    z-index: 10;
    user-select: none;
    opacity: 0;
    pointer-events: none;
}

.lightbox-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #14B04C;
    color: #14B04C;
}

/* Show arrows when hovering over image container */
.lightbox-media-placeholder:hover ~ .lightbox-arrow {
    opacity: 1;
    pointer-events: auto;
}

/* Keep arrows visible when hovering over the arrows themselves */
.lightbox-arrow:hover {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.lightbox-arrow-left {
    left: 20px;
}

.lightbox-arrow-right {
    right: 20px;
}

.lightbox-arrow.hidden {
    display: none;
}

/* Video Modal - Dedicated video player overlay */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal-overlay.show {
    opacity: 1;
}

.video-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    padding-top: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 24px;
    font-weight: 600;
    z-index: 10;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #14B04C;
    color: #14B04C;
}

#video-modal-player {
    width: 100%;
    max-width: 1280px;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    background: #0f172a;
}

.video-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    text-align: center;
    margin-top: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .video-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 15px;
        padding-top: 55px;
    }

    .video-modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 12px;
        right: 12px;
    }

    .video-modal-title {
        font-size: 16px;
    }
}

/* Metric cards - clean design */
.metric-card {
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    transition: border-color 0.2s ease;
    cursor: pointer;
    position: relative;
    background: #1e293b;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.metric-card:hover, .metric-card.metric-expanded {
    border-color: #14B04C;
}
.metric-value {
    font-size: 0.875rem;
    font-weight: bold;
    color: #0891b2;
    margin-bottom: 4px;
    line-height: 1.2;
    word-break: break-word;
}
.metric-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1.3;
}
.metric-details {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid #0891b2;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.metric-context {
    font-size: 0.75rem;
    color: #0891b2;
    margin-bottom: 8px;
    font-weight: 600;
}
.metric-expanded-details {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Expansion panel animation */
.expansion-panel {
    animation: expandPanel 0.3s ease;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #0f172a;
}
.nav.scrolled {
    border-bottom: 1px solid #334155;
}
.nav.section-transition {
    border-bottom: 1px solid #334155;
    animation: sectionBorderPulse 0.6s ease;
}
@keyframes sectionBorderPulse {
    0% {
        border-bottom-color: transparent;
    }
    50% {
        border-bottom-color: #14B04C;
    }
    100% {
        border-bottom-color: #334155;
    }
}
.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    font-size: 1.25rem;
    font-weight: bold;
    color: #e5e7eb;
}
.nav-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    color: #94a3b8;
    text-decoration: none;
}
.nav-link:hover {
    color: #e5e7eb;
}
.nav-link.active {
    color: #14B04C;
    font-weight: 500;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 5rem;
}
.hero-content {
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #334155;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}
.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #14B04C;
    border-radius: 50%;
}
.status-text {
    color: #14B04C;
    font-size: 0.875rem;
    font-weight: 500;
}
.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}
.hero-description {
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    background: #1e293b;
}
.hero-description p {
    font-size: 1.125rem;
    color: #cbd5e1;
    line-height: 1.6;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.stat {
    text-align: center;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #14B04C;
}
.stat-value-small {
    font-size: 1.25rem;
    font-weight: bold;
    color: #14B04C;
	padding-top: 4pt;
}
.stat-label {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Sections */
.section {
    padding: 5rem 1.5rem;
}
.section-gray {
    background: #1e293b;
}
.container {
    max-width: 80rem;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #334155;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    background: #0f172a;
}
.section-badge svg {
    width: 1rem;
    height: 1rem;
    color: #14B04C;
}
.section-badge-text {
    color: #14B04C;
    font-weight: 500;
    font-size: 0.875rem;
}
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}
.section-description {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 48rem;
    margin: 0 auto;
}

/* Projects */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.project-card {
    border-radius: 0.5rem;
    padding: 2rem;
    background: #1e293b;
}
.project-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}
.project-main {
    flex: 1;
    margin-bottom: 1rem;
    padding-right: 2rem;
}
.project-icon-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.project-icon {
    width: 3rem;
    height: 3rem;
    background: #1e3a8a;
    border: 2px solid #3b82f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}
.project-logo-letter {
    color: #14B04C;
    font-weight: bold;
    font-size: 1.125rem;
}
.project-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}
.project-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e5e7eb;
}
.project-type {
    color: #14B04C;
    font-size: 0.875rem;
    font-weight: 500;
}
.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}
.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.project-meta svg {
    width: 1rem;
    height: 1rem;
}
.player-problem {
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #374151;
}
.player-problem h4 {
    color: #14B04C;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.player-problem h4 svg {
    width: 1rem;
    height: 1rem;
}
.player-problem p {
    color: #cbd5e1;
    font-size: 0.875rem;
}

/* Right Column */
.right-column {
    width: 100%;
    margin-left: 0;
    margin-top: 2rem;
}
.right-column-content {
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #1e293b;
}
.tab-content {
    height: 200px;
    overflow: visible;
}
.methodologies-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.methodologies-label {
    color: #94a3b8;
    font-size: 0.875rem;
}
.methodologies-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    height: 100%;
    align-content: start;
}
.media-rail-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
}
.media-rail-container::-webkit-scrollbar {
    width: 4px;
}
.media-rail-container::-webkit-scrollbar-track {
    background: #334155;
    border-radius: 2px;
}
.media-rail-container::-webkit-scrollbar-thumb {
    background: #14B04C;
    border-radius: 2px;
}
.media-rail-container::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

/* Expand Button */
.expand-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #14B04C;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    margin-bottom: 1rem;
}
.expand-button:hover {
    color: #14B04C;
}
.expand-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Expanded Content */
.expanded-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.star-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}
.star-item {
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background: #374151;
    transition: border-color 0.2s ease;
    cursor: pointer;
}
.star-item.situation { border-color: #422006; }
.star-item.task { border-color: #2e1065; }
.star-item.action { border-color: #1e3a8a; }
.star-item.result { border-color: #064e3b; }
.star-item.situation:hover { border-color: #d97706; }
.star-item.task:hover { border-color: #7c3aed; }
.star-item.action:hover { border-color: #2563eb; }
.star-item.result:hover { border-color: #14B04C; }
.star-item h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.star-item h4 svg {
    width: 1rem;
    height: 1rem;
}
.star-item.situation h4 { color: #d97706; }
.star-item.task h4 { color: #7c3aed; }
.star-item.action h4 { color: #2563eb; }
.star-item.result h4 { color: #14B04C; }
.star-item p {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.6;
}
.process-details {
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
}
.process-details h4 {
    color: #e5e7eb;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.process-details h4 svg {
    width: 1rem;
    height: 1rem;
}
.process-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.process-item {
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #0c1821;
}
.process-item h5 {
    color: #0891b2;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.process-item p {
    color: #cbd5e1;
    font-size: 0.875rem;
}
.project-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #14B04C;
    border: 2px solid #14B04C;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}
.project-link:hover {
    background: #14B04C;
    color: #0f172a;
}
.project-link svg {
    width: 1rem;
    height: 1rem;
}

/* Button Hierarchy: Primary (green) vs Secondary (grey) */
.project-link.primary {
    background: transparent;
    color: #14B04C;
    border: 2px solid #14B04C;
}
.project-link.primary:hover {
    background: #14B04C;
    color: #0f172a;
}
.project-link.secondary {
    background: transparent;
    color: #94a3b8;
    border: 2px solid #475569;
}
.project-link.secondary:hover {
    background: #475569;
    color: #e2e8f0;
    border-color: #64748b;
}

/* Contact Section */
.contact-grid {
    max-width: 48rem;
    margin: 0 auto;
}
.contact-container {
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 2rem;
    background: #1e293b;
}
.contact-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Mobile responsive - stack on smaller screens */
@media (max-width: 768px) {
    .contact-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .contact-grid {
        max-width: 24rem;
    }
    .lightbox-content {
        max-width: 98vw;
        max-height: 98vh;
        padding: 15px;
        padding-top: 50px;
        padding-bottom: 15px;
    }
    .lightbox-media-placeholder {
        height: calc(100vh - 250px);
        max-height: calc(98vh - 180px);
        min-height: 200px;
        margin-bottom: 12px;
    }
    .lightbox-title {
        font-size: 14px;
        top: 12px;
        left: 12px;
        max-width: calc(100% - 80px);
    }
    .lightbox-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .lightbox-image-caption {
        font-size: 12px;
        margin-bottom: 10px;
        padding: 6px 10px;
    }
    .lightbox-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .lightbox-arrow-left {
        left: 10px;
    }
    .lightbox-arrow-right {
        right: 10px;
    }
}
.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    background: #0f172a;
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
.contact-link:hover {
    border-color: #14B04C;
    background: #064e3b;
    color: #14B04C;
}
.contact-link svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #14B04C;
}
.contact-status {
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .star-grid { grid-template-columns: repeat(1, 1fr); }
    .metric-card {
        padding: 10px;
        min-height: 70px;
    }
    .metric-value {
        font-size: 0.75rem;
    }
    .metric-label {
        font-size: 0.7rem;
    }
}
@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .project-header { flex-direction: row; }
    .project-main { margin-bottom: 0; }
    .right-column { 
        width: 33.333333%;
        margin-left: 2rem;
        margin-top: 0;
    }
    .star-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Background Pattern System */
.bg-pattern-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bg-pattern-shape {
    position: fixed;
    border: 2px solid #14B04C;
    background: transparent;
    will-change: transform, opacity;
    pointer-events: none;
}

/* Shape variations based on methodology icons */
.bg-pattern-shape.architecture {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.bg-pattern-shape.documentation {
    border-radius: 2px;
}

.bg-pattern-shape.documentation::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid #14B04C;
    border-radius: 1px;
}

.bg-pattern-shape.team {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.bg-pattern-shape.team::before {
    content: '';
    position: absolute;
    top: 6px; left: 6px;
    width: 4px; height: 4px;
    background: #14B04C;
    border-radius: 50%;
    box-shadow: 
        calc(100% - 12px) 0 0 #14B04C,
        0 calc(100% - 12px) 0 #14B04C,
        calc(100% - 12px) calc(100% - 12px) 0 #14B04C;
}

.bg-pattern-shape.player {
    border-radius: 50%;
}

.bg-pattern-shape.player::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 6px; height: 6px;
    background: #14B04C;
    border-radius: 50%;
}

.bg-pattern-shape.performance {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Size variations */
.bg-pattern-shape.size-xs { width: 15px; height: 15px; }
.bg-pattern-shape.size-sm { width: 25px; height: 25px; }
.bg-pattern-shape.size-md { width: 35px; height: 35px; }
.bg-pattern-shape.size-lg { width: 50px; height: 50px; }
.bg-pattern-shape.size-xl { width: 70px; height: 70px; }

/* Opacity variations */
.bg-pattern-shape.opacity-low { opacity: 0.05; }
.bg-pattern-shape.opacity-medium { opacity: 0.15; }
.bg-pattern-shape.opacity-high { opacity: 0.25; }

/* Color variations within green palette */
.bg-pattern-shape.color-primary { border-color: #14B04C; }
.bg-pattern-shape.color-light { border-color: #22c55e; }
.bg-pattern-shape.color-dark { border-color: #16a34a; }
.bg-pattern-shape.color-muted { border-color: #15803d; }

/* Animation keyframes */
@keyframes bgRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bgScale {
    0%, 100% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
}

@keyframes bgFade {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

@keyframes bgRotateScale {
    0% { transform: rotate(0deg) scale(0.8); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1.2); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(0.8); }
}

/* Animation classes - applied randomly */
.bg-pattern-shape.anim-rotate {
    animation: bgRotate 120s linear infinite;
}

.bg-pattern-shape.anim-rotate-fast {
    animation: bgRotate 90s linear infinite;
}

.bg-pattern-shape.anim-scale {
    animation: bgScale 75s ease-in-out infinite;
}

.bg-pattern-shape.anim-fade {
    animation: bgFade 60s ease-in-out infinite;
}

.bg-pattern-shape.anim-combo {
    animation: bgRotateScale 150s ease-in-out infinite;
}

/* Media Thumbnail Styles */
.media-thumbnail {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.media-item:hover .media-thumbnail {
    transform: scale(1.02);
    border-color: #14B04C !important;
}

.animation-indicator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Loading Animation */
@keyframes mediaLoading {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.media-loading {
    animation: mediaLoading 1.5s ease-in-out infinite;
}

/* Mobile responsive - reduce quantity and size */
@media (max-width: 768px) {
    .bg-pattern-shape.size-lg,
    .bg-pattern-shape.size-xl {
        display: none;
    }
    
    .bg-pattern-shape {
        opacity: 0.5 !important;
    }
}