/* Minimal Terminal Portfolio - Full Terminal Window */

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

:root {
    --bg: #0d1117;
    --bg-secondary: #161b22;
    --bg-terminal: #0d1117;
    --text: #c9d1d9;
    --text-dim: #8b949e;
    --accent: #58a6ff;
    --accent-green: #3fb950;
    --accent-yellow: #d29922;
    --accent-red: #ff6b6b;
    --border: #30363d;
    --font: "JetBrains Mono", monospace;
}

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

body {
    font-family: var(--font);
    background: #000;
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    padding: 20px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Terminal Window */
.terminal-window {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
}

.terminal-window.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    z-index: 9999;
}

/* Terminal Header */
.terminal-header {
    background: var(--bg-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.terminal-buttons span:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.terminal-buttons span:active {
    transform: scale(0.95);
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    color: var(--text-dim);
    font-size: 13px;
    flex: 1;
    text-align: center;
}

/* Terminal Content */
.terminal-content {
    padding: 30px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
.terminal-content::-webkit-scrollbar {
    width: 10px;
}

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

.terminal-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* Navigation */
.terminal-nav {
    margin-bottom: 3rem;
}

.terminal-nav .prompt {
    margin-bottom: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.nav-links a::before {
    content: "";
    color: var(--text-dim);
    margin-right: 4px;
}

.nav-links a::after {
    content: "";
    color: var(--text-dim);
    margin-left: 4px;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(88, 166, 255, 0.1);
}

/* Sections */
section {
    margin-bottom: 3rem;
}

.section-template {
    display: none;
}

#terminal-output section {
    display: block;
}

.separator {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
    opacity: 0.3;
}

/* Command Line */
.command-line {
    margin: 1.5rem 0 0.5rem 0;
    font-size: 14px;
}

.prompt-symbol {
    color: var(--accent-yellow);
    font-weight: 600;
    margin-right: 0.5rem;
}

.command-text {
    color: var(--accent-green);
}

.prompt {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 14px;
}

.prompt::before {
    content: "$ ";
    color: var(--accent-yellow);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text);
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* Hero Section */
.hero {
    margin-bottom: 2rem;
}

.subtitle {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.bio {
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 700px;
}

.info-grid {
    display: grid;
    gap: 0.5rem;
    margin: 2rem 0;
}

.info-grid .label {
    color: var(--accent-yellow);
    margin-right: 0.5rem;
}

.status-active {
    color: var(--accent-green);
}

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

.social-links a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.7;
}

/* Experience Section */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.experience-item:hover {
    border-left-color: var(--accent-green);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.experience-header h3 {
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.company {
    color: var(--text-dim);
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-logo {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.duration {
    color: var(--accent-yellow);
    font-size: 12px;
    white-space: nowrap;
    background: rgba(210, 153, 34, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(210, 153, 34, 0.3);
}

.location {
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 0.75rem;
}

.experience-description {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-dim);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category li::before {
    content: "│  ";
    color: var(--border);
    position: absolute;
    left: 0;
}

.skill-category li:last-child::before {
    content: "└─ ";
}

.tech-logo {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.tech-logo-square {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Certifications */
.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.cert-badge,
.cert-badge-static {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.cert-badge:hover {
    border-color: var(--accent);
    background: rgba(88, 166, 255, 0.05);
    transform: translateX(4px);
}

.cert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-icon-img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.cert-name {
    font-size: 13px;
    color: var(--text-dim);
}

.cert-badge:hover .cert-name {
    color: var(--accent);
}

.cert-badge-static {
    cursor: default;
}

.cert-badge-static:hover {
    border-color: var(--border);
    background: var(--bg-secondary);
    transform: none;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    transition:
        transform 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-header h3 {
    flex: 1;
}

.project-status {
    font-size: 11px;
    color: var(--accent-green);
    background: rgba(63, 185, 80, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(63, 185, 80, 0.3);
    white-space: nowrap;
}

.project-card p {
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 13px;
    line-height: 1.6;
}

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

.tech-tags span {
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tag-logo {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* Contact Section */
.contact-info {
    display: grid;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-item .label {
    color: var(--accent-yellow);
    min-width: 100px;
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-item a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 2rem;
}

footer .prompt {
    text-align: center;
    justify-content: center;
}

.exit-message {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 13px;
    }

    .terminal-window {
        border-radius: 6px;
    }

    .terminal-content {
        padding: 15px;
        max-height: calc(100vh - 100px);
    }

    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1rem;
    }

    .terminal-title {
        font-size: 11px;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 12px;
    }

    .nav-links a {
        padding: 0.3rem 0.6rem;
    }

    .bio {
        font-size: 13px;
        line-height: 1.5;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-item {
        padding: 1rem;
    }

    .duration {
        white-space: normal;
        font-size: 11px;
    }

    .company,
    .location {
        font-size: 12px;
    }

    .company-logo {
        width: 14px;
        height: 14px;
    }

    .tech-logo {
        width: 14px;
        height: 14px;
    }

    .tech-logo-square {
        width: 12px;
        height: 12px;
    }

    .tag-logo {
        width: 12px;
        height: 12px;
    }

    .experience-description {
        font-size: 12px;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category h3 {
        font-size: 0.95rem;
    }

    .skill-category li {
        font-size: 13px;
        padding: 0.4rem 0;
    }

    .certifications {
        gap: 0.5rem;
    }

    .cert-badge,
    .cert-badge-static {
        padding: 0.6rem 0.8rem;
        font-size: 12px;
    }

    .cert-icon {
        font-size: 1.25rem;
    }

    .cert-icon-img {
        width: 20px;
        height: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        padding: 1rem;
    }

    .project-card p {
        font-size: 12px;
    }

    .tech-tags {
        gap: 0.4rem;
    }

    .tech-tags span {
        font-size: 10px;
        padding: 0.2rem 0.5rem;
    }

    .contact-info {
        gap: 0.75rem;
    }

    .contact-item {
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    section {
        margin-bottom: 2rem;
    }

    .separator {
        margin: 1.5rem 0;
    }

    .command-line {
        font-size: 13px;
    }

    .terminal-window.fullscreen .terminal-content {
        padding: 15px;
        max-height: calc(100vh - 60px);
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
        font-size: 12px;
    }

    .terminal-window {
        border-radius: 4px;
    }

    .terminal-buttons span {
        width: 10px;
        height: 10px;
    }

    .terminal-header {
        padding: 8px 10px;
    }

    .terminal-title {
        font-size: 10px;
    }

    .terminal-content {
        padding: 12px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .bio {
        font-size: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 11px;
    }

    .social-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .experience-description,
    .project-card p {
        font-size: 11px;
        line-height: 1.5;
    }

    .tech-tags span {
        font-size: 9px;
    }

    .company-logo {
        width: 12px;
        height: 12px;
    }

    .tech-logo {
        width: 12px;
        height: 12px;
    }

    .tech-logo-square {
        width: 10px;
        height: 10px;
    }

    .tag-logo {
        width: 10px;
        height: 10px;
    }

    .cert-icon-img {
        width: 18px;
        height: 18px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(88, 166, 255, 0.3);
    color: var(--text);
}
