/*
=============================================================================
🚨 CACHE BUSTING REMINDER - READ BEFORE MAKING CHANGES! 🚨
=============================================================================

IMPORTANT: After modifying this CSS file, you MUST update the version number in index.html!

Current version in index.html: styles.css?v=32
After making changes: Change to styles.css?v=33 (increment by 1)

This ensures users get your updated styles instead of cached old versions.
Without this, your changes may not be visible to users!

How to update:
1. Make your CSS changes in this file
2. Open index.html
3. Find: <link rel="stylesheet" href="styles.css?v=31">
4. Change to: <link rel="stylesheet" href="styles.css?v=32">

=============================================================================
*/

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

/* Custom Scrollbars - Modern Dark Theme */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5ba0f2, #4a90e2);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.4);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #357abd, #2c6aa0);
}

::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.1);
}

/* Thin scrollbars for smaller areas */
.modal-content::-webkit-scrollbar,
.simplified-portfolio::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modal-content::-webkit-scrollbar-track,
.simplified-portfolio::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar-thumb,
.simplified-portfolio::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #50c8a3, #3da58a);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content::-webkit-scrollbar-thumb:hover,
.simplified-portfolio::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #60d8b3, #50c8a3);
    box-shadow: 0 0 6px rgba(80, 200, 163, 0.4);
}

/* Firefox Scrollbar Styling */
* {
    scrollbar-width: thin;
    scrollbar-color: #4a90e2 rgba(0, 0, 0, 0.1);
}

.modal-content,
.simplified-portfolio {
    scrollbar-color: #50c8a3 rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #f0f0f0;
    overflow: hidden;
    user-select: none;
}

/* Game Container */
#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f14 0%, #0a0a0a 100%);
}

/* Screen Management */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
}

.screen.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Loading Screen */
#loading-screen {
    background: linear-gradient(135deg, #0f0f14 0%, #0a0a0a 100%);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    padding: 1rem;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.main-logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    from { 
        transform: translateY(0px);
    }
    to { 
        transform: translateY(-8px);
    }
}

/* Main Title */
.glitch-text {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #cccccc;
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Loading Bar */
.loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #50c8a3);
    width: 0%;
    animation: loadingProgress 3s ease-out forwards;
}

@keyframes loadingProgress {
    to { width: 100%; }
}

.loading-text {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.launch-button {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}

@keyframes fadeInButton {
    to { opacity: 1; }
}

.launch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.launch-button:active {
    transform: translateY(0);
}

/* Instructions Screen */
#instructions-screen {
    background: linear-gradient(135deg, #0f0f14 0%, #0a0a0a 100%);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
}

.instructions-content {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

.instructions-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.instructions-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
}

.instructions-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #4a90e2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructions-section p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #cccccc;
    margin-bottom: 0.75rem;
}

.instructions-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-section li {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #cccccc;
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}

.instructions-section li::before {
    content: '•';
    color: #4a90e2;
    position: absolute;
    left: 0;
}

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

.control-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
}

.control-desc {
    font-size: 0.9rem;
    color: #cccccc;
    flex: 1;
    text-align: right;
}

.start-button {
    background: linear-gradient(135deg, #50c8a3, #3da58a);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(80, 200, 163, 0.4);
    margin: 1rem auto 0.5rem auto;
    display: block;
    max-width: 250px;
    z-index: 100;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 200, 163, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.start-button:active {
    transform: translateY(0);
}

/* Game Screen */
#game-screen {
    background: #000000;
    position: relative;
}

/* Canvas Container */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Space Canvas */
#space-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: none;
}

/* Cockpit HUD */
.cockpit-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
    font-family: 'Orbitron', monospace;
}

/* Crosshair */
.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

.crosshair-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffff;
}

.crosshair-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.crosshair-horizontal {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.crosshair-vertical {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

/* Flight Computer - Hidden (now integrated into cockpit) */
.flight-computer {
    display: none;
}

.computer-screen {
    padding: 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08), rgba(74, 144, 226, 0.03));
    border-radius: 10px;
}

.screen-header {
    color: #4a90e2;
    font-size: 12px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 1px 4px rgba(74, 144, 226, 0.3);
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
    padding-bottom: 8px;
    letter-spacing: 0.05em;
}

