/* About Page Styles */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-intro-grid .avatar-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .about-values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.skills-title {
    font-size: 1.4rem;
    color: #00F0FF;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.skills-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #00F0FF, #7000FF);
    animation: underline-grow 2s ease-in-out infinite;
}

@keyframes underline-grow {

    0%,
    100% {
        width: 50px;
    }

    50% {
        width: 100%;
    }
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: rgba(23, 42, 70, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #E2E8F0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

/* Staggered Animation Delays */
.skill-tag:nth-child(1) {
    animation-delay: 0s;
}

.skill-tag:nth-child(2) {
    animation-delay: 0.2s;
}

.skill-tag:nth-child(3) {
    animation-delay: 0.4s;
}

.skill-tag:nth-child(4) {
    animation-delay: 0.6s;
}

.skill-tag:nth-child(5) {
    animation-delay: 0.8s;
}

.skill-tag:nth-child(6) {
    animation-delay: 1s;
}

.skill-tag:nth-child(7) {
    animation-delay: 1.2s;
}

.skill-tag:nth-child(8) {
    animation-delay: 1.4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.skill-tag:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: #00F0FF;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4), 0 0 15px rgba(0, 240, 255, 0.2);
    color: #00F0FF;
    background: rgba(0, 240, 255, 0.1);
}

.skill-tag i {
    font-size: 1.1rem;
    color: #00F0FF;
}

.skill-tag.ai-skill {
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.4), rgba(0, 240, 255, 0.2));
    border: 2px solid #7000FF;
    animation: float 3s ease-in-out infinite, pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(112, 0, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(112, 0, 255, 0.8), 0 0 30px rgba(0, 240, 255, 0.4);
    }
}

.skill-tag.ai-skill i {
    color: #7000FF;
}

.skill-tag.ai-skill:hover {
    border-color: #00F0FF;
    box-shadow: 0 10px 40px rgba(112, 0, 255, 0.5), 0 0 25px rgba(0, 240, 255, 0.4);
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.5), rgba(0, 240, 255, 0.3));
}

/* Professional Avatar Frame */
.avatar-frame {
    position: relative;
    width: 320px;
    height: 400px;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(135deg, #00F0FF, #7000FF, #00F0FF);
    background-size: 200% 200%;
    animation: gradientRotate 4s ease infinite, glow 3s ease-in-out infinite;
}

.avatar-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(135deg, #00F0FF, #7000FF, #FF00FF, #00F0FF);
    background-size: 300% 300%;
    animation: gradientRotate 3s linear infinite;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.7;
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.avatar-frame:hover img {
    transform: scale(1.03);
}

@keyframes gradientRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(0, 240, 255, 0.4), 0 0 80px rgba(112, 0, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 60px rgba(0, 240, 255, 0.6), 0 0 100px rgba(112, 0, 255, 0.4);
    }
}

/* Icon Effects */
.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.4s ease;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--accent-aqua);
    transition: all 0.4s ease;
}

.icon-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(112, 0, 255, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-card:hover .icon-box {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.bento-card:hover .icon-box::before {
    opacity: 1;
}

.bento-card:hover .icon-box i {
    transform: rotate(10deg);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
}

/* Floating particles effect for avatar */
.avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-container::before,
.avatar-container::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00F0FF;
    animation: particleFloat 3s ease-in-out infinite;
}

.avatar-container::before {
    top: 20%;
    left: -15px;
    animation-delay: 0s;
}

.avatar-container::after {
    bottom: 30%;
    right: -15px;
    background: #7000FF;
    animation-delay: 1.5s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

/* Clean Sharp Title - No blur */
.elegant-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFFFFF;
    position: relative;
    display: inline-block;
    animation: colorShift 5s ease-in-out infinite;
}

/* Clean underline */
.elegant-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00F0FF, #7000FF);
    border-radius: 2px;
    animation: underlineGrow 2s ease-out forwards;
}

@keyframes colorShift {

    0%,
    100% {
        color: #FFFFFF;
    }

    50% {
        color: #00F0FF;
    }
}

@keyframes underlineGrow {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* Profile Expand Button */
.profile-expand-btn {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    color: #000000;
    border-radius: 50px;
    padding: 8px;
    padding-right: 24px;
    border: none;
    cursor: pointer;
    transition: padding 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.profile-expand-btn:hover {
    padding-right: 8px;
}

.profile-expand-btn .avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.profile-expand-btn .avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-expand-btn .text-default {
    overflow: hidden;
    width: 100px;
    white-space: nowrap;
    padding-left: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: width 0.3s ease;
}

.profile-expand-btn:hover .text-default {
    width: 0;
}

.profile-expand-btn .text-hover {
    overflow: hidden;
    width: 0;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: width 0.3s ease;
}

.profile-expand-btn:hover .text-hover {
    width: 100px;
}

/* Mobile Adaptive Grid Overrides */
@media (max-width: 768px) {
    .elegant-title {
        font-size: 1.8rem !important;
        text-align: center;
        display: block;
        width: 100%;
    }

    .about-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 2rem !important;
    }

    .avatar-frame {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        aspect-ratio: 4/5 !important;
        margin: 0 auto !important;
    }

    .avatar-frame img {
        width: 100% !important;
        height: 100% !important;
    }

    .bento-grid-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .bento-card {
        width: 100% !important;
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: auto !important;
    }
}