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

:root {
    --primary-bg-color: #f5f7fa;
    --hero-bg: #eef1f7;
    --primary-accent: #0f172a;
    --secondary-accent: #3b5bdb;
    --accent-teal: #0d9488;
    --accent-gradient: linear-gradient(135deg, #3b5bdb 0%, #0d9488 100%);
    --accent-gradient-soft: linear-gradient(135deg, rgba(59,91,219,0.12) 0%, rgba(13,148,136,0.10) 100%);

    --main-text-color: #0f172a;
    --supportive-text-color: #334155;
    --gray-text-color: #64748b;

    --white-color: #fff;
    --gray-color: #e2e8f0;
    --gray-color-2: #cbd5e1;
    --gray-color-3: #f1f5f9;
    --card-bg: #ffffff;
    --card-border: rgba(59, 91, 219, 0.1);

    --color-preloader-bg: white;
    --color-dots: #1a1a1a;

    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 16px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
    --shadow-lg: 0 10px 40px rgba(15,23,42,0.10), 0 4px 12px rgba(15,23,42,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
}

/* Common styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    color: var(--main-text-color);
    font-family: "Inter", "Poppins", sans-serif;
    letter-spacing: -0.2px;
    background-color: var(--primary-bg-color);
}

.container {
    padding: 0 32px;
    max-width: 1200px;
    /* max-width: clamp(54.5rem, 38.125rem + 81.88vw, 120rem); */
    margin: 0 auto;
}

.container-lg {
    max-width: 1600px;
}

.title {
    font-size: 44px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 54px;
}

.btn {
    display: inline-block;
    height: 50px;
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 50px;
    padding: 0 32px;
    margin: 0;
    color: var(--white-color);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    border: none;
    box-shadow: 0 2px 12px rgba(59,91,219,0.25);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.25s ease;
}

.btn:hover::after,
.btn:focus::after {
    background: rgba(255,255,255,0.12);
}

.btn:hover,
.btn:focus {
    color: var(--white-color);
    outline: 0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,91,219,0.35);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59,91,219,0.2);
}

.btn-white {
    background: transparent;
    font-weight: 600;
    border: 1.5px solid var(--gray-color-2);
    color: var(--supportive-text-color);
    box-shadow: none;
    transition: all 0.25s ease;
}

.btn-white:hover,
.btn-white:focus {
    background: var(--gray-color-3);
    border-color: var(--gray-color-2);
    color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.btn-blue {
    background: var(--accent-gradient);
    border: none;
    color: var(--white-color);
}

.btn-blue:hover,
.btn-blue:focus {
    color: var(--white-color);
}

h5 {
    font-size: 15px;
    letter-spacing: 2px;
    line-height: 23px;
    font-weight: 600;
    text-transform: uppercase;
}

.white {
    color: var(--white-color);
}

/* Header */
.header {
    z-index: 100;
    background-color: transparent;
    height: 76px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    height: 76px;
}

.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1999;
    background-color: rgba(245, 247, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15,23,42,0.06);
    padding-top: 0;
    padding-bottom: 0;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 1px 12px rgba(15,23,42,0.06);
}

.logo {
    position: relative;
    line-height: 1;
    font-weight: 600;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
    color: var(--main-text-color);
    letter-spacing: -0.3px;
}

.nav-list {
    display: flex;
    column-gap: 36px;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: -0.1px;
}

.nav-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 768px) {
    .nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-list {
        /* Hidden by default on mobile — slides in from top when .open */
        display: none;
        position: absolute;
        top: 76px;        /* height of header */
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--card-bg);
        border-top: 1px solid var(--gray-color);
        border-bottom: 1px solid var(--gray-color);
        box-shadow: var(--shadow-md);
        padding: 16px 24px 20px;
        gap: 0;
        z-index: 200;
    }

    nav.open .nav-list {
        display: flex;
    }

    .nav-list .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--gray-color);
    }

    .nav-list .nav-item:last-child {
        border-bottom: none;
    }

    .nav-list .nav-link {
        display: block;
        padding: 12px 0;
        font-size: 15px;
    }
}

