.expertise-card,
.skill-card {
    animation: .6s forwards fadeInUp
}

.overview-content,
.section-header {
    margin-bottom: 40px
}

.section-title {
    color: var(--color-primary, #ffdb70);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px
}

.expertise-card:hover .expertise-description,
.overview-text {
    color: var(--color-text-light, #d8d8d8)
}

.section-title-Portfolio::after,
.section-title::after,
.showcase-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-primary, #ffdb70);
    margin-top: 10px
}

.overview-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px
}

.expertise-title,
.highlight-text,
.showcase-title,
.skill-highlight {
    color: var(--color-primary, #ffdb70);
    font-weight: 600
}

.expertise-showcase,
.testimonial {
    padding: 40px 0;
    position: relative;
    overflow: hidden
}

.expertise-showcase::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, hsla(45, 100%, 72%, .05) 0, transparent 70%);
    border-radius: 50%;
    z-index: 0
}

.showcase-title {
    font-size: 28px;
    margin-bottom: 40px;
    position: relative
}

.showcase-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary, #ffdb70), hsla(45, 100%, 72%, .3));
    margin-top: 12px;
    position: relative;
    overflow: hidden
}

.expertise-card::after,
.expertise-card::before,
.expertise-title::after {
    position: absolute;
    left: 0;
    content: ''
}

.showcase-title::after::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, transparent, hsla(45, 100%, 72%, .8), transparent);
    animation: 2s infinite shimmer
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0;
    list-style: none;
    perspective: 1000px
}

.expertise-card {
    background: linear-gradient(145deg, hsla(240, 2%, 18%, .6), hsla(240, 2%, 15%, .6));
    padding: 35px 30px;
    border-radius: 16px;
    transition: .4s cubic-bezier(.175, .885, .32, 1.275);
    border: 1px solid hsla(0, 0%, 22%, .2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    opacity: 0
}

.expertise-card:first-child {
    animation-delay: .1s
}

.expertise-card:nth-child(2),
.skill-card:nth-child(2) {
    animation-delay: .2s
}

.expertise-card:nth-child(3),
.skill-card:nth-child(3) {
    animation-delay: .3s
}

.expertise-card:nth-child(4),
.skill-card:nth-child(4) {
    animation-delay: .4s
}

.expertise-card::before {
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0, transparent 50%, hsla(45, 100%, 72%, .03) 50%, hsla(45, 100%, 72%, .03) 100%);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity .4s
}

.expertise-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    background: linear-gradient(145deg, hsla(240, 2%, 20%, .7), hsla(240, 2%, 18%, .7));
    border-color: var(--color-primary-medium, hsla(45, 100%, 72%, .2));
    box-shadow: 0 15px 35px rgba(0, 0, 0, .1)
}

.expertise-card:hover::after,
.expertise-card:hover::before {
    opacity: 1
}

.expertise-icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary-light, hsla(45, 100%, 72%, .1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    transition: .4s;
    box-shadow: 0 5px 15px var(--color-primary-light, hsla(45, 100%, 72%, .1))
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1);
    background: hsla(45, 100%, 72%, .15);
    box-shadow: 0 8px 25px hsla(45, 100%, 72%, .15)
}

.expertise-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(83%) sepia(29%) saturate(1033%) hue-rotate(332deg) brightness(101%) contrast(101%);
    transition: .4s
}

.expertise-card:hover .expertise-icon img {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(83%) sepia(40%) saturate(1200%) hue-rotate(332deg) brightness(105%) contrast(105%)
}

.expertise-details {
    position: relative;
    z-index: 1
}

.expertise-title {
    font-size: 20px;
    margin-bottom: 15px;
    transition: .3s;
    position: relative;
    display: inline-block
}

.expertise-card:hover .expertise-title {
    transform: translateX(5px)
}

.expertise-title::after {
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--color-primary, #ffdb70);
    transition: width .3s
}

.expertise-card:hover .expertise-title::after {
    width: 100%
}