.nav-data {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.data-row .label {
    color: #cccccc;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-row .value {
    color: #4a90e2;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-shadow: 0 1px 4px rgba(74, 144, 226, 0.2);
}

/* 3D Minimap Display - Hidden (now integrated into cockpit) */
.minimap-display {
    display: none;
}

#minimap-canvas {
    display: none;
}

.minimap-label {
    text-align: center;
    color: #50c8a3;
    font-size: 10px;
    margin-top: 8px;
    text-shadow: 0 1px 4px rgba(80, 200, 163, 0.3);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Waypoints Container */
.waypoints-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 150;
}

.waypoint {
    position: absolute;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 10px currentColor;
    animation: waypointPulse 2s ease-in-out infinite;
}

@keyframes waypointPulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Throttle Display - Hidden (now integrated into cockpit) */
.throttle-display {
    display: none;
}

.throttle-label {
    color: #e67e22;
    font-size: 10px;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 0 1px 4px rgba(230, 126, 34, 0.3);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.throttle-bar {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.85));
    border: 1px solid rgba(230, 126, 34, 0.6);
    border-radius: 35px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.throttle-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #e67e22, #f39c12);
    border-radius: 0 0 33px 33px;
    transition: height 0.1s ease;
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.4);
}

.throttle-markers {
    position: absolute;
    right: -25px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: flex-start;
}

.throttle-markers .marker {
    color: #ff6600;
    font-size: 8px;
    text-shadow: 0 0 3px #ff6600;
}

/* Controls Help */
.controls-help {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 220px;
}

.help-title {
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.3);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.help-item {
    color: #cccccc;
    font-size: 10px;
    margin: 6px 0;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Inter', sans-serif;
}

