/* ==========================================
   ROIATEK AI - Sections CSS (Part 3)
   ========================================== */

/* ---------- Testimonials Section ---------- */
.testimonials {
    background: var(--color-bg-darker);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: var(--space-xl);
    transition: transform var(--transition-slow);
}

.testimonial-card {
    flex: 0 0 calc(33.333% - var(--space-xl) * 2 / 3);
    padding: var(--space-2xl);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    min-width: calc(33.333% - var(--space-xl) * 2 / 3);
}

.quote-icon {
    width: 32px;
    height: 32px;
    fill: var(--color-primary);
    opacity: 0.3;
    margin-bottom: var(--space-lg);
}

.testimonial-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-weight: 700;
    color: var(--color-bg-dark);
}

.author-info h4 {
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.author-info p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.slider-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.slider-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}

.slider-btn:hover svg {
    stroke: var(--color-bg-dark);
}

.slider-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-text-primary);
}

.slider-dots {
    display: flex;
    gap: var(--space-sm);
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.dot.active {
    width: 24px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* ---------- Partners Section - Enhanced ---------- */
.partners {
    padding: var(--space-5xl) 0;
    background: var(--color-bg-dark);
    border-top: 1px solid rgba(0, 245, 212, 0.1);
    border-bottom: 1px solid rgba(0, 245, 212, 0.1);
    position: relative;
    overflow: hidden;
}

/* Add beautiful gradient background */
.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle 600px at 50% 50%, rgba(123, 44, 191, 0.15) 0%, transparent 60%),
        radial-gradient(circle 500px at 20% 50%, rgba(0, 245, 212, 0.12) 0%, transparent 60%),
        radial-gradient(circle 500px at 80% 50%, rgba(247, 37, 133, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.partners > .container {
    position: relative;
    z-index: 1;
}

.partners-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-3xl);
    position: relative;
}

/* Add decorative line */
.partners-title::before,
.partners-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-primary),
        transparent
    );
}

.partners-title::before {
    right: calc(100% + 20px);
}

.partners-title::after {
    left: calc(100% + 20px);
}

.partners-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo {
    padding: var(--space-lg) var(--space-2xl);
    background: rgba(34, 40, 56, 0.6);
    border: 1px solid rgba(0, 245, 212, 0.15);
    border-radius: var(--radius-xl);
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.8;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Shine effect on hover */
.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 245, 212, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.partner-logo:hover::before {
    left: 100%;
}

.partner-logo:hover {
    opacity: 1;
    border-color: var(--color-primary);
    color: var(--color-text-primary);
    background: rgba(34, 40, 56, 0.9);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 245, 212, 0.3);
}

/* ---------- Contact Section ---------- */
.contact {
    position: relative;
    background: var(--color-bg-darker);
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at right center, rgba(123, 44, 191, 0.1) 0%, transparent 60%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    position: relative;
    z-index: 1;
}

.contact-info .section-tag {
    margin-bottom: var(--space-md);
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.contact-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.contact-item {
    display: flex;
    gap: var(--space-lg);
}

.contact-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: var(--radius-lg);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
}

.contact-text h4 {
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.contact-text p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}

.social-link:hover svg {
    fill: var(--color-bg-dark);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--color-text-primary);
}

/* Contact Form */
.contact-form-wrapper {
    padding: var(--space-2xl);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 20px;
    padding-right: 48px;
}

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

/* ---------- CTA Section ---------- */
.cta {
    position: relative;
    padding: var(--space-5xl) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 245, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(123, 44, 191, 0.2) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
}

.cta-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ---------- Footer - Modern & Smart ---------- */
.footer {
    background: transparent;
    padding: var(--space-5xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Animated Gradient Background */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle 800px at 20% 30%, rgba(123, 44, 191, 0.15) 0%, transparent 50%),
        radial-gradient(circle 700px at 80% 70%, rgba(0, 245, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle 600px at 50% 50%, rgba(247, 37, 133, 0.08) 0%, transparent 50%);
    z-index: 0;
    animation: footerGlow 15s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Glowing Top Border */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 245, 212, 0.5) 20%,
        rgba(123, 44, 191, 0.5) 50%,
        rgba(247, 37, 133, 0.5) 80%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
    z-index: 1;
}

/* Ensure content is above effects */
.footer > .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-4xl);
}

/* Enhanced Logo with Glow */
.footer-brand .logo {
    margin-bottom: var(--space-lg);
    display: inline-block;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 0 20px rgba(0, 245, 212, 0.3));
}

.footer-brand .logo:hover {
    filter: drop-shadow(0 0 30px rgba(0, 245, 212, 0.6));
    transform: scale(1.05);
}

.footer-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-xl);
    max-width: 300px;
    line-height: 1.7;
}

/* Modern Footer Titles with Underline */
.footer-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Animated Link Hover */
.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    display: inline-block;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all var(--transition-normal);
    color: var(--color-primary);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 20px;
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

.footer-links a:hover::before {
    left: 0;
    opacity: 1;
}

.footer-newsletter p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

/* Enhanced Newsletter Form */
.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: rgba(34, 40, 56, 0.6);
    border: 2px solid rgba(0, 245, 212, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.newsletter-input::placeholder {
    color: var(--color-text-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(34, 40, 56, 0.9);
    box-shadow: 
        0 0 0 3px rgba(0, 245, 212, 0.1),
        0 0 20px rgba(0, 245, 212, 0.3);
}

/* Animated Newsletter Button */
.newsletter-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.newsletter-btn:hover::before {
    width: 100px;
    height: 100px;
}

.newsletter-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 5px 20px rgba(0, 245, 212, 0.5),
        0 0 30px rgba(0, 245, 212, 0.3);
}

.newsletter-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-bg-dark);
    position: relative;
    z-index: 1;
}

/* Enhanced Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 245, 212, 0.1);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 200px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(0, 245, 212, 0.5),
        transparent
    );
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--space-xl);
}

.footer-legal a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    position: relative;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-legal a:hover::after {
    width: 100%;
}
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-bg-dark);
}