.nav-link {
    color: var(--supportive-text-color);
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover {
    color: var(--secondary-accent);
}

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

.nav-link.active {
    color: var(--secondary-accent);
    font-weight: 500;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Hero section */
.hero {
    position: relative;
    padding-top: 76px;
    padding-bottom: 40px;
    background-color: var(--hero-bg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(59,91,219,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(13,148,136,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-row {
    display: flex;
    flex-direction: row;           /* text left, image right */
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;            /* centered within its column */
    align-self: center;
    padding: 40px 32px;
    flex: 2;                       /* takes 2/3 of the hero width */
    max-width: none;
    margin-left: 0;
}

.hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-accent);
    background: var(--accent-gradient-soft);
    border: 1px solid rgba(59,91,219,0.18);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.hero-heading {
    margin: 8px 0 4px;
    font-weight: 700;
    font-size: clamp(3rem, 2.5rem + 2.5vw, 5rem);
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--primary-accent) 0%, #3b5bdb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-heading-subtitle {
    font-size: clamp(1rem, 0.95rem + 0.36vw, 1.25rem);
    font-weight: 400;
    color: var(--supportive-text-color);
    letter-spacing: -0.3px;
}

.hero-img {
    display: flex;
    flex: 1;                       /* takes 1/3 of the hero width */
    justify-content: flex-end;
    align-items: flex-end;
}

.hero-img img {
    display: block;
    position: relative;
    max-height: 600px;
    width: 100%;
    object-fit: contain;
    aspect-ratio: auto;
    filter: drop-shadow(0 20px 40px rgba(15,23,42,0.12));
}

@media (max-width: 1000px) {
    .hero-row {
        flex-direction: column;
    }
    .hero-img {
        display: none;
    }
    .hero-content {
        text-align: center;
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        max-width: 100%;
        margin-left: 0;
    }
}

.about-social-list {
    display: flex;
}

/* Hero: center icons and buttons within content column */
.hero-actions .social-links-row {
    justify-content: center;
    margin: 20px 0 0;
}

.social-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 24px;
}

.social-links-row img {
    height: 22px;
    width: 22px;
}

/* Only pure icon anchors (not .btn) get the circle treatment */
.social-links-row a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--gray-color);
    box-shadow: var(--shadow-sm);
    filter: invert(30%) sepia(15%) saturate(300%) hue-rotate(190deg) brightness(85%) contrast(85%);
    transition: all 0.25s ease;
}

.social-links-row a:not(.btn):hover {
    filter: none;
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(59,91,219,0.3);
    transform: translateY(-2px);
}

.social-links-row a:not(.btn):hover img {
    filter: brightness(10);
}

/* Hero actions wrapper */
.hero-actions {
    margin-top: 8px;
}

/* About section */
.about {
    padding-top: 100px;
    padding-bottom: 20px;
}

.about-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    justify-content: center;
    gap: 70px;
    color: var(--supportive-text-color);
}

.about-descr {
    font-size: clamp(0.95rem, 0.92rem + 0.18vw, 1.05rem);
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--supportive-text-color);
}

.skill {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 30px;
}

.skill-title,
.skill-percent {
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    /* text-transform: uppercase; */
    letter-spacing: 0px;
}

.skill-percent {
    float: right;
}

.skill-bar__progress {
    background-color: var(--gray-color);
    border-radius: 5px;
    height: 4px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.skill-bar__fill {
    background-color: var(--secondary-accent);
    height: 4px;
    width: 0; /* Initial width is 0 */
    transition: width 1.5s ease-in-out; /* Smooth transition for the fill */
}

.about-download-btn {
    margin-top: 40px;
}

.services-row {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.service-card {
    max-width: 300px;
}

.service-card-img {
    display: block;
    height: 50px;
    margin: 0 auto 20px;
    filter: invert(33%) sepia(7%) saturate(243%) hue-rotate(145deg) brightness(94%) contrast(81%);
}

.service-card-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: clamp(1.125rem, 1.089rem + 0.18vw, 1.25rem);
}

.service-card p {
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
}


/* Contact */
.contact {
    padding: 7rem 0;
    text-align: center;
    background-color: var(--hero-bg);
    border-top: 1px solid var(--gray-color);
}

.contact-content {
    font-size: 1rem;
    color: var(--gray-text-color);
    margin: 0 auto 28px;
}

.contact-email-text {
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray-text-color);
    letter-spacing: 0.01em;
}

