/* ========================================
   Contact Card - Modern Glassmorphism Design
   Based on React App Design
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --indigo-50: #eef2ff;
    --indigo-100: #e0e7ff;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    --sky-50: #f0f9ff;
    --sky-300: #7dd3fc;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --violet-300: #c4b5fd;
    --red-500: #ef4444;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: var(--slate-50);
    color: var(--slate-900);
    position: relative;
    overflow-x: hidden;
}

/* ========================================
   Animated Background Blobs
   ======================================== */
.background-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    mix-blend-mode: multiply;
    opacity: 0.7;
    animation: blob 7s infinite;
}

.blob-1 {
    top: 0;
    left: -4rem;
    width: 18rem;
    height: 18rem;
    background: var(--indigo-300);
    animation-delay: 0s;
}

.blob-2 {
    top: 0;
    right: -4rem;
    width: 18rem;
    height: 18rem;
    background: var(--sky-300);
    animation-delay: 2s;
}

.blob-3 {
    bottom: -2rem;
    left: 5rem;
    width: 18rem;
    height: 18rem;
    background: var(--violet-300);
    animation-delay: 4s;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, var(--indigo-50) / 0.5, var(--white) / 0.5, var(--sky-50) / 0.5);
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
}

@keyframes blob {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}


.fade-in-up-delay {
    animation: fadeInUp 0.5s ease-out 0.15s forwards;
    opacity: 0;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    position: relative;
    z-index: 10;
    max-width: 28rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ========================================
   Top Actions
   ======================================== */
.top-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
}

.action-btn-secondary {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.625rem;
    color: var(--slate-700);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    letter-spacing: 0.01em;
    flex: 1;
    white-space: nowrap;
}

.action-btn-secondary:hover {
    background: var(--white);
    border-color: var(--slate-300);
    color: var(--slate-900);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.action-btn-secondary:active {
    transform: translateY(0);
}

.action-btn-secondary svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Profile Card
   ======================================== */
.profile-card {
    position: relative;
    margin-top: 2rem;
}

.profile-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--indigo-500), var(--sky-500));
    border-radius: 1.5rem;
    filter: blur(24px);
    opacity: 0.2;
    transition: opacity 0.5s;
}

.profile-card:hover .profile-glow {
    opacity: 0.3;
}

.profile-content {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
}

.profile-card:hover .profile-content {
    transform: scale(1.01);
}

/* Avatar */
.avatar-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.avatar-pulse {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, var(--indigo-500), var(--sky-400));
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.5;
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
}

.avatar-container {
    position: relative;
    width: 8rem;
    height: 8rem;
    padding: 4px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

/* Profile Info */
.profile-name {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.title-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--indigo-50);
    color: var(--indigo-700);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--indigo-100);
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.title-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.title-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    width: 100%;
}

.title-subtitle,
.title-subtitle-2,
.title-subtitle-3 {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--indigo-600);
    opacity: 0.9;
}


.profile-bio {
    color: var(--slate-600);
    margin-bottom: 1.5rem;
    line-height: 1.625;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
}

.profile-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--slate-500);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.profile-location svg {
    width: 16px;
    height: 16px;
    color: var(--slate-400);
}

/* Profile Connect Button */
.profile-action-buttons {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
}

.profile-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--indigo-50);
    border: 1px solid var(--indigo-100);
    border-radius: 0.625rem;
    color: var(--indigo-700);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    letter-spacing: 0.01em;
    margin-top: 0;
    flex: 1;
    white-space: nowrap;
}

.profile-connect-btn:hover {
    background: var(--indigo-100);
    border-color: var(--indigo-200);
    color: var(--indigo-900);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.profile-connect-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(99, 102, 241, 0.25);
}

.profile-connect-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Content Sections
   ======================================== */
.content-sections {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Match social card spacing */
}

.section-header {
    margin-bottom: 0.75rem; /* Match social card spacing */
}

