/*--Hero Section--*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content:space-around;
    background: #eaeaea;
    padding: 0 10%;
}
.hero-content {
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    flex:1;
    /*border:black solid 1px;*/
}
.hero-image {
    flex:1.25;
    display: flex;
    justify-content: center;
    /*border:black solid 1px;*/
}
.hero-image img {
    max-width: 100%;
    height: auto;
}
.clients{
    padding: 2rem 5%;
    margin-bottom: 4rem;
}
.process{
    padding: 2rem 5%;
}
.process h3{
    text-align: center;
    margin-bottom: 0;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.2rem;
}
.process h2{
    text-align: center;
    margin-bottom: 0.5rem;
    color:var(--accent-color);
}
.process p{
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: #555;
}
.timeline {
    position:relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin-top: 2rem;
    width:50%;
    margin-left: auto;
    margin-right: auto;
}
.timeline::before {
    z-index: -1;
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
}
.step{
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}
.dot {
    height: 2rem;
    width: 2rem;
    flex: 0 0 2rem;
    display:flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 1rem;
    color:white;
}
.label{
    display:flex;
    flex-direction: column;
    align-items: flex-start;
}
.label h3{
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
} 
.label p{
    margin: 0.25rem 0 0;
    color: #555;
    font-size: 0.9rem;
    text-align: left;
}
.story {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    justify-content:space-around;
    background: #eaeaea;
    padding: 0 10%;
}
.story-content {
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    flex:1;
    /*border:black solid 1px;*/
}
.story-image {
    flex:1;
    display: flex;
    justify-content: center;
    /*border:black solid 1px;*/
}
.story-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
}
.cta{
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--accent-color);
    color: white;
    padding: 2rem 5%;
}
.cta h2{
    margin:10px 0 15px;
    font-weight: 500;
    color: white;
}
.cta .btn{
    display:inline-block;
    background:transparent;
    color:var(--secondary-color);
    border: 3px solid var(--secondary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

/*--Gallery Section--*/
.gallery {
    margin-top: 4rem;
    padding: 2rem 5%;

}
.gallery-container {
    margin-top: 2rem;
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}
.fw-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.fw-card:hover .fw-card-inner {
    transform: rotateY(180deg);
}
.fw-card.is-flipped .fw-card-inner,
.fw-card:focus .fw-card-inner {
    transform: rotateY(180deg);
}
.fw-front, .fw-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    border: 1px solid #ddd;
}
.fw-front {
    background: #fff;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fw-card {
    height: 260px;
    perspective: 1000px;
    cursor: pointer;
}
.fw-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Back — title and description */
.fw-back {
    transform: rotateY(180deg);
    background: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    overflow-y: auto;
}
.fw-back h3 {
    color: var(--primary-color);
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.fw-back p {
    color: rgb(85, 85, 85);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .fw-card {
        height: auto;
        min-height: 280px;
        aspect-ratio: 1 / 1;
    }

    .fw-back {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .fw-card {
        min-height: 320px;
        aspect-ratio: 4 / 3;
    }
}
