
/* ========================================
   SKILLS PAGE - BASE
======================================== */

.skills-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    color: #f4f3ff;
    background: #080914;
}

.skills-page *,
.skills-page *::before,
.skills-page *::after {
    box-sizing: border-box;
}

.skills-page .section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #a9a4ff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.label-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #9b8cff;
    box-shadow: 0 0 12px #9b8cff;
}

/* ========================================
   HERO SECTION
======================================== */

.skills-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    min-height: 440px;
    margin: 0 auto;
    padding: 85px 40px 75px;
}

.skills-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    animation: skillsFadeUp 0.8s ease both;
}

.skills-hero h1 {
    margin: 24px 0 20px;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 1.08;
    letter-spacing: -3px;
    font-weight: 800;
}

.skills-hero h1 span,
.skills-heading h2 span,
.learning-content h2 span {
    color: transparent;
    background: linear-gradient(
        100deg,
        #a995ff,
        #658bff,
        #d49aff
    );
    -webkit-background-clip: text;
    background-clip: text;
}

.skills-hero-content > p {
    max-width: 540px;
    margin: 0;
    color: #a6a7bb;
    font-size: 1.03rem;
    line-height: 1.9;
}

/* ========================================
   PROFILE LINKS
======================================== */

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 25px;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 220px;
    min-width: 0;
    max-width: 290px;
    padding: 13px 14px;
    border: 1px solid rgba(159, 143, 255, 0.25);
    border-radius: 15px;
    background: rgba(139, 119, 255, 0.07);
    color: #f4f3ff;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.profile-link:hover {
    transform: translateY(-4px);
    border-color: rgba(169, 149, 255, 0.75);
    background: rgba(139, 119, 255, 0.13);
    box-shadow: 0 12px 30px rgba(80, 62, 180, 0.12);
}

.profile-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 900;
}

.leetcode-icon {
    background: linear-gradient(135deg, #b09aff, #6b7dff);
    color: #100d24;
}

.github-icon {
    background: linear-gradient(135deg, #e2e2ef, #a0a2c3);
    color: #10111e;
}

.profile-link-text {
    flex: 1;
    min-width: 0;
}

.profile-link-text strong,
.profile-link-text small {
    display: block;
}

.profile-link-text strong {
    color: #f4f3ff;
    font-size: 0.9rem;
}

.profile-link-text small {
    margin-top: 5px;
    color: #a6a7bb;
    font-size: 0.75rem;
    white-space: nowrap;
}

.link-arrow {
    flex-shrink: 0;
    margin-left: 2px;
    color: #b7a7ff;
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.profile-link:hover .link-arrow {
    transform: translate(2px, -2px);
}

/* ========================================
   HERO DECORATION
======================================== */

.skills-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.skills-glow-one {
    top: -100px;
    left: 20%;
    background: rgba(104, 68, 255, 0.14);
}

.skills-glow-two {
    right: -100px;
    bottom: -100px;
    background: rgba(46, 105, 255, 0.12);
}

.hero-decoration {
    position: relative;
    display: grid;
    place-items: center;
    width: 330px;
    height: 330px;
    flex-shrink: 0;
    margin-right: 30px;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(151, 132, 255, 0.23);
    border-radius: 50%;
}

.orbit-one {
    width: 250px;
    height: 250px;
    animation: orbitRotate 18s linear infinite;
}

.orbit-two {
    width: 190px;
    height: 190px;
    border-style: dashed;
    animation: orbitRotate 24s linear infinite reverse;
}

.orbit-center {
    display: grid;
    place-items: center;
    width: 125px;
    height: 125px;
    border: 1px solid rgba(174, 156, 255, 0.55);
    border-radius: 35px;
    background: linear-gradient(
        145deg,
        rgba(139, 119, 255, 0.22),
        rgba(57, 77, 177, 0.12)
    );
    box-shadow:
        0 0 60px rgba(120, 99, 255, 0.15),
        inset 0 0 25px rgba(173, 152, 255, 0.08);
    transform: rotate(-8deg);
}

.orbit-center span {
    color: #c7b8ff;
    font-size: 2.3rem;
    font-weight: 800;
    transform: rotate(8deg);
}

.floating-symbol {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(168, 153, 255, 0.24);
    border-radius: 14px;
    background: #121326;
    color: #b6a5ff;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.symbol-one {
    top: 38px;
    right: 42px;
}

.symbol-two {
    bottom: 43px;
    left: 30px;
    color: #83a7ff;
}

.symbol-three {
    right: 35px;
    bottom: 68px;
    color: #d69aff;
}

/* ========================================
   SKILLS CONTENT
======================================== */

.skills-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 95px;
}

.skills-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 35px;
    margin-bottom: 35px;
}

.skills-heading h2 {
    margin: 13px 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -1.5px;
}

.skills-heading > p {
    max-width: 390px;
    margin: 0 0 5px;
    color: #999bb2;
    font-size: 0.93rem;
    line-height: 1.8;
}

/* ========================================
   SKILL CARDS
======================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.skill-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(161, 153, 211, 0.13);
    border-radius: 22px;
    background: linear-gradient(
        145deg,
        rgba(25, 25, 48, 0.9),
        rgba(13, 14, 29, 0.96)
    );
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    animation: skillsFadeUp 0.7s ease both;
}

.skill-card:nth-child(2) {
    animation-delay: 0.1s;
}

.skill-card:nth-child(3) {
    animation-delay: 0.2s;
}

.skill-card:nth-child(4) {
    animation-delay: 0.3s;
}

.skill-card::after {
    position: absolute;
    top: -70px;
    right: -70px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(130, 107, 255, 0.08);
    filter: blur(40px);
    content: "";
    pointer-events: none;
}

.skill-card:hover {
    transform: translateY(-7px);
    border-color: rgba(156, 139, 255, 0.4);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.skill-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.skill-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
}

.purple-icon {
    background: rgba(150, 112, 255, 0.13);
    color: #bba4ff;
}

.blue-icon {
    background: rgba(91, 139, 255, 0.13);
    color: #8db4ff;
}

.pink-icon {
    background: rgba(218, 115, 255, 0.12);
    color: #e3a4ff;
}

.green-icon {
    background: rgba(83, 224, 177, 0.1);
    color: #80e9c1;
}

.card-number {
    color: #656780;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.skill-card h3 {
    margin: 0 0 12px;
    color: #f0efff;
    font-size: 1.25rem;
}

.skill-card > p {
    min-height: 55px;
    margin: 0 0 23px;
    color: #999bb2;
    font-size: 0.91rem;
    line-height: 1.8;
}

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

.skill-tags span {
    padding: 8px 11px;
    border: 1px solid rgba(163, 155, 213, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: #c3c2d8;
    font-size: 0.77rem;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.skill-card:hover .skill-tags span {
    background: rgba(143, 124, 255, 0.07);
    color: #e0d9ff;
}

/* ========================================
   LEARNING SECTION
======================================== */

.learning-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1120px;
    margin: 0 auto 90px;
    padding: 42px;
    border: 1px solid rgba(153, 133, 255, 0.2);
    border-radius: 25px;
    background:
        radial-gradient(
            ellipse at top right,
            rgba(112, 88, 255, 0.13),
            transparent 50%
        ),
        #101123;
}

