/* Shared base styles + header + scroll-to-top, used by every page. */

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

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
}

/* Title + social row at the top of every page. */
.title-social-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px auto;
    width: 80%;
    max-width: 1400px;
}

.title-container {
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

.title-container h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 5px;
}

.title-container p {
    font-size: 18px;
    color: #5c5c5c;
    margin-top: -6px;
}

.clickable-title {
    cursor: pointer;
    color: #000;
    transition: color 0.3s;
}

.clickable-title:hover {
    color: #0dc469;
}

/* Floating "scroll to top" button on every page. */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scroll-to-top:hover {
    background-color: #05D584;
    transform: scale(1.1);
}

#scroll-to-top img {
    width: 24px;
    height: 24px;
}

/* Shared contact footer (homepage + project detail). */
.project-footer {
    background: #f6f6f6;
    padding: 36px 32px;
}
.project-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.contact-block h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.contact-block p {
    margin: 2px 0;
    font-size: 14px;
    color: #444;
}
.contact-block a {
    color: #0dc469;
    text-decoration: none;
}
.contact-block a:hover { text-decoration: underline; }

.social-row {
    display: flex;
    gap: 10px;
}
.social-row a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.social-row a:hover { transform: translateY(-2px); }
.social-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(30%);
    transition: filter 0.3s ease;
}
.social-row a:hover img {
    filter: invert(57%) sepia(95%) saturate(388%) hue-rotate(98deg) brightness(96%) contrast(94%);
}
