/* ===== GUARANTEE SECTION CSS ===== */

:root {
  --guarantee-bg-dark: #161623;
  --guarantee-bg-light: #f8f9fa;
  --guarantee-text-dark: #ffffff;
  --guarantee-text-light: #303030;
  --guarantee-text-muted-dark: rgba(255, 255, 255, 0.8);
  --guarantee-text-muted-light: rgba(0, 0, 0, 0.7);
  --guarantee-feature-bg-dark: rgba(255, 255, 255, 0.03);
  --guarantee-feature-bg-light: rgba(0, 0, 0, 0.02);
  --guarantee-feature-border-dark: rgba(255, 255, 255, 0.05);
  --guarantee-feature-border-light: rgba(0, 0, 0, 0.05);
}

.guarantee-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--guarantee-bg-dark);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.guarantee-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Removing the missing image reference */
    /* background-image: url('../../images/patterns/dots-pattern.png'); */
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    transition: opacity 0.4s ease;
}

/* Decorative elements */
.guarantee-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 211, 33, 0.1) 0%, rgba(154, 122, 249, 0.05) 50%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    filter: blur(40px);
    animation: pulse-glow 8s ease-in-out infinite;
    transition: background 0.4s ease, opacity 0.4s ease;
}

.guarantee-section .section-subtitle {
    display: inline-block;
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
    color: var(--accent-green, #78e57e);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
    position: relative;
    text-align: left;
    box-shadow: 0 5px 15px rgba(126, 211, 33, 0.1);
    overflow: hidden;
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* Shine effect */
.guarantee-section .section-subtitle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(30deg);
    animation: shine-effect 4s infinite linear;
    pointer-events: none;
}

.guarantee-section .section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-align: left;
    color: var(--guarantee-text-dark);
    position: relative;
    display: inline-block;
    transition: color 0.4s ease;
}

/* Underline effect */
.guarantee-section .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-purple) 100%);
    transition: width 0.4s ease;
}

.guarantee-section:hover .section-title::after {
    width: 100px;
}

.guarantee-section .section-description,
.guarantee-section .guarantee-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--guarantee-text-muted-dark);
    max-width: 650px;
    text-align: left;
    transition: color 0.3s ease;
}

.guarantee-section .gradient-text {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 800;
    position: relative;
}

/* Highlight effect */
.guarantee-section .gradient-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
    z-index: -1;
    opacity: 0.5;
    border-radius: 3px;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.guarantee-content {
    position: relative;
    z-index: 1;
    padding-right: 40px;
    animation: fade-in-up 0.8s ease-out both;
}

/* Header spacing for Guarantee Section */
.guarantee-section .col-lg-6.p-0 {
    padding-left: 25px !important;
}

/* Light theme adjustments */
.light-theme .guarantee-section {
    background-color: var(--guarantee-bg-light);
}

.light-theme .guarantee-section::before {
    opacity: 0.03;
}