/* Click to Start */
.click-to-start {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.click-to-start.hidden {
    opacity: 0;
    pointer-events: none;
}

.start-message {
    text-align: center;
    color: #ffffff;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: pulseGlow 2s ease-in-out infinite alternate;
    max-width: 400px;
}

@keyframes pulseGlow {
    from { 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
    }
    to { 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

.start-message h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.start-message p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    opacity: 0.9;
}

.pause-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.pause-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: auto;
}

.pause-button.primary {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.pause-button.primary:hover {
    background: linear-gradient(135deg, #5a9ff2, #4a8acd);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.pause-button.secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.pause-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.pause-button:active {
    transform: translateY(0);
}

/* Ship Status */
.ship-status {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fuel-gauge {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #00ffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
    min-width: 200px;
}

.gauge-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #00ffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.gauge-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #00ffff;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #00ff7f);
    width: 100%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.coordinates {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #ff00ff;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.3);
}

.coord-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #ff00ff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

.coord-value {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Mission Progress */
.mission-progress {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 2px solid #00ff7f;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 255, 127, 0.3);
}

.progress-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #00ff7f;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.8);
}

.progress-bar {
    width: 300px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #00ff7f;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff7f, #00ffff);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.8);
}

.planets-discovered {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Controls Panel */
.controls-panel {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.controls-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.control-item {
    font-size: 0.8rem;
    color: #cccccc;
    margin: 0.3rem 0;
}

/* Landing Prompt */
.landing-prompt {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border: 3px solid #ffff00;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(255, 255, 0, 0.5);
    animation: pulsePrompt 2s ease-in-out infinite alternate;
}

.landing-prompt.active {
    opacity: 1;
    visibility: visible;
}

@keyframes pulsePrompt {
    from { 
        box-shadow: 0 4px 30px rgba(255, 255, 0, 0.5);
        border-color: #ffff00;
    }
    to { 
        box-shadow: 0 8px 40px rgba(255, 255, 0, 0.8);
        border-color: #ffff88;
    }
}

.prompt-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: #ffff00;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.8);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 2px solid rgba(74, 144, 226, 0.5);
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: 700px;
    padding: 2.5rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #aaaaaa;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    pointer-events: auto;
}

.modal-close:hover {
    color: #4a90e2;
}

.modal-actions {
    margin-top: 2rem;
    text-align: center;
}

.action-btn {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
    pointer-events: auto;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Planet Content */
.planet-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #4a90e2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.planet-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem 0;
    color: #50c8a3;
    text-shadow: 0 1px 4px rgba(80, 200, 163, 0.3);
}

.planet-content p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #cccccc;
    font-size: 1.1rem;
}

.planet-content ul {
    list-style: none;
    padding-left: 0;
}

.planet-content li {
    padding: 0.6rem 0;
    border-left: 3px solid #4a90e2;
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
    background: rgba(74, 144, 226, 0.08);
    border-radius: 0 6px 6px 0;
    transition: all 0.2s ease;
}

.planet-content li:hover {
    background: rgba(74, 144, 226, 0.15);
    border-left-color: #50c8a3;
}

.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.contact-link {
    display: inline-block;
    padding: 1rem 1.8rem;
    background: linear-gradient(135deg, #50c8a3, #3da58a);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(80, 200, 163, 0.3);
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 200, 163, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Project Tech Tags in Planet Content */
.planet-content .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.planet-content .tech-tag {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.planet-content .tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
    border-color: rgba(255,255,255,0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.15));
}

/* Responsive Design */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .instructions-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .instructions-section {
        padding: 0.75rem;
    }
    
    .start-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .ship-status {
        top: 1rem;
        left: 1rem;
    }
    
    .fuel-gauge, .coordinates {
        min-width: 150px;
        padding: 0.8rem;
    }
    
    .mission-progress {
        top: 1rem;
    }
    
    .progress-bar {
        width: 200px;
    }
    
    .controls-panel {
        bottom: 1rem;
        left: 1rem;
        padding: 0.8rem;
    }
    
    .modal-content {
        width: 95vw;
        padding: 2rem;
    }
    
    .planet-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-links {
        flex-direction: column;
    }
    
    .progress-bar {
        width: 150px;
    }
    
    .fuel-gauge, .coordinates {
        min-width: 120px;
    }
}

/* Hide only flight computer, keep minimap and throttle visible */
.flight-computer {
    display: none !important;
}

/* Show HUD minimap as backup if cockpit screen isn't visible */
.minimap-display {
    display: block !important;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(0,40,40,0.9), rgba(0,60,60,0.95));
    border: 2px solid #00ff88;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,255,136,0.3), inset 0 0 20px rgba(0,255,136,0.1);
    backdrop-filter: blur(5px);
    padding: 12px;
    z-index: 1000;
}

.minimap-display .minimap-label {
    color: #00ff88;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0,255,136,0.8);
    margin-bottom: 8px;
    text-align: center;
    font-size: 10px;
}

#minimap-canvas {
    width: 100%;
    height: calc(100% - 30px);
    border-radius: 4px;
    display: block;
}

.throttle-display {
    display: block !important;
    background: linear-gradient(135deg, rgba(0,40,0,0.9), rgba(0,60,0,0.95));
    border: 2px solid #00ff00;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,255,0,0.3), inset 0 0 20px rgba(0,255,0,0.1);
    backdrop-filter: blur(5px);
    padding: 12px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 150px;
    z-index: 1000;
}

.throttle-display .throttle-label {
    color: #00ff00;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0,255,0,0.8);
    margin-bottom: 8px;
}

.throttle-bar {
    border: 1px solid #00ff00;
    box-shadow: inset 0 0 10px rgba(0,255,0,0.2);
}

.throttle-fill {
    background: linear-gradient(to top, #ff0000, #ff6600, #00ff00);
    box-shadow: 0 0 15px rgba(0,255,0,0.6);
    transition: all 0.2s ease;
}

.throttle-markers .marker {
    color: #00ff00;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-shadow: 0 0 5px rgba(0,255,0,0.8);
}

/* Keep controls help visible but more subtle */
.controls-help {
    opacity: 0.7;
    font-size: 11px;
}

/* Keep only the crosshair visible but subtle */
.crosshair {
    opacity: 0.3;
}

/* Experience Choice Screen */
#choice-screen {
    background: linear-gradient(135deg, #0f0f14 0%, #0a0a0a 100%);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

.choice-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.choice-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.choice-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: #cccccc;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.experience-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.experience-option {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.experience-option:hover {
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.2);
    transform: translateY(-4px);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.experience-option h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.experience-option p {
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.option-features {
    list-style: none;
    margin-bottom: 1.25rem;
}

.option-features li {
    color: #50c8a3;
    margin: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.85rem;
}

.option-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #50c8a3;
    font-weight: bold;
}

.option-button {
    width: 100%;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.interactive-btn {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}

.interactive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.simplified-btn {
    background: linear-gradient(135deg, #50c8a3, #3da58a);
    box-shadow: 0 4px 16px rgba(80, 200, 163, 0.3);
}

.simplified-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 200, 163, 0.4);
}

.mobile-notice {
    color: #e67e22;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

/* Simplified Portfolio Styles - Grayscale Theme */
#simplified-screen {
    background: linear-gradient(45deg, #000000 0%, #1a1a1a 25%, #000000 50%, #1a1a1a 75%, #000000 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #ffffff;
    overflow-y: auto;
    position: relative;
}

/* Force simplified screen to be visible with maximum specificity */
body #game-container #simplified-screen.screen.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 9999 !important;
    transition: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Force all simplified portfolio content to be visible */
body #game-container #simplified-screen * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

#simplified-screen::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.simplified-portfolio {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 2;
}

.portfolio-header {
    background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(40,40,40,0.9));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    opacity: 1;
}

.header-headshot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: photoGlow 2s ease-in-out infinite alternate;
    filter: grayscale(100%) contrast(1.2);
    opacity: 1;
}

.header-headshot:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    filter: grayscale(0%) contrast(1);
}

