body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 100;
    background: url('../assets/background.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.terminal-container {
    width: 90%;
    height: 90%;
    border-radius: 8px;
    border: 1px solid #000000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #000000de;
    color: white;
    position: relative;
}

.terminal-header .buttons {
    display: flex;
    gap: 5px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.terminal-header .title {
    flex-grow: 1;
    text-align: center;
    color: #ffffff;
}

.terminal-divider {
    height: 1px;
    width: 100%;
    background-color: #000000;
}

.terminal-body {
    width: 100%;
    height: 100%;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
    background-color: #000000de;
}

.terminal-content {
    margin-top: -40px;
    display: flex;
    flex-direction: line;
    justify-content: flex-start;
    align-items: flex-start;
}

.terminal-content .prompt {
    font-size: 12px;
    color: #ff0000;
}

.terminal-content .prompt-text {
    font-size: 12px;
    color: #ffffff;
}

#close:hover::before,
#close:hover::after {
    background-color: rgba(255, 255, 255, 0.75);
    transform: translate(-50%, -40%) rotate(45deg);
}

#close:hover::after {
    transform: translate(-50%, -40%) rotate(-45deg);
}

#close {
    position: relative;
    width: 20px;
    height: 20px;
    z-index: 3;
}

#close a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

#close::before,
#close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75%;
    height: 2px;
    background-color: rgb(255, 255, 255);
    transform-origin: center;
    z-index: 4;
}

#close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#maximize {
    margin-top: 4px;
    width: 8px;
    height: 8px;
    border: 2px solid rgb(255, 255, 255);
    background-color: transparent;
}

#minimize::before {
    content: '';
    position: absolute;
    top: 75%;
    left: -20%;
    width: 25%;
    height: 2px;
    background-color: rgb(255, 255, 255);
    transform: translate(-50%, -50%);
}

.project .img {
    margin-top: -60px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

#gif {
    margin-top: -60px;
    width: 400px;
    height: 202px;
}

.project-container {
    margin-left: 10px;
    margin-top: -30px;
    gap: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.project {
    border-radius: 12px;
    background-color: white;
    height: 600px;
    width: 23%;
    gap: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transform: translateY(3px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 1s ease-in-out;
}

.project.visible:hover {
    transform: translateY(-3px);
}

.project.visible {
    transition: transform 0.5s ease opacity 1s ease-in-out;
    transform: translateY(-3px);
}

.project:hover {
    transform: translateY(-3px);
    transition: transform 0.5s ease;
}

.project:hover .img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.project h2 {
    font-family: "NTR", serif;
    font-weight: 900;
    font-style: normal;
    color: black;
    font-size: 25px;
}

.project ul {
    margin-top: -20px;
    color: black;
    font-size: 13px;
    line-height: 1;
}

.project-desc {
    margin-top: -10px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-text {
    margin-top: -5px;
}

.btn {
    height: 40px;
    width: fit-content;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: left;
    background-color: #1e90ff;
    color: rgb(255, 255, 255);
    padding: 5px 15px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s;
    gap: 8px;
    line-height: 3px;
}

.btn img {
    width: 20px;
    height: 20px;
    display: block;
}

.btn:hover {
    background-color: #0558ac;
    box-shadow: 0 0 10px #1e90ff;
    animation: shadow-pulse 1s infinite alternate;
    transform: scale(1.05);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#except {
    margin-top: -8px;
}

.tech {
    margin-left: -15px;
    margin-top: -10px;
    gap: 2px;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
}

.tech p {
    margin-top: 0;
    height: 20px;
    font-weight: bold;
    color: rgb(0, 0, 145);
    font-size: 15px;
    margin-left: 4px;
    margin-right: 4px;
    padding: 8px;
    background-color: #1e8fff71;
    border-radius: 14px;
}

.prompt-text {
    animation: typewriter 0.5s steps(12) 1.5s 1 normal both,
               blinkTextCursor 500ms steps(44) infinite normal;
}

#typing {
    margin-left: 13px;
    font-size: 12px;
    color: #ffffff;
    border-right: 2px solid rgba(255,255,255,.75);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 5rem; }
}

@keyframes blinkTextCursor {
    0%, 100% { border-right-color: rgba(255, 255, 255, .75); }
    50% { border-right-color: transparent; }
}

.hidden {
    visibility: hidden;
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}

.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}
