/* Modern Professional Academic Profile Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Fix for in-app browsers (Messenger, WhatsApp, etc.) - MOBILE ONLY */
@media (max-width: 768px) {
    @supports (-webkit-touch-callout: none) {
        html, body {
            -webkit-text-size-adjust: 100%;
            -webkit-overflow-scrolling: touch;
        }
    }
}

html {
    scroll-behavior: smooth;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Hide animated canvas for users who prefer reduced motion */
    #knowledge-graph {
        display: none !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    max-width: 100vw;
}

.nav-brand .brand-text {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: #667eea;
}

.nav-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    background: none;
    border: none;
    min-width: 48px;
    min-height: 48px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    background-color: rgba(102, 126, 234, 0.1);
}

.hamburger:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #4a5568;
    margin: 4px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-9px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
}

/* Language Toggle */
.language-toggle {
    display: flex;
    gap: 4px;
    margin-right: 1rem;
}

.lang-btn {
    padding: 8px 12px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 20px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.lang-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.knowledge-graph-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#knowledge-graph {
    width: 100%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
    color: white;
}

.profile-card {
    background: transparent;
    padding: 2rem;
    text-align: center;
}

.profile-image {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-image img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    border: 6px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.status-dot {
    position: absolute;
    bottom: 35px;
    right: 35px;
    width: 28px;
    height: 28px;
    background: #48bb78;
    border-radius: 50%;
    border: 3px solid white;
}

.hero-text {
    padding-left: 2rem;
}

.greeting {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    display: block;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 600;
    display: block;
    margin: 0.1rem 0 1.5rem 0;
    background: linear-gradient(45deg, #ffffff, #f0f4f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.92;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge i {
    margin-right: 0.5rem;
}

.badge.personal-interest {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    opacity: 0.9;
}


.personal-touch {
    font-style: italic;
    color: #667eea;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border-left: 3px solid #667eea;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-primary:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover,
.btn-outline:focus {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover,
.social-links a:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-links a:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.about-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

@keyframes shimmer {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(10deg); }
}

.section-subtitle {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f7fafc;
}

.about-description {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    line-height: 1.6;
    color: #2d3748;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 500;
    font-style: normal;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
}

.philosophy-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #2d3748;
    margin: 3rem auto;
    text-align: center;
    font-weight: 400;
    font-style: italic;
    max-width: 900px;
    position: relative;
    padding: 1.5rem 2.5rem;
    letter-spacing: 0.3px;
}

.philosophy-quote::before {
    content: '"';
    font-size: 3rem;
    color: #667eea;
    position: absolute;
    top: -0.3rem;
    left: 0.8rem;
    font-family: 'Playfair Display', serif;
    opacity: 0.6;
}

.philosophy-quote::after {
    content: '"';
    font-size: 3rem;
    color: #667eea;
    position: absolute;
    bottom: -1rem;
    right: 0.8rem;
    font-family: 'Playfair Display', serif;
    opacity: 0.6;
}

/* Enhanced About Section Styles */
.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.about-intro p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

.about-philosophy {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #667eea;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.about-intro:hover .about-philosophy {
    opacity: 1;
}

/* Mobile-friendly: show on touch/click and auto-reveal on mobile */
.about-philosophy.revealed {
    opacity: 1;
}

@media (max-width: 768px) {
    .about-philosophy {
        opacity: 1; /* Always visible on mobile */
    }
}

.about-grid {
    display: block;
    margin: 3rem 0;
}

.personal-story {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.story-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.story-item:hover::before {
    width: 6px;
}

.story-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.25);
    background: rgba(255, 255, 255, 0.95);
}

.story-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.story-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.story-content p {
    color: #2d3748;
    line-height: 1.7;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.story-item:hover .story-content h3 {
    color: #667eea;
}

.story-item:hover .story-content p {
    color: #1a202c;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-self: start;
    position: sticky;
    top: 120px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.6s ease;
}

.stat-card:hover::before {
    top: -20%;
    right: -20%;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.simple-quote {
    margin: 4rem 0;
    text-align: center;
    position: relative;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #4a5568;
    font-style: italic;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    position: relative;
    min-height: 44px;
}

.expertise-item:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.expertise-item:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.expertise-item::after {
    content: '💡';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.expertise-item:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

.definition-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: normal;
    text-align: left;
    max-width: 300px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

.definition-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(102, 126, 234, 0.95);
}

.expertise-item:hover .definition-tooltip,
.expertise-item.show-definition .definition-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

/* Mobile Definition Modal */
.mobile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.mobile-modal.active {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mobile-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.mobile-modal-content {
    position: relative;
    background: white;
    width: 100%;
    max-height: 50vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

.mobile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-modal-header h3 {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-modal-body {
    padding: 1rem 1.5rem 2rem;
    max-height: 40vh;
    overflow-y: auto;
}

.mobile-modal-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #2d3748;
    margin: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Hide tooltips on mobile - use modal instead */
@media (max-width: 768px) {
    .definition-tooltip {
        display: none !important;
    }
    
    /* Hide basic description text on mobile - we'll show detailed definitions instead */
    .expertise-item p {
        display: none;
    }
    
    
    /* Style for the detailed definition text that appears when lamp is touched */
    .mobile-definition-text {
        background: rgba(102, 126, 234, 0.05);
        border: 1px solid rgba(102, 126, 234, 0.2);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 1rem;
        font-size: 0.9rem;
        line-height: 1.5;
        color: #2d3748;
        animation: fadeInUp 0.3s ease;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    }
    
    /* Make the light bulb icon more prominent and clickable on mobile */
    .expertise-item::after {
        cursor: pointer;
        background: rgba(102, 126, 234, 0.15);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        border: 2px solid rgba(102, 126, 234, 0.3);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    }
    
    .expertise-item:hover::after,
    .expertise-item:active::after {
        background: rgba(102, 126, 234, 0.25);
        transform: scale(1.15);
        border-color: rgba(102, 126, 234, 0.5);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    /* Add pulse animation to make icon more noticeable */
    @keyframes pulse {
        0% { box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2); }
        50% { box-shadow: 0 2px 12px rgba(102, 126, 234, 0.4); }
        100% { box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2); }
    }
    
    .expertise-item::after {
        animation: pulse 2s infinite;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.expertise-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.expertise-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.expertise-item p {
    color: #718096;
    line-height: 1.6;
}

/* Education Section */
.education {
    background: #f8f9fa;
}

/* Timeline Summary */
.timeline-summary {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0 3rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 15px;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-item.current {
    background: rgba(102, 126, 234, 0.05);
    border-color: #667eea;
    animation: stat-highlight 2s infinite alternate;
}

@keyframes stat-highlight {
    0% { background: rgba(102, 126, 234, 0.05); }
    100% { background: rgba(102, 126, 234, 0.1); }
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-item.current .stat-number {
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Journey Path */
.journey-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 15px;
    flex-wrap: wrap;
}

.path-step {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.path-step.completed {
    background: #48bb78;
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.path-step.current {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: path-pulse 2s infinite;
}

@keyframes path-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.path-arrow {
    color: #667eea;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0.5rem;
}

/* Mobile responsiveness for timeline summary */
@media (max-width: 768px) {
    .progress-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .journey-path {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .path-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
}

.education-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

/* Beautiful timeline with individual segments */
.education-timeline::before {
    display: none; /* Remove the continuous line */
}

/* Remove all timeline connecting lines */

.education-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger animation for each item */
.education-item:nth-child(1) { animation-delay: 0.2s; }
.education-item:nth-child(2) { animation-delay: 0.4s; }
.education-item:nth-child(3) { animation-delay: 0.6s; }
.education-item:nth-child(4) { animation-delay: 0.8s; }

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





/* Education Progression System - Visual depth and intensity */

/* PhD (Current/Highest): Most prominent with animation and strong colors */
.education-item.current {
    position: relative;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
}


.education-item.current .education-year {
    background: none;
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
    padding: 0;
    border: none;
    box-shadow: none;
    animation: current-pulse 3s infinite;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.education-item.current .education-year::before {
    content: '🇫🇷';
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.education-item.current .education-year::after {
    content: '●';
    color: #667eea;
    font-size: 12px;
    margin-left: 8px;
    animation: pulse-dot 2s infinite;
}

.education-item.current .education-content {
    border-left: 4px solid #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(255, 255, 255, 0.95));
    padding: 25px;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.15);
}

/* Master's degrees: Medium prominence with gradient progression */
.education-item.completed:nth-child(2) .education-year {
    background: none;
    color: #4ecdc4;
    font-weight: 600;
    font-size: 20px;
    padding: 0;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.education-item.completed:nth-child(2) .education-year::before {
    content: '🇫🇷';
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.education-item.completed:nth-child(2) .education-content {
    border-left: 4px solid #4ecdc4;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.06), rgba(255, 255, 255, 0.9));
    border-radius: 0 12px 12px 0;
}

.education-item.completed:nth-child(3) .education-year {
    background: none;
    color: #96ceb4;
    font-weight: 600;
    font-size: 20px;
    padding: 0;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-item.completed:nth-child(3) .education-year::before {
    content: '🇫🇷🇻🇳';
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.education-item.completed:nth-child(3) .education-content {
    border-left: 4px solid #96ceb4;
    background: linear-gradient(135deg, rgba(150, 206, 180, 0.06), rgba(255, 255, 255, 0.9));
    border-radius: 0 12px 12px 0;
}

/* Bachelor's (Foundation): Subtle but solid foundation styling */
.education-item.completed:nth-child(4) .education-year {
    background: none;
    color: #a8e6cf;
    font-weight: 600;
    font-size: 20px;
    padding: 0;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.education-item.completed:nth-child(4) .education-year::before {
    content: '🇻🇳';
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.education-item.completed:nth-child(4) .education-content {
    border-left: 4px solid #a8e6cf;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.04), rgba(255, 255, 255, 0.85));
    border-radius: 0 10px 10px 0;
}

@keyframes current-pulse {
    0%, 100% { 
        color: #667eea;
        transform: translateY(0px);
    }
    50% { 
        color: #764ba2;
        transform: translateY(-1px);
    }
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}



/* Remove all status icons - no ::after pseudo-elements needed */

.education-year {
    min-width: 140px;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
    padding-top: 5px;
    padding-right: 1.5rem;
    text-align: right;
}

.education-content {
    flex: 1;
    margin-left: 2rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.education-content:hover {
    transform: translateY(-3px);
}

.education-content h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-content h4 {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.education-details {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: inline-block;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

.detail-tag.duration {
    background: rgba(255, 193, 7, 0.1);
    color: #ffa000;
    border-color: rgba(255, 193, 7, 0.2);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.completed {
    background: rgba(72, 187, 120, 0.15);
    color: #38a169;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.status-badge.current {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Enhanced education content with hover effects */
.education-content {
    transition: all 0.3s ease;
}

.education-item:hover .education-content {
    transform: translateX(5px);
}

.education-item.current .education-content {
    border-left-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02), rgba(255, 255, 255, 1));
}

/* Certificates Section */
.certificates {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(255, 255, 255, 1));
}

.certificates-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
    justify-content: center;
}

.certificates-title i {
    color: #667eea;
    font-size: 1.5rem;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.certificate-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.certificate-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.certificate-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.certificate-icon i {
    font-size: 2rem;
    color: white;
}

.certificate-icon.ibm-logo {
    background-image: url('../images/ibm-logo.png');
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: white;
    border-radius: 15px;
}

.certificate-content {
    flex: 1;
}

.certificate-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.certificate-provider {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.certificate-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.certificate-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.skill-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.certificate-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.certificate-id,
.certificate-date,
.certificate-courses {
    background: #f7fafc;
    color: #4a5568;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.certificate-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.certificate-link,
.certificate-verify {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.certificate-link {
    background: #667eea;
    color: white;
}

.certificate-link:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.certificate-verify {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.certificate-verify:hover {
    background: #edf2f7;
    color: #2d3748;
    border-color: #cbd5e0;
}

/* Mobile responsiveness for certificates */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-card {
        flex-direction: column;
        text-align: center;
    }
    
    .certificate-actions {
        justify-content: center;
    }
}

/* Research Section */
.research {
    background: white;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.research-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.research-card.featured {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.research-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.research-icon i {
    font-size: 1.5rem;
    color: white;
}

.research-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.research-card p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Publications Section */
.publications {
    background: #f7fafc;
}

.publications-list {
    max-width: 900px;
    margin: 0 auto;
}

.publication-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.publication-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    background: #fafafa;
}

.publication-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    min-width: 80px;
}

.publication-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.authors {
    color: #718096;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.venue {
    color: #4a5568;
    font-style: italic;
    margin-bottom: 1rem;
}

.publication-stats {
    margin-bottom: 1rem;
}

.stat {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.pub-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.pub-link:hover {
    color: #764ba2;
}

.pub-link.demo-link {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-left: 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-link.demo-link:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.publication-abstract {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.publication-abstract p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.publication-abstract strong {
    color: #2d3748;
    font-weight: 600;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: #667eea;
    text-decoration: none;
}

.contact-details a:hover {
    color: #764ba2;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover,
.footer-social a:focus {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.footer-social a:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Small screens - tablets */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .profile-image img {
        width: 300px;
        height: 300px;
    }
    
    .hero-text {
        padding-left: 0;
    }
}

/* Simplified mobile layout */
@media (max-width: 768px) {
    .hero .container {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile touch optimizations */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    a, button {
        cursor: pointer;
    }
    
    .btn {
        display: inline-flex;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .social-links a {
        min-height: 48px;
        min-width: 48px;
        cursor: pointer;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        min-height: 48px;
        width: 100%;
        text-align: center;
        cursor: pointer;
    }
    
    .hamburger {
        cursor: pointer;
        padding: 12px;
    }
}

/* Mobile education timeline */
@media (max-width: 768px) {
    .education-timeline::before {
        left: 20px;
    }
    
    .education-item {
        flex-direction: column;
        margin-left: 50px;
        margin-bottom: 2rem;
        position: relative;
    }
    
    
    .education-year {
        min-width: auto;
        text-align: left;
        padding-right: 0;
        margin-bottom: 0.5rem;
        font-size: 1rem;
        margin-left: 0;
    }
    
    .education-content {
        margin-left: 0;
        padding: 1.5rem;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .nav-container {
        height: 60px;
        padding: 0 1rem;
    }
    
    .nav-brand .brand-text {
        font-size: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .language-toggle {
        margin-right: 0.5rem;
        gap: 2px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 16px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        padding: 1.5rem 0.5rem;
        min-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .container {
        padding: 0.5rem;
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
        overflow-x: hidden;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
        padding: 0.5rem;
        justify-content: center;
        min-height: calc(80vh - 140px);
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .profile-card {
        padding: 1rem;
        order: -1;
    }

    .profile-card {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 1rem;
    }

    .profile-image {
        width: 100%;
        max-width: 320px;
        margin: 1rem auto 2rem;
        padding: 0.5rem;
    }

    .profile-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        border-radius: 50%;
        object-fit: cover;
        object-position: center center;
        border: 4px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

    .status-dot {
        bottom: 8%;
        right: 8%;
        width: 24px;
        height: 24px;
    }

    .hero-text {
        padding-left: 0;
        max-width: 100%;
    }

    .name {
        font-size: 1.5rem;
        line-height: 1.1;
        margin: 0.1rem 0;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-badges {
        flex-direction: column;
        gap: 0.8rem;
        margin: 1.5rem 0;
    }

    .badge {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin: 1.5rem 0;
        position: relative;
        z-index: 100;
    }

    .btn {
        min-width: 160px;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        min-height: 48px;
    }

    .social-links {
        gap: 1.5rem;
        margin-top: 1.5rem;
        justify-content: center;
        position: relative;
        z-index: 100;
    }

    .social-links a {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .expertise-item {
        padding: 1.5rem;
    }

    .expertise-item::after {
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }

    .definition-tooltip {
        max-width: 280px;
        min-width: 200px;
        font-size: 0.85rem;
        padding: 0.8rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .expertise-item:hover .definition-tooltip,
    .expertise-item.show-definition .definition-tooltip {
        transform: translateX(-50%) translateY(3px);
    }

    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-quote {
        font-size: 1.4rem;
        padding: 1.2rem 1.5rem;
        margin: 2rem auto;
    }
    
    .philosophy-quote::before {
        font-size: 2.5rem;
        top: -0.2rem;
        left: 0.4rem;
    }
    
    .philosophy-quote::after {
        font-size: 2.5rem;
        bottom: -0.8rem;
        right: 0.4rem;
    }
    
    /* About Introduction Mobile */
    .about-intro {
        margin: 1.5rem auto 2.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .about-intro p {
        font-size: 1rem;
    }
    
    /* Enhanced About Section Mobile Styles */
    .about-intro {
        margin-bottom: 2rem;
    }
    
    .about-intro p {
        font-size: 1.1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
    }
    
    .personal-story {
        gap: 1.8rem;
    }
    
    .story-item {
        padding: 1.5rem;
        gap: 1.2rem;
    }
    
    .story-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .story-content h3 {
        font-size: 1.2rem;
    }
    
    .story-content p {
        font-size: 0.95rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        position: static;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .simple-quote {
        margin: 2.5rem 0;
    }
    
    .quote-text {
        font-size: 1.1rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .publication-card {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-social a {
        width: 48px;
        height: 48px;
        cursor: pointer;
    }
}

/* Enhanced Visual Effects and Animations */

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Card Hover Enhancements */
.expertise-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.expertise-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.expertise-item:hover::before {
    opacity: 1;
}

/* Loading Animation Enhancement */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Social Links */
.social-links a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover::after {
    border-color: #667eea;
    animation: social-pulse 1.5s ease-in-out infinite;
}

@keyframes social-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Publication Cards Enhanced */
.publication-card.expanded {
    background: #f0f4f8;
    border-color: #667eea;
}

.publication-card.expanded .publication-abstract {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Extra specificity for desktop to ensure it works */
.publications .publication-card.expanded .publication-abstract {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force hide when not expanded */
.publication-card:not(.expanded) .publication-abstract {
    display: none !important;
}

/* Very small phones */
@media (max-width: 480px) {
    .hero {
        padding: 0.5rem;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .expertise-item {
        padding: 1.2rem;
    }
    
    .definition-tooltip {
        max-width: 260px;
        min-width: 200px;
        font-size: 0.8rem;
        padding: 0.7rem;
    }
    
    .expertise-item::after {
        font-size: 0.9rem;
        top: 8px;
        right: 8px;
    }
    
    .philosophy-quote {
        font-size: 1.2rem;
        padding: 1rem 1.2rem;
        margin: 1.5rem auto;
    }
    
    .philosophy-quote::before {
        font-size: 2rem;
        top: -0.1rem;
        left: 0.2rem;
    }
    
    .philosophy-quote::after {
        font-size: 2rem;
        bottom: -0.6rem;
        right: 0.2rem;
    }
    
    /* About Introduction 480px Mobile */
    .about-intro {
        margin: 1rem auto 2rem;
        padding: 0 0.5rem;
    }
    
    .about-intro p {
        font-size: 0.95rem;
    }
    
    /* Enhanced About Section 480px Mobile Styles */
    .about-intro {
        margin-bottom: 1.5rem;
    }
    
    .about-intro p {
        font-size: 1rem;
    }
    
    .about-grid {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .personal-story {
        gap: 1.3rem;
    }
    
    .story-item {
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .story-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .story-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .story-content p {
        font-size: 0.9rem;
    }
    
    .about-stats {
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 1.2rem 0.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .simple-quote {
        margin: 2rem 0;
    }
    
    .quote-text {
        font-size: 1rem;
        padding: 0 0.8rem;
    }
    
    .profile-image {
        max-width: 260px;
        margin: 1rem auto;
        padding: 0.5rem;
    }
    
    .name {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
}