/* =============================================================================
   About Me — Modern Static Site Styles
   =============================================================================
   Design philosophy: Linktree-inspired, single-column, centered layout.
   Dark theme with glass-morphism cards and subtle animations.
   All colours and spacing use CSS custom properties for easy theming.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   CSS Reset
   --------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
   Design Tokens (Custom Properties)
   Change these to re-theme the entire site.
   --------------------------------------------------------------------------- */
:root {
    /* Surface colours */
    --bg-primary: #1a1d29;
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-card-hover: rgba(255, 255, 255, 0.12);
    --bg-badge: rgba(255, 255, 255, 0.1);

    /* Text colours */
    --text-primary: #f5f5f5;
    --text-secondary: #b4b7c9;
    --text-muted: #8b8f9f;

    /* Accent */
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --accent-secondary: #8b5cf6;

    /* Soon badge gradient */
    --soon-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --soon-glow: rgba(245, 158, 11, 0.3);

    /* Borders & shadows */
    --border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 8px 32px rgba(59, 130, 246, 0.2);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------------------
   Base & Body
   --------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Subtle animated gradient background */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.2), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.15), transparent);
}

/* ---------------------------------------------------------------------------
   Container — single centered column
   --------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeUp 0.5s ease-out;
}

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

/* ---------------------------------------------------------------------------
   Profile Section
   --------------------------------------------------------------------------- */
.profile {
    text-align: center;
    padding: 1rem 0;
}

.profile__avatar {
    width: 130px;
    height: 130px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
    margin-bottom: 1.25rem;
    transition: transform var(--transition);
}

.profile__avatar:hover {
    transform: scale(1.04);
}

.profile__name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.profile__tagline {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile__bio {
    font-size: 0.938rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------------------------------------------------------------------------
   Social Icon Row
   --------------------------------------------------------------------------- */
.social-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-row__link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.social-row__link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.social-row__link svg {
    width: 20px;
    height: 20px;
}

/* ---------------------------------------------------------------------------
   Link Sections — each content category
   --------------------------------------------------------------------------- */
.link-section {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.link-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 0.25rem;
    margin-bottom: 0.125rem;
}

.link-section__title svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* ---------------------------------------------------------------------------
   Link Cards — individual Linktree-style buttons
   --------------------------------------------------------------------------- */
.link-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Icon circle on the left of each card */
.link-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-badge);
    flex-shrink: 0;
    color: var(--accent);
}

.link-card__icon svg {
    width: 20px;
    height: 20px;
}

.link-card__text {
    flex: 1;
    min-width: 0;
}

.link-card__name {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-card__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow indicator on the right */
.link-card__arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.link-card:hover .link-card__arrow {
    transform: translateX(3px);
    color: var(--text-secondary);
}

.link-card__arrow svg {
    width: 16px;
    height: 16px;
}

/* "Coming soon" badge overlay */
.link-card--soon {
    opacity: 0.7;
    pointer-events: none;
}

.link-card__badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--soon-gradient);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--soon-glow);
    animation: pulse 2s ease-in-out infinite;
}

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

/* ---------------------------------------------------------------------------
   Content Cards — Grid layout for videos, courses, slides
   --------------------------------------------------------------------------- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.content-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(59, 130, 246, 0.3);
}

.content-card--soon {
    opacity: 0.7;
    pointer-events: none;
}

.content-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

.content-card__icon-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--accent);
}

.content-card__icon-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

.content-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content-card__title {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.content-card__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.content-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--soon-gradient);
    color: #fff;
    box-shadow: 0 2px 12px var(--soon-glow);
    animation: pulse 2s ease-in-out infinite;
}

/* Resume card - special hero style */
.content-card--resume {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.2);
}

.content-card--resume:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(59, 130, 246, 0.4);
}

/* ---------------------------------------------------------------------------
   Certifications Section
   --------------------------------------------------------------------------- */
.certifications__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 0.25rem;
    margin-bottom: 0.75rem;
}

.certifications__title svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.certifications__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
}

.cert-badge:hover {
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cert-badge__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-badge);
    flex-shrink: 0;
    color: var(--accent);
    overflow: hidden;
}

.cert-badge__icon svg {
    width: 20px;
    height: 20px;
}

.cert-badge__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-badge__info {
    flex: 1;
    min-width: 0;
}

.cert-badge__name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cert-badge__org {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.footer__text {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   Loading State
   --------------------------------------------------------------------------- */
.loading {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.loading__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 1rem;
}

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

/* ---------------------------------------------------------------------------
   Responsive — mobile adjustments
   --------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .page-wrapper {
        padding: 2rem 1rem;
    }

    .profile__name {
        font-size: 1.625rem;
    }

    .profile__avatar {
        width: 110px;
        height: 110px;
    }

    .certifications__grid {
        grid-template-columns: 1fr;
    }
}
