body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

.about-photo-slot {
    min-height: 0;
}

@media (min-width: 768px) {
    .about-photo-slot {
        align-self: stretch;
    }

    .about-photo-frame {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .about-portrait-img {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: 50% 16%;
    }
}

.about-portrait-img {
    object-fit: cover;
    object-position: 50% 14%;
}

.about-photo-wrap::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 1.2rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
    pointer-events: none;
}

.about-copy p {
    line-height: 1.8;
    font-size: 1.03rem;
}

.about-stat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.9rem 0.75rem;
    text-align: center;
}

.about-stat-value {
    display: block;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
}

.about-stat-label {
    display: block;
    margin-top: 0.2rem;
    color: #475569;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.about-domain-strip {
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
}

.about-domain-heading {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.about-domain-pill {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
}

.about-cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    text-align: center;
    min-height: 9.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-cert-card img {
    width: auto;
    max-width: 100%;
    max-height: 5rem;
    object-fit: contain;
    display: block;
}

.about-cert-card:hover {
    transform: translateY(-2px);
    border-color: #7dd3fc;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.about-cert-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

#projects-list .relative img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #0f172a;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #0f172a;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    text-decoration: none;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

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

    .hero-scroll-hint {
        animation: none !important;
    }
}

@keyframes hero-scroll-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-scroll-hint {
        animation: hero-scroll-bounce 2s ease-in-out infinite;
    }
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar for chat */
.chat-scroll::-webkit-scrollbar {
    width: 6px;
}
.chat-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.chat-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.chat-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media print {
    @page { margin: 1cm; }
    section { page-break-inside: avoid; padding: 2rem 0; }
    .print\:hidden { display: none !important; }
    .print\:block { display: block !important; }
    body { background-color: white; }
    .shadow-xl, .shadow-lg, .shadow-md { box-shadow: none !important; }
    .bg-slate-900 { background-color: #1e293b !important; color: white !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .bg-slate-50 { background-color: #fff !important; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.loader {
    border: 2px solid #e2e8f0;
    border-top: 2px solid #0ea5e9;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

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