.professional-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Match social card spacing */
}

.professional-section .section-header {
    margin-bottom: 0.75rem; /* Match social card spacing */
}

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

.section:not(:last-child) {
    margin-bottom: 0.75rem; /* Match social card spacing */
}

.section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    padding: 0;
}

.section-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem; /* Same as .link-card */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    gap: 0; /* Remove gap, use margin on icon instead */
    min-height: auto;
}

.section-toggle-content {
    display: flex;
    align-items: center;
    gap: 0; /* Use margin instead for consistent alignment */
    flex: 1;
}

.section-icon-wrapper {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    margin-right: 1rem; /* Consistent spacing with social cards */
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    padding: 0;
    margin-right: 1rem; /* Match link-icon spacing */
}

.section-toggle-label {
    font-size: 1rem; /* Match social card titles */
    font-weight: 600; /* Match social card titles */
    color: var(--slate-600); /* Match bio text color */
    text-transform: none; /* Remove uppercase */
    letter-spacing: 0;
}

.section-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
}

.section-toggle:hover {
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -2px rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.section-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--slate-300); /* Match social card arrow color */
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.section-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.section-content.expanded {
    max-height: 5000px;
    opacity: 1;
    padding: 0;
    margin-top: 0.75rem; /* Match social card spacing */
}

.section-content.collapse {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

/* ========================================
   Link Cards (Social & Custom)
   ======================================== */
.links-list {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    visibility: visible !important;
    opacity: 1 !important;
}

#socialGrid {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    cursor: pointer;
}

.link-card:hover {
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -2px rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

/* Link Confirmation Modal - Clean SaaS-style */
.link-confirmation-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.link-confirmation-modal.active {
    opacity: 1;
}

.link-confirmation-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.link-confirmation-modal-content {
    position: relative;
    width: 100%;
    max-width: 28rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.link-confirmation-modal.active .link-confirmation-modal-content {
    transform: scale(1);
}

.link-confirmation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--slate-100);
}

.link-confirmation-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0;
}

.link-confirmation-close {
    padding: 0.5rem;
    color: var(--slate-400);
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-confirmation-close:hover {
    background: var(--slate-100);
    color: var(--slate-600);
}

.link-confirmation-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.link-confirmation-body {
    padding: 1.5rem;
}

.link-confirmation-message {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin: 0;
}

.link-confirmation-message strong {
    color: var(--slate-900);
    font-weight: 600;
}

.link-confirmation-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--slate-100);
    background: var(--slate-50);
}

.link-confirmation-btn {
    flex: 1;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.link-confirmation-btn-cancel {
    background: var(--white);
    color: var(--slate-700);
    border-color: var(--slate-200);
}

.link-confirmation-btn-cancel:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-900);
}

.link-confirmation-btn-confirm {
    background: var(--indigo-600);
    color: var(--white);
}

.link-confirmation-btn-confirm:hover {
    background: var(--indigo-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 0; /* Use margin instead for consistent alignment */
    flex: 1;
}

.link-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    flex-shrink: 0;
    transition: none;
    margin-right: 1rem; /* Consistent spacing with professional section */
    transform: none;
}

/* Social Icons - All use same subtle styling like ThreatCortex */
.link-icon[data-platform="linkedin"],
.link-icon[data-platform="twitter"],
.link-icon[data-platform="github"],
.link-icon[data-platform="website"] {
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.link-icon svg {
    width: 20px;
    height: 20px;
    color: var(--slate-700);
}

/* Custom Link Icons */
.link-icon:not([data-platform]) {
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    font-size: 1.5rem;
}

.link-icon img,
.link-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
    display: block;
}

.link-icon-img.nobull-icon {
    object-fit: cover;
    padding: 0.25rem;
}

.link-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.link-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--slate-600); /* Match bio text color */
    transition: color 0.3s;
}

.link-card:hover .link-title {
    color: var(--slate-600); /* Keep same color on hover */
}

