/* AI-themed About Me Section - Created June 18, 2025 */

/* Main container styles */
.ai-about-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    color: var(--text-color);
}

/* 3D Animation Background */
.neural-network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Neural network nodes and connections */
.neural-node {
    position: absolute;
    background: radial-gradient(circle, rgba(64, 220, 255, 0.9) 0%, rgba(64, 220, 255, 0.1) 70%);
    border-radius: 50%;
    opacity: 0.7;
    filter: blur(2px);
    animation: pulse 4s infinite alternate;
}

.neural-connection {
    position: absolute;
    background: linear-gradient(90deg, rgba(64, 220, 255, 0) 0%, rgba(64, 220, 255, 0.5) 50%, rgba(64, 220, 255, 0) 100%);
    height: 1px;
    transform-origin: left center;
    opacity: 0.3;
    animation: fade 3s infinite alternate;
}

/* Glassmorphism profile section */
.ai-profile-container {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin-bottom: 5rem;
    animation: fadeIn 1s ease-out;
}

.ai-profile-animation {
    width: 100%;
    height: 400px;
    position: relative;
    flex: 1;
    min-width: 300px;
}

/* Robot GIF Container - Modern and Elegant */
.robot-gif-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.robot-gif-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: backgroundShift 8s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.robot-gif {
    position: relative;
    z-index: 2;
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    border-radius: 1rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    object-fit: cover;
    object-position: center top;
    clip-path: inset(0 0 20px 0);
}

.robot-gif:hover {
    transform: scale(1.05);
}

.robot-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ai-profile-info {
    flex: 1;
    min-width: 300px;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ai-profile-info h3 {
    margin-top: 0;
    font-size: 2.25rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #374151 0%, #6b7280 50%, #374151 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ai-profile-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.7);
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-profile-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 114, 128, 0.05), transparent);
    transition: left 0.5s ease;
}

.ai-profile-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(107, 114, 128, 0.15);
}

.ai-profile-detail:hover::before {
    left: 100%;
}

.ai-profile-detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin-right: 1.25rem;
    color: #374151;
    font-size: 1.3rem;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.ai-profile-detail:hover .ai-profile-detail-icon {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: scale(1.05);
}

.ai-profile-detail-text {
    flex: 1;
    z-index: 1;
    position: relative;
}

.ai-profile-detail-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

.ai-profile-detail-value {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}

/* Education Timeline */
.ai-timeline-container {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

.ai-timeline-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ai-timeline-header h3 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #f0f0f0, #40dcff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.ai-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.ai-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(64, 220, 255, 0.5), rgba(255, 255, 255, 0.05));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(64, 220, 255, 0.3);
}

.ai-timeline-item {
    padding: 10px 40px;
    position: relative;
    width: calc(50% - 40px);
    box-sizing: border-box;
    margin-bottom: 3rem;
}

.ai-timeline-item:nth-child(odd) {
    left: 0;
}

.ai-timeline-item:nth-child(even) {
    left: 50%;
}

.ai-timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background: rgba(64, 220, 255, 0.8);
    border: 4px solid rgba(255, 255, 255, 0.5);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px rgba(64, 220, 255, 0.5);
}

.ai-timeline-item:nth-child(even)::after {
    left: -16px;
}

.ai-timeline-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.ai-timeline-content::before {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.1);
    top: 15px;
    right: -10px;
}

.ai-timeline-item:nth-child(even) .ai-timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
}

.ai-timeline-date {
    color: #40dcff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.ai-timeline-date i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.ai-timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ai-timeline-description {
    color: rgba(255, 255, 255, 0.8);
}

.achievement-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #ff7b00, #ffb700);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 183, 0, 0.4);
    z-index: 2;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes fade {
    0% {
        opacity: 0.1;
    }
    100% {
        opacity: 0.4;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .ai-profile-container {
        flex-direction: column;
    }
    
    .ai-profile-animation {
        margin-bottom: 2rem;
    }
    
    .ai-timeline::after {
        left: 31px;
    }
    
    .ai-timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .ai-timeline-item:nth-child(even) {
        left: 0;
    }
    
    .ai-timeline-item::after {
        left: 15px;
        right: auto;
    }
    
    .ai-timeline-item:nth-child(even)::after {
        left: 15px;
    }
    
    .ai-timeline-content::before {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
    }
    
    .ai-timeline-item:nth-child(even) .ai-timeline-content::before {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
    }
}