@keyframes logoGlow {
    from { box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
    to { box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); }
}

.header-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    opacity: 1;
    letter-spacing: 0.02em;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin: 0.5rem 0 0 0;
    opacity: 1;
    color: #cccccc;
}

@keyframes typewriter {
    from { 
        width: 0;
        border-right-color: transparent;
    }
    to { 
        width: 100%;
        border-right-color: transparent;
    }
}

.back-button {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.back-button:hover::before {
    left: 100%;
}

.back-button:hover {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.portfolio-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.portfolio-section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: sectionLine 3s ease-in-out infinite;
}

@keyframes sectionLine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.portfolio-section:last-child {
    border-bottom: none;
}

.portfolio-section h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

.portfolio-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #cccccc, #ffffff);
    animation: underlineGrow 1s ease-out 0.5s forwards;
}

@keyframes sectionTitleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineGrow {
    to { width: 100px; }
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
}

@keyframes contentReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.experience-item {
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.experience-item:hover::before {
    transform: translateX(100%);
}

.experience-item:hover {
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: translateY(-5px);
}

.experience-item h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(255,255,255,0.2);
}

.item-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.experience-list {
    list-style: none;
    padding-left: 0;
}

.experience-list li {
    margin: 1rem 0;
    padding-left: 2rem;
    position: relative;
    color: #dddddd;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.experience-list li:nth-child(1) { animation-delay: 0.1s; }
.experience-list li:nth-child(2) { animation-delay: 0.2s; }
.experience-list li:nth-child(3) { animation-delay: 0.3s; }
.experience-list li:nth-child(4) { animation-delay: 0.4s; }
.experience-list li:nth-child(5) { animation-delay: 0.5s; }

@keyframes listItemFade {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.experience-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.8rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.experience-list li:hover {
    color: #ffffff;
    transform: translateX(10px);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-tag:nth-child(1) { animation-delay: 0.1s; }
.skill-tag:nth-child(2) { animation-delay: 0.2s; }
.skill-tag:nth-child(3) { animation-delay: 0.3s; }
.skill-tag:nth-child(4) { animation-delay: 0.4s; }
.skill-tag:nth-child(5) { animation-delay: 0.5s; }
.skill-tag:nth-child(6) { animation-delay: 0.6s; }

@keyframes skillTagReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag.primary {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    color: #ffffff;
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.skill-tag:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255,255,255,0.6);
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
}

.skills-category {
    margin-bottom: 3rem;
    opacity: 1;
    transform: translateX(0);
}

.skills-category:nth-child(1) { animation-delay: 0.2s; }
.skills-category:nth-child(2) { animation-delay: 0.4s; }
.skills-category:nth-child(3) { animation-delay: 0.6s; }

@keyframes categorySlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skills-category h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(255,255,255,0.2);
    position: relative;
    padding-left: 1rem;
}

.skills-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #ffffff, #cccccc);
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes projectCardReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.project-card:hover::before {
    animation: cardShine 1s ease-in-out;
}

@keyframes cardShine {
    0% { transform: rotate(45deg) translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: rotate(45deg) translateX(100%); opacity: 0; }
}

.project-card:hover {
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
}

.project-card h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(255,255,255,0.2);
}

