/* Services Process Styles */
.service-process-container {
    position: relative;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

.process-flow {
    display: flex;
    flex-direction: row; /* Horizontal layout for desktop */
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; /* Prevent wrapping on desktop */
    transition: all 0.3s ease; /* Smooth transition between layouts */
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 0.5rem;
    width: 100%;
    max-width: 180px; /* Smaller size */
}

.process-arrow {
    font-size: 1.2rem;
    color: #d9a175;
    margin: 0 0.5rem;
    transform: rotate(-90deg); /* Make arrow point right for horizontal layout */
}

.process-arrow i {
    animation: bounce-horizontal 2s infinite;
}

@keyframes bounce-horizontal {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(3px);
    }
}

.service-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon {
    width: 60px; /* Smaller size */
    height: 60px; /* Smaller size */
    border-radius: 50%;
    background: linear-gradient(135deg, #e8c4a4, #d9a175);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Smaller font size */
    box-shadow: 0 4px 8px rgba(217, 161, 117, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.service-icon:before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed rgba(217, 161, 117, 0.4);
    border-radius: 50%;
    animation: spin 50s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.service-content {
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1rem; /* Smaller font size */
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.service-description {
    color: #666;
    font-size: 0.85rem; /* Smaller font size */
    max-width: 150px;
    margin: 0 auto;
}

.process-step:hover .service-icon {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(217, 161, 117, 0.4);
}

/* Service card styles */
.service-card {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.service-card h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    color: #333;
}

.service-card h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #d9a175;
}

/* Moodboard Section Styles */
.moodboard-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.moodboard-card {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    height: auto; /* Changed from fixed height to auto */
    min-height: 240px; /* Added min-height instead of fixed height */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.moodboard-img-container {
    position: relative;
    overflow: hidden;
    height: 240px;
    cursor: pointer;
    flex-shrink: 0; /* Prevent the image from shrinking */
}

.moodboard-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.moodboard-img-container::after {
    content: "\f00e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    bottom: 15px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.moodboard-img-container:hover::after {
    opacity: 1;
}

.modal-content {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    background-color: white;
    padding: 15px 20px;
}

.modal-title {
    color: #333;
    font-weight: 600;
}

.modal-body {
    padding: 0;
}

#modalImage {
    max-height: 80vh;
    object-fit: contain;
    background-color: #f5f5f5;
}

.moodboard-content {
    padding: 20px; /* Added padding */
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
}

.moodboard-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.moodboard-content h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #d9a175;
}

.moodboard-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    overflow: visible; /* Remove any overflow hidden */
    text-overflow: initial; /* Remove ellipsis */
    white-space: normal; /* Allow text to wrap */
}

.moodboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.moodboard-card:hover .moodboard-img-container img {
    transform: scale(1.05);
}

/* Responsive styles for service process */
@media (max-width: 992px) {
    .process-flow {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .process-step {
        margin: 0.5rem 1rem;
        flex: 0 0 40%; /* Two steps per row on medium screens */
        max-width: 40%;
    }
    
    .process-arrow {
        display: none; /* Hide arrows in medium screens */
    }
    
    .moodboard-img-container {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .process-flow {
        flex-direction: column; /* Switch to vertical layout on mobile */
        gap: 0;
    }
    
    .process-step {
        margin-bottom: 1rem;
        max-width: 250px;
        flex: 0 0 100%; /* Full width on mobile */
    }
    
    .process-arrow {
        display: block; /* Show arrows again for mobile */
        transform: rotate(0deg); /* Reset rotation for vertical layout */
        margin: 0.5rem 0;
    }
    
    .process-arrow i {
        animation: bounce 2s infinite; /* Use vertical bounce for mobile */
    }
    
    .service-icon {
        width: 70px; /* Slightly larger on mobile for better visibility */
        height: 70px;
        font-size: 1.7rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        max-width: 200px;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-5px);
        }
        60% {
            transform: translateY(-3px);
        }
    }
    
    .moodboard-content h3 {
        font-size: 1.2rem;
    }
    
    .moodboard-img-container {
        height: 200px;
    }
    
    .moodboard-content p {
        height: auto;
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 576px) {
    .service-process-container {
        padding: 1rem 0;
    }
    
    .process-step {
        margin-bottom: 0.5rem;
    }
    
    .moodboard-content {
        padding: 20px 15px;
    }
    
    .moodboard-img-container {
        height: 180px;
    }
}

/* Make all cards in a row the same height */
.moodboard-cards .row {
    display: flex;
    flex-wrap: wrap;
}

.moodboard-cards .col-md-4 {
    display: flex;
} 