/* RESPONSIVE FIXES & IMPROVEMENTS */
/* Desktop comparison cards, contact methods, footer, AI colors */

/* DESKTOP COMPARISON CARDS - CENTERED */
@media (min-width: 1025px) {
    .comparison-cards {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 600px;
        margin: 40px auto;
        gap: 20px;
    }
    
    .comparison-card {
        flex: 1;
        max-width: 200px;
    }
    
    .vs-divider {
        flex-shrink: 0;
        margin: 0 10px;
    }
}

/* CONTACT METHODS - SINGLE LINE ON DESKTOP */
@media (min-width: 1025px) {
    .contact-methods {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .contact-method {
        flex: 1;
        max-width: 300px;
        min-height: 120px;
        padding: 25px 20px;
    }
    
    .contact-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .contact-info strong {
        font-size: 1.1rem;
        margin-bottom: 8px;
        display: block;
    }
    
    .contact-info span {
        font-size: 1rem;
    }
}

/* IMPROVED FOOTER */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, #1a252f 100%);
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-info {
    padding: 20px 0;
}

.footer-info h3 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.footer-info > p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-contact,
.footer-hours {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.footer-contact p,
.footer-hours p {
    margin-bottom: 10px;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-contact strong,
.footer-hours strong {
    color: var(--primary-light);
    font-weight: 600;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* AI SECTION - BETTER COLORS */
.ai-preview-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, 
        var(--dark) 0%, 
        #2c3e50 50%, 
        var(--primary-dark) 100%);
    overflow: hidden;
}

.ai-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(1,174,170,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26,35,50,0.8) 0%, rgba(44,62,80,0.8) 50%, rgba(1,174,170,0.8) 100%);
    animation: ai-bg-shift 12s ease-in-out infinite;
}

.ai-cta-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 
        0 15px 40px rgba(1,174,170,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
}

.ai-cta-button:hover {
    box-shadow: 
        0 25px 60px rgba(1,174,170,0.4),
        0 0 0 1px rgba(255,255,255,0.2);
}

/* REDUCED BACKGROUND EFFECTS FOR CARDS */
.comparison-card::after {
    opacity: 0.2;
    animation: border-glow-subtle 4s ease-in-out infinite;
}

.comparison-card.innovative::after {
    opacity: 0.3;
    animation: border-glow-primary-subtle 3s ease-in-out infinite;
}

@keyframes border-glow-subtle {
    0%, 100% { 
        opacity: 0.1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.3; 
        transform: scale(1.01);
    }
}

@keyframes border-glow-primary-subtle {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.4; 
        transform: scale(1.015);
    }
}

/* MOBILE AI SECTION - CENTERED AND RESPONSIVE */
@media (max-width: 768px) {
    .ai-preview-section {
        padding: 60px 0;
    }
    
    .ai-preview-card {
        margin: 0 10px;
        padding: 30px 20px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .ai-preview-card h2 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .ai-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .ai-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .ai-feature {
        padding: 15px;
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .ai-feature span {
        font-size: 0.95rem;
        flex: 1;
    }
    
    /* AI DEMO - MOBILE CENTERED */
    .ai-preview-demo {
        margin-bottom: 30px;
        overflow: visible;
    }
    
    .demo-screen {
        max-width: 100%;
        margin: 0;
        padding: 20px;
        overflow: visible;
    }
    
    .demo-content {
        gap: 10px;
        overflow: visible;
    }
    
    .demo-before,
    .demo-after {
        padding: 20px 10px;
        font-size: 0.9rem;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .demo-arrow {
        font-size: 1.5rem;
    }
    
    .ai-processing {
        margin-top: 15px;
    }
    
    .processing-text {
        font-size: 0.85rem;
    }
    
    /* AI CTA - MOBILE */
    .ai-cta-button {
        flex-direction: column;
        gap: 10px;
        padding: 20px 25px;
        text-align: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 15px;
    }
    
    .ai-cta-icon {
        font-size: 1.75rem;
        order: -1;
    }
    
    .ai-cta-content {
        align-items: center;
    }
    
    .ai-cta-main {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .ai-cta-sub {
        font-size: 0.85rem;
    }
    
    .ai-cta-arrow {
        display: none; /* Hide arrow on mobile */
    }
    
    .ai-disclaimer {
        text-align: center;
        font-size: 0.75rem;
        padding: 0 20px;
    }
}

/* TABLET AI RESPONSIVE */
@media (min-width: 769px) and (max-width: 1024px) {
    .ai-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 600px;
        margin: 0 auto 35px;
    }
    
    .demo-screen {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .ai-cta-button {
        max-width: 400px;
        margin: 0 auto 20px;
    }
}

/* MOBILE FOOTER RESPONSIVE */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-info {
        text-align: center;
        padding: 0;
    }
    
    .footer-info h3 {
        font-size: 1.5rem;
    }
    
    .footer-contact,
    .footer-hours {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .map-container {
        height: 200px;
        margin: 20px 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .footer-links {
        gap: 15px;
        justify-content: center;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* TABLET FOOTER */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        gap: 40px;
        max-width: 800px;
        margin: 0 auto 40px;
    }
    
    .map-container {
        height: 250px;
    }
}

/* LARGE DESKTOP FOOTER */
@media (min-width: 1400px) {
    .footer-content {
        max-width: 1200px;
        margin: 0 auto 40px;
    }
    
    .footer-info {
        padding: 30px 0;
    }
    
    .map-container {
        height: 350px;
    }
}

/* CONTACT SECTION IMPROVEMENTS */
.contact {
    padding: 80px 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(1,174,170,0.03) 0%, transparent 70%),
        linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contact h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact > p {
    text-align: center;
    color: var(--gray);
    font-size: 1.125rem;
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* TABLET CONTACT */
@media (min-width: 769px) and (max-width: 1024px) {
    .contact-methods {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-method {
        padding: 20px 15px;
    }
}

/* PERFORMANCE OPTIMIZATIONS */
.comparison-cards,
.contact-methods,
.footer-content {
    will-change: transform;
    backface-visibility: hidden;
}

/* HIGH CONTRAST ADJUSTMENTS */
@media (prefers-contrast: high) {
    .ai-preview-section {
        background: linear-gradient(135deg, #000000 0%, var(--dark) 100%);
    }
    
    .footer {
        background: #000000;
    }
    
    .comparison-card::after,
    .comparison-card.innovative::after {
        display: none;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .ai-gradient-bg,
    .comparison-card::after,
    .comparison-card.innovative::after {
        animation: none;
    }
    
    .footer::before {
        animation: none;
    }
}