.email-link img {
    height: 22px;
    width: 22px;
}

/* Footer */
.footer {
    background-color: var(--primary-accent);
    color: var(--gray-color-3);
}

.footer-row {
    display: flex;
    flex-direction: column;
    column-gap: 20px;
    align-items: center;
    padding: 40px 0;
}

.footer-social {
    margin-top: 0;
}

.footer-social a:hover {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
}

.footer-copyright {
    font-size: clamp(0.75rem, 0.679rem + 0.36vw, 1rem);
}

.response {
    position: fixed;
    display: inline-block;
    background-color: var(--primary-accent);
    color: var(--white-color);
    border: 1px solid var(--white-color);
    min-width: 280px;
    padding: 20px 40px;
    bottom: -100px;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    transition: all 0.3s ease-in-out;
    z-index: 5;
}

.response.open {
    bottom: 20px;
    opacity: 1;
    visibility: visible;
}

/* "go to top" button */
.goToTop {
    z-index: 599;
    position: fixed;
    width: 40px;
    height: 40px;
    background-color: var(--gray-color);
    top: auto;
    left: auto;
    right: 30px;
    bottom: 30px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    border-radius: 2px;
    transition: opacity 350ms, visibility 350ms;
}

.goToTop a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    filter: invert(4%) sepia(23%) saturate(2306%) hue-rotate(148deg) brightness(91%) contrast(90%);
}

.goToTop img {
    height: 16px;
    width: 16px;
}

.goToTop:hover {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
}

.goToTop.reveal {
    display: block;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s;
}

/* Preloader with jumping dots */
#preloader {
    position: fixed;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    background: var(--color-preloader-bg);
    z-index: 3000;
    height: 100vh;
    width: 100vw;
    opacity: 1;
    overflow: hidden;
    transition: opacity 0.5s ease-out;
}

.jumping-dots {
    position: relative;
    width: 6px;
    height: 6px;
    padding: 0;
    display: inline-block;
}

.jumping-dots > div {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--color-dots);
    border-radius: 50%;
}

.jumping-dots > div:nth-of-type(1) {
    left: 20px;
}

.jumping-dots > div:nth-of-type(3) {
    left: -20px;
}

.jumping-dots > div {
    animation: jumping-dots 1.2s infinite ease;
    animation-delay: 0.2s;
}

.jumping-dots > div:nth-of-type(1) {
    animation-delay: 0.4s;
}

.jumping-dots > div:nth-of-type(3) {
    animation-delay: 0s;
}

@keyframes jumping-dots {
    0% {
        top: 0;
    }

    40% {
        top: -6px;
    }

    80% {
        top: 0;
    }
}

.education {
    padding-top: 100px;
    padding-bottom: 20px;
    background-color: var(--primary-bg-color);
}

.education-title {
    text-align: center;
}



.thesis-item {
    font-size: 14px;
    font-style: italic;
}

.thesis-description {
    font-size: 14.5px;
    color: var(--gray-text-color);
    line-height: 1.6;
}

.thesis-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.education-content {
    flex: 1;
}

.edu-title {
    font-size: 17px;
    margin: 0 0 2px 0;
    font-weight: 600;
    color: var(--primary-accent);
}

.uni-title {
    font-size: 14.5px;
    margin: 0 0 4px 0;
    font-weight: 500;
    font-style: normal;
    color: var(--gray-text-color);
}

.uni-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.uni-description {
    font-size: 14px;
    color: var(--gray-text-color);
    margin-bottom: 2px;
}

/* Skills panels */
.skills-panel {
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    text-align: left;
    margin-bottom: 14px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.skills-panel:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.skills-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-text-color);
    margin-bottom: 10px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.skill-tag {
    background: var(--accent-gradient-soft);
    color: var(--secondary-accent);
    border: 1px solid rgba(59,91,219,0.15);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--accent-gradient);
    color: var(--white-color);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(59,91,219,0.25);
}

.centered-button {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* The line is drawn via the .tl-dot column border, not an absolute pseudo-element */
}

.education-item {
    display: grid;
    grid-template-columns: 24px 120px 1fr;
    gap: 0 20px;
    align-items: start;
    position: relative;
}

