#terminalSection{
    display:none;
}
#profileImg{
    width:70px;
    height:70px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #fff;
}

#myName{
    font-size:22px;
    margin:0;
    font-weight:700;
}

#shortIntro{
    margin:0;
    font-size:14px;
    opacity:0.85;
}

body {
        background:#1e1e1e;
        color:#d4d4d4;
        font-family: monospace;
        padding:20px;
    }
 #terminal {
        width:90%;
        max-width:900px;
        margin:auto;
        background:#111;
        padding:20px;
        border-radius:10px;
        box-shadow:0 0 15px rgba(0,0,0,.5);
        min-height:70vh;
        overflow-y:auto;
    }
.line-input {
        display:flex;
        gap:8px;
        margin-top:10px;
    }
.prompt { color:#6aff8f; }
    input{
        flex:1;
        background:transparent;
        border:none;
        outline:none;
        color:white;
        font-size:16px;
    }
.output{ margin:5px 0 10px 25px; white-space:pre-wrap; }
.cmd{ color:#62b0ff; }

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

               .container {
            max-width: 1200px;
            margin: 0 auto;
            background: rgb(0, 0, 0);
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
        }

        .header {
            background: #454545;
            padding: 15px 20px;
            border-bottom: 1px solid #ddd;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #ff5f57;
        }

        .header-dot:nth-child(2) { background: #ffbd2e; }
        .header-dot:nth-child(3) { background: #28ca42; }

        .header-title {
            margin-left: 10px;
            font-weight: 600;
            color: #ffffff;
        }

        .content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            padding: 30px;
        }

     .intro-section {
    position: relative;
    padding-bottom: 120px; /* room for pet + social icons */
}


        .photo-container {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid #5c5c5c;
            box-shadow: 0 10px 30px rgba(92, 92, 92, 0.3);
            background: linear-gradient(135deg, #5c5c5c, #4a4a4a);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 100px;
            color: white;
        }

        .intro-text h1 {
            color: #ffffff;
            margin-bottom: 20px;
            font-size: 3em;
        }

        .intro-text p {
            color: #ffffff;
            line-height: 2;
        }

        .tree-container {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .q-section {
            grid-column: 1 / -1;
        }

        .code-cell {
            background: #555555;
            border: 1px solid #6b6b6b;
            border-radius: 8px;
            margin-bottom: 15px;
            overflow: hidden;
        }

        .code-header {
            background: rgb(79, 79, 79);
            padding: 8px 15px;
            border-bottom: 1px solid #929292;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .run-btn {
            background: #000000;
            color: white;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .run-btn:hover {
            background: #848587;
            transform: scale(1.1);
        }

        
        .code-output {
            padding: 15px;
            background: #515151;
            border-top: 1px solid #5d5d5d;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            color: #cdcdcd;
            white-space: pre-wrap;
            display: none;
        }

        .code-output.show {
            display: block;
        }

                .skill-tag {
            display: inline-block;
            background: #667eea;
            color: white;
            padding: 5px 12px;
            border-radius: 15px;
            margin: 3px;
            font-size: 12px;
        }

        @media (max-width: 768px) {
            .content {
                grid-template-columns: 1fr;
            }
        }

      #virtual-pet {
    position: absolute;
    left: 5px;
    bottom: 60px; /* sits above the social icons */
    width: 64px;
    height: 64px;
    z-index: 5;
}

#pet-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center;
}

/* Pixel grid for pet */
.pixel {
    position: absolute;
    width: 4px;
    height: 4px;
}

/* Speech bubble */
#speech {
    position: absolute;
    bottom: 90px; 
    left: 10px;
    background: rgb(76, 76, 76);
    padding: 8px 12px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-size: 12px;
    max-width: 150px;
    display: none;
    text-align: center;
    pointer-events: none;
    font-family: 'Comic Sans MS', sans-serif;
    animation: bounce 0.4s ease-out;
    white-space: nowrap;
}

#speech::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgb(140, 140, 140);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes happy-jump {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.1); } 
}

.jump {
    animation: happy-jump 0.5s ease-in-out;
}

/* Eye pupils */
.eye-pupil {
    position: absolute;
    width: 4px;
    height: 4px;
    background: black;
    transition: all 0.1s ease-out;
}

/* Shadow for floating effect */
.shadow {
    position: absolute;
    width: 20px; 
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%; 
    bottom: -8px; 
    left: 28px; 
    transition: transform 0.3s ease-out;
    z-index: -1; 
}
#customCode {
    background: transparent;
    color: #d4d4d4;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.runAllBtn {
    background: #67686a;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 0;
    display: block;
    transition: all 0.3s ease;
}

.runAllBtn:hover {
    background: #7f7f80;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(123, 140, 216, 0.4);
}

.runAllBtn:active {
    transform: scale(0.98);
}

.social-links {
    position: absolute;
    left: 20px;
    bottom: 16px; /* icons sit below the pet */
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 6;
}

/* anchor visual */
.social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    color: #ffffff;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.12s ease, color 0.18s ease;
}

/* icon sizing - SVG inherits color */
.social-links a svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* hover/focus */
.social-links a:hover,
.social-links a:focus {
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px);
    color: #fff;
    outline: none;
}

/* small-screen tweak */
@media (max-width: 520px) {
    .social-links {
        gap: 8px;
    }
    .social-links a { width: 32px; height: 32px; }
    .social-links a svg { width: 16px; height: 16px; }
}