/* Specialties Section Styles */
.specialties {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.specialties::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ff6b35" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ff6b35" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ff6b35" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ff6b35" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

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

.specialties h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

.specialties h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f39c12);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.specialty-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    transform: translateY(0);
    height: 400px;
}

.specialty-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(60%);
    transition: transform 0.4s ease;
}

.specialty-card:hover .specialty-overlay {
    transform: translateY(0);
}

.specialty-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.specialty-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0.9;
}

.specialty-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.feature-tag i {
    font-size: 0.7rem;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(243, 156, 18, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.specialty-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.specialty-card:hover::before {
    opacity: 1;
}

.specialty-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 0;
}

.specialty-card:hover img {
    transform: scale(1.1);
}

.specialty-card-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.specialty-card h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.specialty-card:hover h3 {
    color: #ff6b35;
}

.specialty-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.specialty-info .price {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #f39c12);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.specialty-info .price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.specialty-card:hover .specialty-info .price::before {
    left: 100%;
}

/* Specialties CTA Section */
.specialties-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(243, 156, 18, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.specialties-cta h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.specialties-cta p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.specialty-consult-btn {
    background: linear-gradient(135deg, #ff6b35, #f39c12);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.specialty-consult-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.specialty-card .price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.specialty-card:hover .price::before {
    left: 100%;
}

/* Special Effects */
.specialty-card .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b35;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    transform: rotate(10deg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: rotate(10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

.specialty-card .rating {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.specialty-card .rating i {
    font-size: 0.8rem;
}

/* Action Buttons */
.specialty-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.specialty-card:hover .specialty-actions {
    opacity: 1;
    transform: translateY(0);
}

.specialty-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-order {
    background: #ff6b35;
    color: white;
}

.btn-order:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-info {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-info:hover {
    background: #ff6b35;
    color: white;
}

/* Specialty Modal */
.specialty-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.specialty-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff6b35;
}

.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.detail-item i {
    font-size: 2rem;
    color: #ff6b35;
    margin-bottom: 10px;
}

.detail-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.detail-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Floating Action Button */
.specialties-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.specialties-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .specialties {
        padding: 60px 0;
    }
    
    .specialties h2 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .specialty-card {
        margin: 0 10px;
        height: 350px;
    }
    
    .specialty-overlay {
        padding: 20px 15px 15px;
    }
    
    .specialty-info h3 {
        font-size: 1.2rem;
    }
    
    .specialty-info p {
        font-size: 0.85rem;
    }
    
    .specialties-cta {
        margin-top: 40px;
        padding: 30px 20px;
    }
    
    .specialties-cta h3 {
        font-size: 1.5rem;
    }
    
    .specialty-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .specialties-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .specialties h2 {
        font-size: 1.8rem;
    }
    
    .specialty-card {
        height: 320px;
    }
    
    .specialty-overlay {
        padding: 15px 12px 12px;
    }
    
    .specialty-info h3 {
        font-size: 1.1rem;
    }
    
    .specialty-info p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .specialties-cta h3 {
        font-size: 1.3rem;
    }
    
    .specialty-consult-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}