/* Trust Dossier: Section, Timeline, Contact, and Print Styles */

.container {
    width: min(92%, 1160px);
    margin-inline: auto;
    padding-inline: var(--space-4);
}

.card {
    padding: clamp(1.35rem, 1.1rem + 0.8vw, 1.9rem);
}

.section {
    position: relative;
    padding-block: clamp(3.6rem, 6vw, 5.5rem);
}

.section+.section {
    padding-top: clamp(2.8rem, 5vw, 4.25rem);
}

.section .container {
    position: relative;
}

.section__title {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(1.8rem, 2vw, 2.4rem);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

.section__title::after {
    content: '';
    width: clamp(48px, 8vw, 92px);
    height: 1px;
    background: linear-gradient(90deg, rgba(196, 151, 79, 0.85), rgba(51, 92, 135, 0.25));
}

.section__title--big {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
}

.grid,
.grid--2,
.impact__list {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.grid--2,
.impact__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: center;
}

.about__image {
    position: relative;
    overflow: hidden;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 242, 0.94));
    border: 1px solid rgba(29, 36, 48, 0.08);
    box-shadow: 0 28px 60px rgba(52, 57, 68, 0.09);
}

.about__image::before,
.about__image::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 40px;
    pointer-events: none;
}

.about__image::before {
    border: 1px solid rgba(196, 151, 79, 0.32);
    opacity: 0.8;
    animation: aboutFrameDrift 6s ease-in-out infinite;
}

.about__image::after {
    inset: -18px;
    border: 1px dashed rgba(51, 92, 135, 0.18);
    opacity: 0.7;
    animation: aboutFrameOrbit 14s linear infinite;
}

[data-theme="dark"] .about__image {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.24);
}

.about__image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-out);
}

.about__image:hover img {
    transform: scale(1.03);
}

.about__content {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.about__text {
    max-width: 62ch;
    font-size: clamp(1.04rem, 1rem + 0.25vw, 1.18rem);
    line-height: 1.9;
    color: var(--text-secondary);
}

.about__content .btn {
    width: fit-content;
}

.timeline {
    position: relative;
    max-width: 980px;
    margin-top: 0.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 12px;
    left: 18px;
    width: 1px;
    background: linear-gradient(180deg, rgba(196, 151, 79, 0.55), rgba(51, 92, 135, 0.18));
}

[data-theme="dark"] .timeline::before {
    background: linear-gradient(180deg, rgba(209, 171, 105, 0.42), rgba(141, 168, 198, 0.16));
}

.timeline__item {
    position: relative;
    padding-left: clamp(3.8rem, 7vw, 5rem);
    padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__item::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 4px solid var(--accent-gold);
    box-shadow: 0 0 0 6px rgba(196, 151, 79, 0.12);
}

[data-theme="dark"] .timeline__item::before {
    box-shadow: 0 0 0 6px rgba(209, 171, 105, 0.1);
}

.timeline__date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(196, 151, 79, 0.12);
    color: #916729;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

[data-theme="dark"] .timeline__date {
    background: rgba(209, 171, 105, 0.14);
    color: #e2c087;
}

.timeline__content {
    display: grid;
    gap: 0.85rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 252, 246, 0.96));
    border: 1px solid rgba(29, 36, 48, 0.08);
    border-radius: 28px;
    box-shadow: 0 22px 48px rgba(52, 57, 68, 0.08);
}

[data-theme="dark"] .timeline__content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.022));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.timeline__content h3 {
    font-size: clamp(1.35rem, 1.2rem + 0.45vw, 1.65rem);
    line-height: 1.2;
}

.timeline__content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.timeline__details {
    display: grid;
    gap: 0.8rem;
}

.timeline__details li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.timeline__details li::before {
    content: '';
    position: absolute;
    top: 0.78rem;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
}

.edu-card,
.project-card,
.skills__category,
.awards__list,
.bento__item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 252, 246, 0.95));
    border: 1px solid rgba(29, 36, 48, 0.08);
    border-radius: 28px;
    box-shadow: 0 20px 46px rgba(52, 57, 68, 0.08);
}

[data-theme="dark"] .edu-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .skills__category,
[data-theme="dark"] .awards__list,
[data-theme="dark"] .bento__item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
}

.edu-card,
.project-card {
    height: 100%;
    display: grid;
    gap: 0.8rem;
}

.edu-card h3,
.project-card__title {
    font-size: clamp(1.25rem, 1.12rem + 0.3vw, 1.5rem);
    line-height: 1.22;
}

.edu-card h3 {
    color: var(--text-primary);
}

.edu-card__degree {
    color: var(--accent-cyan);
    font-weight: 700;
}

.edu-card__date,
.edu-card__focus,
.project-card__desc {
    color: var(--text-secondary);
    line-height: 1.75;
}