.link-subtitle {
    font-size: 0.875rem;
    color: var(--slate-400); /* Match title color */
}

/* Arrow/Chevron */
.link-card svg:last-child {
    width: 20px;
    height: 20px;
    color: var(--slate-300);
    transition: all 0.3s;
    flex-shrink: 0;
}

.link-card:hover svg:last-child {
    color: var(--indigo-500);
}


/* ========================================
   Typing Animation
   ======================================== */
.typing-text {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    margin-left: 2px;
    background: var(--indigo-500);
    animation: blink 1s infinite;
    opacity: 1;
    transition: opacity 0.3s;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========================================
   Experience Timeline
   ======================================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--slate-200);
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-dot {
    position: absolute;
    left: -1.125rem;
    top: 0.35rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--slate-400);
    border: 2px solid var(--white);
    z-index: 1;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -2px rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.timeline-item:hover .timeline-dot {
    background: var(--indigo-500);
    transform: scale(1.3);
}

.timeline-content {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 0;
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(2px);
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.timeline-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.25rem;
    opacity: 0.8;
}

.timeline-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.timeline-year {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.timeline-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700); /* Match original darker color */
    margin-top: 0.125rem;
}

.timeline-company {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--slate-600); /* Match card title color */
}

.timeline-location {
    font-size: 0.7rem;
    color: var(--slate-400);
    margin-top: 0.125rem;
}

.timeline-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--slate-200);
    animation: fadeIn 0.2s ease;
}

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

.timeline-description {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--slate-500);
    margin-bottom: 0.5rem;
}

.timeline-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-achievements li {
    font-size: 0.75rem;
    color: var(--slate-500);
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.timeline-achievements li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--slate-400);
    font-weight: normal;
}

/* ========================================
   Certifications
   ======================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem; /* Match social card spacing */
}

.cert-badge {
    position: relative;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cert-badge:hover {
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -2px rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.cert-icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: grayscale(0.3);
    opacity: 0.8;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.cert-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.25rem;
    opacity: 0.85;
}

.cert-badge:hover .cert-icon {
    opacity: 1;
    filter: grayscale(0);
}

.cert-badge:hover .cert-icon-img {
    opacity: 1;
}

.cert-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    width: 100%;
}

.cert-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--slate-700); /* Match original darker color */
    line-height: 1.3;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: none;
    overflow-wrap: break-word;
}

.cert-issuer {
    font-size: 0.65rem;
    color: var(--slate-500);
    line-height: 1.2;
}

.cert-year {
    font-size: 0.6rem;
    color: var(--slate-400);
    font-weight: 400;
}

/* ========================================
   X Feed
   ======================================== */
.x-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.x-tweet {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.x-tweet:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.x-tweet-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.x-tweet-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--slate-200);
    flex-shrink: 0;
}

.x-tweet-author {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.x-tweet-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-900);
    line-height: 1.2;
}

.x-tweet-handle {
    font-size: 0.75rem;
    color: var(--slate-500);
    line-height: 1.2;
}

.x-tweet-time {
    font-size: 0.65rem;
    color: var(--slate-400);
    margin-left: auto;
    white-space: nowrap;
}

.x-tweet-text {
    font-size: 0.875rem;
    color: var(--slate-700);
    line-height: 1.5;
    word-wrap: break-word;
    margin-bottom: 0.5rem;
}

.x-tweet-text a {
    color: var(--indigo-600);
    text-decoration: none;
}

.x-tweet-text a:hover {
    text-decoration: underline;
}

.x-tweet-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.75rem;
    color: var(--slate-500);
}

