/* assets/common.css */
/* body {
    overflow-x: hidden;
} */

.front-image-container {
    width: 100%;
    max-width: 100vw;
    height: 50vh; /* desktop default */
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.front-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media screen and (max-width: 768px) {
    .front-image-container {
        height: 30vh;
    }
}

.welcome-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 150px;
    margin-bottom: 150px;
    padding: 0 80px;
    gap: 180px;
    animation: fadeInAnimation 1s ease-in-out;
}

@media screen and (max-width: 768px) {
    .welcome-container {
        flex-direction: column;
        padding: 0 20px;
        gap: 50px;
    }

    div:has(.welcome-image) {
        display: flex;
        justify-content: center;
    }
    
}

.welcome-image {
    width: 90%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.welcome-image:hover {
    transform: scale(1.05);
}

.welcome-title {
    font-family: "Philosopher", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #442b20;
    margin-bottom: 15px;
}

.welcome-text {
    font-family: "Xanh Mono", sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #442b20;
}

.services-text{
    font-family: "Philosopher", sans-serif;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    color: #F5F0E6;
    padding: 20px;
}

.service-section {
    background-color: #C4B6D2;
    padding: 40px 20px; 
    margin-top: 200px;
    border-radius: 20px 20px 20px 20px;
}

.service-container {
    display: flex; 
    justify-content: center;
    align-items: center;
    gap: 20px; 
}

/* First image smaller */
.service-img:first-child {
    width: 20%; 
}

/* Middle two images bigger */
.service-img:nth-child(2),
.service-img:nth-child(3) {
    width:25%; 
}

/* Last image smaller */
.service-img:last-child {
    width: 20%; 
}

/* Keep height auto and object-fit cover */
.service-img {
    height: auto;
    object-fit: cover; 
    object-position: center;
    border-radius: 4px;
}


.service-button {
    display: flex;
    justify-content: center;
}

.bar {
    background-color: #F5F0E6;
    padding: 14px;
    display: flex;
    justify-content: center;
    font-family: "Philosopher", sans-serif;
}

.bar a {
    font-size: 1.6rem;
    color: #C4B6D2;
    transition: transform 0.2s ease;
}

.bar a:hover {
    font-size: 1.6rem;
    color: #C4B6D2;
    transform: scale(1.05);
}

.bar a:visited {
    color: #C4B6D2;
}

.portfolio-section {
    background-color: #C4B6D2;
    padding: 40px 20px; 
    border-radius: 20px 20px 0px 0px;
}

.portfolio-container {
    background-color: #C4B6D2;
    display: flex; 
    justify-content: center;
    align-items: center;
    gap: 20px; 
}

.portfolio-img {
    width: 30%; 
    height: auto;
    object-fit: cover; 
    object-position: center;
    border-radius: 4px;
}

.portfolio-img:first-child {
    width: 25%; 
}

.portfolio-img:last-child {
    width: 25%; 
}

.portfolio-button {
    display: flex;
    justify-content: center;
}

.big-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    background-color: #C4B6D2;
    padding: 15px 32px;
    text-decoration: none;
    font-size: 2rem;
    font-family: "Philosopher", sans-serif;
    color: #F5F0E6;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: none;
    outline: none;
}

a {
    text-decoration: none;
}

.big-button:hover {
    transform: scale(1.05);
}

.big-button:visited {
    text-decoration: none;
}

@keyframes fadeInAnimation {
    from { opacity: 0; }
    to { opacity: 1; }
}

