/* ========================
   TERMINAL PORTFOLIO
   ======================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --terminal-bg: #0a0e14;
    --terminal-fg: #00ff41;
    --terminal-prompt: #00d9ff;
    --terminal-error: #ff3366;
    --terminal-warning: #ffcc00;
    --terminal-header: #1a1f26;
    --title-font: "Eurostile Extended", "Eurostile", sans-serif;
    --body-font: "OCR-B", "OCR B", monospace;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--terminal-bg);
    color: var(--terminal-fg);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Matrix Background */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

/* Terminal Container - Now Draggable */
.terminal-container {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: rgba(10, 14, 20, 0.95);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    border: 1px solid rgba(0, 255, 65, 0.3);
    cursor: default;
}

.terminal-container.dragging {
    cursor: grabbing;
    user-select: none;
}

/* Terminal Header - Draggable Handle */
.terminal-header {
    background: var(--terminal-header);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    cursor: grab;
}

.terminal-header:active {
    cursor: grabbing;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f56; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #27c93f; }

.terminal-title {
    font-size: 0.85rem;
    color: #888;
}

/* Terminal Body */
.terminal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 12.8px;
    line-height: 1.6;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: var(--terminal-bg);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--terminal-fg);
    border-radius: 4px;
}

/* Terminal Lines */
.line {
    margin-bottom: 0.5rem;
    animation: typeIn 0.5s steps(40);
}

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

.prompt-line {
    color: var(--terminal-prompt);
    font-weight: 700;
}

.output {
    color: var(--terminal-fg);
    margin-left: 2rem;
}

.error {
    color: var(--terminal-error);
    margin-left: 2rem;
}

.warning {
    color: var(--terminal-warning);
}

.ascii-art {
    color: var(--terminal-fg);
    line-height: 1.2;
    font-size: 0.7rem;
    white-space: pre;
    margin: 1rem 0;
}

.project-item {
    margin: 0.5rem 0;
    padding-left: 2rem;
    font-size: 12.8px;
}

.project-number {
    color: var(--terminal-prompt);
    font-weight: 700;
    font-size: 12.8px;
}

.project-title {
    color: var(--terminal-fg);
    font-weight: 700;
    font-size: 12.8px;
}

.project-meta {
    color: #888;
    font-size: 12.8px;
    margin-left: 2rem;
}

.skill-category {
    margin: 1rem 0;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.skill-name {
    color: var(--terminal-prompt);
    font-weight: 700;
    font-size: 12.8px;
}

.skill-level {
    color: var(--terminal-warning);
    font-weight: 700;
    font-size: 12.8px;
}

.skill-examples {
    color: #888;
    font-size: 12.8px;
    margin-left: 2rem;
    line-height: 1.4;
}

.contact-item {
    margin: 0.5rem 0;
    padding-left: 2rem;
}

.contact-label {
    color: var(--terminal-prompt);
    display: inline-block;
    width: 100px;
}

.contact-value {
    color: var(--terminal-fg);
}

.link {
    color: var(--terminal-fg);
    text-decoration: underline;
    cursor: pointer;
}

.link:hover {
    color: var(--terminal-warning);
}

/* Input Line */
.input-line {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 14, 20, 0.5);
}

.prompt {
    color: var(--terminal-prompt);
    font-weight: 700;
}

.command-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--terminal-fg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
}

