/* Sell Page Styles */

/* Services Details Section */
.services-details {
    padding: clamp(60px, 8vw, 120px) 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.services-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(44, 110, 73, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(44, 110, 73, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(44, 110, 73, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.services-details::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232c6e49' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.services-details-wrapper {
    margin-right: clamp(15px, 4vw, 30px);
    position: relative;
}

.services-details-thumbnail {
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(44, 110, 73, 0.1);
    transform: translateY(0) perspective(1000px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-details-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        rgba(44, 110, 73, 0.2),
        transparent 50%,
        rgba(44, 110, 73, 0.2)
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.services-details-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.8),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: overlay;
    z-index: 2;
}

.services-details-thumbnail:hover {
    transform: translateY(-5px) perspective(1000px) rotateX(2deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(44, 110, 73, 0.2);
}

.services-details-thumbnail:hover::before,
.services-details-thumbnail:hover::after {
    opacity: 1;
}

.services-details-thumbnail img {
    width: 100%;
    border-radius: 20px;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.services-details-thumbnail:hover img {
    transform: scale(1.05);
}

.services-details-content-step {
    margin-bottom: 45px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-details-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
    background: linear-gradient(135deg, #2c6e49 0%, #1a4d32 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.services-details-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2c6e49 0%, transparent 100%);
    border-radius: 2px;
}

.services-details-desc {
    font-size: clamp(15px, 1.1vw, 16px);
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.services-details-desc:hover {
    opacity: 1;
}

/* Services Info Section */
.services-details-info {
    background: linear-gradient(135deg, rgba(248, 248, 248, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 24px;
    padding: clamp(30px, 5vw, 50px);
    margin-bottom: 45px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(44, 110, 73, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.services-details-info::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(44, 110, 73, 0.5), transparent);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.services-details-info::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1), transparent 200px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.services-details-info:hover::before {
    opacity: 1;
}

.services-details-info:hover::after {
    opacity: 1;
}

.services-details-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.services-details-info-title {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c6e49;
    position: relative;
    padding-left: 15px;
}

.services-details-info-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #2c6e49;
    border-radius: 2px;
}

.services-details-info-ui-content {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-details-info-ui-content li {
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    text-align: justify;
}

.services-details-info-ui-content li:hover {
    transform: translateX(5px);
}

.services-details-info-ui-content li span {margin-right: 5px;}

.services-details-info-ui-content li svg {
    color: #2c6e49;
    width: clamp(12px, 1.5vw, 15px);
    height: auto;
    transition: transform 0.3s ease;
}

.services-details-info-ui-content li:hover svg {
    transform: scale(1.2);
}

.services-details-info-ui-content li b {
    font-weight: 600;
    color: #2c6e49;
}

/* Services Widget Section */
.services-widget {
    position: relative;
    top: 0;
}

@media (min-width: 992px) {
    .services-widget {
        position: -webkit-sticky;
        position: sticky;
        align-self: flex-start;
        transition: top 0.3s ease;
    }
    
    /* Add this class to the container of both columns */
    .row {
        display: flex;
        align-items: flex-start;
    }

    /* Add this to the column containing services-details-wrapper */
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    /* Add this to the column containing services-widget */
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.services-widget-step {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: clamp(25px, 5vw, 40px);
    margin-bottom: 30px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(44, 110, 73, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.services-widget-step::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(44, 110, 73, 0.5), transparent 50%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.services-widget-step:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(44, 110, 73, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.services-widget-step:hover::before {
    opacity: 1;
}

.services-widget-step:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.services-widget-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 15px;
}

.services-categories-items {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.services-categories-items:nth-child(2) { animation-delay: 0.1s; }
.services-categories-items:nth-child(3) { animation-delay: 0.2s; }
.services-categories-items:nth-child(4) { animation-delay: 0.3s; }

.services-categories-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(44, 110, 73, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.services-categories-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c6e49 0%, #1a4d32 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.services-categories-items.active .services-categories-link,
.services-categories-link:hover {
    border-color: #2c6e49;
    transform: translateY(-3px);
}

.services-categories-items.active .services-categories-link::before,
.services-categories-link:hover::before {
    opacity: 1;
}

.services-categories-text {
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 500;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.services-categories-items.active .services-categories-text,
.services-categories-link:hover .services-categories-text {
    color: #fff;
}

.services-categories-arrow-icon {
    position: relative;
    z-index: 2;
}

.services-categories-arrow-icon svg {
    width: clamp(16px, 1.5vw, 20px);
    height: auto;
    transition: all 0.3s ease;
    fill: currentColor;
}

.services-categories-link:hover .services-categories-arrow-icon svg {
    transform: translateX(5px);
    color: #fff;
}

/* Widget Timing Section */
.services-widget-step.timing {
    background: linear-gradient(135deg, #2c6e49 0%, #1a4d32 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 
        0 20px 40px rgba(44, 110, 73, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.services-widget-step.timing::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.widget-step-title {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    padding-bottom: 15px;
}

.widget-step-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.widget-timing-list {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.widget-timing-list:hover {
    border-bottom-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.widget-timing-list:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.widget-timing-text {
    font-size: clamp(14px, 1.1vw, 16px);
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.widget-timing-list:hover .widget-timing-text {
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .services-details-wrapper {
        margin-right: 0;
    }
    
    .services-widget {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 991px) {
    .services-widget {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .services-details-info {
        padding: clamp(20px, 4vw, 30px);
    }
    
    .services-widget-step {
        padding: clamp(20px, 4vw, 30px);
    }
    
    .services-categories-link {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .services-details-info-ui-content {
        grid-template-columns: 1fr;
    }
    
    .widget-timing-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Add support for dark mode */
@media (prefers-color-scheme: dark) {
    .services-details {
        background-color: #1a1a1a;
    }
    
    .services-details-desc {
        color: #999;
    }
    
    .services-details-info {
        background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
        border-color: rgba(44, 110, 73, 0.2);
    }
    
    .services-details-info-ui-content li {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .services-details-info-ui-content li:hover {
        background: rgba(44, 110, 73, 0.15);
    }
    
    .services-categories-link {
        background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
    }
}