/* ==========================================
   SKILLS SECTION
========================================== */

.skills-section {
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);

    background-size: 40px 40px;

    mask-image: radial-gradient(circle, white, transparent 80%);

    pointer-events: none;
}

/* ==========================================
   HEADER
========================================== */

.section-header {
    max-width: 800px;
    margin: 0 auto 70px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;

    border-radius: 50px;

    background: rgba(139,92,246,.12);

    border: 1px solid rgba(139,92,246,.25);

    color: var(--primary);

    font-size: .9rem;
    font-weight: 600;

    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 20px;
}

.section-subtitle {
    max-width: 650px;
    margin: auto;
}

/* ==========================================
   TOP SHOWCASE
========================================== */

.skills-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

    margin-bottom: 60px;
}

/* ==========================================
   TERMINAL
========================================== */

.skills-terminal {
    position: relative;

    background: #0b0f16;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 28px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0,0,0,.35),
        0 0 0 1px rgba(255,255,255,.03);
}

.terminal-status {
    position: absolute;

    top: 18px;
    right: 18px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;

    border-radius: 50px;

    background: rgba(34,197,94,.12);

    border: 1px solid rgba(34,197,94,.2);

    color: #22c55e;

    font-size: .75rem;
    font-weight: 600;

    z-index: 5;
}

.terminal-status span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22c55e;
}

.terminal-header {
    display: flex;
    gap: 8px;

    padding: 18px 24px;

    background: rgba(255,255,255,.03);

    border-bottom: 1px solid rgba(255,255,255,.05);
}

.terminal-header span {
    width: 12px;
    height: 12px;

    border-radius: 50%;
}

.terminal-header span:nth-child(1) {
    background: #ff5f57;
}

.terminal-header span:nth-child(2) {
    background: #febc2e;
}

.terminal-header span:nth-child(3) {
    background: #28c840;
}

.terminal-body {
    padding: 30px;

    font-family: monospace;
}

.terminal-line {
    color: #fff;
    margin-bottom: 8px;
}

.prompt {
    color: var(--primary);
    margin-right: 8px;
}

.terminal-output {
    color: var(--text-secondary);

    margin-bottom: 22px;

    padding-left: 18px;
}

.terminal-line:last-child::after {
    content: "";

    display: inline-block;

    width: 10px;
    height: 18px;

    margin-left: 6px;

    background: var(--primary);

    animation: blink 1s infinite;
}

@keyframes blink {

    50% {
        opacity: 0;
    }
}

/* ==========================================
   TECH CLOUD
========================================== */

.tech-cloud {
    position: relative;
    min-height: 450px;
}

.tech-cloud::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(139,92,246,.25),
            rgba(139,92,246,.08),
            transparent 70%
        );

    filter: blur(50px);
}

.tech-cloud::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    border: 1px dashed rgba(139,92,246,.15);

    animation: rotateRing 40s linear infinite;
}

@keyframes rotateRing {

    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.tech-bubble {
    position: absolute;

    width: 120px;
    height: 120px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 8px;

    z-index: 2;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.05),
            rgba(255,255,255,.02)
        );

    backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,.08);

    transition: .35s ease;
}

.tech-bubble:hover {
    transform: translateY(-8px) scale(1.05);

    border-color: rgba(139,92,246,.35);

    box-shadow: 0 15px 40px rgba(139,92,246,.18);
}

.tech-bubble i {
    font-size: 2rem;
    color: var(--primary);
}

.tech-bubble span {
    font-size: .85rem;
    font-weight: 500;
}

/* POSITIONS */

.html {
    top: 0;
    left: 40px;
}

.css {
    top: 50px;
    right: 40px;
}

.js {
    top: 170px;
    left: 0;
}

.php {
    top: 170px;
    right: 0;
}

.ci {
    top: 310px;
    left: 70px;
}

.mysql {
    top: 290px;
    right: 90px;
}

.git {
    top: 110px;
    left: 180px;
}

.github {
    top: 60px;
    right: 180px;
}

.java {
    top: 260px;
    left: 250px;
}

/* ==========================================
   CATEGORY GRID
========================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.skill-category {
    position: relative;

    padding: 26px;

    background: rgba(255,255,255,.03);

    border: 1px solid var(--border);

    border-radius: 24px;

    overflow: hidden;

    transition: .35s ease;
}

.skill-category::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: var(--gradient-primary);

    transform: scaleX(0);

    transition: .35s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    transform: translateY(-8px);

    border-color: rgba(139,92,246,.35);

    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.category-top {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 16px;
}

.category-top i {
    color: var(--primary);
    font-size: 1.1rem;
}

.category-top h3 {
    font-size: 1.2rem;
}

.skill-category p {
    font-size: .95rem;
    margin-bottom: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    padding: 10px 16px;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            rgba(139,92,246,.12),
            rgba(6,182,212,.12)
        );

    border: 1px solid rgba(255,255,255,.06);

    font-size: .85rem;

    transition: .3s;
}

.tags span:hover {
    transform: translateY(-2px);
}

/* ==========================================
   BOTTOM CTA
========================================== */

.skills-bottom {
    margin-top: 70px;

    padding: 40px;

    border-radius: 30px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(139,92,246,.08),
            rgba(6,182,212,.05)
        );

    border: 1px solid rgba(255,255,255,.06);
}

.skills-bottom-content {
    max-width: 700px;
    margin: auto;
}

.skills-bottom h3 {
    margin-bottom: 15px;
}

/* ==========================================
   DIVIDER
========================================== */

.skills-divider {
    margin-top: 70px;

    position: relative;

    text-align: center;
}

.skills-divider::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 100%;
    height: 1px;

    background: var(--border);
}

.skills-divider span {
    position: relative;

    z-index: 2;

    padding: 0 20px;

    background: var(--body-bg);

    color: var(--text-muted);

    font-size: .9rem;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 992px) {

    .skills-showcase {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

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

@media (max-width: 768px) {

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .tech-cloud {

        min-height: auto;

        display: grid;

        grid-template-columns: repeat(3,1fr);

        gap: 12px;
    }

    .tech-cloud::before,
    .tech-cloud::after {
        display: none;
    }

    .tech-bubble {

        position: relative;

        top: auto !important;
        left: auto !important;
        right: auto !important;

        width: 100%;
        height: 90px;
    }

    .tech-bubble i {
        font-size: 1.5rem;
    }

    .tech-bubble span {
        font-size: .75rem;
    }

    .terminal-status {
        position: static;

        width: fit-content;

        margin: 16px;
    }

    .terminal-body {
        padding: 24px;
        font-size: .9rem;
    }

    .skills-bottom {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {

    .tech-cloud {
        grid-template-columns: repeat(2,1fr);
    }

    .skill-category {
        padding: 22px;
    }

    .category-top h3 {
        font-size: 1.1rem;
    }
}