/* Custom CSS for Yathrib website */

/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-inner {
    text-align: center;
}

.preloader-inner img {
    max-width: 200px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.8;
    }
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

/* Make logo smaller */
.logo img {
    max-width: 100px; /* Adjust this value as needed */
    height: auto;
}

/* Styling for service icons */
.services-icon .fa-icon {
    font-size: 50px;
    color: #f16001; /* Match the brand color */
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.5s ease;
    width: 110px;
    height: 110px;
    line-height: 110px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.services-icon .fa-icon::before {
    position: relative;
    z-index: 2;
}

.services-icon .fa-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f16001 0%, #ff8c42 100%);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.5s ease;
    z-index: 1;
}

.s-single-services:hover .fa-icon {
    transform: scale(1.1) rotate(10deg);
    color: #fff;
    box-shadow: 0 15px 35px rgba(241, 96, 1, 0.25);
}

.s-single-services:hover .fa-icon::after {
    transform: scale(1);
}

/* Improved styling for service cards */
.s-single-services {
    background-color: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    transition: all 0.5s ease;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.s-single-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f16001 0%, #ff8c42 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.s-single-services:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.s-single-services:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Center the icons */
.services-icon {
    text-align: center;
    margin-bottom: 25px;
}

/* Additional styling for active service */
.s-single-services.active {
    box-shadow: 0 20px 40px rgba(241, 96, 1, 0.15);
    border-color: rgba(241, 96, 1, 0.2);
}

.s-single-services.active::before {
    transform: scaleX(1);
}

.s-single-services.active .fa-icon {
    color: #fff;
}

.s-single-services.active .fa-icon::after {
    transform: scale(1);
}

/* Improved text styling for services */
.services-text h3 {
    margin-bottom: 20px;
    font-size: 22px;
    transition: all 0.3s ease;
}

.services-text h3 a {
    color: #222;
    transition: all 0.3s ease;
}

.s-single-services:hover .services-text h3 a {
    color: #f16001;
}

.services-text p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

.services-text a {
    font-weight: 600;
    color: #f16001;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    padding-right: 25px;
}

.services-text a i {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.services-text a:hover i {
    right: -5px;
}

/* Enhanced styling for concrete types section */
.concrete-types-section {
    padding: 80px 0;
    position: relative;
}

.concrete-types-section .section-title h2 {
    margin-bottom: 15px;
    position: relative;
}

.concrete-types-section .section-title span {
    color: #777;
    font-weight: 500;
}

.concrete-types-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.concrete-types-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f16001 0%, #ff8c42 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.concrete-types-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.concrete-types-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.concrete-icon {
    width: 110px;
    height: 110px;
    line-height: 110px;
    border-radius: 50%;
    margin: 0 auto 25px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.concrete-icon i {
    font-size: 48px;
    color: #f16001;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.concrete-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f16001 0%, #ff8c42 100%);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.5s ease;
    z-index: 1;
}

.concrete-types-card:hover .concrete-icon i {
    color: #fff;
}

.concrete-types-card:hover .concrete-icon::after {
    transform: scale(1);
}

.concrete-types-card .content {
    padding: 25px 25px 30px;
    text-align: center;
}

.concrete-types-card .content h4 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.concrete-types-card:hover .content h4 {
    color: #f16001;
}

.concrete-types-card .content p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    min-height: 72px;
}

.concrete-types-card .content a {
    display: inline-flex;
    align-items: center;
    color: #f16001;
    font-weight: 600;
    transition: all 0.3s ease;
}

.concrete-types-card .content a img {
    margin-left: 8px;
    transition: all 0.3s ease;
    width: 20px;
}

.concrete-types-card:hover .content a img {
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .concrete-types-card {
        margin-bottom: 30px;
    }
    
    .concrete-types-card .content h4 {
        font-size: 18px;
    }
    
    .concrete-types-card .content p {
        font-size: 14px;
        min-height: 90px;
    }
}

@media (max-width: 767px) {
    .concrete-icon {
        width: 90px;
        height: 90px;
        line-height: 90px;
    }
    
    .concrete-icon i {
        font-size: 40px;
    }
    
    .concrete-types-card .content {
        padding: 20px 15px 25px;
    }
    
    .concrete-types-card .content p {
        min-height: auto;
    }
}

/* Styling for concrete types section */
.single-project {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    padding: 20px;
}

.single-project:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.single-project .project-thumb {
    padding: 30px 0 15px;
}

.single-project .project-info {
    padding: 15px 0;
    text-align: center;
}

.single-project .project-info h4 {
    color: #222;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.single-project:hover .project-info h4 {
    color: #f16001;
}

.single-project .project-info p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.single-project .project-info a {
    color: #f16001;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.single-project .project-info a img {
    width: 20px;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.single-project:hover .project-info a img {
    transform: translateX(5px);
}

/* Special styling for the services-icon in project section */
.single-project .services-icon .fa-icon {
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.single-project:hover .services-icon .fa-icon {
    background-color: #f16001;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* Portfolio section container adjustments */
#project .container-fluid {
    padding: 0 15px;
}

#project .portfolio-active {
    padding: 30px 0;
    margin: 0 -10px;
}

#project .col-xl-3, 
#project .col-lg-6, 
#project .col-md-6 {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .single-project .project-info h4 {
        font-size: 18px;
    }
    
    #project .col-xl-3 {
        padding: 0 10px;
    }
}

@media (max-width: 991px) {
    .single-project {
        margin-bottom: 30px;
    }
    
    .single-project .project-info p {
        font-size: 13px;
    }
    
    #project .container-fluid {
        padding: 0 10px;
    }
}

@media (max-width: 767px) {
    .services-icon .fa-icon {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 40px;
    }
    
    #project .portfolio-active {
        padding: 20px 0;
    }
}

@media (max-width: 575px) {
    .single-project {
        padding: 15px;
    }
    
    .single-project .project-info h4 {
        font-size: 16px;
    }
    
    #project .col-xl-3, 
    #project .col-lg-6, 
    #project .col-md-6 {
        padding: 0 10px;
    }
}

/* Product page specific styles */
.btn-custom {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f16001 0%, #ff8c42 100%);
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    margin-top: 15px;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 96, 1, 0.3);
    color: #fff;
}

.concrete-types-card ul {
    list-style: none;
    padding-left: 0;
}

.concrete-types-card ul li {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.concrete-types-card ul li:before {
    content: "•";
    color: #f16001;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.concrete-types-card .content {
    padding: 30px;
}

.concrete-types-card .content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.concrete-types-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.concrete-types-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.concrete-icon {
    margin: 30px auto 0;
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.concrete-icon i {
    font-size: 40px;
    color: #f16001;
    transition: all 0.3s ease;
}

.concrete-types-card:hover .concrete-icon {
    background: #f16001;
}

.concrete-types-card:hover .concrete-icon i {
    color: #fff;
}

@media (max-width: 991px) {
    .concrete-types-card .content {
        padding: 20px;
    }
    
    .concrete-types-card ul li {
        font-size: 13px;
    }
    
    .concrete-icon {
        width: 70px;
        height: 70px;
    }
    
    .concrete-icon i {
        font-size: 35px;
    }
}

@media (max-width: 767px) {
    .concrete-types-card {
        margin-bottom: 30px;
    }
    
    .concrete-types-card .content h4 {
        font-size: 18px;
    }
    
    .btn-custom {
        padding: 10px 20px;
        font-size: 14px;
    }
} 