.expertise-description {
    color: var(--color-text-medium, #bfbfbf);
    font-size: 15px;
    line-height: 1.7;
    transition: .3s
}

.expertise-card::after {
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--color-primary-light, hsla(45, 100%, 72%, .1)) 0, transparent 70%);
    opacity: 0;
    transition: opacity .4s;
    z-index: -1;
    border-radius: 16px;
}

.testimonial_title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary, #ffdb70);
    margin-bottom: 40px;
}
.testimonial_title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-primary, #ffdb70);
    margin-top: 10px
}


.testimonial-cards {
    display: flex;
    gap: 25px;
    width: 100%;
    position: relative;
    overflow: hidden
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
    border-radius: 16px;
    padding: 30px;
    background: linear-gradient(145deg, hsla(240, 2%, 18%, .9), hsla(240, 2%, 15%, .8));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    transition: .4s;
    border: 1px solid hsla(0, 0%, 25%, .3);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px)
}

.testimonial-card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(74, 108, 247, .15);
    flex-shrink: 0
}

.testimonial-card-header-info {
    flex: 1
}

.testimonial-card-header-name {
    font-size: 18px;
    font-weight: 600;
    color: #918f8f;
    margin: 0 0 5px
}

.time {
    font-size: 14px;
    color: var(--color-primary, #ffdb70);
    margin: 0 0 12px;
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(74, 108, 247, .08);
    border-radius: 20px
}

.testimonial-card-header-position {
    font-size: 15px;
    line-height: 1.6;
    color: #c4c4c4;
    margin: 0
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: .3s
}

.testimonial-dot.active {
    background-color: var(--color-primary, #ffdb70);
    transform: scale(1.3)
}

.testimonial-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none
}

.testimonial:hover .testimonial-arrows {
    opacity: 1;
    pointer-events: auto
}

.testimonial-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
    transition: .3s;
    transform: translateY(-50%)
}

.testimonial-arrow:hover {
    background-color: var(--color-primary, #ffdb70);
    color: #fff
}

.testimonial-arrow i {
    font-size: 18px
}

.skills-section {
    padding: 40px 0
}

.section-subtitle {
    color: var(--color-text-medium, #bfbfbf);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px
}

.section-subtitle:last-child {
    color: var(--color-primary, #ffdb70);
    font-weight: 500;
    font-size: 14px
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    perspective: 1000px
}

.skill-card {
    height: 220px;
    perspective: 1000px;
    /* opacity: 0 */
}

.skill-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform .8s;
    transform-style: preserve-3d;
    cursor: pointer
}



.skill-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}



.skill-card-back {
    background: linear-gradient(145deg, hsla(240, 2%, 18%, .95), hsla(240, 2%, 15%, .9));
    border: 1px solid var(--color-primary-medium, hsla(45, 100%, 72%, .2));
    color: #fff;
    justify-content: flex-start;
    text-align: left
}

.skill-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-primary-light, hsla(45, 100%, 72%, .1));
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--color-primary, #ffdb70);
    transition: .3s
}

.skill-card:hover .skill-card-icon {
    animation: 1s infinite pulse
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }
}

.skill-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-white, #fff)
}

.skill-card-subtitle {
    font-size: 14px;
    color: var(--color-text-medium, #bfbfbf)
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    text-align: left;
    width: 100%
}

.skill-item {
    font-size: 14px;
    color: var(--color-text-light, #d8d8d8);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px
}

.skill-item:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary, #ffdb70);
    font-size: 18px;
    line-height: 1
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

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

.skill-card:first-child {
    animation-delay: .1s;
    position: relative
}

.skill-card:first-child::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--color-primary), transparent, var(--color-primary));
    border-radius: 18px;
    opacity: 0;
    z-index: -1;
    animation: 2s ease-in-out 1s infinite pulseHint
}

@keyframes pulseHint {

    0%,
    100% {
        opacity: 0;
        transform: scale(1)
    }

    50% {
        opacity: .6;
        transform: scale(1.02)
    }
}

