/* ESP32 Web Installer Styles */

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ===== CONTAINER ===== */
.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;  /* Doubled from 60px */
    width: auto;
    display: none;
}

.header-logo.visible {
    display: block;
}

.header-content {
    flex: 1;
    max-width: calc(100% - 200px);  /* Reserve space for buttons */
    padding-right: 20px;
}

.header-content h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.header-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;  /* Stack vertically */
    align-items: flex-end;  /* Align to right */
    gap: 10px;
}

.header-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.header-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

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

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ===== BROWSER WARNING ===== */
.browser-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
}

.browser-warning.show {
    display: block;
}

.browser-warning strong {
    display: block;
    margin-bottom: 5px;
}

/* ===== CONTENT ===== */
.content {
    padding: 40px;
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    margin-top: 10px;  /* Space below Report Issue button */
}

.language-selector select {
    padding: 8px 16px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    background: white;
    color: #667eea;
    transition: all 0.3s;
}

.language-selector select:hover {
    background: #667eea;
    color: white;
}

/* ===== SECTIONS ===== */
.section {
    margin-bottom: 30px;
}

.section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* ===== PROJECT GRID ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ===== PROJECT CARDS ===== */
.project-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.project-card.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

/* Disabled project cards */
.project-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f9f9f9;
}

.project-card.disabled:hover {
    border-color: #e0e0e0;
    transform: none;
    box-shadow: none;
}

.project-card.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.03) 10px,
        rgba(0, 0, 0, 0.03) 20px
    );
    pointer-events: none;
}

.project-card.disabled .project-content {
    position: relative;
}

.project-card.disabled h3 {
    color: #999;
}

.project-card.disabled p {
    color: #aaa;
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f5f5f5;
}

.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Badges row - aligns project badge, version, and flash count horizontally */
.project-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.project-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.project-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.project-title-block {
    flex: 1;
}

.project-card h3 {
    color: #667eea;
    margin-bottom: 4px;
    font-size: 1.2em;
    line-height: 1.3;
}

.project-version {
    display: inline-block;
    color: #999;
    font-size: 0.75em;
    font-weight: normal;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

/* Flash count badge (GitHub style) */
.flash-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 8px;
    margin: 0;
    min-width: auto;
    width: fit-content;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.7em;
    font-weight: 700;
    border-radius: 20px;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.flash-count-badge .flash-icon {
    flex-shrink: 0;
    margin: 0;
}

.flash-count-badge span {
    line-height: 1;
    margin: 0;
    padding: 0;
}

.flash-count-badge:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
    transition: all 0.2s ease;
    cursor: default;
}

.project-card p {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 12px;
    line-height: 1.5;
    flex: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9em;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.project-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.project-link svg {
    width: 14px;
    height: 14px;
}

.project-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.85em;
    color: #999;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    min-height: 30px;
}

.project-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    width: fit-content;
    flex-shrink: 0;
}

/* ===== FLASH SECTION ===== */
.flash-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    display: none;
}

.flash-section.active {
    display: block;
}

/* ===== CONSOLE ===== */
.console-container {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    display: none;
}

.console-container.active {
    display: block;
}

.console-line {
    color: #00ff00;
    margin-bottom: 5px;
    line-height: 1.4;
}

.console-line.info {
    color: #00aaff;
}

.console-line.warning {
    color: #ffaa00;
}

.console-line.error {
    color: #ff5555;
}

.console-line.success {
    color: #00ff00;
    font-weight: bold;
}

/* ===== FLASH INSTRUCTIONS ===== */
.flash-instruction {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: none;
    animation: pulse 2s infinite;
}

.flash-instruction.active {
    display: block;
}

.flash-instruction h3 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.flash-instruction p {
    color: #856404;
    line-height: 1.6;
    margin-bottom: 10px;
}

.flash-instruction strong {
    color: #ff6b00;
    font-size: 1.1em;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

esp-web-install-button button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    font-size: 1.1em !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    width: 100% !important;
    font-weight: 600 !important;
}

esp-web-install-button button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-info {
    background: #e0f0ff;
    color: #0066cc;
    border: 1px solid #0066cc;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-logo {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }
    
    .header-actions {
        position: static;
        transform: none;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .content {
        padding: 20px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FLASH BUTTON (Custom - no ESP Web Tools) ===== */
.flash-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-weight: 600;
    font-family: inherit;
}

.flash-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.flash-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.flash-button:active:not(:disabled) {
    transform: translateY(0);
}

/* ===== BOOT BUTTON MODAL ===== */
.boot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.boot-modal.show {
    display: flex;
}

.boot-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
    animation: slideUp 0.3s ease;
    text-align: center;
    color: white;
}

.boot-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 1.5s ease infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.boot-modal h2 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.boot-modal p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    line-height: 1.6;
}