.light-theme .guarantee-section::after {
    background: radial-gradient(circle, rgba(126, 211, 33, 0.05) 0%, rgba(154, 122, 249, 0.03) 50%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.7;
}

.light-theme .guarantee-section .section-subtitle {
    background: linear-gradient(90deg, rgba(126, 211, 33, 0.15) 0%, rgba(154, 122, 249, 0.15) 100%);
    color: var(--accent-green-light, #4CAF50);
    box-shadow: 0 5px 15px rgba(126, 211, 33, 0.05);
}

.light-theme .guarantee-section .section-title {
    color: var(--guarantee-text-light);
}

.light-theme .guarantee-section .section-description,
.light-theme .guarantee-section .guarantee-description {
    color: var(--guarantee-text-muted-light);
}

.guarantee-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--guarantee-text-muted-dark);
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.light-theme .guarantee-description {
    color: var(--guarantee-text-muted-light);
}

.guarantee-features {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

/* Staggered animation for features */
.guarantee-features .guarantee-feature:nth-child(1) {
    animation: fade-in-up 0.5s ease-out 0.1s both;
}
.guarantee-features .guarantee-feature:nth-child(2) {
    animation: fade-in-up 0.5s ease-out 0.2s both;
}
.guarantee-features .guarantee-feature:nth-child(3) {
    animation: fade-in-up 0.5s ease-out 0.3s both;
}
.guarantee-features .guarantee-feature:nth-child(4) {
    animation: fade-in-up 0.5s ease-out 0.4s both;
}

.guarantee-feature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0px;
    position: relative;
    transition: all 0.4s ease;
    padding: 10px 10px 10px 20px;
    border-radius: 12px;
    background: var(--guarantee-feature-bg-dark);
    border: 1px solid var(--guarantee-feature-border-dark);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Feature badge */
.guarantee-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 40%;
    background: linear-gradient(to bottom, var(--primary-green), rgba(154, 122, 249, 0.5));
    border-radius: 0 0 4px 0;
    transition: height 0.3s ease;
}

.guarantee-feature:hover::before {
    height: 70%;
}

.guarantee-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(126, 211, 33, 0.2);
}

.guarantee-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.1), rgba(154, 122, 249, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.guarantee-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.1), rgba(154, 122, 249, 0.1));
    border-radius: 12px;
    opacity: 0.7;
    z-index: 0;
    transition: background 0.3s ease, opacity 0.3s ease;
}

/* Light blob effect behind icon */
.guarantee-icon::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(126, 211, 33, 0.3) 0%, rgba(154, 122, 249, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease, background 0.4s ease;
}

.guarantee-feature:hover .guarantee-icon::after {
    opacity: 1;
}

.guarantee-icon i {
    font-size: 24px;
    color: var(--primary-green, #7ED321);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.guarantee-feature:hover .guarantee-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.2), rgba(154, 122, 249, 0.2));
}

.guarantee-feature:hover .guarantee-icon i {
    transform: translateY(-3px);
    animation: icon-pulse 1s ease infinite alternate;
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    width: 100%;
}

.feature-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--guarantee-text-dark);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.feature-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--guarantee-text-muted-dark);
    margin-bottom: 0;
    transition: color 0.3s ease;
    width: 100%;
}

.guarantee-feature:hover .feature-content h4 {
    color: var(--primary-green, #7ED321);
    transform: translateX(3px);
}

.light-theme .guarantee-feature {
    background: var(--guarantee-feature-bg-light);
    border: 1px solid var(--guarantee-feature-border-light);
}

.light-theme .guarantee-feature:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(126, 211, 33, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.light-theme .feature-content h4 {
    color: var(--guarantee-text-light);
}

.light-theme .feature-content p {
    color: var(--guarantee-text-muted-light);
}

.light-theme .guarantee-icon {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.05), rgba(154, 122, 249, 0.05));
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.light-theme .guarantee-icon::before {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.05), rgba(154, 122, 249, 0.05));
}

.light-theme .guarantee-icon::after {
    background: radial-gradient(circle, rgba(126, 211, 33, 0.15) 0%, rgba(154, 122, 249, 0) 70%);
}

.light-theme .guarantee-icon i {
    color: var(--accent-green-light, #4CAF50);
}

.light-theme .guarantee-feature:hover .feature-content h4 {
    color: var(--accent-green-light, #4CAF50);
}

/* Button styling with proper bubble effect matching About section */
.guarantee-cta .btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-purple) 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(126, 211, 33, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: translateY(0);
}

/* Button bubble animation styled like About section */
.guarantee-cta .btn .bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: bubble-rise var(--duration, 4s) ease-in infinite var(--delay, 0s);
    z-index: -1;
    transform: translateY(100%);
    opacity: 0;
    width: var(--size, 15px);
    height: var(--size, 15px);
    left: var(--left, 50%);
    bottom: 0;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(100%) scale(0.2);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100%) scale(0.5);
        opacity: 0;
    }
}