.learning-content {
    max-width: 680px;
}

.learning-content h2 {
    margin: 14px 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -1px;
    line-height: 1.2;
}

.learning-content > p {
    max-width: 580px;
    margin: 0;
    color: #a1a2b7;
    font-size: 0.93rem;
    line-height: 1.8;
}

.learning-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.learning-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 17px;
    border: 1px solid rgba(170, 151, 255, 0.4);
    border-radius: 12px;
    background: linear-gradient(
        110deg,
        rgba(144, 113, 255, 0.19),
        rgba(87, 115, 255, 0.14)
    );
    color: #e5deff;
    font-size: 0.87rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.learning-link:hover {
    transform: translateY(-3px);
    background: rgba(144, 113, 255, 0.28);
}

.learning-link span {
    font-size: 1.1rem;
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes skillsFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orbitRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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

@media (max-width: 1000px) {
    .skills-hero {
        gap: 20px;
        padding-right: 30px;
        padding-left: 30px;
    }

    .hero-decoration {
        width: 270px;
        height: 270px;
        margin-right: 0;
        transform: scale(0.9);
    }

    .profile-links {
        gap: 10px;
    }

    .profile-link {
        flex-basis: 200px;
    }

    .skills-content {
        padding-right: 30px;
        padding-left: 30px;
    }

    .learning-section {
        margin-right: 30px;
        margin-left: 30px;
    }
}

@media (max-width: 760px) {
    .skills-hero {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 60px;
    }

    .hero-decoration {
        display: none;
    }

    .skills-hero-content {
        max-width: 100%;
    }

    .profile-link {
        flex-basis: 220px;
    }

    .skills-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

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

    .skill-card > p {
        min-height: auto;
    }

    .learning-section {
        align-items: flex-start;
        flex-direction: column;
        padding: 32px;
    }
}

@media (max-width: 480px) {
    .skills-hero {
        padding: 55px 22px 45px;
    }

    .skills-hero h1 {
        font-size: clamp(2.7rem, 12vw, 3.6rem);
        letter-spacing: -2px;
    }

    .skills-hero-content > p {
        font-size: 0.95rem;
    }

    .profile-links {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-link {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
    }

    .skills-content {
        padding: 25px 22px 60px;
    }

    .skills-heading h2 {
        font-size: 2.15rem;
    }

    .skill-card {
        padding: 25px;
    }

    .learning-section {
        margin: 0 22px 60px;
        padding: 27px;
    }

    .learning-content h2 {
        font-size: 1.95rem;
    }

    .learning-links {
        width: 100%;
    }

    .learning-link {
        flex: 1;
    }
}

@media (max-width: 350px) {
    .profile-link {
        gap: 9px;
        padding: 12px;
    }

    .profile-link-text small {
        font-size: 0.68rem;
    }

    .skill-tags span {
        font-size: 0.72rem;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
    .skills-page *,
    .skills-page *::before,
    .skills-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
