/**
 * Home Page Custom Styles - Mobile-First Design
 * 
 * This file contains styles for:
 * - Accordion components (long text sections)
 * - Testimonials slider
 * - Project cards
 * - CTA sections
 * - Mobile optimizations
 */

/* ============================================
   ACCORDION STYLES
   ============================================ */
.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background: white;
    transition: box-shadow 0.2s;
}

.accordion-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.accordion-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #111827;
    transition: background-color 0.2s;
}

.accordion-toggle:hover {
    background: #f3f4f6;
}

.accordion-toggle i {
    transition: transform 0.3s ease;
    color: #6b7280;
}

.accordion-item.accordion-open .accordion-toggle i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
    color: #4b5563;
    line-height: 1.6;
    white-space: normal;
    word-wrap: break-word;
    display: block;
}

.accordion-item.accordion-open .accordion-content {
    padding: 1rem 1.5rem 1.5rem;
    overflow: visible;
}

/* Desktop: Can show first item open by default */
@media (min-width: 768px) {
    .accordion-item:first-child.accordion-open .accordion-content {
        padding: 1rem 1.5rem 1.5rem;
    }
}

/* ============================================
   TESTIMONIALS STYLES
   ============================================ */
.testimonials-slider {
    position: relative;
}

.testimonials-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-container::-webkit-scrollbar {
    display: none;
}

.testimonial-item {
    flex: 0 0 calc(100% - 2rem);
    scroll-snap-align: start;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .testimonial-item {
        flex: 0 0 calc(33.333% - 1rem);
    }
    
    .testimonials-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        overflow-x: visible;
    }
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.testimonial-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.testimonial-quote {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9375rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 2rem;
    color: #d1d5db;
    font-family: Georgia, serif;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 0.875rem;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .slider-dots {
        display: none;
    }
}

.slider-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: #9ca3af;
}

.slider-dot.active {
    width: 1.5rem;
    border-radius: 0.25rem;
    background: #2563eb;
}

/* ============================================
   PROJECT CARDS STYLES
   ============================================ */
.project-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.project-image-wrapper {
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.project-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.project-type {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.project-link:hover {
    color: #2563eb;
}

.project-link i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.project-card:hover .project-link i {
    transform: translateX(4px);
}

/* ============================================
   CTA SECTION STYLES
   ============================================ */
.cta-section {
    padding: 3rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6 0%, #f97316 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    width: 100%;
    max-width: 20rem;
    padding: 1rem 2rem;
    background: white;
    color: #3b82f6;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 44px; /* Mobile tap target */
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .cta-section {
        padding: 5rem 1rem;
    }
    
    .cta-title {
        font-size: 2.25rem;
    }
    
    .cta-subtitle {
        font-size: 1.25rem;
    }
    
    .cta-button {
        width: auto;
        font-size: 1.125rem;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 767px) {
    /* Reduce excessive padding on mobile */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Adjust heading sizes */
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    /* Ensure buttons are tappable */
    a[class*="button"],
    button[class*="button"] {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Add bottom padding for floating buttons */
    .cta-section {
        padding-bottom: 6rem; /* Space for floating WhatsApp/phone buttons */
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

