@import url(https://fonts.googleapis.com/css?family=Ubuntu);
@import url('https://fonts.googleapis.com/css?family=Ubuntu+Mono');

body {
    background: linear-gradient(45deg, #57003f 0%,#f57453 100%);
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    display: flex;
    justify-content: right;
    align-items: center;
    height: 100vh;
}

a {
    color: #4878c0;
    text-decoration: none;
}

.terminal {
    width: 50vw;
    height: 100vh;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.5);
    border-radius: 5px;
    overflow: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    scrollbar-color: #555 transparent;
    scrollbar-width: thin;
}

.terminal::-webkit-scrollbar, 
#body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.terminal::-webkit-scrollbar-track, 
#body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal::-webkit-scrollbar-thumb, 
#body::-webkit-scrollbar-thumb {
    background-color: #555;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.terminal::-webkit-scrollbar-thumb:hover, 
#body::-webkit-scrollbar-thumb:hover {
    background-color: #888;
}

#top_bar {
    display: flex;
    width: 100%;
    height: 40px;
    align-items: center;
    padding: 0 8px;
    box-sizing: border-box;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: linear-gradient(#504b45 0%,#3c3b37 100%);
    justify-content: space-between;
    position: relative;
}

.hint-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    padding: 6px 10px;
    border-radius: 24px;
    font-size: 13px;
    margin-left: 12px;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.03);
}

#top_buttons {
    display: flex;
    align-items: center;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-left: 5px;
    font-size: 14px;
    height: 35px;
    width: 30px;
    box-sizing: border-box;
    border: none;
    background: transparent;
    color: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
    background: linear-gradient(#8f8b86 0%, #6b6b66 100%);
}

#exit:hover {
    background: linear-gradient(#e81123 0%, #c00000 100%);
}

#bar-user {
    color: #d5d0ce;
    margin-left: 6px;
    font-size: 14px;
    line-height: 15px;
    user-select: none;
    white-space: nowrap;
}

#body {
    flex-grow: 1;
    background: rgba(56, 4, 40, 0.9);
    font-family: 'Ubuntu Mono', monospace;
    height: calc(100% - 40px);
    padding-top: 2px;
    margin-top: -1px;
    overflow-y: auto;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#prompt {
    display: flex;
    align-items: start;
    padding-left: 5px;
    font-size: 16px;
    white-space: nowrap;
}

#user { 
    color: #7eda28; 
    margin-right: 5px; 
}

#wavy { 
    color: #4878c0; 
    margin-right: 5px; 
}

#dollar { 
    color: #dddddd; 
    margin-right: 5px; 
}

#cursor {
    display: inline-block;
    height: 1em;
    width: 8px;
    background: #ffffff;
    animation: blink 1200ms steps(2, start) infinite;
    margin-left: 1px;
    position: relative;
    vertical-align: bottom;
}

@keyframes blink {
    0%, 49% {
        background: #ffffff;
    }
    50%, 100% {
        background: transparent;
    }
}

#input {
    white-space: pre-wrap;
    color: #dddddd;
    font-family: 'Ubuntu Mono', monospace;
    padding-left: 2px;
    display: inline-block;
    min-width: 1ch;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#id-card-container {
    position: fixed;
    top: 0;
    left: 4vw;
    width: 320px;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
}

#lanyard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

#lanyard-line {
    stroke: #333;
    stroke-width: 5;
    stroke-linecap: round;
}

#id-card {
    position: absolute;
    left: 50%;
    top: 100px;
    width: 300px;
    height: 400px;
    transform: translateX(-50%);
    background: transparent;
    cursor: grab;
    user-select: none;
    transform-origin: top center;
    pointer-events: auto;
}

#id-card .card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 520ms cubic-bezier(.2,.9,.2,1);
    border-radius: 18px;
    box-shadow: 0 28px 50px rgba(0,0,0,0.28), 0 12px 18px rgba(0,0,0,0.18);
}

#id-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
    box-sizing: border-box;
    border-radius: 18px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
}

.card-back {
    transform: rotateY(180deg);
    color: #222;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#id-card .profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.20);
    margin-bottom: 12px;
}

#id-card h3 {
    margin: 8px 0;
    font-size: 20px;
    color: #222;
    text-align: center;
}

#id-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

#id-card .school-logo {
    margin-top: auto;
    width: 86%;
    max-width: 220px;
    height: 64px;
}

#id-card .school-logo img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.card-back .back-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.card-back .back-header h3 { 
    margin: 0; 
    font-size: 18px; 
    color: #111; 
}

.card-back .school-id { 
    font-size: 13px; 
    color: #444; 
}

.card-back .back-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
}

.card-back .back-info-left {
    flex: 0 0 auto;
}

.card-back .back-info-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-back .back-photo { 
    max-width: 90px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.card-back .back-photo img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

.card-back .info-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

.card-back .info-section.contact-section {
    padding-top: 10px;
}

.card-back .info-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.card-back .info-row { 
    display: flex; 
    justify-content: space-between; 
    gap: 8px; 
}

.card-back .label { 
    font-weight: 700; 
    font-size: 12px; 
    color: #555;
}

.card-back .value { 
    font-size: 13px; 
    text-align: right;
    word-break: break-all;
}

.card-back .value a {
    color: #4878c0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-back .value a:hover {
    color: #2a5a9c;
    text-decoration: underline;
}

.terminal-output {
    color: #ddd;
    font-family: 'Ubuntu Mono', monospace;
    padding: 10px 12px;
    box-sizing: border-box;
}

.better-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.project-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 220px;
}

.project-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.project-card .title {
    font-weight: 700;
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
}

.project-card .desc {
    color: #ddd;
    font-size: 15px;
    min-height: 40px;
}

.project-card .link {
    margin-top: auto;
    text-align: right;
}

.project-card .link a {
    color: #7ec0ff;
}

.tool-card {
    cursor: pointer;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    min-height: 140px;
    gap: 8px;
}

.tool-card img {
    width: 100%;
    max-width: 140px;
    height: 88px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    padding: 6px;
}

.tool-card .tool-name {
    margin-top: 6px;
    font-size: 14px;
    color: #fff;
}

@media (max-width: 880px) {
    .terminal {
        width: 90vw;
        height: 90vh;
    }

    .project-card img, .tool-card img { 
        height: 100px; 
    }

    .project-card { 
        min-height: 180px; 
    }
}

.info-section {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    margin-top: 8px;
}

.info-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

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

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 0;
    list-style-type: none;
    margin: 0;
}

.skills-list li {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
}

.contact-links a {
    display: block;
    margin-bottom: 8px;
    color: #7ec0ff;
}
