/* ============================================
   SKILLS SECTION — Modern Grid & Tabs Layout
   ============================================ */

.skills-section {
    padding: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow: visible;
}

/* Skills Header Section with Decoration */
.skills-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1rem;
    padding: 0 24px;
}

.skills-header-left {
    flex: 1;
    text-align: left;
}

.skills-badge {
    display: inline-block;
    background: #ede9fe;
    border: 1px solid #ddd6fe;
    color: #6d28d9;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.skills-header-left h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    text-align: left;
    margin-bottom: 1.2rem;
    margin-top: 0;
}

.skills-header-left h1 span {
    background: linear-gradient(135deg, var(--accent-purple-light) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

/* Decoration Graphics (Editor Mockup & Floating Symbols) */
.skills-header-right {
    flex: 0 0 420px;
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-decoration {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dotted background pattern */
.dots-grid {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 140px;
    height: 100px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 12px;
    z-index: 1;
    opacity: 0.25;
}

.dots-grid span {
    width: 4px;
    height: 4px;
    background-color: var(--text-muted);
    border-radius: 50%;
}

/* Floating Icon Badges */
.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-purple);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    z-index: 4;
}

.code-tags {
    top: 25%;
    left: 10%;
    animation: float 5s ease-in-out infinite;
}

.braces {
    bottom: 25%;
    right: 5%;
    font-family: monospace;
    font-weight: bold;
    color: var(--accent-purple-light);
    animation: float 4s ease-in-out infinite alternate;
}

/* Mock Code Editor Windows */
.editor-mockup {
    position: relative;
    width: 250px;
    height: 160px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08), 0 0 25px rgba(124, 58, 237, 0.1);
    overflow: hidden;
    z-index: 3;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateY(-5deg);
}

.editor-header {
    height: 28px;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.editor-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.editor-dot.red {
    background-color: #ef4444;
}

.editor-dot.yellow {
    background-color: #eab308;
}

.editor-dot.green {
    background-color: #22c55e;
}

.editor-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: calc(100% - 28px);
    justify-content: center;
    position: relative;
}

.editor-symbol {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--accent-purple-light);
    text-align: center;
    opacity: 0.85;
    text-shadow: 0 0 15px var(--accent-purple-glow);
}

.editor-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 5px;
    align-items: center;
}

.editor-line {
    height: 4px;
    border-radius: 2px;
    background-color: var(--text-muted);
    opacity: 0.3;
}

.el-1 {
    width: 50%;
    background-color: var(--accent-purple-light);
    opacity: 0.5;
}

.el-2 {
    width: 70%;
}

.el-3 {
    width: 40%;
}

.editor-settings {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, #4c1d95 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    z-index: 5;
    animation: rotateGear 15s linear infinite;
    transform-origin: center;
    padding: 0;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes rotateGear {
    from {
        transform: translate(-3px, -3px) rotate(0deg);
    }

    to {
        transform: translate(-3px, -3px) rotate(360deg);
    }
}

.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}

.animate-float-fast {
    animation: float 4s ease-in-out infinite alternate;
}

/* Sub-heading Style with Custom Bullet */
.skills-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 24px;
    font-family: var(--font-heading);
}

.bullet-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-purple-light);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-purple-light);
}

/* Tabs / Filters */
.skills-tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 0 24px;
}

.skills-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.skills-tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.05);
}

.skills-tab-btn.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* Skill Grid & Cards */
.skills-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
    margin-bottom: 0;
    padding: 0 24px;
}

.skill-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.skill-detail-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 15px rgba(124, 58, 237, 0.08);
}

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.skill-icon svg,
.skill-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.skill-detail-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

/* Proficiency rating dots */
.skill-proficiency {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.skill-proficiency .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.skill-proficiency .dot.filled {
    background-color: var(--accent-purple-light);
    box-shadow: 0 0 5px var(--accent-purple-light);
}

.skill-proficiency .dot.empty {
    background-color: rgba(0, 0, 0, 0.1);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1100px) {
    .skills-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .skills-header-container {
        gap: 2rem;
    }

    .skills-header-left h1 {
        font-size: 2.6rem;
    }

    .skills-header-right {
        flex: 0 0 320px;
        height: 240px;
    }

    .editor-mockup {
        width: 200px;
        height: 130px;
    }

    .editor-symbol {
        font-size: 2rem;
    }

    .dots-grid {
        width: 120px;
        height: 80px;
        grid-gap: 8px;
    }
}

@media (max-width: 768px) {
    .skills-header-container {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }

    .skills-header-left {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .skills-header-left h1 {
        text-align: center;
        font-size: 2.2rem;
    }

    .skills-header-right {
        display: none;
        /* Hide the decoration on mobile for cleaner layout */
    }

    .skills-tabs {
        justify-content: center;
    }

    .skills-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .skills-header-container {
        padding: 0 16px;
    }

    .skills-tabs {
        padding: 0 16px;
    }

    .skills-cards-grid {
        padding: 0 16px;
    }

    .skills-section-title {
        padding: 0 16px;
    }
}

@media (max-width: 576px) {
    .skills-section {
        padding: 2.5rem 0 1rem;
    }

    .skills-header-left h1 {
        font-size: 1.8rem;
    }

    .skills-subtitle {
        font-size: 0.95rem;
    }

    .skills-tabs {
        gap: 0.5rem;
    }

    .skills-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

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

    .skills-header-container,
    .skills-tabs,
    .skills-cards-grid,
    .skills-section-title {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 380px) {
    .skills-header-left h1 {
        font-size: 1.55rem;
    }

    .skills-tab-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .skill-detail-card {
        padding: 1rem 0.75rem;
    }

    .skill-icon {
        width: 48px;
        height: 48px;
    }

    .skill-detail-card h3 {
        font-size: 0.82rem;
    }
}