/* Component Styles - Services, Gallery, Testimonials */

/* Section Base Styles */
.section {
    padding: 80px 5%;
}

.title {
    text-align: center;
    margin-bottom: 50px;
    animation: slideUp 0.6s ease-out;
}

.title h2 {
    color: var(--emerald);
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title .line {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 15px auto;
    border-radius: var(--radius-sm);
}

.title p {
    font-size: 1rem;
    margin-top: 10px;
    color: var(--dark);
}

/* Services Grid - Mobile-first 2-column, 4 on desktop */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

.s-card {
    background: var(--glass-bg);
    padding: 24px 16px;
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: all var(--transition-slow);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: var(--shadow-md);
    position: relative;
    transform: translateY(0) scale(1);
    backdrop-filter: blur(10px);
    animation: scaleIn 0.5s ease-out backwards;
}

.s-card:nth-child(1) { animation-delay: 0.1s; }
.s-card:nth-child(2) { animation-delay: 0.2s; }
.s-card:nth-child(3) { animation-delay: 0.3s; }
.s-card:nth-child(4) { animation-delay: 0.4s; }

.s-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-2xl);
    background: var(--gradient-secondary);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: -1;
}

.s-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.s-card:hover::before {
    opacity: 0.1;
}

.s-card i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: inline-block;
    transition: all var(--transition-normal);
    transform: scale(1);
}

.s-card:hover i {
    transform: scale(1.15);
    animation: float 2s ease-in-out infinite;
}

.s-card h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.s-card p {
    font-size: 0.85rem;
    color: var(--dark);
    line-height: 1.5;
}

/* Gallery Grid - Mobile-first 2-column, 4 on desktop */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all var(--transition-slow);
    touch-action: manipulation;
    box-shadow: var(--shadow-md);
    transform: scale(1);
    animation: scaleIn 0.5s ease-out backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 1;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover::before {
    opacity: 0.2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(37, 99, 235, 0.95));
    color: white;
    padding: 16px;
    transform: translateY(100%);
    transition: all var(--transition-slow);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.gallery-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Testimonials - Mobile-first 2-column */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

.testimonial-card {
    background: var(--glass-bg);
    padding: 24px 16px;
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--glass-border);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    animation: slideUp 0.6s ease-out backwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.stars {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    margin-bottom: 16px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--dark);
    font-size: 0.9rem;
}

.client-info strong {
    color: var(--emerald);
    display: block;
    margin-bottom: 4px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
}

.client-info span {
    color: var(--primary-light);
    font-size: 0.8rem;
}
