/* ==========================================================================
   ABOUT SECTION STYLES
   ========================================================================== */

/* Animation for Cards */
.expertise-card,
.skill-card {
    animation: .6s forwards fadeInUp
}


/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

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

/* ==========================================================================
   OVERVIEW CONTENT
   ========================================================================== */

/* Overview Text & Expertise Description Color */
.expertise-card:hover .expertise-description,
.overview-text {
    color: var(--color-text-light, #d8d8d8)
}

/* Overview Text Styling */
.overview-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px
}

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

/* ==========================================================================
   EXPERTISE SHOWCASE SECTION
   ========================================================================== */

/* Expertise Showcase & Testimonial Container */
.expertise-showcase,
.testimonial {
    padding: 40px 0;
    position: relative;
    overflow: hidden
}

/* Expertise Showcase Background Effect */
.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 Section Title */
.showcase-title {
    font-size: 28px;
    margin-bottom: 40px;
    position: relative
}



/* Expertise Card Pseudo Elements */
.expertise-card::after,
.expertise-card::before,
.expertise-title::after {
    position: absolute;
    left: 0;
    content: ''
}

/* Showcase Title Shimmer Effect */
.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 Layout */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0;
    list-style: none;
    perspective: 1000px
}

/* Individual Expertise Card */
.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 Animation Delays */
.expertise-card:first-child {
    animation-delay: .1s
}

/* Staggered Animation Delays */
.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 Background Pattern */
.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 Effect */
.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 Pseudo Elements */
.expertise-card:hover::after,
.expertise-card:hover::before {
    opacity: 1
}

/* Expertise Icon Container */
.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 Icon Hover Effect */
.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 Image */
.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 Icon Image Hover Effect */
.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 Container */
.expertise-details {
    position: relative;
    z-index: 1
}

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

/* Expertise Title Hover Effect */
.expertise-card:hover .expertise-title {
    transform: translateX(5px)
}

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

/* Expertise Title Underline Hover Effect */
.expertise-card:hover .expertise-title::after {
    width: 100%
}

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

/* Expertise Card Radial Gradient Effect */
.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;
}



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

/* Skills Section Container */
.skills-section {
    padding: 40px 0
}

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

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

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

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

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



/* Skill Card Back Face */
.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 Styling */
.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 */
.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 Icon Hover Animation */
.skill-card:hover .skill-card-icon {
    animation: 1s infinite pulse
}

/* Pulse Animation Keyframes */
@keyframes pulse {

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

    50% {
        transform: scale(1.1)
    }
}

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

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

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

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

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

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

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

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

/* First Skill Card Special Effects */
.skill-card:first-child {
    animation-delay: .1s;
    position: relative
}

/* First Skill Card Pulse Hint */
.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
}

/* Pulse Hint Animation */
@keyframes pulseHint {

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

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

/* Remove Pulse Hint After Interaction */
.skills-section.interacted .skill-card:first-child::before {
    animation: none;
    opacity: 0
}
/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

/* Testimonial Section Title */
.testimonial_title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary, #ffdb70);
    margin-bottom: 40px;
}



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

/* Individual Testimonial Card */
.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 */
.testimonial-card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px
}

/* Testimonial Avatar Image */
.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 Header Info Container */
.testimonial-card-header-info {
    flex: 1
}

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

/* Testimonial Date/Time */
.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 Content Text */
.testimonial-card-header-position {
    font-size: 15px;
    line-height: 1.6;
    color: #c4c4c4;
    margin: 0
}

/* Testimonial Navigation Controls */
.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px
}

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

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

/* Testimonial Arrow Navigation */
.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
}

/* Show Arrows on Testimonial Hover */
.testimonial:hover .testimonial-arrows {
    opacity: 1;
    pointer-events: auto
}

/* Individual Testimonial Arrow */
.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 Effect */
.testimonial-arrow:hover {
    background-color: var(--color-primary, #ffdb70);
    color: #fff
}

/* Testimonial Arrow Icon */
.testimonial-arrow i {
    font-size: 18px
}

/* ==========================================================================
   RESPONSIVE DESIGN - ABOUT SECTION
   ========================================================================== */

/* Tablet Styles (768px and below) */
@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 {
        gap: 20px;
    }

    .skill-card {
        height: 250px;
    }



    /* 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 (480px and below) */
@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;
    }


    .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: 200px;
    }

    .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;
    }

    .testimonial-card-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

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

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

    .testimonial-card-header-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .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;
    }
}

/* Extra Small Mobile (350px and below) */
@media(max-width: 350px) {

    #about .section-title,
    .expertise-showcase .showcase-title,
    .expertise-details .expertise-title,
    #skills .section-title,
    .testimonial h3,
    #resume .section-title,
    #chatbot .section-title,
    #portfolio .section-title-Portfolio {
        font-size: 14px;
    }

    #about .overview-text,
    .skill-card h3,
    .testimonial-card-header-info h3,
    .testimonial-card-header-info p,
    #portfolio .portfolio-filters button {
        font-size: 10px;
    }

    .expertise-card {
        padding: 20px;
    }

    .expertise-details {
        margin-bottom: 10px;

    }

    .expertise-details .expertise-description {
        font-size: 10px;

    }

    .profile-details .profile-name {
        font-size: 12px;
    }

    .profile-details .profile-role {
        font-size: 10px;
    }

    .profile-card .profile-expand-btn {
        font-size: 10px;
        width: 60%;
    }

    .expertise-icon {
        width: 30%;
        height: 40%;

    }

    .skill-list .skill-item {
        font-size: 10px;
    }

    #resume .resume_download,
    #resume .resume_download i {
        font-size: 10px;
    }

    .timeline-header .education-title,
    .timeline-header .experience-title {
        font-size: 15px;
    }

    #resume .timeline-header img {
        width: 40px;
        height: 40px;
    }

    .university-content .university-title,
    .training-card h3,
    .certificate-content h3 {
        font-size: 13px;
    }

    .university-content .university-institute,
    .university-content .university-description,
    .training-description {
        font-size: 12px;
    }

    #chatbot .refresh-stats-btn,
    .github-link span {
        width: 100%;
        font-size: 10px;
    }
}