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

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

body {
    background: #0a0a0a;
    font-family: 'JetBrains Mono', monospace;
    color: #00ffff;
    padding: 20px;
    min-height: 100vh;
}

/* Loading Screen Styles */
.loading-screen {
    display: block;
}

.loading-screen.fade-out {
    display: none;
    pointer-events: none;
}

.loading-content {
    padding: 5px;
}

.loading-line {
    opacity: 0;
    transform: translateY(0);
    animation: terminalAppear 0.3s forwards;
}

@keyframes terminalAppear {
    to {
        opacity: 1;
    }
}

.loading-line:nth-child(1) {
    animation-delay: 0.2s;
}

/* first line delayed a bit */
.loading-line:nth-child(2) {
    animation-delay: 0.5s;
}

.loading-line:nth-child(3) {
    animation-delay: 0.8s;
}

.loading-line:nth-child(4) {
    animation-delay: 0.85s;
}

.loading-line:nth-child(5) {
    animation-delay: 1.3s;
}

.loading-line:nth-child(6) {
    animation-delay: 1.6s;
}

.loading-line:nth-child(7) {
    animation-delay: 2s;
}

.loading-dots {
    color: #ffffff;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* Main Content Styles */
.terminal-body {
    display: none;
}

.terminal-body.show {
    display: block;
}

.terminal {
    width: 100%;
    max-width: 888px;
    min-height: 554px;
    margin: 0 auto;
    overflow-x: hidden;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3); */
    border: 1px solid #333;
}

.terminal-header {
    background: #2a2a2a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

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

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

.control-btn.close {
    background: #ff5f56;
}

.control-btn.minimize {
    background: #ffbd2e;
}

.control-btn.maximize {
    background: #27ca3f;
}

.terminal-title {
    color: #00ffff;
    font-size: 14px;
}

.terminal-body {
    padding: 20px;
    background: #0f0f0f;
}

.user-info {
    background: linear-gradient(135deg, #00ffff20, #0080ff20);
    border: 1px solid #00ffff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-details h2 {
    color: #00ffff;
    margin-bottom: 5px;
    font-size: 18px;
}

.user-details .name {
    color: #ffffff;
    font-size: 16px;
}

.name {
    grid-template-columns: 108px repeat(auto-fill, minmax(100px, auto));
    display: grid;
    align-items: center;
}

.name span {
    font-family: 'JetBrains Mono', monospace;
    color: #00ffff;
}

.location {
    grid-template-columns: 108px repeat(auto-fill, minmax(100px, auto));
    display: grid;
    align-items: center;
}

.flag {
    background: linear-gradient(to bottom,
            #000000 0% 16.67%,
            #FFFF00 16.67% 33.33%,
            #FF0000 33.33% 50%,
            #000000 50% 66.67%,
            #FFFF00 66.67% 83.33%,
            #FF0000 83.33% 100%);
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

.avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 20px;

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

.social-links {
    background: linear-gradient(135deg, #00ffff10, #0080ff10);
    border: 1px solid #00ffff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-item {
    grid-template-columns: 108px repeat(auto-fill, minmax(100px, auto));
    display: grid;
}

.social-label {
    color: #00ffff;
    font-weight: 500;
}

.social-value {
    color: #ffffff;
}

.social-value a {
    color: #818cf8;
    text-decoration: none;
}

.social-value a:hover {
    text-decoration: underline;
}

.projects {
    background: linear-gradient(135deg, #00ffff10, #0080ff10);
    border: 1px solid #00ffff;
    border-radius: 6px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-item:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.project-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    flex-shrink: 0;
}

.project-info h3 {
    color: #00ffff;
    font-size: 14px;
    margin-bottom: 4px;
}

.project-info p {
    color: #cccccc;
    font-size: 12px;
}

.prompt {
    color: #00ffff;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    flex: 1;
    caret-color: transparent;
}

.terminal-input::selection {
    background: rgba(0, 255, 255, 0.3);
}

.cursor {
    background: #00ffff;
    width: 10px;
    height: 18px;
    animation: blink 1s infinite;
    position: absolute;
    left: 0;
    transition: left 0.1s ease;
}

.quote {
    margin: 60px auto 0;
    text-align: center;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    max-width: 224px;
}

.quote-author {
    margin-top: 10px;
    color: #00ffff;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(21);
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@media (max-width: 768px) {

    .social-links,
    .projects {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 425px) {
    .user-details h2 {
        font-size: 16px;
    }

    span {
        font-size: 14px;
    }

    .avatar {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .user-info {
        align-items: end;
    }

    .project-item {
        align-items: flex-start;
    }

    .quote {
        font-size: 12px;
    }

    .loading-content {
        font-size: 12px;
        padding: 20px;
    }

    .progress-bar {
        width: 250px;
    }
}

@media (max-width: 320px) {

    .name,
    .location,
    .social-item {
        grid-template-columns: 3fr 2fr;
    }
}