.motto {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%), url('./components/background.jpg') center/cover no-repeat;
    border-top: 1px solid black;
    padding: 110px 70px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.motto * {
    color: whitesmoke;
    text-align: center;
}

.motto .m1 {
    font-size: 3.5em;
    font-weight: bolder;
}

.motto .m2 {
    font-size: 30px;
    font-family: "Times New Roman";
}

.motto .m3 {
    font-size: large;
    font-family: "Times New Roman";
    color: lightblue;
}

.buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 40%;
}

.buttons * {
    border-radius: 20px;
    padding: 10px 7px;
    width: 100%;
    text-align: center;
    transition: 0.3s;
}

.buttons div:first-child {
    color: black;
    background-color: lightblue;
}

.buttons div:first-child:hover {
    background-color: silver;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.buttons div:nth-child(2) {
    border: 1px solid lightblue;
    color: lightblue;
}

.buttons div:nth-child(2):hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(192, 192, 192, 0.21);
}

/* MAIN */

.stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 30px 45px;
    border-bottom: 1px solid lightblue;
}

.stats-info {
    display: flex;
    flex-direction: column;
}

.stats-info * {
    font-family: "Arial";
}

.stats-info div:nth-child(1) {
    text-align: center;
    font-weight: bold;
    color: black;
    font-size: 2.5rem;
}

.stats-info div:nth-child(2) {
    text-align: center;
    color: grey;
}

/* GENERAL SECTION SPACING */
.work-section {
    padding: 80px 24px;
    background: white;
}

@media (min-width: 768px) {
    .work-section {
        padding: 120px 48px;
    }
}

.container {
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
.work-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .work-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.subheading {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
}

.work-description {
    max-width: 400px;
    color: #4b5563;
    font-size: 18px;
}

/* PROJECT GRID */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px 60px;
    }
}

/* IMAGE WRAPPER */
.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OVERLAY */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    transition: opacity 0.5s;
}

.image-wrapper:hover .overlay {
    opacity: 1;
}

.overlay-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.overlay-sub {
    font-size: 14px;
    opacity: 0.8;
    color: white;
    margin-bottom: 6px;
}

/* PROJECT CARD */

.project-info {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-name {
    font-size: 22px;
    font-weight: bold;
}

.project-name:hover {
    color: #4b5563;
}

.project-sub {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.project-location {
    font-size: 20px;
    color: #9ca3af;
    font-weight: 500;
}

.spaced {
    margin-top: 60px;
}

/* BUTTON */
.load-more {
    text-align: center;
    margin-top: 60px;
}

.load-btn {
    padding: 12px 36px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font-weight: 500;
    background: white;
    transition: 0.3s;
}

.load-btn:hover {
    background: #111;
    color: white;
}

/* CONTACT */
.contact-section {
    background: #111827; /* Tailwind gray-900 */
    color: #fff;
    padding: 80px 24px;
}

@media (min-width: 768px) {
    .contact-section {
        padding: 130px 48px;
    }
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .contact-title {
        font-size: 60px;
    }
}

.contact-subtext {
    font-size: 18px;
    color: #9ca3af; /* gray-400 */
    max-width: 550px;
    margin: 0 auto 48px;
}

.contact-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 14px;
    color: #9ca3af;
}

.contact-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: #fff;
}

.separator {
    display: none;
}

@media (min-width: 768px) {
    .contact-links {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        align-items: center;
    }

    .separator {
        display: inline;
    }
}

.link-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 40%;
}

.link {
    width: 100%;
    padding: 7px;
    border: 1px solid white;
    color: white;
    text-align: left;
    font-size: large;
    border-radius: 25px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
}

.link:hover {
    background-color: rgba(229, 219, 219, 0.114);
}

.link-img-container {
    width: 10%;
}

.link img {
    display: block;
    width: 100%;
}

/* ===========================
   MOBILE RESPONSIVE FIXES
   =========================== */
@media (max-width: 768px) {
    /* HERO MOTTO */
    .motto {
        padding: 80px 20px;
        gap: 10px;
    }

    .motto .m1 {
        font-size: 2em;
    }

    .motto .m2 {
        font-size: 20px;
    }

    .motto .m3 {
        font-size: 14px;
    }

    /* HERO BUTTONS */
    .buttons {
        flex-direction: column;
        width: 90%;
        gap: 15px;
    }

    .buttons div {
        font-size: 14px;
        padding: 12px;
        width: 100%;
    }

    /* STATS */
    .stats {
        flex-direction: row;
        gap: 5px;
        text-align: center;
    }

    .stats-info div:nth-child(1) {
        font-size: 20px;
    }

    .stats-info div:nth-child(2) {
        font-size: 10px;
    }

    /* PROJECT GRID */
    .projects-grid {
        grid-template-columns: 1fr; /* always single column on mobile */
    }

    .spaced {
        margin-top: 0;
    }

    .work-header {
        text-align: center;
        align-items: center;
    }

    .section-title {
        font-size: 30px;
    }

    .work-description {
        font-size: 16px;
        margin: auto;
    }

    /* CONTACT SECTION */
    .contact-title {
        font-size: 32px;
    }

    .contact-subtext {
        font-size: 16px;
        padding: 0 10px;
    }

    .link-tree {
        width: 100%;
    }

    .link {
        padding: 10px;
        gap: 15px;
        font-size: 16px;
        border-radius: 20px;
    }

    .link-img-container {
        width: 7%;
    }
}
