/* Modern 3D Printing Page Enhancements */

/* Glass morphism effect for special sections */
.glassmorphism {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Modern subtle background pattern */
.bg-pattern {
    background-color: #f8f9fa;
    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='%23ffc800' fill-opacity='0.1'%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");
}

/* 3D print layer effect for sections */
.print-layer-bg {
    background-image: linear-gradient(0deg, transparent 24%, 
                      rgba(255, 200, 0, 0.05) 25%, 
                      rgba(255, 200, 0, 0.05) 26%, 
                      transparent 27%, transparent 74%, 
                      rgba(255, 200, 0, 0.05) 75%, 
                      rgba(255, 200, 0, 0.05) 76%, transparent 77%);
    background-size: 20px 20px;
    background-position: 0 0;
}

/* Modern floating image effect */
.floating-image {
    transition: transform 0.5s ease;
}

.floating-image:hover {
    transform: perspective(1000px) rotateY(3deg) rotateX(3deg) translateY(-10px);
}

/* Improved card display with shadow */
.premium-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 200, 0, 0) 0%, rgba(255, 200, 0, 0.1) 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.premium-card:hover::before {
    opacity: 1;
}

/* Modern progress steps */
.modern-step {
    display: flex;
    position: relative;
    margin-bottom: 4rem;
}

.modern-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 30px;
    margin-right: 1.5rem;
    box-shadow: 0 10px 25px rgba(255, 200, 0, 0.3);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.modern-step-content {
    position: relative;
}

.modern-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.modern-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 30px;
    width: 2px;
    height: calc(100% - 30px);
    background: linear-gradient(to bottom, var(--primary-color) 0%, rgba(255, 200, 0, 0.1) 100%);
    z-index: 1;
}

/* Subtle hover rotation effect for icons */
.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.1);
}

/* Modern badge styling */
.modern-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 0.5rem;
    margin-bottom: 0.7rem;
    background: linear-gradient(45deg, rgba(255, 200, 0, 0.4), rgba(255, 200, 0, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #212529;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

.modern-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 200, 0, 0.4);
    background: linear-gradient(45deg, rgba(255, 200, 0, 0.5), rgba(255, 200, 0, 0.7));
    border-color: rgba(255, 255, 255, 0.3);
}

/* Subtle shadow for headings */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Highlighting effect for important elements */
.highlight-item {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.highlight-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(255, 200, 0, 0.2);
    z-index: -1;
    transition: height 0.3s ease, background-color 0.3s ease;
}

.highlight-item:hover::after {
    height: 50%;
    background-color: rgba(255, 200, 0, 0.25);
}

/* Enhanced metric display for important statistics */
.stat-circle {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 12px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Removing the wave/circular pattern */
/* .stat-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 200, 0, 0.05) 0%, 
        rgba(255, 255, 255, 0) 60%);
    opacity: 1;
    transition: opacity 0.3s ease;
} */

.stat-circle:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* .stat-circle:hover::before {
    opacity: 0.8;
} */

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
    background: linear-gradient(to right, #e0b000, #ffc800);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--medium-dark);
    margin-top: 0.5rem;
    text-align: center;
    padding: 0 1rem;
    font-weight: 500;
}

/* Custom text selection color */
::selection {
    background-color: rgba(255, 200, 0, 0.3);
    color: var(--dark-color);
}

/* Animated gradient border for special elements */
@keyframes border-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-border {
    position: relative;
    border-radius: 15px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    z-index: -1;
    border-radius: 18px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--accent-color), 
        var(--primary-light), 
        var(--primary-dark)
    );
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: border-flow 3s ease infinite;
}

.gradient-border:hover::before {
    opacity: 1;
}

.gradient-text {
    background: linear-gradient(45deg, #ffc800, #ff8a00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-step {
        padding-left: 60px;
    }
    
    .modern-step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .modern-step:not(:last-child)::after {
        height: calc(100% - 45px);
        top: 45px;
    }
    
    .stat-circle {
        width: 150px;
        height: 150px;
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
}

/* FAQ Section Enhancements */
#faq {
    background-color: #f8f9fa;
    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='%23ffc800' fill-opacity='0.05'%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");
}

#faq .custom-accordion {
    max-width: 100%;
    margin: 0 auto;
}

#faq .accordion-item {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#faq .accordion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

#faq .accordion-button {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    background-color: #fff;
    border: none;
    box-shadow: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

#faq .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(255, 200, 0, 0.05);
    box-shadow: inset 0 -1px 0 rgba(255, 200, 0, 0.2);
    font-weight: 700;
}

#faq .accordion-button:hover {
    color: var(--primary-color);
}

#faq .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(255, 200, 0, 0.5);
}

#faq .accordion-button::after {
    background-size: 1.25rem;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

#faq .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg) scale(1.2);
    color: var(--primary-color);
}

#faq .accordion-body {
    padding: 1.5rem 1.75rem;
    background-color: #fff;
}

#faq .accordion-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

#faq .accordion-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

#faq .accordion-body li {
    margin-bottom: 0.5rem;
    color: #666;
}

#faq .accordion-body strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Improved highlight effect for FAQ questions */
#faq .highlight-item {
    position: relative;
    z-index: 1;
    display: inline-block;
    width: 100%;
}

#faq .highlight-item::after {
    /* Remove the highlight effect completely */
    content: none;
    display: none;
}

#faq .accordion-button:not(.collapsed) .highlight-item::after {
    /* Remove the highlight effect completely */
    content: none;
    display: none;
}

#faq .accordion-button:hover .highlight-item::after {
    /* Remove the highlight effect completely */
    content: none;
    display: none;
}

/* Responsive adjustments for FAQ section */
@media (max-width: 768px) {
    #faq .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    #faq .accordion-body {
        padding: 1.25rem;
    }
    
    #faq .highlight-item::after {
        height: 6px;
    }
    
    #faq .accordion-button:not(.collapsed) .highlight-item::after {
        height: 10px;
    }
}