/* Dark Glassmorphism Projects Portfolio */

/* DS-TERM Font */
@font-face {
    font-family: 'DS-Terminal';
    src: url('ds_terminal/DS-TERM.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #0a0a0b;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Page vignette background */
.page-vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(60% 50% at 50% 0%, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Header */
.site-header {
    position: relative;
    z-index: 10;
    padding: 40px 20px 20px;
    display: flex;
    justify-content: flex-start;
}

.back-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.2s ease;
}

.back-link:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* Header pill */
.header-pill {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.pill-content {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    font-family: 'DS-Terminal', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Search and Filter Controls */
.search-filter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 8px;
}

.search-box {
    display: flex;
    justify-content: center;
}

#project-search {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-family: inherit;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    outline: none;
}

#project-search:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

#project-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.filter-btn .count {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.filter-btn.active .count {
    background: rgba(255, 255, 255, 0.2);
}

.results-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-top: 8px;
}

/* Responsive adjustments for filters */
@media (max-width: 768px) {
    .search-filter-container {
        gap: 16px;
        margin-bottom: 32px;
    }

    .filter-controls {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    #project-search {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive grid improvements */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 auto;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        gap: 16px;
        max-width: 100%;
    }
}

/* Project Card */
.project-card {
    position: relative;
    background: #0b0b0c;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    z-index: 100;
}

/* Vignette overlay */
.vignette-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 120% at 50% -10%, rgba(255,255,255,0.12), transparent 60%);
    opacity: 0.6;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover .vignette-overlay {
    opacity: 0.8;
}

