/* Enhanced Professional Styles for AppSolutions Website */

/* Global Enhancements */
:root {
    --highlight-color: #ff9a3c; /* Vibrant orange for highlights */
    --success-color: #4caf78; /* Green for success messages */
    --error-color: #f44336; /* Red for error messages */
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
}

/* Section Subtitle */
.section-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Section Description */
.section-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: rgba(45, 49, 66, 0.85);
    line-height: 1.8;
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.highlight-text {
    color: var(--secondary-color);
    -webkit-text-fill-color: var(--secondary-color);
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    color: var(--light-text);
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-feature i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* Floating elements for visual interest */
.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--light-text);
    z-index: 0;
}

.element-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float-slow 15s ease-in-out infinite;
}

.element-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float-slow 12s ease-in-out infinite reverse;
}

.element-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 15%;
    animation: float-slow 10s ease-in-out infinite 2s;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Enhanced CTA Buttons */
.primary-cta {
    background: var(--gradient-primary);
    color: var(--light-text) !important;
    -webkit-text-fill-color: var(--light-text) !important;
    border: none;
    font-weight: 700;
}

.secondary-cta {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background-color: var(--dark-background);
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 123, 219, 0.1) 0%, rgba(101, 103, 178, 0.1) 100%);
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    position: relative;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Enhanced Testimonial Section */
.testimonial-carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 1rem;
}

.testimonial-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.testimonial-rating {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-style: italic;
}

.testimonial-author-container {
    display: flex;
    align-items: center;
}

.testimonial-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    font-weight: bold;
    margin-right: 1rem;
}

.testimonial-author-info {
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.testimonial-position {
    font-size: 0.9rem;
    color: rgba(45, 49, 66, 0.7);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    background-color: var(--light-background);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin: 0 1rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(44, 107, 237, 0.2);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Enhanced Contact Form */
.cta {
    background: var(--gradient-primary);
    padding: 6rem 0;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3QgaWQ9InBhdHRlcm4tYmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIiBmaWxsPSJyZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMDMpIj48L3JlY3Q+PHBhdGggZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjA3KSIgZD0iTTAgMGg0MHY0MEgweiI+PC9wYXRoPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSI+PC9yZWN0Pjwvc3ZnPg==');
    opacity: 0.4;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.cta-text-container {
    flex: 1;
    min-width: 300px;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-weight: 700;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.contact-item a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 107, 237, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--light-text);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn i {
    margin-right: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.form-success-message {
    text-align: center;
    padding: 2rem;
}

.form-success-message i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.form-success-message h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .cta-content {
        flex-direction: column;
    }
    
    .cta-text-container,
    .contact-form-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}