.project-card {
    align-content: start;
}

.project-card__title {
    position: relative;
    padding-bottom: 0.9rem;
}

.project-card__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 1px;
    background: rgba(196, 151, 79, 0.6);
}

.skills__category {
    margin-bottom: 1.1rem;
    padding: clamp(1.2rem, 1rem + 0.7vw, 1.6rem);
}

.skills__category h3 {
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.52rem 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(29, 36, 48, 0.08);
    background: rgba(255, 255, 255, 0.62);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    transition:
        transform var(--duration-fast) ease,
        border-color var(--duration-fast) ease,
        background-color var(--duration-fast) ease,
        color var(--duration-fast) ease;
}

[data-theme="dark"] .tag {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.08);
}

.tag:hover {
    transform: translateY(-1px);
    border-color: rgba(196, 151, 79, 0.35);
    background: rgba(196, 151, 79, 0.08);
    color: var(--text-primary);
}

[data-theme="dark"] .tag:hover {
    background: rgba(209, 171, 105, 0.1);
}

.stagger .tag {
    opacity: 0;
    transform: translateY(8px);
}

.stagger.active .tag {
    opacity: 1;
    transform: none;
    transition:
        opacity 360ms var(--ease-out),
        transform 360ms var(--ease-out);
}

.stagger.active .tag:nth-child(1) {
    transition-delay: 20ms;
}

.stagger.active .tag:nth-child(2) {
    transition-delay: 40ms;
}

.stagger.active .tag:nth-child(3) {
    transition-delay: 60ms;
}

.stagger.active .tag:nth-child(4) {
    transition-delay: 80ms;
}

.stagger.active .tag:nth-child(5) {
    transition-delay: 100ms;
}

.stagger.active .tag:nth-child(6) {
    transition-delay: 120ms;
}

.stagger.active .tag:nth-child(7) {
    transition-delay: 140ms;
}

.stagger.active .tag:nth-child(8) {
    transition-delay: 160ms;
}

.awards__list {
    overflow: hidden;
}

.awards__list li {
    position: relative;
    padding: 1.1rem 1.25rem 1.1rem 2rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.awards__list li::before {
    content: '';
    position: absolute;
    top: 1.65rem;
    left: 1rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-gold);
}

.awards__list li+li {
    border-top: 1px solid rgba(29, 36, 48, 0.08);
}

[data-theme="dark"] .awards__list li+li {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.9rem, 1.5vw, 1.15rem);
}

.bento__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
    text-decoration: none;
    transition:
        transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out),
        border-color var(--duration-normal) var(--ease-out);
}

.bento__item:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 151, 79, 0.35);
    box-shadow: 0 24px 52px rgba(52, 57, 68, 0.11);
}

[data-theme="dark"] .bento__item:hover {
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
}

.bento__item--lg {
    grid-column: span 2;
}

.bento__item--full {
    grid-column: 1 / -1;
}

.bento__item--social {
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    aspect-ratio: 1;
    text-align: center;
}

.bento__icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(196, 151, 79, 0.1);
    color: var(--accent-gold);
    font-size: 1.2rem;
}

[data-theme="dark"] .bento__icon {
    background: rgba(209, 171, 105, 0.1);
}

.bento__content {
    min-width: 0;
}

.bento__content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.bento__content p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.bento__arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform var(--duration-fast) ease, color var(--duration-fast) ease;
}

.bento__item:hover .bento__arrow {
    transform: translateX(3px);
    color: var(--text-primary);
}

.bento__item--social .bento__icon {
    width: 58px;
    height: 58px;
    font-size: 1.35rem;
}

.bento__item--social span {
    font-weight: 700;
    color: var(--text-secondary);
}

.flex {
    display: flex;
}

.flex--center {
    justify-content: center;
    align-items: center;
}

.mt-12 {
    margin-top: 3rem;
}

.footer {
    padding: 2rem 0 3rem;
}

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

.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(29, 36, 48, 0.08);
}

[data-theme="dark"] .skeleton {
    background: rgba(255, 255, 255, 0.08);
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: skeletonShimmer 1.4s infinite;
}

.skeleton--title {
    width: 42%;
    height: 22px;
    margin-bottom: 14px;
}

.skeleton--text {
    width: 100%;
    height: 14px;
}

.skeleton--text+.skeleton--text {
    margin-top: 10px;
    width: 88%;
}

@keyframes skeletonShimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes aboutFrameDrift {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes aboutFrameOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 600ms var(--ease-out),
        transform 600ms var(--ease-out);
}

.reveal--left {
    transform: translateX(-26px);
}

.reveal--right {
    transform: translateX(26px);
}

.reveal.active {
    opacity: 1;
    transform: none;
}