/* Inner border */
.inner-border {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.project-card:hover .inner-border {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Chrome bar */
.chrome-bar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
}

.traffic-lights {
    display: flex;
    gap: 4px;
}

.light {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.light.red {
    background: rgba(255, 95, 87, 0.7);
    box-shadow: 0 0 8px rgba(255, 95, 87, 0.4);
}

.light.yellow {
    background: rgba(255, 189, 46, 0.7);
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.35);
}

.light.green {
    background: rgba(40, 200, 64, 0.7);
    box-shadow: 0 0 8px rgba(40, 200, 64, 0.35);
}

.chrome-label {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    font-size: 6px;
    color: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.chrome-plus {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    line-height: 1;
    user-select: none;
}

/* Project media */
.project-media {
    position: relative;
    z-index: 5;
    margin: 0 6px 8px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 88px;
}

.media-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0e0e10 0%, #1a1a1c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

.project-card:hover .media-placeholder {
    opacity: 1;
}

/* Sheen effect */
.sheen-effect {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.7s ease;
}

.project-card:hover .sheen-effect {
    opacity: 1;
    transform: translateX(100%);
}

/* Mock-ups */
.terminal-mockup {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 12px;
    color: #00ff00;
    padding: 20px;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 4px;
    opacity: 0.8;
}

.social-project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card:hover .social-project-image {
    opacity: 1;
    transform: scale(1.02);
}

.timer-mockup {
    padding: 20px;
    text-align: center;
}

.timer-display {
    font-size: 28px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    font-family: 'SF Mono', monospace;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.timer-btn {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.timer-notes {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.git-mockup {
    padding: 20px;
    font-family: 'SF Mono', monospace;
}

.git-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.git-commands {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.git-cmd {
    font-size: 11px;
    color: #00ff00;
    opacity: 0.8;
}

.mcp-mockup {
    padding: 20px;
    text-align: center;
}

.mcp-header {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.mcp-lights {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.light-bulb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.light-bulb.active {
    background: rgba(255, 189, 46, 0.3);
    border-color: rgba(255, 189, 46, 0.6);
    box-shadow: 0 0 12px rgba(255, 189, 46, 0.4);
}

.mcp-command {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.aicentral-mockup {
    padding: 20px;
    text-align: center;
}

.aicentral-header {
    font-size: 14px;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.9);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.aicentral-companies {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.company-badge {
    font-size: 9px;
    padding: 4px 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
}

.aicentral-feed {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.clock-mockup {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 20, 35, 0.9) 0%, rgba(20, 30, 45, 0.9) 100%);
    border-radius: 8px;
}

.clock-header {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.clock-zones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.zone-item {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'SF Mono', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clock-controls {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.jotdown-mockup {
    padding: 20px;
    text-align: center;
}

.jotdown-header {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.jotdown-blocks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.note-block,
.task-block {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.task-block {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.jotdown-toolbar {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
}

.pindrop-mockup {
    padding: 20px;
    text-align: center;
}

.pindrop-header {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.sticky-notes {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sticky-note {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
}

.sticky-note:nth-child(2) {
    transform: rotate(1deg);
}

.sticky-note:nth-child(3) {
    transform: rotate(-1deg);
}

.sticky-note.yellow {
    background: rgba(255, 235, 59, 0.9);
    color: #333;
}

.sticky-note.blue {
    background: rgba(33, 150, 243, 0.9);
    color: white;
}

.sticky-note.green {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.pindrop-toolbar {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
}

/* Crypto Dashboard Mockup */
.crypto-mockup {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(11, 15, 20, 0.9) 0%, rgba(15, 20, 25, 0.9) 100%);
    border-radius: 8px;
}

.crypto-header {
    font-size: 14px;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-family: 'Orbitron', monospace;
}

.crypto-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.price-card {
    font-size: 11px;
    font-weight: 600;
    color: #f0f6ff;
    padding: 4px 8px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    font-family: 'Space Mono', monospace;
}

.crypto-chart {
    font-size: 10px;
    color: rgba(0, 255, 136, 0.8);
    font-weight: 500;
}

/* Neural mockup styles */
.neural-mockup {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 10, 30, 0.9) 0%, rgba(25, 15, 40, 0.9) 100%);
    border-radius: 8px;
}

.neural-header {
    font-size: 12px;
    font-weight: 700;
    color: #9d4edd;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    font-family: 'Space Grotesk', sans-serif;
}

.neural-elements {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.neural-node {
    font-size: 14px;
    opacity: 0.9;
}

.neural-connection {
    color: rgba(157, 78, 221, 0.6);
    font-size: 10px;
    font-weight: 300;
}

.neural-tagline {
    font-size: 10px;
    color: rgba(157, 78, 221, 0.8);
    font-weight: 400;
    font-style: italic;
}

/* BrowserOS mockup */
.browseros-mockup {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9) 0%, rgba(30, 35, 45, 0.9) 100%);
    border-radius: 8px;
}

.browseros-header {
    font-size: 12px;
    font-weight: 700;
    color: #4a9eff;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    font-family: 'Space Grotesk', sans-serif;
}

.browseros-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 4px;
}

.desktop-icon {
    font-size: 16px;
    opacity: 0.9;
}

.browseros-taskbar {
    font-size: 10px;
    color: rgba(74, 158, 255, 0.8);
    font-weight: 400;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 3px;
}

/* Project content */
.project-content {
    position: relative;
    z-index: 10;
    padding: 0 10px 10px;
}

.project-title {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.title-text {
    position: relative;
    display: inline-block;
    color: #ffffff;
}

.title-text::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(6px);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.project-description {
    font-size: 7px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.tag {
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    font-size: 6px;
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
}

.project-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-project {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    font-size: 7px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.2s ease;
}

.view-project:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.view-project.active {
    color: rgba(255, 255, 255, 0.5);
    cursor: default;
}

.view-project.active:hover {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.external-link {
    color: rgba(255, 255, 255, 0.3);
    font-size: 9px;
    transition: color 0.3s ease;
}

.project-card:hover .external-link {
    color: rgba(255, 255, 255, 0.6);
}

/* Bottom glow */
.bottom-glow {
    position: absolute;
    bottom: -64px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 112px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(32px);
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.project-card:hover .bottom-glow {
    opacity: 1;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 40px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-content {
        padding: 0 16px 60px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-card {
        border-radius: 24px;
    }

    .inner-border {
        border-radius: 24px;
    }

    .chrome-bar {
        padding: 10px 12px;
    }

    .project-media {
        margin: 0 8px 12px;
        height: 140px;
    }

    .project-content {
        padding: 0 16px 16px;
    }

    .project-title {
        font-size: 20px;
    }

    .project-description {
        font-size: 13px;
    }

    .site-header {
        padding: 30px 16px 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 12px 50px;
    }

    .projects-grid {
        gap: 20px;
    }

    .project-card {
        border-radius: 20px;
    }

    .inner-border {
        border-radius: 20px;
    }

    .project-media {
        height: 120px;
    }

    .project-content {
        padding: 0 12px 12px;
    }

    .chrome-bar {
        padding: 8px 10px;
    }

    .site-header {
        padding: 20px 12px 16px;
    }
}

/* Focus and Accessibility */
.back-link:focus,
.view-project:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
    * {
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}