.skills-section.interacted .skill-card:first-child::before {
    animation: none;
    opacity: 0
}

/* About Section Responsive Styles */

/* Tablet Styles */
@media (max-width: 768px) {

    /* Overview Content */
    .overview-content {
        padding: 20px 0;
    }

    .overview-text {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    /* Expertise Showcase */
    .expertise-showcase {
        padding: 30px 0;
    }

    .showcase-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .expertise-card {
        padding: 20px;
    }

    .expertise-icon img {
        width: 35px;
        height: 35px;
    }

    .expertise-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .expertise-description {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .skill-card {
        height: 200px;
    }

    .skill-card-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }

    .skill-card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .skill-card-subtitle {
        font-size: 13px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-card-header-avatar {
        width: 60px;
        height: 60px;
    }

    .testimonial-card-header-name {
        font-size: 16px;
    }

    .testimonial-card-header-position {
        font-size: 14px;
    }

    .testimonial-arrow {
        width: 35px;
        height: 35px;
    }

    .testimonial-arrow i {
        font-size: 16px;
    }

    /* University & Training */
    .university-education,
    .training-item {
        padding-left: 40px;
    }

    .university-dot,
    .training-dot {
        left: -32px;
        width: 14px;
        height: 14px;
    }

    .university-card,
    .training-card {
        padding: 20px;
    }

    .university-title,
    .training-title {
        font-size: 18px;
    }

    /* Certificate Buttons */
    .certificate-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {

    /* Overview Content */
    .overview-content {
        padding: 15px 0;
    }

    .overview-text {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    /* Expertise Showcase */
    .expertise-showcase {
        padding: 25px 0;
    }

    .showcase-title {
        font-size: 20px;

        margin-bottom: 16px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .expertise-card {
        padding: 16px;
    }

    .expertise-icon {

        margin-bottom: 12px;
    }

    .expertise-icon img {
        width: 30px;
        height: 30px;
    }

    .expertise-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .expertise-description {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.4;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-card {
        height: 180px;
    }

    .skill-card-back {
        padding: 20px;
    }

    .skill-card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .skill-card-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .skill-card-subtitle {
        font-size: 12px;
    }

    .skill-item {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 15px;
        margin: 0 10px;
    }

    .testimonial-card-header {
        gap: 12px;
    }

    .testimonial-card-header-avatar {
        width: 50px;
        height: 50px;
    }

    .testimonial-card-header-name {
        font-size: 15px;
        margin-bottom: 3px;
    }

    .testimonial-card-header-position {
        font-weight: 600;
        font-size: 13px;
    }

    .testimonial-card-content {
        font-size: 14px;
        line-height: 1.5;
    }

    .testimonial-arrows {
        padding: 0 10px;
    }

    .testimonial-arrow {
        width: 30px;
        height: 30px;
    }

    .testimonial-arrow i {
        font-size: 14px;
    }

    .testimonial-controls {
        gap: 10px;
        margin-top: 20px;
    }

    .testimonial-dot {
        width: 8px;
        height: 8px;
    }

    /* University & Training */
    .university-education,
    .training-item {
        padding-left: 32px;
        margin-bottom: 20px;
    }

    .university-timeline-line,
    .training-timeline-line {
        left: 12px;
    }

    .university-dot,
    .training-dot {
        left: -28px;
        width: 12px;
        height: 12px;
    }

    .university-card,
    .training-card {
        padding: 16px;
    }

    .university-title,
    .training-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .university-institute {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .university-date,
    .training-date {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .university-description,
    .training-description {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Certificate Buttons */
    .certificate-btn {
        padding: 6px 12px;
        font-size: 12px;
        gap: 6px;
        margin-top: 12px;
    }

    .certificate-btn i {
        font-size: 14px;
    }

    /* Section Spacing */
    .skills-section {
        padding: 30px 0;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .section-subtitle:last-child {
        font-size: 13px;
    }
}