.cursor-blink {
    color: var(--terminal-fg);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Help Menu */
.help-menu {
    margin: 1rem 0;
}

.help-item {
    margin: 0.5rem 0;
    padding-left: 2rem;
}

.command {
    color: var(--terminal-prompt);
    font-weight: 700;
    display: inline-block;
    width: 150px;
}

.description {
    color: #888;
}

/* Loading Animation */
.loading {
    display: inline-block;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 100% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Browser Window Styles */
.browser-window {
    position: absolute;
    width: 800px;
    max-width: 90vw;
    height: 600px;
    max-height: 80vh;
    background: rgba(10, 14, 20, 0.95);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.browser-window.active {
    z-index: 200;
}

.browser-header {
    background: var(--terminal-header);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    cursor: grab;
    min-height: 40px;
}

.browser-header:active {
    cursor: grabbing;
}

.browser-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.browser-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: filter 0.2s;
    flex-shrink: 0;
    border: none;
    padding: 0;
}

.browser-btn:hover {
    filter: brightness(0.8);
}

.browser-btn.close { background: #ff5f56; }
.browser-btn.minimize { background: #ffbd2e; }
.browser-btn.maximize { background: #27c93f; }

.browser-title {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
    font-family: 'JetBrains Mono', monospace;
}

.browser-body {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 3rem;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

.browser-body::-webkit-scrollbar {
    width: 10px;
}

.browser-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.browser-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.browser-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Case Study Content Styles */
.case-study-content {
    max-width: 800px;
    margin: 0 auto;
}

.project-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e1e4e8;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a0e14;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.25rem;
    color: #586069;
    font-weight: 400;
    margin-bottom: 1rem;
}

.project-meta-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.meta-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f6f8fa;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-tag.status-shipped {
    background: #d1f0d7;
    color: #2da44e;
}

.meta-tag.impact-high {
    background: #ffeaa7;
    color: #d63031;
}

.meta-tag.impact-medium {
    background: #dfe6e9;
    color: #636e72;
}

.project-hero-image,
.project-hero-video {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-hero-video iframe {
    width: 100%;
    height: 450px;
    display: block;
}

.project-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #00d9ff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-text {
    font-size: 1rem;
    color: #24292f;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f6f8fa;
    border-radius: 8px;
}

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

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00ff41;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #57606a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-image,
.project-video {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-video iframe {
    width: 100%;
    height: 450px;
    display: block;
}

.asset-caption {
    font-size: 0.9rem;
    color: #57606a;
    font-style: italic;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0 1rem;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f6f8fa;
    border-radius: 6px;
    border-left: 3px solid #00ff41;
}

.timeline-phase {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #00d9ff;
    min-width: 120px;
    flex-shrink: 0;
}

.timeline-desc {
    font-size: 0.95rem;
    color: #24292f;
}

.challenge-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f6f8fa;
    border-radius: 8px;
    border-left: 4px solid #ffcc00;
}

.challenge-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #0a0e14;
    margin-bottom: 0.75rem;
}

.challenge-solution {
    font-size: 0.95rem;
    color: #24292f;
    line-height: 1.7;
}

.resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.resource-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #0a0e14;
    color: #00ff41;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #00ff41;
}

.resource-link:hover {
    background: #00ff41;
    color: #0a0e14;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 255, 65, 0.3);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #57606a;
    font-family: 'JetBrains Mono', monospace;
}

/* Contact Link Styles */
.contact-link {
    color: var(--terminal-fg);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--terminal-prompt);
}

.browser-body::-webkit-scrollbar {
    width: 8px;
}

.browser-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.browser-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.project-header {
    margin-bottom: 2rem;
}

.browser-body .project-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #1a1a1a;
    font-family: var(--title-font);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.project-subtitle {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 1rem;
    font-weight: 400;
    font-family: var(--body-font);
}

.project-link {
    display: inline-block;
    color: #0071e3;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-family: var(--body-font);
}

.project-link:hover {
    text-decoration: underline;
}

.project-section {
    margin-bottom: 2rem;
}

.project-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    font-family: var(--title-font);
}

.project-section p {
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1rem;
    font-family: var(--body-font);
}

.project-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0071e3;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--body-font);
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-container {
        width: 95%;
        height: 90vh;
    }
    
    .terminal-body {
        font-size: 0.8rem;
        padding: 1rem;
    }
    
    .skill-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bar {
        width: 100%;
    }
    
    .browser-window {
        width: 95vw;
        height: 80vh;
    }
    
    .browser-body {
        padding: 2rem 1.5rem;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================
   PERSONAL GALLERY STYLES
   ======================== */

.personal-gallery {
    padding: 2rem;
}

.personal-photos {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.personal-photo-item {
    width: 100%;
}

.personal-photo {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.personal-photo:hover {
    border-color: rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.1);
}

.photo-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--terminal-prompt);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ========================
   OUTSIDE SHOPIFY MODAL
   ======================== */

.outside-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.98);
    z-index: 10000;
    overflow-y: auto;
}

.outside-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.outside-modal-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 60px 120px;
    position: relative;
}

.close-modal {
    position: fixed;
    top: 40px;
    right: 40px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    color: #00ff00;
    font-size: 40px;
    width: 70px;
    height: 70px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 300;
    font-family: 'Courier New', monospace;
}

.close-modal:hover {
    background: #00ff00;
    color: black;
    box-shadow: 0 0 20px #00ff00;
}

.modal-header {
    text-align: center;
    margin-bottom: 80px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

.modal-header h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px #00ff00;
}

.modal-subtitle {
    font-size: 18px;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* ========================
   BENTO GRID
   ======================== */

.bento-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

.bento-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 255, 0, 0.03);
    position: relative;
    border: 1px solid rgba(0, 255, 0, 0.2);
    display: inline-block;
    width: 100%;
}

.bento-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    border-color: #00ff00;
    z-index: 10;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: rgba(0, 0, 0, 0.8);
}

/* Bento Grid Sizes */
.bento-large {
    grid-column: span 8;
    grid-row: span 3;
}

.bento-wide {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-tall {
    grid-column: span 4;
    grid-row: span 4;
}

.bento-medium {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-small {
    grid-column: span 4;
    grid-row: span 2;
}

/* Responsive Bento Grid */
@media (max-width: 1200px) {
    .bento-grid {
        column-count: 2;
    }
        grid-row: span 3;
    }
    
    .bento-medium {
        grid-column: span 4;
        grid-row: span 2;
    }
    
    .bento-small {
        grid-column: span 4;
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .outside-modal-content {
        padding: 60px 20px 80px;
    }
    
    .modal-header h1 {
        font-size: 36px;
    }
    
    .modal-subtitle {
        font-size: 14px;
    }
    
    .close-modal {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    .bento-grid {
        column-count: 1;
    }
}
