/* Enhanced Light Mode Gradient Variables */
:root {
    /* Core Colors - no change to base colors */
    --primary: #5B2C83;           /* Deep Purple (from logo) */
    --primary-hover: #4A206E;     /* Darker purple for hover states */
    --accent-blue: #2276C3;       /* Royal Blue for accents */
    --accent-teal: #44BBA4;       /* Teal Green for accents */
    
    /* Enhanced gradient palettes with more vibrant colors */
    --gradient-bg: linear-gradient(135deg, #F8F8FF 0%, #F5F5FF 100%);
    --hero-gradient: linear-gradient(135deg, rgba(91, 44, 131, 0.15) 0%, rgba(34, 118, 195, 0.12) 50%, rgba(68, 187, 164, 0.09) 100%);
    --section-gradient-1: linear-gradient(135deg, rgba(91, 44, 131, 0.08) 0%, rgba(255, 255, 255, 1) 100%);
    --section-gradient-2: linear-gradient(135deg, rgba(34, 118, 195, 0.08) 0%, rgba(255, 255, 255, 1) 100%);
    --section-gradient-3: linear-gradient(135deg, rgba(68, 187, 164, 0.08) 0%, rgba(255, 255, 255, 1) 100%);
    --section-gradient-4: linear-gradient(135deg, rgba(91, 44, 131, 0.07) 0%, rgba(34, 118, 195, 0.07) 50%, rgba(255, 255, 255, 1) 100%);
    
    /* Enhanced card gradients */
    --card-gradient-purple: linear-gradient(135deg, rgba(91, 44, 131, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    --card-gradient-blue: linear-gradient(135deg, rgba(34, 118, 195, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    --card-gradient-teal: linear-gradient(135deg, rgba(68, 187, 164, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    
    /* Enhanced border gradients */
    --border-gradient-light: linear-gradient(to right, rgba(91, 44, 131, 0.2), rgba(34, 118, 195, 0.2), rgba(68, 187, 164, 0.2));
    
    /* Enhanced animated gradients - more vibrant */
    --animated-gradient-purple: linear-gradient(135deg, rgba(91, 44, 131, 0.18) 0%, rgba(122, 66, 179, 0.12) 50%, rgba(91, 44, 131, 0.15) 100%);
    --animated-gradient-blue: linear-gradient(135deg, rgba(34, 118, 195, 0.18) 0%, rgba(74, 155, 236, 0.12) 50%, rgba(34, 118, 195, 0.15) 100%);
    --animated-gradient-teal: linear-gradient(135deg, rgba(68, 187, 164, 0.18) 0%, rgba(126, 235, 217, 0.12) 50%, rgba(68, 187, 164, 0.15) 100%);
    --animated-gradient-mix: linear-gradient(135deg, rgba(91, 44, 131, 0.15) 0%, rgba(34, 118, 195, 0.12) 50%, rgba(68, 187, 164, 0.09) 100%);
}

/* Enhanced animated backgrounds for light mode */
.hero-section::after {
    opacity: 0.9;
    background-image: var(--animated-gradient-mix);
}

.features-section::after {
    opacity: 0.9;
    background-image: var(--animated-gradient-purple);
}

.advantages-section::after {
    opacity: 0.9;
    background-image: var(--animated-gradient-blue);
}

.story-section::after,
.values-section::after {
    opacity: 0.9;
    background-image: var(--animated-gradient-teal);
}

.features-grid-section::after {
    opacity: 0.9;
    background-image: var(--animated-gradient-purple);
}

.demo-types-section::after {
    opacity: 0.9;
    background-image: var(--animated-gradient-blue);
}

.expect-section::after {
    opacity: 0.9;
    background-image: var(--animated-gradient-teal);
}

.stats-section::after {
    opacity: 0.9;
    background-image: var(--animated-gradient-purple);
}

/* Enhanced hover effects for light mode */
.feature-card:hover::after,
.advantage-card:hover::after,
.value-card:hover::after,
.demo-type-card:hover::after,
.expect-card:hover::after,
.feature-extended-card:hover::after {
    opacity: 0.6;
    background: linear-gradient(90deg, #5B2C83 0%, #2276C3 50%, #44BBA4 100%);
    background-size: 200% 200%;
}

/* Enhanced CTA box in light mode */
.cta-box::before {
    background: linear-gradient(135deg, rgba(91, 44, 131, 0.15) 0%, rgba(255, 255, 255, 0) 50%, rgba(68, 187, 164, 0.15) 100%);
    animation: shine 8s linear infinite;
}

/* Enhanced borders for form elements */
.form-group input:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(68, 187, 164, 0.15);
}

/* More visible pulse animation for stats */
.stat-card:hover .stat-content h3 {
    animation: pulse-text 1.5s ease infinite;
    color: var(--primary);
}

/* More vibrant section dividers */
.section-divider {
    background-image: linear-gradient(90deg, #5B2C83 0%, #2276C3 50%, #44BBA4 100%);
    opacity: 0.8;
}

.section-divider::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
}

/* Enhanced preview box gradients */
.preview-box::after {
    background: linear-gradient(135deg, rgba(91, 44, 131, 0.05) 0%, rgba(34, 118, 195, 0.03) 50%, rgba(68, 187, 164, 0.05) 100%);
    background-size: 200% 200%;
    animation: subtle-shift 12s ease infinite;
}

.booking-form::after {
    background: linear-gradient(135deg, rgba(91, 44, 131, 0.05) 0%, rgba(34, 118, 195, 0.03) 50%, rgba(68, 187, 164, 0.05) 100%);
    background-size: 200% 200%;
    animation: subtle-shift 12s ease infinite;
}

/* Enhanced accent icon animation */
.accent-icon {
    background-image: var(--accent-gradient);
    animation: float-rotate 4s ease-in-out infinite;
    display: inline-block;
    background-size: 200% 200%;
}

@keyframes float-rotate {
    0% {
        transform: translateY(0) rotate(0deg);
        background-position: 0% 50%;
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
        background-position: 100% 50%;
    }
    100% {
        transform: translateY(0) rotate(0deg);
        background-position: 0% 50%;
    }
}

/* Additional section background gradients */

/* Header gradient background */
header {
    background-image: linear-gradient(135deg, rgba(91, 44, 131, 0.25) 0%, rgba(34, 118, 195, 0.2) 50%, rgba(68, 187, 164, 0.18) 100%);
    background-color: rgba(255, 255, 255, 0.75); /* More transparent base to show colors better */
}

body.dark-mode header {
    background-image: linear-gradient(135deg, rgba(139, 98, 179, 0.3) 0%, rgba(74, 155, 236, 0.25) 50%, rgba(82, 209, 185, 0.2) 100%);
    background-color: rgba(18, 18, 21, 0.75); /* More transparent base to show colors better */
}

/* Search preview section background */
.search-preview {
    background-image: linear-gradient(135deg, rgba(91, 44, 131, 0.08) 0%, rgba(34, 118, 195, 0.06) 50%, rgba(68, 187, 164, 0.05) 100%);
    z-index: 1;
}

/* Make the preview-box stand out with full opacity */
.search-preview .preview-box {
    opacity: 1;
}

/* CTA section background */
.cta-section {
    background-image: linear-gradient(135deg, rgba(91, 44, 131, 0.07) 0%, rgba(34, 118, 195, 0.05) 50%, rgba(68, 187, 164, 0.08) 100%);
}

/* Features page background enhancement */
.features-grid-section {
    background-image: linear-gradient(135deg, rgba(91, 44, 131, 0.2) 0%, rgba(34, 118, 195, 0.15) 50%, rgba(68, 187, 164, 0.15) 100%);
}

/* Demo page background enhancements */
.demo-types-section {
    background-image: linear-gradient(135deg, rgba(34, 118, 195, 0.12) 0%, rgba(91, 44, 131, 0.07) 70%, rgba(255, 255, 255, 0.95) 100%), 
                      var(--section-gradient-4);
}

.booking-section {
    background-image: linear-gradient(135deg, rgba(68, 187, 164, 0.1) 0%, rgba(34, 118, 195, 0.07) 50%, rgba(255, 255, 255, 0.95) 100%), 
                      var(--section-gradient-2);
}

.expect-section {
    background-image: linear-gradient(135deg, rgba(91, 44, 131, 0.08) 0%, rgba(68, 187, 164, 0.12) 70%, rgba(255, 255, 255, 0.95) 100%), 
                      var(--section-gradient-3);
}

/* Dark mode adjustments */
body.dark-mode .search-preview {
    background-image: linear-gradient(135deg, rgba(139, 98, 179, 0.15) 0%, rgba(74, 155, 236, 0.12) 50%, rgba(82, 209, 185, 0.1) 100%);
}

body.dark-mode .cta-section {
    background-image: linear-gradient(135deg, rgba(139, 98, 179, 0.15) 0%, rgba(74, 155, 236, 0.1) 50%, rgba(82, 209, 185, 0.15) 100%);
}

body.dark-mode .features-grid-section {
    background-image: linear-gradient(135deg, rgba(139, 98, 179, 0.3) 0%, rgba(74, 155, 236, 0.25) 50%, rgba(82, 209, 185, 0.2) 100%);
}

body.dark-mode .demo-types-section {
    background-image: linear-gradient(135deg, rgba(74, 155, 236, 0.2) 0%, rgba(139, 98, 179, 0.15) 70%, rgba(18, 18, 30, 0.95) 100%), 
                      var(--section-gradient-4);
}

body.dark-mode .booking-section {
    background-image: linear-gradient(135deg, rgba(82, 209, 185, 0.18) 0%, rgba(74, 155, 236, 0.15) 50%, rgba(18, 18, 30, 0.95) 100%), 
                      var(--section-gradient-2);
}

body.dark-mode .expect-section {
    background-image: linear-gradient(135deg, rgba(139, 98, 179, 0.15) 0%, rgba(82, 209, 185, 0.2) 70%, rgba(18, 18, 30, 0.95) 100%), 
                      var(--section-gradient-3);
}

body.dark-mode .preview-box {
    background-color: rgba(30, 30, 45, 0.95);
    border-color: rgba(40, 40, 60, 0.3);
    box-shadow: 0 5px 15px rgba(139, 98, 179, 0.4), 
                0 0 100px 50px rgba(139, 98, 179, 0.7),
                0 0 45px 30px rgba(74, 155, 236, 0.6),
                0 0 30px 15px rgba(82, 209, 185, 0.5);
}

body.dark-mode .preview-box:before {
    content: '';
    position: absolute;
    top: 0; 
    right: 0; 
    bottom: 0; 
    left: 0;
    z-index: -1;
    margin: -3px;
    border-radius: calc(var(--radius-lg) + 3px);
    background: var(--cta-gradient);
    opacity: 0.6;
}

.booking-form {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 750px;
    margin: 0 auto;
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.booking-form::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: var(--border-gradient-light);
}

.booking-form::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, rgba(91, 44, 131, 0.05) 0%, rgba(34, 118, 195, 0.03) 50%, rgba(68, 187, 164, 0.05) 100%);
    background-size: 200% 200%;
    animation: subtle-shift 12s ease infinite;
}

.booking-form h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.booking-form p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.booking-form .btn {
    display: inline-flex;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    box-shadow: 0 4px 10px rgba(91, 44, 131, 0.2);
    transition: all 0.3s ease;
}

.booking-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(91, 44, 131, 0.3);
}

body.dark-mode .booking-form {
    background-color: rgba(30, 30, 45, 0.95);
    border-color: rgba(40, 40, 60, 0.3);
}

body.dark-mode .booking-form h2 {
    color: transparent;
}