:root {
    --sky-blue: #87CEEB;
    --deep-sky: #00BFFF;
    --term-bg: #0d0d0d;
    --term-header: #1a1a1a;
    --term-green: #00ff41;
    --glass-white: rgba(255, 255, 255, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #a2e4f6 0%, #87CEEB 50%, #6bc5e8 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-x: hidden;
    padding: 80px 20px 40px 20px;
}


.top-nav {
    position: absolute;
    top: 25px;
    right: 40px;
    z-index: 100;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon-link img {
    width: 24px;
    height: 24px;
}

.social-icon-link:hover {
    background: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- SSH Terminal Message Box --- */
.terminal-msg-box {
    background: var(--term-bg);
    border: 1px solid #333;
    border-radius: 12px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 900px;
    min-height: 200px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-self: center;
    text-align: left;
}

.ssh-header {
    background: var(--term-header);
    padding: 10px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}

.ssh-auth-icon {
    margin-right: 12px;
    font-size: 1rem;
    filter: grayscale(1) brightness(1.3);
}

.ssh-text {
    font-family: 'Fira Code', monospace;
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.dot-group {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-content {
    padding: 25px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    width: 100%;
    opacity: 0;
}

.terminal-line.visible {
    opacity: 1;
}

.prompt-char {
    color: var(--term-green);
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    user-select: none;
}

.typing-area {
    font-family: 'Fira Code', monospace;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}


.cursor {
    color: var(--term-green);
    font-weight: bold;
    margin-left: 2px;
    font-family: 'Fira Code', monospace;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.portal-container {
    text-align: center;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-size: 2.8rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
    width: 100%;
}

.env-card {
    position: relative;
    height: 320px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.env-card:hover {
    transform: translateY(-15px) scale(1.02);
}

.glass-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-white);
    backdrop-filter: blur(145px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

.logo-wrapper {
    margin-bottom: 25px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.env-card:hover .logo-wrapper {
    transform: scale(1.15) rotate(5deg);
}

.content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: var(--deep-sky);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.env-card:hover .btn {
    background: var(--deep-sky);
    color: white;
    box-shadow: 0 15px 25px rgba(0, 191, 255, 0.3);
}

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    .top-nav {
        top: 20px;
        right: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .terminal-msg-box {
        width: 95%;
        min-height: 350px;
    }

    .terminal-content {
        padding: 20px 25px;
    }

    header h1 {
        font-size: 1.8rem;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selector-grid {
    animation: slideUp 0.8s ease-out 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.env-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.env-card:hover .env-logo {
    transform: scale(1.15) rotate(5deg);
}