/* =========================================================
   AKMAL PORTFOLIO — SKILLS
   ========================================================= */


/* ---------------------------------------------------------
   SKILLS SECTION
   --------------------------------------------------------- */

.skills-section {

    position: relative;

    min-height: 100vh;

    padding: 140px 8vw;

    background: transparent;

    overflow: hidden;

}


/* ---------------------------------------------------------
   SKILLS TOP
   --------------------------------------------------------- */

.skills-top {

    display: grid;

    grid-template-columns:
        0.7fr 1.3fr;

    gap: 8vw;

    align-items: end;

    margin-bottom: 90px;

}


.skills-label {

    display: flex;

    align-items: center;

    gap: 20px;

}


.skills-intro {

    max-width: 450px;

    margin-bottom: 40px;

    color:
        var(--text-muted);

    font-size: 15px;

    line-height: 1.8;

}


/* ---------------------------------------------------------
   SKILLS HEADING
   --------------------------------------------------------- */

.skills-heading h2 {

    font-size:
        clamp(
            65px,
            10vw,
            150px
        );

    line-height: 0.8;

    letter-spacing: -7px;

    text-transform: uppercase;

}


.skills-heading h2 span {

    display: block;

    color: transparent;

    -webkit-text-stroke:
        1px var(--gold);

}


/* ---------------------------------------------------------
   DASHBOARD
   --------------------------------------------------------- */

.skills-dashboard {

    border-top:
        1px solid
        rgba(
            212,
            175,
            55,
            0.3
        );

}


/* ---------------------------------------------------------
   DASHBOARD HEADER
   --------------------------------------------------------- */

.skills-index {

    display: grid;

    grid-template-columns:
        80px 1fr 180px;

    padding:
        18px 25px;

    color:
        var(--text-muted);

    font-size: 9px;

    letter-spacing: 3px;

}


/* ---------------------------------------------------------
   SKILL BUTTON
   --------------------------------------------------------- */

.skill-item {

    position: relative;

    width: 100%;

    min-height: 120px;

    display: grid;

    grid-template-columns:
        80px
        minmax(0, 1fr)
        180px
        40px;

    grid-template-rows:
        auto auto;

    align-items: center;

    padding:
        20px 25px;

    border: 0;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    background:
        transparent;

    color:
        inherit;

    font-family:
        inherit;

    text-align: left;

    appearance: none;

    -webkit-appearance: none;

    cursor: pointer;

    transition:
        background 0.4s ease,
        padding 0.4s ease;

}


/* ---------------------------------------------------------
   GOLD SIDE LINE
   --------------------------------------------------------- */

.skill-item::before {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    width: 2px;

    height: 100%;

    background:
        var(--gold);

    transform:
        scaleY(0);

    transform-origin:
        bottom;

    transition:
        transform 0.4s ease;

}


.skill-item:hover {

    background:
        rgba(
            212,
            175,
            55,
            0.04
        );

    padding-left:
        35px;

}


.skill-item:hover::before {

    transform:
        scaleY(1);

}


/* ---------------------------------------------------------
   SKILL NUMBER
   --------------------------------------------------------- */

.skill-number {

    grid-column: 1;

    grid-row: 1 / 3;

    align-self: center;

    color:
        var(--gold);

    font-family:
        "Courier New",
        monospace;

    font-size:
        10px;

    letter-spacing:
        2px;

}


/* ---------------------------------------------------------
   SKILL NAME
   --------------------------------------------------------- */

.skill-name {

    grid-column: 2;

    grid-row: 1;

    align-self: end;

    font-size:
        clamp(
            25px,
            3vw,
            45px
        );

    font-weight:
        600;

    letter-spacing:
        -1px;

    line-height:
        1;

    transition:
        color 0.4s ease;

}


.skill-item:hover
.skill-name {

    color:
        var(--gold-light);

}


/* ---------------------------------------------------------
   SKILL DESCRIPTION
   --------------------------------------------------------- */

.skill-description {

    grid-column: 2;

    grid-row: 2;

    align-self: start;

    margin-top:
        8px;

    max-width:
        520px;

    color:
        var(--text-muted);

    font-size:
        11px;

    line-height:
        1.6;

    opacity:
        0;

    pointer-events:
        none;

    transform:
        translateY(8px);

    transition:
        opacity 0.4s ease,
        transform 0.4s ease;

}


