@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    background: var(--bg-color);
    color: var(--white-color);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-y: auto;
    display: block !important;
    /* Override flex from style.css */
}

.project-header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 27, 41, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 171, 240, 0.2);
}

.back-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 171, 240, 0.05);
}

.back-home:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateX(-5px);
}

.back-home i {
    font-size: 1.5rem;
}

.main-title {
    font-size: 2rem;
    color: var(--white-color);
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 171, 240, 0.5);
}

.project-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 171, 240, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(5px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(0, 171, 240, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #0a1f2e;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .card-img img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 27, 41, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.valisp-card:hover .card-overlay {
    opacity: 0;
    pointer-events: none;
}

.card-links {
    display: flex;
    gap: 1.5rem;
}

.card-links a {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: 0.3s ease;
    transform: translateY(20px);
}

.project-card:hover .card-links a {
    transform: translateY(0);
}

.card-links a:hover {
    background: var(--white-color);
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.project-name {
    font-size: 1.4rem;
    color: var(--main-color);
    margin: 0 0 0.8rem 0;
}

.project-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    height: 3.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.tech-stack i {
    font-size: 1.5rem;
    transition: 0.3s;
}

.tech-stack i:hover {
    transform: scale(1.2);
}

.projects-note {
    text-align: center;
    margin-top: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #9aa6b2;
}



/* Responsive */
@media (max-width: 600px) {
    .project-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .project-container {
        margin: 2rem auto;
    }
}

/* Valisp Card Specifics - 2 Column Layout */
.valisp-card {
    grid-column: 1 / -1;
    /* Make it take full row */
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
}

@media (max-width: 900px) {
    .valisp-card {
        grid-template-columns: 1fr;
    }
}

.valisp-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.valisp-info .project-desc {
    height: auto;
    /* Remove line clamp for full description */
    margin-bottom: 2rem;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--main-color);
    color: var(--bg-color);
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: 0.3s;
    width: fit-content;
}

.btn-github i {
    font-size: 1.5rem;
}

.btn-github:hover {
    background: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 171, 240, 0.4);
}

.valisp-preview {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(0, 171, 240, 0.1);
    display: flex;
    flex-direction: column;
}

.valisp-container {
    background: #111;
    display: flex;
    flex-direction: column;
    height: 350px;
    /* Taller terminal */
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.terminal-header {
    background: #2b2b2b;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #1a1a1a;
    border-radius: 1rem 1rem 0 0;
    position: relative;
}

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

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    color: #888;
    font-size: 13px;
    font-family: 'Consolas', monospace;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    white-space: nowrap;
}

.valisp-terminal {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    color: #e0e0e0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.4;
    cursor: text;
    position: relative;
    scroll-behavior: smooth;
    background: #0d0d0d;
}

.valisp-terminal:focus {
    outline: none;
    background: #000;
}

.valisp-logo {
    margin: 0 0 15px 0;
    font-size: 12px;
    line-height: 1.1;
}

.valisp-logo .v {
    color: #27c93f;
}

/* Green */
.valisp-logo .a {
    color: #27c93f;
}

/* Green */
.valisp-logo .l {
    color: #ffbd2e;
}

/* Yellow/Lambda */
.valisp-logo .i {
    color: #27c93f;
}

/* Green */
.valisp-logo .s {
    color: #27c93f;
}

/* Green */
.valisp-logo .p {
    color: #27c93f;
}

/* Green */

.system-msg {
    color: #666;
    margin-bottom: 5px;
}

.disclaimer-msg {
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 189, 46, 0.1);
    border-left: 3px solid #ffbd2e;
    color: #ddd;
    font-size: 0.9em;
    line-height: 1.5;
}

.disclaimer-msg i {
    color: #ffbd2e;
    margin-right: 5px;
}

.code-highlight {
    background: #222;
    padding: 2px 5px;
    border-radius: 3px;
    color: #fff;
    font-family: 'Consolas', monospace;
    display: inline-block;
    margin-top: 4px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    min-height: 1.4em;
}

.prompt {
    color: #00abf0;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 171, 240, 0.3);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: #fff;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Tech Highlights */
.tech-highlights {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.highlight-item {
    background: rgba(0, 171, 240, 0.1);
    border: 1px solid rgba(0, 171, 240, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--white-color);
}

.highlight-item i {
    color: var(--main-color);
    font-size: 1.1rem;
}