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

:root {
    --bg: #091413;
    --panel: rgba(12, 27, 25, 0.88);
    --text: #b0e4cc;
    --text-muted: rgba(176, 228, 204, 0.78);
    --text-soft: rgba(176, 228, 204, 0.55);
    --border: rgba(176, 228, 204, 0.18);
    --border-strong: rgba(176, 228, 204, 0.28);
    --accent: #408a71;
    --accent-rgb: 64, 138, 113;
    --font-sans: "Montserrat", sans-serif;
    --font-display: "GrandSlang-Roman", "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.6);
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-cursor.is-visible {
    opacity: 1;
}

.custom-cursor.is-hovering {
    transform: translate(-50%, -50%) scale(1.35);
}

@media (hover: hover) and (pointer: fine) {
    body,
    a,
    button,
    input,
    textarea,
    select,
    label {
        cursor: none;
    }
}

a {
    color: inherit;
}

.logo-linkedin,
.logo-instagram,
.logo-threads {
    display: flex;
    align-items: center;
}

.framer-1iemjr1 {
    width: 100%;
    min-width: 2.5rem;
    max-width: 6rem;
    height: 0.5px;
    align-self: center;
    background-color: #b0e4cc !important;
    opacity: 1;
    margin-left: 1rem !important;
}

.page-shell {
    min-height: 100vh;
}

.social-sidebar {
    width: 100%;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: var(--text);
    background: rgba(176, 228, 204, 0.08);
    color: var(--text);
}

.sidebar-year {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--text-soft);
}

.hero-container {
    min-height: calc(100vh - 5rem);
}

.hero-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    text-align: center;
}