.project-card p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tech-tag:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.2));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.contact-link {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.4s ease;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

.contact-link:nth-child(1) { animation-delay: 0.2s; }
.contact-link:nth-child(2) { animation-delay: 0.4s; }
.contact-link:nth-child(3) { animation-delay: 0.6s; }

@keyframes contactLinkReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%) skewX(-20deg);
    transition: transform 0.6s ease;
}

.contact-link:hover::before {
    transform: translateX(100%) skewX(-20deg);
}

.contact-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255,255,255,0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    text-decoration: none;
    color: white;
}

.portfolio-footer {
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(20,20,20,0.8));
    backdrop-filter: blur(20px);
    text-align: center;
    padding: 3rem;
    color: #cccccc;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.portfolio-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: footerLine 4s ease-in-out infinite;
}

@keyframes footerLine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.portfolio-footer p {
    margin: 0;
    font-size: 1rem;
    opacity: 1;
}

/* Additional Animation Utilities */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Intersection Observer Animation Classes */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Particle Effect for About Section */
.portfolio-section#about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.02) 1px, transparent 1px),
        radial-gradient(circle at 40% 70%, rgba(255,255,255,0.02) 1px, transparent 1px),
        radial-gradient(circle at 60% 30%, rgba(255,255,255,0.02) 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 60px 60px, 70px 70px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
    100% { background-position: 100% 100%, -100% 100%, 100% -100%, -100% -100%; }
}

/* Mobile Warning Modal */
.mobile-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.mobile-warning-modal.active {
    display: flex;
}

.mobile-warning-content {
    background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(40,40,40,0.9));
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.4s ease-out;
}

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

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-warning-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-warning-close:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

.mobile-warning-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: grayscale(100%);
}

.mobile-warning-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.mobile-warning-message {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.mobile-warning-suggestion {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-warning-suggestion p {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 0;
}

.mobile-warning-button {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 120px;
}

.mobile-warning-button:hover {
    background: linear-gradient(135deg, #5a9ff2, #4a8acd);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.mobile-warning-button:active {
    transform: translateY(0);
}

/* Photo glow animation for headshots */
@keyframes photoGlow {
    from {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    }
    to {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

/* Responsive About Section */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .about-image {
        flex: none;
        align-self: center;
    }
    
    .headshot {
        width: 150px;
        height: 150px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Fix viewport issues */
    html, body {
        overflow-x: hidden !important;
        position: relative !important;
    }
    
    /* Screen layouts */
    #choice-screen, #loading-screen, #instructions-screen {
        padding: 1rem !important;
        align-items: flex-start !important;
        padding-top: 2rem !important;
        min-height: 100vh !important;
        height: auto !important;
    }
    
    #choice-screen {
        overflow-y: auto !important;
        padding-bottom: 3rem !important;
    }
    
    .choice-content, .loading-content, .instructions-content {
        max-width: none;
        width: 100%;
        padding: 1rem;
    }
    
    .mobile-notice {
        font-size: 1rem !important;
        margin: 1.5rem 0 !important;
        line-height: 1.4 !important;
    }
    
    /* Choice screen */
    .choice-title {
        font-size: 2rem;
    }
    
    .experience-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .experience-option {
        padding: 1.5rem;
    }
    
    /* Loading screen */  
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    /* Instructions screen */
    .instructions-title {
        font-size: 2rem;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .start-button {
        font-size: 1rem;
        padding: 0.875rem 2rem;
        margin: 1.5rem auto 1rem auto;
    }
    
    /* Simplified portfolio */
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding-top: 1rem !important;
    }
    
    .portfolio-header {
        padding: 2rem 0 1rem 0 !important;
        margin-top: 0 !important;
        position: relative !important;
    }
    
    .header-content {
        padding-top: 1rem !important;
        margin-top: 0 !important;
    }
    
    .header-headshot {
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .header-text {
        margin-top: 0 !important;
    }
    
    .header-text h1 {
        margin-top: 0 !important;
    }
    
    .header-text h1 {
        font-size: 2.2rem;
    }
    
    .portfolio-section {
        padding: 3rem 0;
    }
    
    .portfolio-section h2 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .experience-item {
        padding: 1.5rem;
    }
    
    .skills-grid {
        gap: 0.75rem;
    }
    
    .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
} 