/* Connector line: left border of the dot cell on all items except last */
.education-item:not(:last-child) .tl-dot::after {
    content: '';
    display: block;
    position: absolute;
    left: 11px;          /* centre of 24px column - 0.75px (half line width) */
    top: 20px;           /* bottom of the 10px dot + 5px padding */
    bottom: 0;
    width: 1.5px;
    background: linear-gradient(to bottom, rgba(59,91,219,0.6), rgba(13,148,136,0.2));
}

/* Dot wrapper cell — provides the vertical line as a pseudo-element */
.tl-dot {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    /* extend height so line reaches the next item */
    align-self: stretch;
}

/* The actual circle dot */
.tl-dot::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 0 3px rgba(59,91,219,0.15);
    flex-shrink: 0;
}

.education-year {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-accent);
    letter-spacing: 0.02em;
    white-space: nowrap;
    padding-top: 3px;
    line-height: 1.4;
}

.education-content {
    padding-bottom: 32px;
}

.education-item:last-child .education-content {
    padding-bottom: 0;
}

.courses-group-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
    gap: 30px;
    padding-bottom: 30px;
}

.courses-group-container {
    width: 100%;
    gap: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.courses-group-title {
    width: 15%;
    font-size: 18px;
    font-weight: bold;
    color: #435274;
    min-width: 150px;
}

.courses-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* Certificates */
.certificates {
    padding-top: 100px;
    padding-bottom: 40px;
}

.certificate-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding-bottom: 40px;
}

.certificate {
    max-width: 250px;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--gray-color);
    border-radius: var(--radius);
    padding: 20px 16px 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.certificate:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--card-border);
}

.certificate p {
    font-size: 13px;
    color: var(--supportive-text-color);
    line-height: 1.5;
    margin: 8px 0;
    font-weight: 500;
}

.certificate a[href]:not(.certificate-img a) {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-accent);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.certificate a[href]:not(.certificate-img a):hover {
    text-decoration: underline;
}

.certificate-img {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    height: 110px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    background: var(--gray-color-3);
    margin-bottom: 4px;
}

.certificate-img img {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

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

.hover-highlight {
    transition: filter 0.2s ease-in-out;
}

.certificate-img:hover .hover-highlight {
    filter: brightness(1.2);
}

.projects {
    padding-top: 100px;
    padding-bottom: 60px;
    background-color: var(--hero-bg);
}

.projects-title {
    text-align: center;
    margin-bottom: 40px;
}

.projects-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 560px 280px;  /* row 1: LinkedIn embed height; row 2: compact cards */
    gap: 16px;
}

/* LinkedIn embed — top-left cell */
.project-linkedin-embed {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.project-embed-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-accent);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.linkedin-embed-wrap {
    flex: 1;
    width: 100%;
}

.linkedin-embed-wrap iframe {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100% !important;
    height: 520px;
    display: block;
}

/* Project image cards — fill their grid cell fully */
.project-box {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: var(--radius);
    height: 100%;  /* fills the grid row height exactly */
}

.project-box a {
    display: inline-block;
}

.project-box:hover .project-mask {
    opacity: 1;
    visibility: visible;
}

.project-box:hover .project-mask .project-caption {
    bottom: 30px;
    opacity: 1;
}

.project-box:hover .project-img {
    transform: scale(1.08);
    transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 0s;
    width: 100%;
}

.project-img {
    transform: scale(1);
    width: 100%;
    height: 100%;          /* fills the project-box which fills the grid cell */
    object-fit: cover;
    transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 0s;
}


.project-mask {
    background: rgba(0, 0, 0, 0.72);
    height: 100%;
    position: absolute;
    transition: all 0.5s ease-in-out 0s;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.project-mask p {
    font-size: 13.5px;
    letter-spacing: 0.5px;
    font-weight: 400;
    margin-top: 0;
    text-align: left;
    line-height: 1.55;
}

.project-mask .project-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    padding: 0 24px 0 24px;
    text-align: left;
    transition: all 0.5s ease-in-out 0s;
    opacity: 0;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    .projects-row {
        grid-template-columns: 1fr;
    }
    .linkedin-embed-wrap iframe {
        height: 500px;
    }
}