@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__content {
        justify-items: center;
        text-align: center;
    }

    .grid--2,
    .impact__list {
        grid-template-columns: 1fr;
    }

    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bento__item--lg,
    .bento__item--full {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .section {
        padding-block: 3.25rem;
    }

    .section__title,
    .section__title--big {
        width: 100%;
        justify-content: space-between;
    }

    .timeline::before {
        left: 14px;
    }

    .timeline__item {
        padding-left: 3.1rem;
    }

    .timeline__item::before {
        left: 6px;
        width: 16px;
        height: 16px;
    }

    .timeline__content,
    .edu-card,
    .project-card,
    .skills__category,
    .bento__item,
    .awards__list {
        border-radius: 24px;
    }

    .bento__item--social {
        aspect-ratio: auto;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .bento__item--social .bento__icon {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .section {
        padding-block: 3rem;
    }

    .section+.section {
        padding-top: 2.4rem;
    }

    .section__title,
    .section__title--big {
        gap: 10px;
        margin-bottom: 1.5rem;
    }

    .section__title::after {
        width: 42px;
    }

    .about__image {
        max-width: min(82vw, 320px);
        border-radius: 28px;
    }

    .about__text {
        font-size: 1rem;
    }

    .timeline__item {
        padding-left: 2.7rem;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline__item::before {
        left: 4px;
        width: 16px;
        height: 16px;
    }

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

    .bento__item,
    .bento__item--lg,
    .bento__item--full {
        grid-column: auto;
    }

    .bento__item {
        min-height: 96px;
    }

    .bento__item--social {
        min-height: 84px;
    }

    .bento__item--social span {
        font-size: 0.95rem;
    }

    .tag {
        white-space: normal;
    }

    .mt-12 {
        margin-top: 2.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .stagger .tag,
    .skeleton::after,
    .bento__item,
    .tag,
    .about__image::before,
    .about__image::after {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

@media print {
    @page {
        margin: 14mm;
    }

    :root {
        --bg-deep: #ffffff;
        --bg-surface: #ffffff;
        --bg-elevated: #ffffff;
        --bg-glass: #ffffff;
        --text-primary: #1a1a1a;
        --text-secondary: #404040;
        --text-muted: #5f5f5f;
    }

    html {
        scroll-behavior: auto;
    }

    body {
        background: #ffffff !important;
        color: #1a1a1a;
        font-size: 11pt;
    }

    .nav,
    .theme-toggle,
    .hero__scroll,
    .hero__actions,
    .footer {
        display: none !important;
    }

    .hero {
        padding: 0 0 1.25rem !important;
    }

    .hero__container {
        grid-template-columns: 220px 1fr !important;
        gap: 1.2rem !important;
        align-items: center !important;
    }

    .section,
    .section+.section {
        padding: 1rem 0 !important;
    }

    .glass,
    .timeline__content,
    .edu-card,
    .project-card,
    .skills__category,
    .awards__list,
    .bento__item,
    .hero__stat,
    .hero__status {
        background: #ffffff !important;
        border: 1px solid #d7d7d7 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .reveal,
    .stagger .tag {
        opacity: 1 !important;
        transform: none !important;
    }

    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bento__item--full,
    .bento__item--lg {
        grid-column: span 2;
    }

    a {
        text-decoration: none;
        color: inherit;
    }
}

/* ═══════════════════════════════════════════
   GLOBAL FOOTER (Unified across all Apps)
   ═══════════════════════════════════════════ */
.global-footer {
    width: 100%;
    margin-top: auto;
    padding: 48px 20px 32px;
    border-top: 1px solid var(--site-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: transparent;
}

.global-footer__nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: var(--site-bg-elevated);
    border: 1px solid var(--site-border);
    box-shadow: var(--site-shadow);
}

.global-footer__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--site-text-muted);
    transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.global-footer__link:hover,
.global-footer__link:focus-visible {
    background: var(--site-surface-strong);
    color: var(--site-text);
}

.global-footer__link[aria-current="page"] {
    background: var(--site-text);
    color: var(--site-bg);
}

[data-theme="dark"] .global-footer__link[aria-current="page"] {
    background: var(--site-text);
    color: var(--site-bg);
}

.global-footer__contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 8px 0;
}

.global-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--site-text-subtle);
    transition: color var(--duration-fast) ease;
}

.global-footer__contact-link:hover,
.global-footer__contact-link:focus-visible {
    color: var(--site-text);
}

.global-footer__contact-link i {
    font-size: 0.95rem;
}

.global-footer__divider {
    color: var(--site-border-strong);
    font-size: 0.75rem;
}

.global-footer__copy {
    text-align: center;
    color: var(--site-text-subtle);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.global-footer__copy span {
    display: block;
    margin-top: 4px;
}