/* Futuristic OS Terminal Portfolio Style */

:root {
    --bg-start: #0d1943;
    --bg-end: #06101f;
    --bar-color: rgba(12, 28, 56, 0.9);
    --window-bg: rgba(15, 33, 70, 0.95);
    --window-border: #2a4d74;
    --text: #e0eaf5;
    --accent: #4f8dfd;
    --terminal-green: #00ff90;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
    min-height: 100vh;
    color: var(--text);
}

body:not(.page-view) {
    height: 100vh;
    overflow: hidden;
}

/* ============================================
   TOPBAR / NAVIGATION
   ============================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--bar-color);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 100;
    color: var(--accent);
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    gap: 1rem;
}

.logo {
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
}

.topbar-nav {
    display: flex;
    gap: 0.5rem;
}

.topbar-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.topbar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.topbar-nav a.active {
    background: rgba(79, 141, 253, 0.3);
    color: var(--accent);
}

.spacer {
    flex-grow: 1;
}

.design-switch select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.design-switch select option {
    background: var(--bg-start);
    color: var(--text);
}

.clock {
    font-family: monospace;
    font-size: 1rem;
}

/* ============================================
   DESKTOP VIEW (Index page)
   ============================================ */
.desktop {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
}

.icon {
    width: 100px;
    height: 100px;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.icon-emoji {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.icon-label {
    font-size: 0.9rem;
    text-align: center;
}

/* ============================================
   WINDOW STYLES
   ============================================ */
.window {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-height: 70%;
    background: var(--window-bg);
    border: 1px solid var(--window-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    color: var(--text);
    display: none;
    flex-direction: column;
    z-index: 200;
}

.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(11, 27, 59, 0.9);
    border-bottom: 1px solid var(--window-border);
    font-weight: bold;
    user-select: none;
}

.window-header button.close {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.window-content {
    padding: 1rem;
    overflow-y: auto;
    font-size: 0.9rem;
}

.window-content h2 {
    margin-top: 0;
    color: var(--accent);
}

.window-content h3 {
    color: var(--accent);
    margin-top: 1.5rem;
}

.window-content ul {
    padding-left: 1.5rem;
}

.window-content a {
    color: var(--accent);
    text-decoration: none;
}

.window-content a:hover {
    text-decoration: underline;
}

/* ============================================
   PAGE VIEW (Experience, Portfolio, etc.)
   ============================================ */
.page-view .page-content {
    padding-top: 60px;
    padding-bottom: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.page-header {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--accent);
    margin: 0 0 0.5rem;
}

.page-header p {
    color: rgba(224, 234, 245, 0.8);
    font-size: 1.05rem;
    margin: 0;
}

.page-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(224, 234, 245, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   TERMINAL SECTIONS
   ============================================ */
.terminal-section {
    background: var(--window-bg);
    border: 1px solid var(--window-border);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.section-header {
    background: rgba(11, 27, 59, 0.9);
    padding: 0.75rem 1rem;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--terminal-green);
    border-bottom: 1px solid var(--window-border);
}

.prompt {
    color: var(--accent);
    margin-right: 0.5rem;
}

.section-content {
    padding: 1.5rem;
}

.section-content h2 {
    margin-top: 0;
    color: var(--accent);
    font-size: 1.4rem;
}

.section-content h3 {
    color: var(--accent);
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.section-content p {
    line-height: 1.6;
}

.section-content a {
    color: var(--accent);
}

/* ============================================
   WORK LIST
   ============================================ */
.work-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.work-list li {
    padding: 0.5rem 0;
    display: flex;
    gap: 0.75rem;
}

.work-list .bullet {
    color: var(--accent);
    font-family: monospace;
}

/* ============================================
   SERVICES / DESIGN GRIDS
   ============================================ */
.services-grid,
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.service-card,
.design-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    transition: transform 0.2s, background 0.2s;
}

.service-card:hover,
.design-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
}

.service-card h3,
.design-card h3 {
    margin: 0 0 0.75rem;
    color: var(--accent);
    font-size: 1rem;
}

.service-card p,
.design-card p {
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
    color: rgba(224, 234, 245, 0.85);
}

.design-card.current {
    border-color: var(--accent);
    background: rgba(79, 141, 253, 0.1);
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: #0d1943;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* ============================================
   PORTFOLIO ITEMS
   ============================================ */
.portfolio-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.portfolio-item.featured {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-item h3 {
    margin: 0 0 0.5rem;
    color: var(--accent);
}

.portfolio-item .thumb {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.portfolio-item .meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(224, 234, 245, 0.6);
    margin: 0.5rem 0;
}

.portfolio-item .note {
    font-size: 0.85rem;
    color: rgba(224, 234, 245, 0.7);
}

.portfolio-item .technical {
    font-size: 0.85rem;
    color: #89aaff;
    margin-top: 0.75rem;
}

.portfolio-item .actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================
   BLOG STYLES
   ============================================ */
.blog-grid {
    display: grid;
    gap: 1.5rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
}

.blog-card .thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.blog-card h3 {
    margin: 0.75rem 0 0.5rem;
    color: var(--accent);
}

.blog-card .actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.post-meta {
    font-size: 0.8rem;
    color: rgba(224, 234, 245, 0.6);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-post {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.75rem;
}

/* ============================================
   COMING SOON
   ============================================ */
.coming-soon-content {
    text-align: center;
    padding: 2rem;
}

.coming-soon-content .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    width: auto;
    height: auto;
    background: none;
    border: none;
}

.coming-soon-content h3 {
    color: #c3d7ff;
    margin-bottom: 0.75rem;
}

.coming-soon-content p {
    color: #a7c0ff;
    max-width: 500px;
    margin: 0 auto 1rem;
}

/* ============================================
   CALLOUT
   ============================================ */
.callout {
    background: rgba(79, 141, 253, 0.1);
    border: 1px solid rgba(79, 141, 253, 0.3);
}

.callout h3 {
    margin-top: 0;
}

/* ============================================
   CHIPS
   ============================================ */
.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.chip {
    display: inline-block;
    background: rgba(79, 141, 253, 0.2);
    border: 1px solid rgba(79, 141, 253, 0.4);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    background: rgba(79, 141, 253, 0.2);
    border: 1px solid rgba(79, 141, 253, 0.4);
    color: var(--accent);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn:hover {
    background: rgba(79, 141, 253, 0.35);
}

.btn.primary {
    background: rgba(79, 141, 253, 0.35);
}

.btn.primary:hover {
    background: rgba(79, 141, 253, 0.5);
}

/* ============================================
   PROFILE PLACEHOLDER
   ============================================ */
.profile-placeholder {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #304d8c, #162a56);
    display: inline-block;
}

/* ============================================
   TERMINAL SPECIFIC
   ============================================ */
.terminal {
    background: #05121f;
    color: var(--terminal-green);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
}

.terminal-header {
    background: #0a1520 !important;
}

pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.social-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.7rem;
    text-decoration: none;
    font-weight: bold;
}

.social-icon.facebook { background-color: #3b5998; }
.social-icon.twitter { background-color: #1da1f2; }
.social-icon.linkedin { background-color: #0077b5; }
.social-icon.pinterest { background-color: #bd081c; }
.social-icon.reddit { background-color: #ff4500; }
.social-icon.discord { background-color: #5865f2; }
.social-icon.patreon { background-color: #e85a18; }
.social-icon.paypal { background-color: #003087; }
.social-icon.stripe { background-color: #635bff; }
.social-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-icon.youtube { background-color: #ff0000; }
.social-icon.tiktok { background: linear-gradient(45deg, #69c9d0 0%, #ee1d52 50%, #000000 100%); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .topbar {
        flex-wrap: wrap;
        height: auto;
        padding: 0.5rem;
    }

    .topbar-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .window {
        width: 90%;
        max-height: 80%;
    }

    .desktop {
        padding: 1rem;
    }

    .icon {
        width: 80px;
        height: 80px;
        margin: 0.5rem;
    }

    .services-grid,
    .design-grid {
        grid-template-columns: 1fr;
    }
}