.hero-avatar {
    width: min(72vw, 21rem);
    animation: heroAvatarReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-caption {
    margin-left: auto;
    margin-right: auto;
    max-width: 28rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    text-align: center;
    animation: heroCaptionReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-caption-role {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-caption-text {
    letter-spacing: 0.01em;
}

.mobile-quicklink {
    background: var(--panel);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    animation: fadeSlideIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.d-grid .mobile-quicklink:nth-child(1) {
    animation-delay: 0.18s;
}

.d-grid .mobile-quicklink:nth-child(2) {
    animation-delay: 0.3s;
}

.d-grid .mobile-quicklink:nth-child(3) {
    animation-delay: 0.42s;
}

.mobile-quicklink:hover,
.mobile-quicklink:focus,
.mobile-quicklink:active {
    color: var(--text);
    background: rgba(12, 27, 25, 0.96);
    border-color: var(--text);
}

.mobile-quicklink-arrow {
    color: var(--text-soft);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
}

.link a {
    position: relative;
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: clamp(4.2rem, 8vw, 8.8rem);
    line-height: 0.96;
    transform-origin: left center;
    transition: color 0.3s ease, transform 0.3s ease, letter-spacing 0.3s ease;
    animation: fadeSlideIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.link li:nth-child(1) a {
    animation-delay: 0.18s;
}

.link li:nth-child(2) a {
    animation-delay: 0.3s;
}

.link li:nth-child(3) a {
    animation-delay: 0.42s;
}

.link a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.08em;
    width: 100%;
    height: 0.08em;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.link a:hover {
    color: var(--accent);
    letter-spacing: 0.03em;
    transform: translateX(-0.08em) skew(-12deg);
}

.link a:hover::after {
    transform: scaleX(1);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroAvatarReveal {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.92) rotate(-4deg);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes heroCaptionReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-avatar,
    .hero-caption,
    .link a,
    .contacts-card,
    .contacts-eyebrow,
    .contacts-title,
    .contacts-intro,
    .contact-item,
    .contacts-divider,
    .contacts-form {
        animation: none;
    }

    .social-link,
    .hero-avatar,
    .hero-caption,
    .link a,
    .link a::after,
    .contact-item,
    .contacts-form,
    .contacts-submit {
        transition: none;
    }
}

@media (max-width: 575.98px) {
    .hero-container {
        min-height: auto;
        align-items: flex-start !important;
    }

    .hero-intro {
        gap: 1.5rem;
    }

    .hero-avatar {
        width: min(64vw, 12rem);
    }

    .hero-caption-role {
        font-size: 0.74rem;
        letter-spacing: 0.15em;
    }

    .hero-caption-text {
        font-size: 0.95rem;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-container {
        min-height: auto;
        align-items: flex-start !important;
    }

    .hero-avatar {
        width: min(50vw, 15rem);
    }
}

@media (min-width: 992px) {
    .hero-intro {
        align-items: flex-start;
        text-align: left;
    }

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

    .link ul {
        width: 100%;
    }

    .hero-caption {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        padding-right: 1.5rem;
    }

    .hero-caption-text {
        max-width: 24rem;
    }
}

@media (min-width: 1400px) {
    .hero-container {
        min-height: 100vh;
    }

    .hero-avatar {
        width: min(24vw, 23rem);
    }
}

/* SEZIONE ABOUT ME */

.about-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 0.95;
    color: var(--text);
    animation: aboutTitleReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.about-intro {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.about-cv-photo {
    width: 100%;
    max-width: 18rem;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
    animation: aboutPhotoReveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both,
        aboutPhotoFloat 7s ease-in-out 1.4s infinite;
}

.about-summary-label {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.about-summary-text {
    font-family: var(--font-sans);
    line-height: 1.8;
    color: var(--text-muted);
}

.about-lead {
    max-width: 72rem;
    font-family: var(--font-sans);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.75;
    color: var(--text);
}

.about-simple-copy {
    max-width: 70rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-muted);
    animation: aboutCopyReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.about-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    background: transparent;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 0.98;
    color: var(--text);
    animation: aboutSectionReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.timeline-caption {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.timeline {
    position: relative;
    padding-left: 1.6rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    bottom: 0.2rem;
    left: 0.35rem;
    width: 1px;
    background: var(--border-strong);
    transform: scaleY(0);
    transform-origin: top center;
    animation: aboutTimelineLineReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.timeline-item {
    position: relative;
    opacity: 0;
    animation: aboutCardReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.timeline-dot {
    position: absolute;
    top: 0.32rem;
    left: -1.6rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: var(--text);
    box-shadow: 0 0 0 0.25rem rgba(176, 228, 204, 0.1);
    animation: aboutDotPulse 2.8s ease-in-out 1.3s infinite;
}

.timeline-period {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.timeline-role {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.timeline-place {
    font-family: var(--font-sans);
    color: var(--text-muted);
}

.timeline-description {
    font-family: var(--font-sans);
    line-height: 1.8;
    color: var(--text-muted);
}

.about-faq .accordion-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    animation: aboutCardReveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-faq .accordion-button {
    background: transparent;
    color: var(--text);
    box-shadow: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding-left: 0;
    padding-right: 0;
    transition: color 0.3s ease, letter-spacing 0.3s ease, transform 0.3s ease;
}

.about-faq .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--text);
}

.about-faq .accordion-button:focus {
    box-shadow: none;
}

.about-faq .accordion-button:hover {
    color: var(--accent);
    letter-spacing: 0.08em;
    transform: translateX(0.15rem);
}

.about-faq .accordion-button::after {
    filter: brightness(0) saturate(100%) invert(88%) sepia(11%) saturate(577%) hue-rotate(97deg) brightness(94%) contrast(92%);
}

.about-faq .accordion-body {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0.2rem;
    padding-bottom: 1.5rem;
    font-family: var(--font-sans);
    line-height: 1.8;
    color: var(--text-muted);
}

.about-faq-list {
    padding-left: 1.2rem;
}

.about-faq-list li + li {
    margin-top: 0.55rem;
}

.row.justify-content-center:first-of-type .col-12.col-xl-11:first-child .about-title {
    animation-delay: 0.08s;
}

.row.justify-content-center:first-of-type .about-cv-photo {
    animation-delay: 0.18s, 1.4s;
}

.row.justify-content-center:first-of-type .about-simple-copy {
    animation-delay: 0.22s;
}

.row.justify-content-center.mt-5.pt-lg-4 .col-12.col-lg-6.col-xl-5:first-child .timeline-title {
    animation-delay: 0.34s;
}

.row.justify-content-center.mt-5.pt-lg-4 .col-12.col-lg-6.col-xl-5:last-child .timeline-title {
    animation-delay: 0.48s;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.56s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.7s;
}

.about-faq .accordion-item:nth-child(1) {
    animation-delay: 0.34s;
}

.about-faq .accordion-item:nth-child(2) {
    animation-delay: 0.46s;
}

.about-faq .accordion-item:nth-child(3) {
    animation-delay: 0.58s;
}

@keyframes aboutTitleReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
        letter-spacing: 0.03em;
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0;
        filter: blur(0);
    }
}

@keyframes aboutCopyReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aboutPhotoReveal {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.92);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes aboutPhotoFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes aboutSectionReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aboutTimelineLineReveal {
    from {
        transform: scaleY(0);
        opacity: 0;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes aboutCardReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aboutDotPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0.25rem rgba(176, 228, 204, 0.1);
    }

    50% {
        box-shadow: 0 0 0 0.45rem rgba(176, 228, 204, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-title,
    .about-cv-photo,
    .about-simple-copy,
    .timeline-title,
    .timeline::before,
    .timeline-item,
    .timeline-dot,
    .about-faq .accordion-item {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .about-faq .accordion-button {
        transition: none;
    }
}

@media (min-width: 992px) {
    .py-lg-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .about-cv-photo {
        max-width: 16rem;
    }
}

.contacts-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    animation: contactsDividerReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.contacts-form-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 0.98;
    color: var(--text);
}

.contacts-form {
    background: rgba(9, 20, 19, 0.62);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    animation: contactsSoftReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.56s both;
}

.contacts-input {
    background: rgba(12, 27, 25, 0.96);
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    color: var(--text);
    font-family: var(--font-sans);
    padding: 0.9rem 1rem;
}

.contacts-input:focus {
    background: rgba(12, 27, 25, 0.96);
    border-color: var(--border-strong);
    box-shadow: 0 0 0 0.2rem rgba(64, 138, 113, 0.18);
    color: var(--text);
}

.contacts-input::placeholder {
    color: var(--text-soft);
}

.contacts-textarea {
    min-height: 10rem;
    resize: vertical;
}

.contacts-submit {
    background: var(--text);
    border: 1px solid var(--text);
    border-radius: 999px;
    color: var(--bg);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contacts-submit:hover,
.contacts-submit:focus,
.contacts-submit:active {
    background: transparent;
    border-color: var(--text);
    color: var(--text);
}

@keyframes contactsPanelReveal {
    from {
        opacity: 0;
        transform: translateY(28px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes contactsSoftReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contactsDividerReveal {
    from {
        opacity: 0;
        transform: scaleX(0.4);
        transform-origin: left center;
    }

    to {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left center;
    }
}


/* SEZIONE PER LA PAGINA CONTACTS */

.link-home-contacts {
    font-family: var(--font-sans);
    text-decoration: none;
}

.link-home-contacts:hover {
    color: #408a71;
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}

.py-6-custom {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.contacts-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    animation: contactsPanelReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.contacts-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
    animation: fadeSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.contacts-title {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 6vw, 4.5rem);
    line-height: 0.95;
    color: var(--text);
    animation: fadeSlideIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.contacts-intro {
    max-width: 42rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    animation: contactsSoftReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.contact-item {
    background: rgba(9, 20, 19, 0.62);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    animation: contactsSoftReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.row.g-3 > div:nth-child(1) .contact-item {
    animation-delay: 0.34s;
}

.row.g-3 > div:nth-child(2) .contact-item {
    animation-delay: 0.42s;
}

.row.g-3 > div:nth-child(3) .contact-item {
    animation-delay: 0.5s;
}

.row.g-3 > div:nth-child(4) .contact-item {
    animation-delay: 0.58s;
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: rgba(12, 27, 25, 0.94);
    color: var(--text);
}

.contact-label {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.contact-value {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1rem);
    font-weight: 400;
    color: var(--text);
    word-break: break-word;
}

.contact-meta {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* SEZIONE PROJECTS */

.projects-hero {
    max-width: 52rem;
}

.projects-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
    animation: projectsFadeUp 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.projects-title {
    max-width: 42rem;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5.3rem);
    line-height: 0.95;
    color: var(--text);
    animation: projectsTitleReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.projects-intro {
    max-width: 42rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-muted);
    animation: projectsFadeUp 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.project-card {
    position: relative;
    min-height: 100%;
    border: 1px solid var(--border);
    border-radius: 1.7rem;
    background:
        radial-gradient(circle at top right, rgba(176, 228, 204, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(12, 27, 25, 0.96), rgba(9, 20, 19, 0.92));
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    animation: projectsCardReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(176, 228, 204, 0.08), transparent 45%, rgba(64, 138, 113, 0.12));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card-inner {
    position: relative;
    z-index: 1;
}

.project-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(176, 228, 204, 0.04);
    color: var(--text-soft);
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-index {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.project-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.98;
    color: var(--text);
}

.project-description {
    max-width: 30rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.project-meta-item {
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(176, 228, 204, 0.06);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-link {
    width: 100%;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(176, 228, 204, 0.04);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.project-link:hover {
    transform: translateX(0.22rem);
    border-color: var(--text);
    background: rgba(176, 228, 204, 0.1);
    color: var(--text);
}

.project-link-arrow {
    font-size: 1rem;
    line-height: 1;
}

.row.justify-content-center.mt-5.pt-lg-4.g-4 .col-12.col-lg-6:nth-child(1) .project-card {
    animation-delay: 0.34s;
}

.row.justify-content-center.mt-5.pt-lg-4.g-4 .col-12.col-lg-6:nth-child(2) .project-card {
    animation-delay: 0.5s;
}

@keyframes projectsTitleReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
        letter-spacing: 0.03em;
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0;
        filter: blur(0);
    }
}

@keyframes projectsFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes projectsCardReveal {
    from {
        opacity: 0;
        transform: translateY(28px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (max-width: 991.98px) {
    .project-card {
        border-radius: 1.45rem;
    }

    .project-link {
        letter-spacing: 0.12em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .projects-eyebrow,
    .projects-title,
    .projects-intro,
    .project-card {
        animation: none !important;
        opacity: 1;
        transform: none;
        filter: none;
    }

    .project-card,
    .project-card::before,
    .project-link {
        transition: none;
    }
}