.x-tweet-link {
    color: var(--indigo-600);
    text-decoration: none;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.x-tweet-link:hover {
    color: var(--indigo-700);
    text-decoration: underline;
}

.x-feed-loading,
.x-feed-error {
    text-align: center;
    padding: 2rem;
    color: var(--slate-500);
    font-size: 0.875rem;
}

.x-feed-error {
    color: var(--red-500);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.footer-text {
    font-size: 0.75rem;
    color: var(--slate-400);
}

.footer-built-with {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

.footer-built-label {
    color: var(--slate-400);
    font-size: 0.75rem;
}

.footer-built-items {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.75rem;
    color: var(--slate-400);
}

.footer-item-coffee,
.footer-item-hatred,
.footer-item-malice {
    color: var(--slate-400);
}

.footer-separator {
    color: var(--slate-400);
    margin: 0 0.125rem;
}

.footer-built-subtitle {
    color: var(--slate-400);
    font-size: 0.75rem;
    font-style: italic;
}

.footer-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.8);
}

.footer-security svg {
    width: 12px;
    height: 12px;
}

/* ========================================
   Contact Modal
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 32rem;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--slate-100);
    background: rgba(248, 250, 252, 0.5);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-800);
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.form-optional {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--slate-400);
}

.modal-close {
    padding: 0.5rem;
    color: var(--slate-400);
    background: transparent;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--slate-700);
    background: var(--slate-100);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 1.5rem;
}

/* Success State */
.modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(34, 197, 94, 0.1);
    color: rgb(22, 163, 74);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.success-text {
    color: var(--slate-500);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--slate-200);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--indigo-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Live validation states */
.form-input.valid,
.form-textarea.valid {
    border-color: rgb(34, 197, 94);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.1);
}

.form-input.invalid,
.form-textarea.invalid {
    border-color: rgb(239, 68, 68);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.form-input.valid:focus,
.form-textarea.valid:focus {
    border-color: rgb(34, 197, 94);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.form-input.invalid:focus,
.form-textarea.invalid:focus {
    border-color: rgb(239, 68, 68);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate-400);
}

.form-textarea {
    resize: none;
    min-height: 6rem;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 0.875rem 1.5rem;
    background: var(--indigo-50);
    color: var(--indigo-700);
    border: 1px solid var(--indigo-100);
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
}

.form-submit:hover:not(:disabled) {
    background: var(--indigo-100);
    border-color: var(--indigo-200);
    color: var(--indigo-900);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.form-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(99, 102, 241, 0.25);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

.submit-spinner svg {
    width: 18px;
    height: 18px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 1rem 0.5rem;
        gap: 1rem;
    }

    .profile-content {
        padding: 1.5rem;
        border-radius: 2rem;
    }

    .avatar-container {
        width: 6rem;
        height: 6rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-location {
        justify-content: center;
    }

    .links-list {
        gap: 0.75rem;
    }

    .link-card {
        padding: 1rem;
    }

    .link-icon {
        width: 3rem;
        height: 3rem;
        margin-right: 1rem;
    }

    .section-icon-wrapper {
        width: 3rem;
        height: 3rem;
        margin-right: 1rem;
        align-items: center;
        justify-content: center;
    }

    .timeline {
        padding-left: 1.25rem;
        gap: 0.5rem;
    }

    .timeline-dot {
        left: -0.875rem;
        width: 0.4rem;
        height: 0.4rem;
    }

    .certifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.5rem;
    }

    .cert-badge {
        padding: 0.5rem;
    }

    .cert-icon {
        font-size: 1.25rem;
        width: 1.75rem;
        height: 1.75rem;
    }

    .section-toggle {
        padding: 1rem; /* Same as .link-card on mobile */
    }

    .toggle-icon {
        width: 1rem;
        height: 1rem;
    }
}



/* ========================================
   QR Code Modal
   ======================================== */
.qr-modal-content {
    max-width: 20rem;
    text-align: center;
}

.qr-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
}

.qr-code-container {
    padding: 1rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.qr-code-img {
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 0.5rem;
}

.qr-hint {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 0.5rem;
}

.qr-url {
    font-size: 1rem;
    font-weight: 600;
    color: var(--indigo-600);
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

