/* Critical above-the-fold CSS - Optimized for performance */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Contain layout shifts */
.hero-section {
    contain: layout style;
}

.portfolio-image {
    contain: layout;
}

html { 
    scroll-behavior: smooth; 
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Modern Layout */
.main-content {
    padding: 4rem 0;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 6rem;
    padding: 4rem 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: #64748b;
    margin-bottom: 2rem;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.highlight-badge {
    background: rgba(255, 255, 255, 0.7);
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.highlight-badge:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.cta-primary {
    background: rgba(26, 26, 26, 0.9);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.cta-primary:hover {
    background: rgba(26, 26, 26, 1);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Experience Section */
.experience-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: #3b82f6;
}

.experience-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.exp-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.exp-company {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9rem;
}

.exp-date {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.exp-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.8);
    color: #475569;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tech-tag:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Contact Card */
.contact-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.contact-avatar .avatar-fallback {
    display: none;
    font-size: 3.5rem;
}

.contact-avatar img[style*="display: none"] + .avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-email {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
    font-size: 1rem;
    display: block;
}

.contact-email:hover {
    color: #3b82f6;
}

.availability-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #059669;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.open {
    background: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

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

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.social-btn:hover {
    color: #3b82f6;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tabbed Skills/About Card */
.tabbed-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 0;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.tabbed-card:last-child {
    margin-bottom: 0;
}

.tab-header {
    display: flex;
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #1a1a1a;
}

.tab-button.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-weight: 600;
}

.tab-content {
    padding: 2rem;
    display: none;
}

.tab-content.active {
    display: block;
}

/* Skills styling */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.skill-category h4 {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.skill-name {
    color: #374151;
    font-weight: 500;
}

.skill-indicator {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.skill-indicator.certified {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.skill-indicator.years {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.skill-indicator.production {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.skill-indicator.enterprise {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* About Me styling */
.about-section {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h4 {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-section h4 i {
    color: #3b82f6;
    font-size: 0.9rem;
}

.about-section p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.philosophy-quote {
    font-style: italic;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid #3b82f6;
    border-radius: 0 8px 8px 0;
}

.philosophy-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #3b82f6;
    font-weight: 500;
    font-style: normal;
}

/* Certifications Section */
.certs-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 4rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.certs-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cert-badge {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cert-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.cert-badge img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.cert-name {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.cert-status {
    color: #f59e0b;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.25rem;
    display: block;
}

.cert-status.expired {
    color: #ef4444;
}

.cert-status.renewal {
    color: #3b82f6;
}

/* Education Section */
.education-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 4rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.education-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Portfolio Section */
.portfolio-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 4rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.portfolio-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.portfolio-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    color: #4f46e5;
    transform: translateX(2px);
}

.portfolio-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.portfolio-notice p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.portfolio-notice i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

/* Footer Section */
.footer-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-joke {
    margin-bottom: 2rem;
}

.footer-joke h4 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-joke h4 i {
    color: #f59e0b;
    font-size: 1.1rem;
}

.joke-settings {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.settings-toggle:hover {
    color: #374151;
}

.settings-toggle input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-toggle input[type="checkbox"]:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.settings-toggle input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.settings-toggle:hover .checkmark {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.joke-container {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 600px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.joke-content {
    margin-bottom: 1.5rem;
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.joke-setup,
.joke-punchline {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0;
    text-align: center;
}

.joke-setup {
    font-weight: 500;
}

.joke-punchline {
    font-style: italic;
    color: #3b82f6;
    font-weight: 600;
    animation: fadeIn 0.5s ease-in;
}

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

.joke-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.joke-toggle,
.joke-refresh {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.joke-toggle {
    background: #10b981;
    color: white;
}

.joke-toggle:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.joke-toggle.hide-mode {
    background: #f59e0b;
}

.joke-toggle.hide-mode:hover {
    background: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.joke-refresh {
    background: #3b82f6;
    color: white;
}

.joke-refresh:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.footer-info {
    padding-top: 2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    margin-top: 2rem;
}

.footer-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Referrals Section */
.referrals-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 4rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Published Papers Section */
.papers-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 4rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.papers-intro {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
}

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

.paper-item {
    display: flex;
    flex-direction: column;
}

.paper-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
}

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

.paper-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.paper-title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.paper-journal {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.paper-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.paper-note {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.paper-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    margin-top: auto;
}

.paper-link:hover {
    color: #2980b9;
}

.paper-link::after {
    content: "→";
    transition: transform 0.3s ease;
}

.paper-link:hover::after {
    transform: translateX(3px);
}

/* Responsive Design for Papers Section */
@media (max-width: 768px) {
    .papers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .paper-card {
        padding: 1.5rem;
    }
    
    .paper-title {
        font-size: 1.2rem;
    }
}

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

.referral-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.referral-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.referral-content {
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    color: #3b82f6;
    font-size: 1.5rem;
    opacity: 0.6;
}

.referral-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    padding-left: 1rem;
}

.referral-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-title {
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .hero-section {
        margin-bottom: 4rem;
        padding: 2rem 0;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .experience-section,
    .education-section,
    .portfolio-section,
    .certs-section,
    .referrals-section {
        padding: 2rem;
    }
    
    .portfolio-grid,
    .referrals-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-highlights {
        justify-content: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .exp-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .certs-grid {
        flex-direction: column;
        gap: 2rem;
    }
    
    .tab-button {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .footer-section {
        padding: 2rem 0;
    }
    
    .footer-joke h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .joke-container {
        padding: 1.5rem;
    }
    
    .joke-content {
        min-height: 3rem;
        margin-bottom: 1rem;
    }
    
    .joke-setup,
    .joke-punchline {
        font-size: 0.9rem;
    }
    
    .joke-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .joke-toggle,
    .joke-refresh {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .footer-info {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}