.skill-item:hover
.skill-description {

    opacity:
        1;

    transform:
        translateY(0);

}


/* ---------------------------------------------------------
   SKILL AREA
   --------------------------------------------------------- */

.skill-area {

    grid-column: 3;

    grid-row: 1 / 3;

    align-self:
        center;

    color:
        var(--text-muted);

    font-family:
        "Courier New",
        monospace;

    font-size:
        9px;

    letter-spacing:
        2px;

}


/* ---------------------------------------------------------
   ARROW
   --------------------------------------------------------- */

.skill-arrow {

    grid-column: 4;

    grid-row: 1 / 3;

    align-self:
        center;

    color:
        var(--gold);

    font-size:
        22px;

    transition:
        transform 0.4s ease;

}


.skill-item:hover
.skill-arrow {

    transform:
        translate(
            5px,
            -5px
        );

}


/* ---------------------------------------------------------
   FOCUS
   --------------------------------------------------------- */

.skill-item:focus {

    outline: none;

    background:
        transparent;

}


.skill-item:focus-visible {

    outline:
        1px solid
        var(--gold);

    outline-offset:
        -2px;

}


/* =========================================================
   CODE PLAYGROUND
   ========================================================= */


/* ---------------------------------------------------------
   OVERLAY
   --------------------------------------------------------- */

.code-playground {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background:
        rgba(
            5,
            12,
            20,
            0.82
        );

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;

}


.code-playground.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* ---------------------------------------------------------
   CODE WINDOW
   --------------------------------------------------------- */

.code-window {

    width:
        min(
            1100px,
            100%
        );

    max-height: 90vh;

    overflow: hidden;

    background:
        #08111a;

    border:
        1px solid
        rgba(
            212,
            175,
            55,
            0.3
        );

    box-shadow:
        0 30px 100px
        rgba(
            0,
            0,
            0,
            0.5
        );

    transform:
        translateY(30px)
        scale(0.97);

    transition:
        transform 0.5s
        cubic-bezier(
            0.16,
            1,
            0.3,
            1
        );

}


.code-playground.active
.code-window {

    transform:
        translateY(0)
        scale(1);

}


/* ---------------------------------------------------------
   WINDOW HEADER
   --------------------------------------------------------- */

.code-window-header {

    height: 58px;

    display: flex;

    align-items: center;

    padding: 0 20px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

}


.window-dots {

    display: flex;

    gap: 7px;

}


.window-dots span {

    width: 9px;

    height: 9px;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.25
        );

}


.window-dots span:nth-child(2) {

    opacity: 0.7;

}


.window-dots span:nth-child(3) {

    opacity: 0.4;

}


/* ---------------------------------------------------------
   LANGUAGE
   --------------------------------------------------------- */

.code-language {

    margin-left: auto;

    margin-right: auto;

    color:
        var(--gold);

    font-size: 10px;

    letter-spacing: 3px;

}


/* ---------------------------------------------------------
   CLOSE
   --------------------------------------------------------- */

.code-close {

    width: 30px;

    height: 30px;

    border: 0;

    background:
        transparent;

    color:
        var(--text-muted);

    font-family:
        inherit;

    font-size: 25px;

    cursor: pointer;

    transition:
        color 0.3s ease,
        transform 0.3s ease;

}


.code-close:hover {

    color:
        var(--gold);

    transform:
        rotate(90deg);

}


/* ---------------------------------------------------------
   CODE EDITOR
   --------------------------------------------------------- */

.code-editor {

    display: flex;

    min-height: 250px;

    max-height: 40vh;

    overflow: auto;

    padding:
        30px 0;

    background:
        #050c12;

}


.line-numbers {

    width: 65px;

    flex-shrink: 0;

    padding-right: 20px;

    text-align: right;

    color:
        rgba(
            255,
            255,
            255,
            0.2
        );

    font-family:
        "Courier New",
        monospace;

    font-size: 13px;

    line-height: 1.8;

}


