#iitLoader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0a0e1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 28px;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#iitLoader.iit-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo */
.iit-logo {
    animation: iit-in 1s ease forwards;
    opacity: 0;
}

.iit-logo img {
    height: 70px;
    width: auto;
    display: block;
}

@media (max-width: 600px) {
    .iit-logo img {
        height: 50px;
        /* reduces width proportionally */
    }
}

@keyframes iit-in {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

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

/* Browser window */
.iit-browser {
    width: 340px;
    background: #0f1526;
    border-radius: 10px;
    border: 1px solid #1e2d50;
    overflow: hidden;
    animation: iit-in 1s ease 0.4s forwards;
    opacity: 0;
}

.iit-browser-bar {
    background: #161e35;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #1e2d50;
}

.iit-dots {
    display: flex;
    gap: 5px;
}

.iit-dot-r {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f56;
}

.iit-dot-y {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffbd2e;
}

.iit-dot-g {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27c93f;
}

.iit-url-bar {
    flex: 1;
    background: #0a0e1a;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 10px;
    color: #3a6fd8;
    font-family: monospace;
    letter-spacing: 0.03em;
    border: 1px solid #1e2d50;
}

.iit-code-area {
    padding: 14px 16px;
    min-height: 130px;
}

/* Typing lines */
.iit-line {
    font-size: 11px;
    line-height: 1.9;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    font-family: monospace;
    animation: iit-type 0.5s steps(40) forwards;
}

.iit-line:nth-child(1) {
    animation-delay: 0.6s;
    color: #5ba3f5;
}

.iit-line:nth-child(2) {
    animation-delay: 1.1s;
    color: #90ee90;
}

.iit-line:nth-child(3) {
    animation-delay: 1.6s;
    color: #5ba3f5;
}

.iit-line:nth-child(4) {
    animation-delay: 2.1s;
    color: #f0c060;
}

.iit-line:nth-child(5) {
    animation-delay: 2.6s;
    color: #90ee90;
}

.iit-line:nth-child(6) {
    animation-delay: 3.1s;
    color: #cc99ff;
}

.iit-line:nth-child(7) {
    animation-delay: 3.6s;
    color: #5ba3f5;
}

@keyframes iit-type {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.iit-cursor {
    display: inline-block;
    width: 7px;
    height: 12px;
    background: #5ba3f5;
    margin-left: 2px;
    vertical-align: middle;
    animation: iit-blink 0.8s step-end infinite;
}

@keyframes iit-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Progress bar */
.iit-bar-wrap {
    width: 340px;
    animation: iit-in 1s ease 0.6s forwards;
    opacity: 0;
}

.iit-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #3a6fd888;
    font-family: monospace;
    margin-bottom: 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.iit-bar-bg {
    width: 100%;
    height: 3px;
    background: #1e2d50;
    border-radius: 2px;
    overflow: hidden;
}

.iit-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #4caf50, #3a6fd8);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

/* Status */
.iit-status {
    font-size: 11px;
    color: #3a6fd866;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: monospace;
    text-align: center;
    animation: iit-sblink 1.6s ease-in-out infinite;
}

@keyframes iit-sblink {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Tech stack tags */
.iit-stack {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    animation: iit-in 1s ease 1s forwards;
    opacity: 0;
}

.iit-tag {
    font-size: 9px;
    padding: 3px 10px;
    border-radius: 3px;
    font-family: monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: iit-tagpulse 2s ease-in-out infinite;
}

.iit-tag:nth-child(1) {
    background: #4caf5022;
    color: #4caf50;
    border: 1px solid #4caf5044;
    animation-delay: 0.0s;
}

.iit-tag:nth-child(2) {
    background: #3a6fd822;
    color: #3a6fd8;
    border: 1px solid #3a6fd844;
    animation-delay: 0.3s;
}

.iit-tag:nth-child(3) {
    background: #f0c06022;
    color: #f0c060;
    border: 1px solid #f0c06044;
    animation-delay: 0.6s;
}

.iit-tag:nth-child(4) {
    background: #90ee9022;
    color: #90ee90;
    border: 1px solid #90ee9044;
    animation-delay: 0.9s;
}

.iit-tag:nth-child(5) {
    background: #cc99ff22;
    color: #cc99ff;
    border: 1px solid #cc99ff44;
    animation-delay: 1.2s;
}

.iit-tag:nth-child(6) {
    background: #ff7b7b22;
    color: #ff7b7b;
    border: 1px solid #ff7b7b44;
    animation-delay: 1.5s;
}

@keyframes iit-tagpulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}