/* Button hover effects */
.guarantee-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(126, 211, 33, 0.3);
}

.guarantee-cta .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(126, 211, 33, 0.2);
}

/* Button hover shine effect */
.guarantee-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.guarantee-cta .btn:hover::before {
    left: 100%;
    animation: btn-shine 1.2s ease;
}

/* Button icon styles */
.guarantee-cta .btn i {
    font-size: 14px;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    opacity: 0.8;
    z-index: 2;
    margin-left: 0;
}

.guarantee-cta .btn:hover i {
    transform: translateX(5px);
    opacity: 1;
}

/* Text styling */
.guarantee-cta .btn span {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.guarantee-cta .btn:hover span {
    transform: translateX(-3px);
}

/* Light theme adjustments for button */
.light-theme .guarantee-cta .btn {
    box-shadow: 0 10px 20px rgba(126, 211, 33, 0.15);
}

.light-theme .guarantee-cta .btn:hover {
    box-shadow: 0 15px 25px rgba(126, 211, 33, 0.25);
}

/* Fixed Guarantee Seal - Removed disruptive animations */
.guarantee-seal {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    height: 700px;
    transform: perspective(1000px) rotateY(-5deg);
    /* Replaced animation with subtle shadow transition */
}

.guarantee-seal:hover {
    transform: perspective(1000px) rotateY(-3deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.guarantee-seal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.3) 0%, rgba(154, 122, 249, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.guarantee-seal:hover::before {
    opacity: 0.4;
}

/* Animated ribbon */
.guarantee-seal::after {
    content: 'GUARANTEE';
    position: absolute;
    top: 30px;
    right: -35px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-purple));
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Light theme adjustments for seal */
.light-theme .guarantee-seal {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.light-theme .guarantee-seal:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.light-theme .guarantee-seal::before {
    background: linear-gradient(135deg, rgba(126, 211, 33, 0.2) 0%, rgba(154, 122, 249, 0.2) 100%);
}

.light-theme .guarantee-seal::after {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes icon-pulse {
    0% {
        transform: translateY(-3px) scale(1);
    }
    100% {
        transform: translateY(-3px) scale(1.1);
    }
}

@keyframes shine-effect {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(300%) rotate(30deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes btn-shine {
    0% {
        left: -100%;
        opacity: 0.8;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .guarantee-section {
        padding: 80px 0;
    }
    
    .guarantee-section .col-lg-6.p-0 {
        padding-left: 15px !important;
    }
    
    .guarantee-seal {
        height: 500px;
        margin-top: 40px;
        transform: perspective(1000px) rotateY(0);
    }
    
    .guarantee-seal:hover {
        transform: perspective(1000px) rotateY(0);
    }
}

@media (max-width: 768px) {
    .guarantee-section {
        padding: 60px 0;
    }
    
    .guarantee-section .section-title {
        font-size: 28px;
    }
    
    .guarantee-section .section-description,
    .guarantee-section .guarantee-description {
        max-width: 100%;
        font-size: 15px;
    }
    
    .guarantee-seal {
        height: 400px;
    }
    
    .guarantee-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .guarantee-feature {
        padding: 15px;
    }
    
    .feature-header {
        gap: 15px;
    }
    
    .feature-content h4 {
        font-size: 18px;
    }
    
    .feature-content p {
        font-size: 14px;
    }
    
    .guarantee-icon {
        width: 50px;
        height: 50px;
    }
    
    .guarantee-icon i {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .guarantee-section {
        padding: 50px 0;
    }
    
    .guarantee-section .section-title {
        font-size: 24px;
    }
    
    .guarantee-section .section-subtitle {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .guarantee-section .col-lg-6.p-0 {
        padding-left: 10px !important;
    }
    
    .guarantee-feature {
        padding: 15px;
    }
    
    .feature-content h4 {
        font-size: 16px;
    }
    
    .feature-content p {
        font-size: 13px;
    }
    
    .guarantee-cta .btn {
        width: 100%;
    }
}