.code-output {

    margin: 0;

    padding:
        0 30px 0 0;

    white-space: pre-wrap;

    word-break: break-word;

    color:
        #e6edf3;

    font-family:
        "Courier New",
        monospace;

    font-size: 14px;

    line-height: 1.8;

}


/* ---------------------------------------------------------
   TYPING CURSOR
   --------------------------------------------------------- */

.typing-cursor {

    display: inline-block;

    width: 7px;

    height: 17px;

    margin-left: 3px;

    vertical-align: middle;

    background:
        var(--gold);

    animation:
        cursorBlink 0.8s
        infinite;

}


@keyframes cursorBlink {

    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }

}


/* ---------------------------------------------------------
   EXECUTION STATUS
   --------------------------------------------------------- */

.execution-status {

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        12px 25px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.06
        );

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.06
        );

    color:
        var(--text-muted);

    font-family:
        "Courier New",
        monospace;

    font-size: 10px;

    letter-spacing: 2px;

}


.status-dot {

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background:
        var(--text-muted);

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;

}


.execution-status.running
.status-dot {

    background:
        var(--gold);

    box-shadow:
        0 0 10px
        var(--gold);

}


.execution-status.success
.status-dot {

    background:
        #70d68c;

    box-shadow:
        0 0 10px
        rgba(
            112,
            214,
            140,
            0.5
        );

}


/* ---------------------------------------------------------
   OUTPUT
   --------------------------------------------------------- */

.preview-panel {

    min-height: 130px;

    background:
        #071019;

    color:
        #f5f5f5;

    border-top:
        1px solid
        rgba(
            212,
            175,
            55,
            0.15
        );

}


.preview-header {

    padding:
        10px 20px;

    background:
        #0b1823;

    color:
        var(--gold);

    border-bottom:
        1px solid
        rgba(
            212,
            175,
            55,
            0.12
        );

    font-family:
        "Courier New",
        monospace;

    font-size: 9px;

    letter-spacing: 3px;

}


.preview-content {

    min-height: 95px;

    padding: 25px;

    font-family:
        Arial,
        sans-serif;

}


.preview-content h1 {

    margin:
        0 0 10px;

    font-size: 32px;

    color:
        var(--gold);

}


.preview-content p {

    margin: 0;

    color:
        var(--text-muted);

}


/* ---------------------------------------------------------
   PHP RESULT
   --------------------------------------------------------- */

.php-result {

    display: inline-block;

    padding: 12px 18px;

    border-left:
        2px solid
        var(--gold);

    background:
        rgba(
            212,
            175,
            55,
            0.06
        );

    color:
        var(--gold-light);

    font-family:
        "Courier New",
        monospace;

    font-size:
        18px;

    letter-spacing:
        1px;

    animation:
        phpOutput 0.5s ease forwards;

}


/* ---------------------------------------------------------
   PHP OUTPUT ANIMATION
   --------------------------------------------------------- */

@keyframes phpOutput {

    from {

        opacity: 0;

        transform:
            translateY(8px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .skills-section {

        min-height: auto;

        padding:
            110px 7vw;

    }


    .skills-top {

        grid-template-columns:
            1fr;

        gap: 40px;

        margin-bottom: 60px;

    }


    .skills-heading h2 {

        font-size:
            20vw;

        letter-spacing:
            -4px;

    }


    .skills-index {

        display: none;

    }


    .skill-item {

        grid-template-columns:
            45px 1fr 70px;

        min-height: 100px;

        padding:
            0 15px;

    }


    .skill-item:hover {

        padding-left:
            20px;

    }


    .skill-name {

        font-size:
            24px;

    }


    .skill-area {

        font-size:
            8px;

        letter-spacing:
            1px;

    }


    .skill-description {

        display: none;

    }


    .skill-arrow {

        right: 15px;

    }


    .code-playground {

        padding: 12px;

    }


    .code-window {

        max-height:
            94vh;

    }


    .code-editor {

        min-height:
            220px;

        padding:
            20px 0;

    }


    .line-numbers {

        width: 45px;

        padding-right:
            12px;

        font-size:
            11px;

    }


    .code-output {

        padding-right:
            15px;

        font-size:
            11px;

        line-height:
            1.7;

    }


    .execution-status {

        padding:
            10px 15px;

    }


    .preview-content {

        padding: 20px;

    }

}