.boot-modal strong {
    color: #ffeb3b;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.boot-modal-close {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.boot-modal-close:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== PROGRESS BAR ===== */
.progress-container {
    display: none;
    margin: 20px 0;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-container.active {
    display: block;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-label {
    color: #667eea;
    font-size: 1.1em;
}

.progress-percent {
    color: #764ba2;
    font-size: 1.3em;
}

.progress-bar-bg {
    background: #e0e0e0;
    border-radius: 20px;
    height: 30px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9em;
}

.progress-status {
    margin-top: 10px;
    color: #666;
    font-size: 0.95em;
    text-align: center;
}

/* ===== CONSOLE COLLAPSE ===== */
.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.console-header:hover {
    background: linear-gradient(135deg, #5568d3 0%, #654a8f 100%);
}

.console-title {
    font-weight: 600;
    font-size: 1.1em;
}

.console-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.console-toggle-icon {
    transition: transform 0.3s;
    font-size: 1.2em;
}

.console-toggle-icon.collapsed {
    transform: rotate(-90deg);
}

.console-body {
    max-height: 400px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.console-body.collapsed {
    max-height: 0;
    opacity: 0;
}

.console-container {
    border-radius: 0 0 12px 12px;
    margin-top: 0;
}

/* Update existing console container */
.console-container {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
}

/* When console has header */
.console-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;  /* Add space before flash button */
}

.console-wrapper .console-container {
    margin-top: 0;
    border-radius: 0 0 12px 12px;
}

/* ===== FLASH OPTIONS (ERASE ALL) ===== */
.flash-options {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.flash-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.flash-option-item:hover {
    background: #f5f5f5;
}

.flash-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.flash-option-label {
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.flash-option-hint {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .flash-option-item {
        flex-wrap: wrap;
    }
    
    .flash-option-hint {
        margin-left: 32px;
        display: block;
        width: 100%;
    }
}
/* ===== 3D CAROUSEL VARIABLES ===== */
:root {
    --carousel-perspective: 1400px;
    --carousel-spacing: 420px;
    --carousel-rotation: 50deg;
    --carousel-scale: 0.82;
    --carousel-opacity: 0.5;
    --carousel-depth: -180px;
    --carousel-transition: 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);  /* Bounce effect */
    --carousel-height: 600px;  /* Increased from 480px */
}

/* ===== CAROUSEL CONTAINER ===== */
.carousel-wrapper {
    margin: 30px 0;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    perspective: var(--carousel-perspective);
    perspective-origin: center center;
    position: relative;
    height: var(--carousel-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* ===== PROJECT CARDS IN CAROUSEL ===== */
.project-card {
    position: absolute;
    width: 380px;  /* Increased from 340px */
    transition: all var(--carousel-transition);
    cursor: pointer;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    
    /* Prevent text "wave" effect during transitions */
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    will-change: transform;
}

/* Card positions */
.project-card.position--3 {
    transform: 
        translateX(calc(-3 * var(--carousel-spacing)))
        translateZ(calc(var(--carousel-depth) * 2))
        rotateY(calc(var(--carousel-rotation) * 1.5))
        scale(0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.project-card.position--2 {
    transform: 
        translateX(calc(-2 * var(--carousel-spacing)))
        translateZ(calc(var(--carousel-depth) * 1.5))
        rotateY(calc(var(--carousel-rotation) * 1.2))
        scale(0.7);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.project-card.position--1 {
    transform: 
        translateX(calc(-1 * var(--carousel-spacing)))
        translateZ(var(--carousel-depth))
        rotateY(var(--carousel-rotation))
        scale(var(--carousel-scale));
    opacity: var(--carousel-opacity);
    pointer-events: auto;
    z-index: 5;
    filter: blur(1px);
}

.project-card.position-0 {
    transform: 
        translateX(0)
        translateZ(0)
        rotateY(0deg)
        scale(1.05);  /* Slightly larger for emphasis */
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    filter: blur(0);
    box-shadow: 0 25px 80px rgba(102, 126, 234, 0.4);
    
    /* Fix text rendering during scale */
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    perspective: 1000px;
}

.project-card.position-1 {
    transform: 
        translateX(var(--carousel-spacing))
        translateZ(var(--carousel-depth))
        rotateY(calc(-1 * var(--carousel-rotation)))
        scale(var(--carousel-scale));
    opacity: var(--carousel-opacity);
    pointer-events: auto;
    z-index: 5;
    filter: blur(1px);
}

.project-card.position-2 {
    transform: 
        translateX(calc(2 * var(--carousel-spacing)))
        translateZ(calc(var(--carousel-depth) * 1.5))
        rotateY(calc(-1 * var(--carousel-rotation) * 1.2))
        scale(0.7);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.project-card.position-3 {
    transform: 
        translateX(calc(3 * var(--carousel-spacing)))
        translateZ(calc(var(--carousel-depth) * 2))
        rotateY(calc(-1 * var(--carousel-rotation) * 1.5))
        scale(0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* Hover effect on side cards */
.project-card.position--1:hover,
.project-card.position-1:hover {
    transform: 
        translateX(calc(var(--carousel-spacing) * (var(--position) == -1 ? -1 : 1)))
        translateZ(calc(var(--carousel-depth) + 30px))
        rotateY(calc(var(--carousel-rotation) * (var(--position) == -1 ? 1 : -1)))
        scale(0.88);
    opacity: 0.75;
}

/* Active card pulse animation - DISABLED (causes wavy text) */
.project-card.position-0 {
    /* animation: cardPulse 3s ease-in-out infinite; */
}

@keyframes cardPulse {
    0%, 100% {
        box-shadow: 0 25px 80px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 30px 100px rgba(102, 126, 234, 0.6);
    }
}

/* ===== NAVIGATION ARROWS ===== */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-prev {
    left: 20px;
}

.carousel-nav-next {
    right: 20px;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

/* ===== CAROUSEL INDICATORS ===== */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 20px 0;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator:hover {
    background: #bbb;
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 32px;
    border-radius: 6px;
    transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    :root {
        --carousel-spacing: 360px;
        --carousel-rotation: 45deg;
    }
    
    .project-card {
        width: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --carousel-spacing: 320px;
        --carousel-rotation: 40deg;
        --carousel-height: 420px;
    }
    
    .project-card {
        width: 280px;
    }
    
    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .carousel-nav-prev {
        left: 10px;
    }
    
    .carousel-nav-next {
        right: 10px;
    }
    
    /* Hide far cards on mobile */
    .project-card.position--2,
    .project-card.position-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --carousel-spacing: 280px;
        --carousel-height: 380px;
    }
    
    .project-card {
        width: 260px;
    }
    
    /* Show only active card on very small screens */
    .project-card.position--1,
    .project-card.position-1 {
        opacity: 0.2;
        transform: 
            translateX(calc(var(--carousel-spacing) * 0.5 * (var(--position) == -1 ? -1 : 1)))
            translateZ(calc(var(--carousel-depth) * 0.5))
            rotateY(calc(var(--carousel-rotation) * 0.7 * (var(--position) == -1 ? 1 : -1)))
            scale(0.7);
    }
}

/* ===== CONSOLE COLLAPSED FIX ===== */
.console-wrapper:has(.console-body.collapsed) .console-header {
    border-radius: 12px;
}

/* ===== PROJECT CARD ADDITIONS ===== */
.project-version {
    font-size: 0.85em;
    color: #666;
    margin: 4px 0;  /* Reduced from 8px */
    text-align: center;
}

.project-links {
    display: flex;
    justify-content: center;  /* Center links */
    gap: 20px;
    margin-top: 8px;  /* Reduced from 16px */
    padding: 6px 0;  /* Reduced from 12px */
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85em;
    transition: all 0.3s;
}

.project-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Disabled project cards */
.project-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.project-card.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    pointer-events: none;
}

/* ===== PROJECT ICON CENTERED ===== */
.project-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;  /* Reduced from 20px */
}

.project-icon {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 6px;  /* Reduced from 12px */
    padding: 0 20px;  /* Horizontal padding */
}

.project-title {
    display: block;
    margin: 0;
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    text-align: center;
}

/* ===== COMPACT SECTION HEADER ===== */
.section-compact {
    margin: 20px 0 !important;  /* Reduced margins */
    padding-top: 10px !important;
}

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

.section-header h2 {
    margin: 0 !important;
}


.project-description {
    padding: 0 20px;
    margin: 6px 0;  /* Reduced from 12px */
    line-height: 1.5;
}
